diff --git a/sdk/go/aws/apigateway/domainName.go b/sdk/go/aws/apigateway/domainName.go index ee32bfad079..77854cf25a5 100644 --- a/sdk/go/aws/apigateway/domainName.go +++ b/sdk/go/aws/apigateway/domainName.go @@ -62,6 +62,8 @@ import ( // if err != nil { // return err // } +// // Example DNS record using Route53. +// // Route53 is not specifically required; any DNS host can be used. // _, err = route53.NewRecord(ctx, "exampleRecord", &route53.RecordArgs{ // Name: exampleDomainName.DomainName, // Type: pulumi.String("A"), @@ -118,6 +120,8 @@ import ( // if err != nil { // return err // } +// // Example DNS record using Route53. +// // Route53 is not specifically required; any DNS host can be used. // _, err = route53.NewRecord(ctx, "exampleRecord", &route53.RecordArgs{ // ZoneId: pulumi.Any(aws_route53_zone.Example.Id), // Name: exampleDomainName.DomainName, diff --git a/sdk/go/aws/apigateway/integration.go b/sdk/go/aws/apigateway/integration.go index 39456554b4a..0dbd4dfcce1 100644 --- a/sdk/go/aws/apigateway/integration.go +++ b/sdk/go/aws/apigateway/integration.go @@ -98,6 +98,7 @@ import ( // cfg := config.New(ctx, "") // myregion := cfg.RequireObject("myregion") // accountId := cfg.RequireObject("accountId") +// // API Gateway // api, err := apigateway.NewRestApi(ctx, "api", nil) // if err != nil { // return err @@ -166,6 +167,7 @@ import ( // if err != nil { // return err // } +// // Lambda // _, err = lambda.NewPermission(ctx, "apigwLambda", &lambda.PermissionArgs{ // Action: pulumi.String("lambda:InvokeFunction"), // Function: lambda.Name, diff --git a/sdk/go/aws/appsync/resolver.go b/sdk/go/aws/appsync/resolver.go index 024f3b9cbac..64be1866068 100644 --- a/sdk/go/aws/appsync/resolver.go +++ b/sdk/go/aws/appsync/resolver.go @@ -65,6 +65,7 @@ import ( // if err != nil { // return err // } +// // UNIT type resolver (default) // _, err = appsync.NewResolver(ctx, "testResolver", &appsync.ResolverArgs{ // ApiId: testGraphQLApi.ID(), // Field: pulumi.String("singlePost"), @@ -102,6 +103,7 @@ import ( // if err != nil { // return err // } +// // PIPELINE type resolver // _, err = appsync.NewResolver(ctx, "mutationPipelineTest", &appsync.ResolverArgs{ // Type: pulumi.String("Mutation"), // ApiId: testGraphQLApi.ID(), diff --git a/sdk/go/aws/autoscaling/attachment.go b/sdk/go/aws/autoscaling/attachment.go index 5972988adde..2e3b4b1ac70 100644 --- a/sdk/go/aws/autoscaling/attachment.go +++ b/sdk/go/aws/autoscaling/attachment.go @@ -30,6 +30,7 @@ import ( // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { +// // Create a new load balancer attachment // _, err := autoscaling.NewAttachment(ctx, "example", &autoscaling.AttachmentArgs{ // AutoscalingGroupName: pulumi.Any(aws_autoscaling_group.Example.Id), // Elb: pulumi.Any(aws_elb.Example.Id), @@ -55,6 +56,7 @@ import ( // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { +// // Create a new ALB Target Group attachment // _, err := autoscaling.NewAttachment(ctx, "example", &autoscaling.AttachmentArgs{ // AutoscalingGroupName: pulumi.Any(aws_autoscaling_group.Example.Id), // LbTargetGroupArn: pulumi.Any(aws_lb_target_group.Example.Arn), diff --git a/sdk/go/aws/backup/selection.go b/sdk/go/aws/backup/selection.go index 59ad7b97d15..bb2db2ad162 100644 --- a/sdk/go/aws/backup/selection.go +++ b/sdk/go/aws/backup/selection.go @@ -68,6 +68,7 @@ import ( // if err != nil { // return err // } +// // ... other configuration ... // _, err = backup.NewSelection(ctx, "exampleSelection", &backup.SelectionArgs{ // IamRoleArn: exampleRole.Arn, // }) diff --git a/sdk/go/aws/cfg/rule.go b/sdk/go/aws/cfg/rule.go index c8cf19d1699..426a7623150 100644 --- a/sdk/go/aws/cfg/rule.go +++ b/sdk/go/aws/cfg/rule.go @@ -139,6 +139,7 @@ import ( // if err != nil { // return err // } +// // ... other configuration ... // _, err = cfg.NewRule(ctx, "exampleRule", &cfg.RuleArgs{ // Source: &cfg.RuleSourceArgs{ // Owner: pulumi.String("CUSTOM_LAMBDA"), diff --git a/sdk/go/aws/cloudfront/originAccessIdentity.go b/sdk/go/aws/cloudfront/originAccessIdentity.go index a436bbe2acd..a86c7fc21e3 100644 --- a/sdk/go/aws/cloudfront/originAccessIdentity.go +++ b/sdk/go/aws/cloudfront/originAccessIdentity.go @@ -65,6 +65,7 @@ import ( // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { +// // ... other configuration ... // _, err := cloudfront.NewDistribution(ctx, "example", &cloudfront.DistributionArgs{ // Origins: cloudfront.DistributionOriginArray{ // &cloudfront.DistributionOriginArgs{ diff --git a/sdk/go/aws/cloudtrail/eventDataStore.go b/sdk/go/aws/cloudtrail/eventDataStore.go index e482ba32f3d..588d2d0df36 100644 --- a/sdk/go/aws/cloudtrail/eventDataStore.go +++ b/sdk/go/aws/cloudtrail/eventDataStore.go @@ -69,6 +69,7 @@ import ( // if err != nil { // return err // } +// // ... other configuration ... // _, err = cloudtrail.NewEventDataStore(ctx, "example", &cloudtrail.EventDataStoreArgs{ // AdvancedEventSelectors: cloudtrail.EventDataStoreAdvancedEventSelectorArray{ // &cloudtrail.EventDataStoreAdvancedEventSelectorArgs{ diff --git a/sdk/go/aws/codepipeline/webhook.go b/sdk/go/aws/codepipeline/webhook.go index 7824d8b92b2..3ca9283524b 100644 --- a/sdk/go/aws/codepipeline/webhook.go +++ b/sdk/go/aws/codepipeline/webhook.go @@ -103,6 +103,7 @@ import ( // if err != nil { // return err // } +// // Wire the CodePipeline webhook into a GitHub repository. // _, err = github.NewRepositoryWebhook(ctx, "barRepositoryWebhook", &github.RepositoryWebhookArgs{ // Repository: pulumi.Any(github_repository.Repo.Name), // Configuration: &github.RepositoryWebhookConfigurationArgs{ diff --git a/sdk/go/aws/cognito/userPool.go b/sdk/go/aws/cognito/userPool.go index cce0afec477..d1bb07f656a 100644 --- a/sdk/go/aws/cognito/userPool.go +++ b/sdk/go/aws/cognito/userPool.go @@ -51,6 +51,7 @@ import ( // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { +// // ... other configuration ... // _, err := cognito.NewUserPool(ctx, "example", &cognito.UserPoolArgs{ // MfaConfiguration: pulumi.String("ON"), // SmsAuthenticationMessage: pulumi.String("Your code is {####}"), diff --git a/sdk/go/aws/directconnect/hostedPrivateVirtualInterfaceAccepter.go b/sdk/go/aws/directconnect/hostedPrivateVirtualInterfaceAccepter.go index 94f457ef60e..2685fb79bc0 100644 --- a/sdk/go/aws/directconnect/hostedPrivateVirtualInterfaceAccepter.go +++ b/sdk/go/aws/directconnect/hostedPrivateVirtualInterfaceAccepter.go @@ -39,10 +39,12 @@ import ( // if err != nil { // return err // } +// // Accepter's side of the VIF. // vpnGw, err := ec2.NewVpnGateway(ctx, "vpnGw", nil, pulumi.Provider(aws.Accepter)) // if err != nil { // return err // } +// // Creator's side of the VIF // creator, err := directconnect.NewHostedPrivateVirtualInterface(ctx, "creator", &directconnect.HostedPrivateVirtualInterfaceArgs{ // ConnectionId: pulumi.String("dxcon-zzzzzzzz"), // OwnerAccountId: *pulumi.String(accepterCallerIdentity.AccountId), diff --git a/sdk/go/aws/directconnect/hostedPublicVirtualInterfaceAccepter.go b/sdk/go/aws/directconnect/hostedPublicVirtualInterfaceAccepter.go index 2229de6f6d7..cfd245c30e9 100644 --- a/sdk/go/aws/directconnect/hostedPublicVirtualInterfaceAccepter.go +++ b/sdk/go/aws/directconnect/hostedPublicVirtualInterfaceAccepter.go @@ -38,6 +38,7 @@ import ( // if err != nil { // return err // } +// // Creator's side of the VIF // creator, err := directconnect.NewHostedPublicVirtualInterface(ctx, "creator", &directconnect.HostedPublicVirtualInterfaceArgs{ // ConnectionId: pulumi.String("dxcon-zzzzzzzz"), // OwnerAccountId: *pulumi.String(accepterCallerIdentity.AccountId), @@ -54,6 +55,7 @@ import ( // if err != nil { // return err // } +// // Accepter's side of the VIF. // _, err = directconnect.NewHostedPublicVirtualInterfaceAccepter(ctx, "accepterHostedPublicVirtualInterfaceAccepter", &directconnect.HostedPublicVirtualInterfaceAccepterArgs{ // VirtualInterfaceId: creator.ID(), // Tags: pulumi.StringMap{ diff --git a/sdk/go/aws/directconnect/hostedTransitVirtualInterfaceAcceptor.go b/sdk/go/aws/directconnect/hostedTransitVirtualInterfaceAcceptor.go index 4d39ba17f4a..928474b1289 100644 --- a/sdk/go/aws/directconnect/hostedTransitVirtualInterfaceAcceptor.go +++ b/sdk/go/aws/directconnect/hostedTransitVirtualInterfaceAcceptor.go @@ -40,12 +40,14 @@ import ( // if err != nil { // return err // } +// // Accepter's side of the VIF. // example, err := directconnect.NewGateway(ctx, "example", &directconnect.GatewayArgs{ // AmazonSideAsn: pulumi.String("64512"), // }, pulumi.Provider(aws.Accepter)) // if err != nil { // return err // } +// // Creator's side of the VIF // creator, err := directconnect.NewHostedTransitVirtualInterface(ctx, "creator", &directconnect.HostedTransitVirtualInterfaceArgs{ // ConnectionId: pulumi.String("dxcon-zzzzzzzz"), // OwnerAccountId: *pulumi.String(accepterCallerIdentity.AccountId), diff --git a/sdk/go/aws/dms/certificate.go b/sdk/go/aws/dms/certificate.go index d8e71e20d01..9a220bab5d2 100644 --- a/sdk/go/aws/dms/certificate.go +++ b/sdk/go/aws/dms/certificate.go @@ -28,6 +28,7 @@ import ( // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { +// // Create a new certificate // _, err := dms.NewCertificate(ctx, "test", &dms.CertificateArgs{ // CertificateId: pulumi.String("test-dms-certificate-tf"), // CertificatePem: pulumi.String("..."), diff --git a/sdk/go/aws/dms/endpoint.go b/sdk/go/aws/dms/endpoint.go index 89f52eb294d..b2ffa18fd2c 100644 --- a/sdk/go/aws/dms/endpoint.go +++ b/sdk/go/aws/dms/endpoint.go @@ -30,6 +30,7 @@ import ( // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { +// // Create a new endpoint // _, err := dms.NewEndpoint(ctx, "test", &dms.EndpointArgs{ // CertificateArn: pulumi.String("arn:aws:acm:us-east-1:123456789012:certificate/12345678-1234-1234-1234-123456789012"), // DatabaseName: pulumi.String("test"), diff --git a/sdk/go/aws/dms/replicationInstance.go b/sdk/go/aws/dms/replicationInstance.go index 14ff8aa88b0..3e80047000f 100644 --- a/sdk/go/aws/dms/replicationInstance.go +++ b/sdk/go/aws/dms/replicationInstance.go @@ -90,6 +90,7 @@ import ( // if err != nil { // return err // } +// // Create a new replication instance // _, err = dms.NewReplicationInstance(ctx, "test", &dms.ReplicationInstanceArgs{ // AllocatedStorage: pulumi.Int(20), // ApplyImmediately: pulumi.Bool(true), diff --git a/sdk/go/aws/dms/replicationSubnetGroup.go b/sdk/go/aws/dms/replicationSubnetGroup.go index fa4ddcd88d4..392fe2e9c06 100644 --- a/sdk/go/aws/dms/replicationSubnetGroup.go +++ b/sdk/go/aws/dms/replicationSubnetGroup.go @@ -31,6 +31,7 @@ import ( // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { +// // Create a new replication subnet group // _, err := dms.NewReplicationSubnetGroup(ctx, "example", &dms.ReplicationSubnetGroupArgs{ // ReplicationSubnetGroupDescription: pulumi.String("Example replication subnet group"), // ReplicationSubnetGroupId: pulumi.String("example-dms-replication-subnet-group-tf"), diff --git a/sdk/go/aws/dms/replicationTask.go b/sdk/go/aws/dms/replicationTask.go index f846f29628e..dccc6afe912 100644 --- a/sdk/go/aws/dms/replicationTask.go +++ b/sdk/go/aws/dms/replicationTask.go @@ -30,6 +30,7 @@ import ( // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { +// // Create a new replication task // _, err := dms.NewReplicationTask(ctx, "test", &dms.ReplicationTaskArgs{ // CdcStartTime: pulumi.String("1993-05-21T05:50:00Z"), // MigrationType: pulumi.String("full-load"), diff --git a/sdk/go/aws/docdb/globalCluster.go b/sdk/go/aws/docdb/globalCluster.go index b9913033587..ef9cbd9954c 100644 --- a/sdk/go/aws/docdb/globalCluster.go +++ b/sdk/go/aws/docdb/globalCluster.go @@ -115,6 +115,7 @@ import ( // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { +// // ... other configuration ... // exampleCluster, err := docdb.NewCluster(ctx, "exampleCluster", nil) // if err != nil { // return err diff --git a/sdk/go/aws/ec2/ami.go b/sdk/go/aws/ec2/ami.go index dc365b4d966..aaaa57887b0 100644 --- a/sdk/go/aws/ec2/ami.go +++ b/sdk/go/aws/ec2/ami.go @@ -34,6 +34,9 @@ import ( // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { +// // Create an AMI that will start a machine whose root device is backed by +// // an EBS volume populated from a snapshot. We assume that such a snapshot +// // already exists with the id "snap-xxxxxxxx". // _, err := ec2.NewAmi(ctx, "example", &ec2.AmiArgs{ // EbsBlockDevices: ec2.AmiEbsBlockDeviceArray{ // &ec2.AmiEbsBlockDeviceArgs{ diff --git a/sdk/go/aws/ec2/dedicatedHost.go b/sdk/go/aws/ec2/dedicatedHost.go index 31f902d5b6a..2b250e23299 100644 --- a/sdk/go/aws/ec2/dedicatedHost.go +++ b/sdk/go/aws/ec2/dedicatedHost.go @@ -28,6 +28,8 @@ import ( // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { +// // Create a new host with instance type of c5.18xlarge with Auto Placement +// // and Host Recovery enabled. // _, err := ec2.NewDedicatedHost(ctx, "test", &ec2.DedicatedHostArgs{ // AutoPlacement: pulumi.String("on"), // AvailabilityZone: pulumi.String("us-west-2a"), diff --git a/sdk/go/aws/ec2/defaultNetworkAcl.go b/sdk/go/aws/ec2/defaultNetworkAcl.go index 34dd79173cc..a69b2ea56d7 100644 --- a/sdk/go/aws/ec2/defaultNetworkAcl.go +++ b/sdk/go/aws/ec2/defaultNetworkAcl.go @@ -174,6 +174,7 @@ import ( // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { +// // ... other configuration ... // _, err := ec2.NewDefaultNetworkAcl(ctx, "default", nil) // if err != nil { // return err diff --git a/sdk/go/aws/ec2/getVpcEndpointService.go b/sdk/go/aws/ec2/getVpcEndpointService.go index c0270ff9fc4..9d46feb39d9 100644 --- a/sdk/go/aws/ec2/getVpcEndpointService.go +++ b/sdk/go/aws/ec2/getVpcEndpointService.go @@ -36,12 +36,14 @@ import ( // if err != nil { // return err // } +// // Create a VPC // foo, err := ec2.NewVpc(ctx, "foo", &ec2.VpcArgs{ // CidrBlock: pulumi.String("10.0.0.0/16"), // }) // if err != nil { // return err // } +// // Create a VPC endpoint // _, err = ec2.NewVpcEndpoint(ctx, "ep", &ec2.VpcEndpointArgs{ // VpcId: foo.ID(), // ServiceName: *pulumi.String(s3.ServiceName), diff --git a/sdk/go/aws/ec2/getVpcPeeringConnection.go b/sdk/go/aws/ec2/getVpcPeeringConnection.go index 6daf06dca9e..d95677427bd 100644 --- a/sdk/go/aws/ec2/getVpcPeeringConnection.go +++ b/sdk/go/aws/ec2/getVpcPeeringConnection.go @@ -35,12 +35,14 @@ import ( // if err != nil { // return err // } +// // Create a route table // rt, err := ec2.NewRouteTable(ctx, "rt", &ec2.RouteTableArgs{ // VpcId: pulumi.Any(aws_vpc.Foo.Id), // }) // if err != nil { // return err // } +// // Create a route // _, err = ec2.NewRoute(ctx, "route", &ec2.RouteArgs{ // RouteTableId: rt.ID(), // DestinationCidrBlock: *pulumi.String(pc.PeerCidrBlock), diff --git a/sdk/go/aws/ec2/imageBlockPublicAccess.go b/sdk/go/aws/ec2/imageBlockPublicAccess.go index 77512da134c..3cb03fde4b6 100644 --- a/sdk/go/aws/ec2/imageBlockPublicAccess.go +++ b/sdk/go/aws/ec2/imageBlockPublicAccess.go @@ -31,6 +31,7 @@ import ( // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { +// // Prevent making AMIs publicly accessible in the region and account for which the provider is configured // _, err := ec2.NewImageBlockPublicAccess(ctx, "test", &ec2.ImageBlockPublicAccessArgs{ // State: pulumi.String("block-new-sharing"), // }) diff --git a/sdk/go/aws/ec2/internetGateway.go b/sdk/go/aws/ec2/internetGateway.go index 76555e9a7e7..6ed108a62bc 100644 --- a/sdk/go/aws/ec2/internetGateway.go +++ b/sdk/go/aws/ec2/internetGateway.go @@ -78,6 +78,7 @@ type InternetGateway struct { // if err != nil { // return err // } + // // ... other arguments ... // _, err = ec2.NewInstance(ctx, "foo", nil, pulumi.DependsOn([]pulumi.Resource{ // gw, // })) @@ -155,6 +156,7 @@ type internetGatewayState struct { // if err != nil { // return err // } + // // ... other arguments ... // _, err = ec2.NewInstance(ctx, "foo", nil, pulumi.DependsOn([]pulumi.Resource{ // gw, // })) @@ -199,6 +201,7 @@ type InternetGatewayState struct { // if err != nil { // return err // } + // // ... other arguments ... // _, err = ec2.NewInstance(ctx, "foo", nil, pulumi.DependsOn([]pulumi.Resource{ // gw, // })) @@ -243,6 +246,7 @@ type internetGatewayArgs struct { // if err != nil { // return err // } + // // ... other arguments ... // _, err = ec2.NewInstance(ctx, "foo", nil, pulumi.DependsOn([]pulumi.Resource{ // gw, // })) @@ -280,6 +284,7 @@ type InternetGatewayArgs struct { // if err != nil { // return err // } + // // ... other arguments ... // _, err = ec2.NewInstance(ctx, "foo", nil, pulumi.DependsOn([]pulumi.Resource{ // gw, // })) @@ -414,6 +419,7 @@ func (o InternetGatewayOutput) OwnerId() pulumi.StringOutput { // if err != nil { // return err // } +// // ... other arguments ... // _, err = ec2.NewInstance(ctx, "foo", nil, pulumi.DependsOn([]pulumi.Resource{ // gw, // })) diff --git a/sdk/go/aws/ec2/peeringConnectionOptions.go b/sdk/go/aws/ec2/peeringConnectionOptions.go index 6faa7ef2bd5..6d97c440a9a 100644 --- a/sdk/go/aws/ec2/peeringConnectionOptions.go +++ b/sdk/go/aws/ec2/peeringConnectionOptions.go @@ -115,6 +115,7 @@ import ( // if err != nil { // return err // } +// // Requester's side of the connection. // peerVpcPeeringConnection, err := ec2.NewVpcPeeringConnection(ctx, "peerVpcPeeringConnection", &ec2.VpcPeeringConnectionArgs{ // VpcId: main.ID(), // PeerVpcId: peerVpc.ID(), @@ -127,6 +128,7 @@ import ( // if err != nil { // return err // } +// // Accepter's side of the connection. // peerVpcPeeringConnectionAccepter, err := ec2.NewVpcPeeringConnectionAccepter(ctx, "peerVpcPeeringConnectionAccepter", &ec2.VpcPeeringConnectionAccepterArgs{ // VpcPeeringConnectionId: peerVpcPeeringConnection.ID(), // AutoAccept: pulumi.Bool(true), diff --git a/sdk/go/aws/ec2/securityGroup.go b/sdk/go/aws/ec2/securityGroup.go index 18604d0141a..aae70f7ddf2 100644 --- a/sdk/go/aws/ec2/securityGroup.go +++ b/sdk/go/aws/ec2/securityGroup.go @@ -149,6 +149,7 @@ import ( // if err != nil { // return err // } +// // ... other configuration ... // _, err = ec2.NewSecurityGroup(ctx, "example", &ec2.SecurityGroupArgs{ // Egress: ec2.SecurityGroupEgressArray{ // &ec2.SecurityGroupEgressArgs{ diff --git a/sdk/go/aws/ec2/securityGroupRule.go b/sdk/go/aws/ec2/securityGroupRule.go index 90156772cb0..3837e541a37 100644 --- a/sdk/go/aws/ec2/securityGroupRule.go +++ b/sdk/go/aws/ec2/securityGroupRule.go @@ -81,6 +81,7 @@ import ( // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { +// // ... // myEndpoint, err := ec2.NewVpcEndpoint(ctx, "myEndpoint", nil) // if err != nil { // return err diff --git a/sdk/go/aws/ec2/spotFleetRequest.go b/sdk/go/aws/ec2/spotFleetRequest.go index 5b1fa1bc75b..ad2fa950bc7 100644 --- a/sdk/go/aws/ec2/spotFleetRequest.go +++ b/sdk/go/aws/ec2/spotFleetRequest.go @@ -33,6 +33,7 @@ import ( // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { +// // Request a Spot fleet // _, err := ec2.NewSpotFleetRequest(ctx, "cheapCompute", &ec2.SpotFleetRequestArgs{ // IamFleetRole: pulumi.String("arn:aws:iam::12345678:role/spot-fleet"), // SpotPrice: pulumi.String("0.03"), diff --git a/sdk/go/aws/ec2/spotInstanceRequest.go b/sdk/go/aws/ec2/spotInstanceRequest.go index d741dddacda..5080c5f2706 100644 --- a/sdk/go/aws/ec2/spotInstanceRequest.go +++ b/sdk/go/aws/ec2/spotInstanceRequest.go @@ -51,6 +51,7 @@ import ( // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { +// // Request a spot instance at $0.03 // _, err := ec2.NewSpotInstanceRequest(ctx, "cheapWorker", &ec2.SpotInstanceRequestArgs{ // Ami: pulumi.String("ami-1234"), // InstanceType: pulumi.String("c4.xlarge"), diff --git a/sdk/go/aws/ec2/vpcPeeringConnectionAccepter.go b/sdk/go/aws/ec2/vpcPeeringConnectionAccepter.go index d9864d6f0a3..291f5e40d08 100644 --- a/sdk/go/aws/ec2/vpcPeeringConnectionAccepter.go +++ b/sdk/go/aws/ec2/vpcPeeringConnectionAccepter.go @@ -58,6 +58,7 @@ import ( // if err != nil { // return err // } +// // Requester's side of the connection. // peerVpcPeeringConnection, err := ec2.NewVpcPeeringConnection(ctx, "peerVpcPeeringConnection", &ec2.VpcPeeringConnectionArgs{ // VpcId: main.ID(), // PeerVpcId: peerVpc.ID(), @@ -71,6 +72,7 @@ import ( // if err != nil { // return err // } +// // Accepter's side of the connection. // _, err = ec2.NewVpcPeeringConnectionAccepter(ctx, "peerVpcPeeringConnectionAccepter", &ec2.VpcPeeringConnectionAccepterArgs{ // VpcPeeringConnectionId: peerVpcPeeringConnection.ID(), // AutoAccept: pulumi.Bool(true), diff --git a/sdk/go/aws/ecs/capacityProvider.go b/sdk/go/aws/ecs/capacityProvider.go index a6cf3fc43e7..788131e4471 100644 --- a/sdk/go/aws/ecs/capacityProvider.go +++ b/sdk/go/aws/ecs/capacityProvider.go @@ -31,6 +31,7 @@ import ( // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { +// // ... other configuration, including potentially other tags ... // testGroup, err := autoscaling.NewGroup(ctx, "testGroup", &autoscaling.GroupArgs{ // Tags: autoscaling.GroupTagArray{ // &autoscaling.GroupTagArgs{ diff --git a/sdk/go/aws/ecs/service.go b/sdk/go/aws/ecs/service.go index ce6b9e49556..5691e812f72 100644 --- a/sdk/go/aws/ecs/service.go +++ b/sdk/go/aws/ecs/service.go @@ -82,6 +82,7 @@ import ( // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { +// // ... other configurations ... // _, err := ecs.NewService(ctx, "example", &ecs.ServiceArgs{ // DesiredCount: pulumi.Int(2), // }) diff --git a/sdk/go/aws/eks/cluster.go b/sdk/go/aws/eks/cluster.go index ae0b4cc9811..223ddffc0f9 100644 --- a/sdk/go/aws/eks/cluster.go +++ b/sdk/go/aws/eks/cluster.go @@ -101,6 +101,8 @@ import ( // if err != nil { // return err // } +// // Optionally, enable Security Groups for Pods +// // Reference: https://docs.aws.amazon.com/eks/latest/userguide/security-groups-for-pods.html // _, err = iam.NewRolePolicyAttachment(ctx, "example-AmazonEKSVPCResourceController", &iam.RolePolicyAttachmentArgs{ // PolicyArn: pulumi.String("arn:aws:iam::aws:policy/AmazonEKSVPCResourceController"), // Role: example.Name, diff --git a/sdk/go/aws/eks/nodeGroup.go b/sdk/go/aws/eks/nodeGroup.go index 1d1d15e9851..8e3d16999f7 100644 --- a/sdk/go/aws/eks/nodeGroup.go +++ b/sdk/go/aws/eks/nodeGroup.go @@ -78,6 +78,7 @@ import ( // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { +// // ... other configurations ... // _, err := eks.NewNodeGroup(ctx, "example", &eks.NodeGroupArgs{ // ScalingConfig: &eks.NodeGroupScalingConfigArgs{ // DesiredSize: pulumi.Int(2), diff --git a/sdk/go/aws/elasticsearch/domain.go b/sdk/go/aws/elasticsearch/domain.go index 33b172ffb3a..27923ad3ca2 100644 --- a/sdk/go/aws/elasticsearch/domain.go +++ b/sdk/go/aws/elasticsearch/domain.go @@ -158,6 +158,7 @@ import ( // if err != nil { // return err // } +// // .. other configuration ... // _, err = elasticsearch.NewDomain(ctx, "exampleDomain", &elasticsearch.DomainArgs{ // LogPublishingOptions: elasticsearch.DomainLogPublishingOptionArray{ // &elasticsearch.DomainLogPublishingOptionArgs{ diff --git a/sdk/go/aws/elb/attachment.go b/sdk/go/aws/elb/attachment.go index 23bbbfa4f91..d9cd62910f6 100644 --- a/sdk/go/aws/elb/attachment.go +++ b/sdk/go/aws/elb/attachment.go @@ -35,6 +35,7 @@ import ( // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { +// // Create a new load balancer attachment // _, err := elb.NewAttachment(ctx, "baz", &elb.AttachmentArgs{ // Elb: pulumi.Any(aws_elb.Bar.Id), // Instance: pulumi.Any(aws_instance.Foo.Id), diff --git a/sdk/go/aws/elb/loadBalancer.go b/sdk/go/aws/elb/loadBalancer.go index 7fb0e5bd415..ab6212d3c43 100644 --- a/sdk/go/aws/elb/loadBalancer.go +++ b/sdk/go/aws/elb/loadBalancer.go @@ -37,6 +37,7 @@ import ( // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { +// // Create a new load balancer // _, err := elb.NewLoadBalancer(ctx, "bar", &elb.LoadBalancerArgs{ // AvailabilityZones: pulumi.StringArray{ // pulumi.String("us-west-2a"), diff --git a/sdk/go/aws/emr/cluster.go b/sdk/go/aws/emr/cluster.go index 33e75b0d058..92000608d2a 100644 --- a/sdk/go/aws/emr/cluster.go +++ b/sdk/go/aws/emr/cluster.go @@ -307,6 +307,7 @@ import ( // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { +// // ... other configuration ... // _, err := emr.NewCluster(ctx, "example", &emr.ClusterArgs{ // Steps: emr.ClusterStepArray{ // &emr.ClusterStepArgs{ @@ -346,12 +347,17 @@ import ( // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { +// // This configuration is for illustrative purposes and highlights +// // only relevant configurations for working with this functionality. +// // Map public IP on launch must be enabled for public (Internet accessible) subnets +// // ... other configuration ... // exampleSubnet, err := ec2.NewSubnet(ctx, "exampleSubnet", &ec2.SubnetArgs{ // MapPublicIpOnLaunch: pulumi.Bool(true), // }) // if err != nil { // return err // } +// // ... other configuration ... // _, err = emr.NewCluster(ctx, "exampleCluster", &emr.ClusterArgs{ // ReleaseLabel: pulumi.String("emr-5.24.1"), // TerminationProtection: pulumi.Bool(true), diff --git a/sdk/go/aws/glue/job.go b/sdk/go/aws/glue/job.go index 21bfd532410..10a056c36f7 100644 --- a/sdk/go/aws/glue/job.go +++ b/sdk/go/aws/glue/job.go @@ -167,6 +167,7 @@ import ( // if err != nil { // return err // } +// // ... other configuration ... // _, err = glue.NewJob(ctx, "exampleJob", &glue.JobArgs{ // DefaultArguments: pulumi.StringMap{ // "--continuous-log-logGroup": exampleLogGroup.Name, diff --git a/sdk/go/aws/inspector/getRulesPackages.go b/sdk/go/aws/inspector/getRulesPackages.go index de04dfa80cb..322620bca14 100644 --- a/sdk/go/aws/inspector/getRulesPackages.go +++ b/sdk/go/aws/inspector/getRulesPackages.go @@ -33,6 +33,7 @@ import ( // if err != nil { // return err // } +// // e.g., Use in aws_inspector_assessment_template // group, err := inspector.NewResourceGroup(ctx, "group", &inspector.ResourceGroupArgs{ // Tags: pulumi.StringMap{ // "test": pulumi.String("test"), diff --git a/sdk/go/aws/lambda/function.go b/sdk/go/aws/lambda/function.go index c4a48085f07..990e36c84e0 100644 --- a/sdk/go/aws/lambda/function.go +++ b/sdk/go/aws/lambda/function.go @@ -202,6 +202,7 @@ import ( // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { +// // EFS file system // efsForLambda, err := efs.NewFileSystem(ctx, "efsForLambda", &efs.FileSystemArgs{ // Tags: pulumi.StringMap{ // "Name": pulumi.String("efs_for_lambda"), @@ -210,6 +211,7 @@ import ( // if err != nil { // return err // } +// // Mount target connects the file system to the subnet // alpha, err := efs.NewMountTarget(ctx, "alpha", &efs.MountTargetArgs{ // FileSystemId: efsForLambda.ID(), // SubnetId: pulumi.Any(aws_subnet.Subnet_for_lambda.Id), @@ -220,6 +222,7 @@ import ( // if err != nil { // return err // } +// // EFS access point used by lambda file system // accessPointForLambda, err := efs.NewAccessPoint(ctx, "accessPointForLambda", &efs.AccessPointArgs{ // FileSystemId: efsForLambda.ID(), // RootDirectory: &efs.AccessPointRootDirectoryArgs{ @@ -238,6 +241,8 @@ import ( // if err != nil { // return err // } +// // A lambda function connected to an EFS file system +// // ... other configuration ... // _, err = lambda.NewFunction(ctx, "example", &lambda.FunctionArgs{ // FileSystemConfig: &lambda.FunctionFileSystemConfigArgs{ // Arn: accessPointForLambda.Arn, @@ -289,6 +294,8 @@ import ( // if param := cfg.Get("lambdaFunctionName"); param != "" { // lambdaFunctionName = param // } +// // This is to optionally manage the CloudWatch Log Group for the Lambda Function. +// // If skipping this resource configuration, also add "logs:CreateLogGroup" to the IAM policy below. // example, err := cloudwatch.NewLogGroup(ctx, "example", &cloudwatch.LogGroupArgs{ // RetentionInDays: pulumi.Int(14), // }) diff --git a/sdk/go/aws/lightsail/containerService.go b/sdk/go/aws/lightsail/containerService.go index 18ec12e1fa8..7f9fe31661c 100644 --- a/sdk/go/aws/lightsail/containerService.go +++ b/sdk/go/aws/lightsail/containerService.go @@ -100,6 +100,7 @@ import ( // ) // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { +// // ... other configuration ... // defaultContainerService, err := lightsail.NewContainerService(ctx, "defaultContainerService", &lightsail.ContainerServiceArgs{ // PrivateRegistryAccess: &lightsail.ContainerServicePrivateRegistryAccessArgs{ // EcrImagePullerRole: &lightsail.ContainerServicePrivateRegistryAccessEcrImagePullerRoleArgs{ diff --git a/sdk/go/aws/lightsail/instance.go b/sdk/go/aws/lightsail/instance.go index b0329fa5c83..73104b693fe 100644 --- a/sdk/go/aws/lightsail/instance.go +++ b/sdk/go/aws/lightsail/instance.go @@ -33,6 +33,7 @@ import ( // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { +// // Create a new GitLab Lightsail Instance // _, err := lightsail.NewInstance(ctx, "gitlabTest", &lightsail.InstanceArgs{ // AvailabilityZone: pulumi.String("us-east-1b"), // BlueprintId: pulumi.String("amazon_linux_2"), diff --git a/sdk/go/aws/lightsail/keyPair.go b/sdk/go/aws/lightsail/keyPair.go index 0e97004e79a..7b9b75f0db0 100644 --- a/sdk/go/aws/lightsail/keyPair.go +++ b/sdk/go/aws/lightsail/keyPair.go @@ -32,6 +32,7 @@ import ( // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { +// // Create a new Lightsail Key Pair // _, err := lightsail.NewKeyPair(ctx, "lgKeyPair", nil) // if err != nil { // return err diff --git a/sdk/go/aws/neptune/globalCluster.go b/sdk/go/aws/neptune/globalCluster.go index 54b64fec2bc..26a2ee2d8b7 100644 --- a/sdk/go/aws/neptune/globalCluster.go +++ b/sdk/go/aws/neptune/globalCluster.go @@ -115,6 +115,7 @@ import ( // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { +// // ... other configuration ... // exampleCluster, err := neptune.NewCluster(ctx, "exampleCluster", nil) // if err != nil { // return err diff --git a/sdk/go/aws/opensearch/domain.go b/sdk/go/aws/opensearch/domain.go index 233d0859b3a..036ed7f214a 100644 --- a/sdk/go/aws/opensearch/domain.go +++ b/sdk/go/aws/opensearch/domain.go @@ -193,6 +193,7 @@ import ( // if err != nil { // return err // } +// // .. other configuration ... // _, err = opensearch.NewDomain(ctx, "exampleDomain", &opensearch.DomainArgs{ // LogPublishingOptions: opensearch.DomainLogPublishingOptionArray{ // &opensearch.DomainLogPublishingOptionArgs{ diff --git a/sdk/go/aws/rds/customDbEngineVersion.go b/sdk/go/aws/rds/customDbEngineVersion.go index 687a6c3a061..b9fce2cd67d 100644 --- a/sdk/go/aws/rds/customDbEngineVersion.go +++ b/sdk/go/aws/rds/customDbEngineVersion.go @@ -124,6 +124,7 @@ import ( // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { +// // CEV creation requires an AMI owned by the operator // _, err := rds.NewCustomDbEngineVersion(ctx, "test", &rds.CustomDbEngineVersionArgs{ // Engine: pulumi.String("custom-sqlserver-se"), // EngineVersion: pulumi.String("15.00.4249.2.cev-1"), @@ -160,6 +161,7 @@ import ( // if err != nil { // return err // } +// // CEV creation requires an AMI owned by the operator // _, err = rds.NewCustomDbEngineVersion(ctx, "test", &rds.CustomDbEngineVersionArgs{ // Engine: pulumi.String("custom-sqlserver-se"), // EngineVersion: pulumi.String("15.00.4249.2.cev-1"), diff --git a/sdk/go/aws/rds/getClusterSnapshot.go b/sdk/go/aws/rds/getClusterSnapshot.go index 55ff67df0ec..c13ed6cbe1b 100644 --- a/sdk/go/aws/rds/getClusterSnapshot.go +++ b/sdk/go/aws/rds/getClusterSnapshot.go @@ -37,6 +37,8 @@ import ( // if err != nil { // return err // } +// // Use the last snapshot of the dev database before it was destroyed to create +// // a new dev database. // auroraCluster, err := rds.NewCluster(ctx, "auroraCluster", &rds.ClusterArgs{ // ClusterIdentifier: pulumi.String("development_cluster"), // SnapshotIdentifier: *pulumi.String(developmentFinalSnapshot.Id), diff --git a/sdk/go/aws/rds/getSnapshot.go b/sdk/go/aws/rds/getSnapshot.go index 54116453300..7c29ecb96cd 100644 --- a/sdk/go/aws/rds/getSnapshot.go +++ b/sdk/go/aws/rds/getSnapshot.go @@ -48,6 +48,7 @@ import ( // DbInstanceIdentifier: prod.Identifier, // MostRecent: pulumi.Bool(true), // }, nil) +// // Use the latest production snapshot to create a dev instance. // _, err = rds.NewInstance(ctx, "dev", &rds.InstanceArgs{ // InstanceClass: pulumi.String("db.t2.micro"), // DbName: pulumi.String("mydbdev"), diff --git a/sdk/go/aws/rds/globalCluster.go b/sdk/go/aws/rds/globalCluster.go index 7efe2be0e76..2b098cba56e 100644 --- a/sdk/go/aws/rds/globalCluster.go +++ b/sdk/go/aws/rds/globalCluster.go @@ -195,6 +195,7 @@ import ( // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { +// // ... other configuration ... // exampleCluster, err := rds.NewCluster(ctx, "exampleCluster", nil) // if err != nil { // return err diff --git a/sdk/go/aws/rds/instance.go b/sdk/go/aws/rds/instance.go index 694b2e2a1dc..a27be6973d1 100644 --- a/sdk/go/aws/rds/instance.go +++ b/sdk/go/aws/rds/instance.go @@ -117,6 +117,7 @@ import ( // if err != nil { // return err // } +// // The RDS Db2 instance resource requires licensing information. Create a new parameter group using the default paramater group as a source, and set license information. // exampleParameterGroup, err := rds.NewParameterGroup(ctx, "exampleParameterGroup", &rds.ParameterGroupArgs{ // Family: *pulumi.String(_default.ParameterGroupFamily), // Parameters: rds.ParameterGroupParameterArray{ @@ -135,6 +136,7 @@ import ( // if err != nil { // return err // } +// // Create the RDS Db2 instance, use the data sources defined to set attributes // _, err = rds.NewInstance(ctx, "exampleInstance", &rds.InstanceArgs{ // AllocatedStorage: pulumi.Int(100), // BackupRetentionPeriod: pulumi.Int(7), diff --git a/sdk/go/aws/route53/queryLog.go b/sdk/go/aws/route53/queryLog.go index 23bcc4835b1..a92bfa04735 100644 --- a/sdk/go/aws/route53/queryLog.go +++ b/sdk/go/aws/route53/queryLog.go @@ -37,6 +37,7 @@ import ( // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { +// // Example CloudWatch log group in us-east-1 // _, err := aws.NewProvider(ctx, "us-east-1", &aws.ProviderArgs{ // Region: pulumi.String("us-east-1"), // }) diff --git a/sdk/go/aws/s3/bucketReplicationConfig.go b/sdk/go/aws/s3/bucketReplicationConfig.go index ad507050de5..f02216b41bf 100644 --- a/sdk/go/aws/s3/bucketReplicationConfig.go +++ b/sdk/go/aws/s3/bucketReplicationConfig.go @@ -199,6 +199,7 @@ import ( // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { +// // ... other configuration ... // eastBucketV2, err := s3.NewBucketV2(ctx, "eastBucketV2", nil) // if err != nil { // return err diff --git a/sdk/go/aws/securityhub/organizationAdminAccount.go b/sdk/go/aws/securityhub/organizationAdminAccount.go index d324aa42bd9..f3bd5de385a 100644 --- a/sdk/go/aws/securityhub/organizationAdminAccount.go +++ b/sdk/go/aws/securityhub/organizationAdminAccount.go @@ -50,6 +50,7 @@ import ( // if err != nil { // return err // } +// // Auto enable security hub in organization member accounts // _, err = securityhub.NewOrganizationConfiguration(ctx, "exampleOrganizationConfiguration", &securityhub.OrganizationConfigurationArgs{ // AutoEnable: pulumi.Bool(true), // }) diff --git a/sdk/go/aws/ses/mailFrom.go b/sdk/go/aws/ses/mailFrom.go index fa3a15af82f..21ade941980 100644 --- a/sdk/go/aws/ses/mailFrom.go +++ b/sdk/go/aws/ses/mailFrom.go @@ -34,6 +34,7 @@ import ( // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { +// // Example SES Domain Identity // exampleDomainIdentity, err := ses.NewDomainIdentity(ctx, "exampleDomainIdentity", &ses.DomainIdentityArgs{ // Domain: pulumi.String("example.com"), // }) @@ -49,6 +50,7 @@ import ( // if err != nil { // return err // } +// // Example Route53 MX record // _, err = route53.NewRecord(ctx, "exampleSesDomainMailFromMx", &route53.RecordArgs{ // ZoneId: pulumi.Any(aws_route53_zone.Example.Id), // Name: exampleMailFrom.MailFromDomain, @@ -61,6 +63,7 @@ import ( // if err != nil { // return err // } +// // Example Route53 TXT record for SPF // _, err = route53.NewRecord(ctx, "exampleSesDomainMailFromTxt", &route53.RecordArgs{ // ZoneId: pulumi.Any(aws_route53_zone.Example.Id), // Name: exampleMailFrom.MailFromDomain, @@ -92,6 +95,7 @@ import ( // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { +// // Example SES Email Identity // exampleEmailIdentity, err := ses.NewEmailIdentity(ctx, "exampleEmailIdentity", &ses.EmailIdentityArgs{ // Email: pulumi.String("user@example.com"), // }) diff --git a/sdk/go/aws/ses/receiptRule.go b/sdk/go/aws/ses/receiptRule.go index e1e717b3632..33c9a633c2a 100644 --- a/sdk/go/aws/ses/receiptRule.go +++ b/sdk/go/aws/ses/receiptRule.go @@ -28,6 +28,7 @@ import ( // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { +// // Add a header to the email and store it in S3 // _, err := ses.NewReceiptRule(ctx, "store", &ses.ReceiptRuleArgs{ // AddHeaderActions: ses.ReceiptRuleAddHeaderActionArray{ // &ses.ReceiptRuleAddHeaderActionArgs{ diff --git a/sdk/go/aws/sfn/stateMachine.go b/sdk/go/aws/sfn/stateMachine.go index 308806cdbca..ac78b6f7b1e 100644 --- a/sdk/go/aws/sfn/stateMachine.go +++ b/sdk/go/aws/sfn/stateMachine.go @@ -31,6 +31,7 @@ import ( // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { +// // ... // _, err := sfn.NewStateMachine(ctx, "sfnStateMachine", &sfn.StateMachineArgs{ // RoleArn: pulumi.Any(aws_iam_role.Iam_for_sfn.Arn), // Definition: pulumi.String(fmt.Sprintf(`{ @@ -72,6 +73,7 @@ import ( // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { +// // ... // _, err := sfn.NewStateMachine(ctx, "sfnStateMachine", &sfn.StateMachineArgs{ // RoleArn: pulumi.Any(aws_iam_role.Iam_for_sfn.Arn), // Type: pulumi.String("EXPRESS"), @@ -114,6 +116,7 @@ import ( // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { +// // ... // _, err := sfn.NewStateMachine(ctx, "sfnStateMachine", &sfn.StateMachineArgs{ // RoleArn: pulumi.Any(aws_iam_role.Iam_for_sfn.Arn), // Publish: pulumi.Bool(true), @@ -159,6 +162,7 @@ import ( // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { +// // ... // _, err := sfn.NewStateMachine(ctx, "sfnStateMachine", &sfn.StateMachineArgs{ // RoleArn: pulumi.Any(aws_iam_role.Iam_for_sfn.Arn), // Definition: pulumi.String(fmt.Sprintf(`{ diff --git a/sdk/go/aws/sns/topicSubscription.go b/sdk/go/aws/sns/topicSubscription.go index 152127ac039..1f5909ef4fb 100644 --- a/sdk/go/aws/sns/topicSubscription.go +++ b/sdk/go/aws/sns/topicSubscription.go @@ -235,6 +235,7 @@ import ( // if err != nil { // return err // } +// // provider to manage SNS topics // _, err = aws.NewProvider(ctx, "awsSns", &aws.ProviderArgs{ // Region: *pulumi.String(sns.Region), // AssumeRole: &aws.ProviderAssumeRoleArgs{ @@ -245,6 +246,7 @@ import ( // if err != nil { // return err // } +// // provider to manage SQS queues // _, err = aws.NewProvider(ctx, "awsSqs", &aws.ProviderArgs{ // Region: *pulumi.String(sqs.Region), // AssumeRole: &aws.ProviderAssumeRoleArgs{ @@ -255,6 +257,7 @@ import ( // if err != nil { // return err // } +// // provider to subscribe SQS to SNS (using the SQS account but the SNS region) // _, err = aws.NewProvider(ctx, "sns2sqs", &aws.ProviderArgs{ // Region: *pulumi.String(sns.Region), // AssumeRole: &aws.ProviderAssumeRoleArgs{ diff --git a/sdk/go/aws/waf/getSubscribedRuleGroup.go b/sdk/go/aws/waf/getSubscribedRuleGroup.go index fa99b166b18..35085c7da4c 100644 --- a/sdk/go/aws/waf/getSubscribedRuleGroup.go +++ b/sdk/go/aws/waf/getSubscribedRuleGroup.go @@ -39,6 +39,7 @@ import ( // if err != nil { // return err // } +// // ... // _, err = waf.NewWebAcl(ctx, "acl", &waf.WebAclArgs{ // Rules: waf.WebAclRuleArray{ // &waf.WebAclRuleArgs{ diff --git a/sdk/go/aws/wafregional/getSubscribedRuleGroup.go b/sdk/go/aws/wafregional/getSubscribedRuleGroup.go index 8819d3ba730..3c109541126 100644 --- a/sdk/go/aws/wafregional/getSubscribedRuleGroup.go +++ b/sdk/go/aws/wafregional/getSubscribedRuleGroup.go @@ -39,6 +39,7 @@ import ( // if err != nil { // return err // } +// // ... // _, err = wafregional.NewWebAcl(ctx, "acl", &wafregional.WebAclArgs{ // Rules: wafregional.WebAclRuleArray{ // &wafregional.WebAclRuleArgs{ diff --git a/sdk/go/aws/wafregional/webAcl.go b/sdk/go/aws/wafregional/webAcl.go index 3a3bcb391f0..dda57a07db3 100644 --- a/sdk/go/aws/wafregional/webAcl.go +++ b/sdk/go/aws/wafregional/webAcl.go @@ -131,6 +131,7 @@ import ( // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { +// // ... other configuration ... // _, err := wafregional.NewWebAcl(ctx, "example", &wafregional.WebAclArgs{ // LoggingConfiguration: &wafregional.WebAclLoggingConfigurationArgs{ // LogDestination: pulumi.Any(aws_kinesis_firehose_delivery_stream.Example.Arn),