Update first-party Pulumi dependencies #37
Annotations
4 errors
|
Check worktree clean:
sdk/dotnet/BuildGo.cs#L1
File modified:
@@ -608,6 +608,305 @@ namespace Pulumi.LambdaBuilders
/// </summary>
public static Output<BuildGoResult> Invoke(BuildGoInvokeArgs? args = null, InvokeOptions? options = null)
=> global::Pulumi.Deployment.Instance.Invoke<BuildGoResult>("lambda-builders:index:buildGo", args ?? new BuildGoInvokeArgs(), options.WithDefaults());
+
+ /// <summary>
+ /// Builds a Golang Lambda Function into a Pulumi Asset that can be deployed.
+ ///
+ /// The below example uses a folder structure like this:
+ /// ```tree
+ /// examples/simple-go
+ /// ├── Pulumi.yaml
+ /// ├── cmd
+ /// │ └── simple
+ /// │ └── main.go
+ /// ├── go.mod
+ /// ├── go.sum
+ /// └── main.go
+ /// ```
+ ///
+ /// The output of `buildGo` produces an asset that can be passed to the
+ /// `aws.Lambda` `Code` property.
+ ///
+ /// {{% examples %}}
+ ///
+ /// ## Example Usage
+ ///
+ /// {{% example %}}
+ ///
+ /// Basic usage:
+ ///
+ /// ```typescript
+ /// import * as pulumi from "@pulumi/pulumi";
+ /// import * as aws from "@pulumi/aws";
+ /// import * as lambda_builders from "@pulumi/lambda-builders";
+ ///
+ /// const builder = lambda_builders.buildGo({
+ /// architecture: "arm64",
+ /// code: "cmd/simple",
+ /// });
+ /// const lambdaRolePolicy = aws.iam.getPolicyDocumentOutput({
+ /// statements: [{
+ /// actions: ["sts:AssumeRole"],
+ /// principals: [{
+ /// type: "Service",
+ /// identifiers: ["lambda.amazonaws.com"],
+ /// }],
+ /// }],
+ /// });
+ /// const role = new aws.iam.Role("role", {
+ /// assumeRolePolicy: lambdaRolePolicy.apply(lambdaRolePolicy => lambdaRolePolicy.json),
+ /// });
+ /// new aws.lambda.Function("function", {
+ /// code: builder.asset,
+ /// architectures: ["arm64"],
+ /// handler: "bootstrap",
+ /// role: role.arn,
+ /// runtime: aws.lambda.Runtime.CustomAL2023,
+ /// });
+ /// ```
+ ///
+ /// ```python
+ /// import pulumi
+ /// import pulumi_aws as aws
+ /// import pulumi_lambda_builders as lambda_builders
+ ///
+ /// builder = lambda_builders.build_go(architecture="arm64",
+ /// code="cmd/simple")
+ /// lambda_role_policy = aws.iam.get_policy_document_output(statements=[aws.iam.GetPolicyDocumentStatementArgs(
+ /// actions=["sts:AssumeRole"],
+ /// principals=[aws.iam.GetPolicyDocumentStatementPrincipalArgs(
+ /// type="Service",
+ /// identifiers=["lambda.amazonaws.com"],
+ /// )],
+ /// )])
+ /// role = aws.iam.Role("role", assume_role_policy=lambda_role_policy.json)
+ /// function = aws.lambda_.Function("function",
+ /// code=builder.asset,
+ /// architectures=["arm64"],
+ /// handler="bootstrap",
+ /// role=role.arn,
+ /// runtime=aws.lambda_.Runtime.CUSTOM_AL2023)
+ /// ```
+ ///
+ /// ```go
+ /// package main
+ ///
+ /// import (
+ /// "github.com/pulumi/pulumi-aws/sdk/v6/go/aws/iam"
+ /// "github.com/pulumi/pulumi-aws/sdk/v6/go/aws/lambda"
+ /// lambdabuilders "github.com/pulumi/pulumi-lambda-builders/sdk/go/lambda-builders"
+ /// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
+ /// )
+ ///
+ /// func main() {
+ /// pulumi.Run(func(ctx *pulumi.Context) error {
+ /// builder, err := lambdabuilders.BuildGo(ctx, &lambdabuilders.BuildGoArgs{
+ /// Architecture: pulumi.StringRef("arm64"),
+ /// Code: pulumi.StringRef("cmd/simple"),
+ /// }, nil)
+
|
Check worktree clean:
sdk/dotnet/Utilities.cs#L1
File modified:
@@ -56,6 +56,13 @@ namespace Pulumi.LambdaBuilders
return dst;
}
+ public static global::Pulumi.InvokeOutputOptions WithDefaults(this global::Pulumi.InvokeOutputOptions? src)
+ {
+ var dst = src ?? new global::Pulumi.InvokeOutputOptions{};
+ dst.Version = src?.Version ?? Version;
+ return dst;
+ }
+
private readonly static string version;
public static string Version => version;
|
Check worktree clean
Unexpected changes detected: 2. See file annotations for details.
|
Loading