From 2ea358c99c6e9756ebc4784dbd6f03ab7e96500f Mon Sep 17 00:00:00 2001 From: Anton Tayanovskyy Date: Tue, 1 Aug 2023 18:46:31 -0400 Subject: [PATCH 1/8] Support AutoName for PF --- provider/go.mod | 3 +++ provider/go.sum | 4 ---- provider/resources.go | 4 ++-- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/provider/go.mod b/provider/go.mod index fdaa7e3f9e5..382df9166e0 100644 --- a/provider/go.mod +++ b/provider/go.mod @@ -19,6 +19,9 @@ replace ( github.com/hashicorp/terraform-provider-aws => ../upstream github.com/hashicorp/terraform-provider-aws/shim => ./shim github.com/hashicorp/vault => github.com/hashicorp/vault v1.2.0 + + github.com/pulumi/pulumi-terraform-bridge/pf => ../../pulumi-terraform-bridge/pf + github.com/pulumi/pulumi-terraform-bridge/v3 => ../../pulumi-terraform-bridge ) require ( diff --git a/provider/go.sum b/provider/go.sum index 3432fdc5c0f..4da06f3b7f8 100644 --- a/provider/go.sum +++ b/provider/go.sum @@ -2278,11 +2278,7 @@ github.com/prometheus/prometheus v0.37.0/go.mod h1:egARUgz+K93zwqsVIAneFlLZefyGO github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU= github.com/pulumi/pulumi-java/pkg v0.9.4 h1:gIQZmlUI1o9ye8CL2XFqtmAX6Lwr9uj/+HzjboiSmK4= github.com/pulumi/pulumi-java/pkg v0.9.4/go.mod h1:c6rSw/+q4O0IImgJ9axxoC6QesbPYWBaG5gimbHouUQ= -github.com/pulumi/pulumi-terraform-bridge/pf v0.14.1 h1:5rUx8yFHic576DVHVGOqpYxEcoDyjuokuh8324aFP4c= -github.com/pulumi/pulumi-terraform-bridge/pf v0.14.1/go.mod h1:JnLxW6/U/BGCVdOqsPtPxnIumHp26wqsZv3Ywtgbdl8= github.com/pulumi/pulumi-terraform-bridge/testing v0.0.1 h1:SCg1gjfY9N4yn8U8peIUYATifjoDABkyR7H9lmefsfc= -github.com/pulumi/pulumi-terraform-bridge/v3 v3.55.0 h1:A33Ji/QSCYy2Jk5+1BzA5vFmK7Rvq6XFo8jS69QahVo= -github.com/pulumi/pulumi-terraform-bridge/v3 v3.55.0/go.mod h1:ykaml8e6XS/yI9JOcNZ+6gLirs6EWTB0FmjbT+JyEdU= github.com/pulumi/pulumi-terraform-bridge/x/muxer v0.0.6 h1:uy8P3aaAbrOrGvytvCb2KsYqZMA9TJiY8IKeVQgNAJo= github.com/pulumi/pulumi-terraform-bridge/x/muxer v0.0.6/go.mod h1:uw1IN0Mlvi5SL0cmWzmKqZ+ZDNueRIXkr9aE+XQkrug= github.com/pulumi/pulumi-yaml v1.1.1 h1:8pyBNIU8+ym0wYpjhsCqN+cutygfK1XbhY2YEeNfyXY= diff --git a/provider/resources.go b/provider/resources.go index ac3f5a26ef1..1cf48d69820 100644 --- a/provider/resources.go +++ b/provider/resources.go @@ -6985,8 +6985,6 @@ func Provider() *tfbridge.ProviderInfo { Docs: &tfbridge.DocInfo{Source: "lb_target_group_attachment.html.markdown"}, }) - prov.SetAutonaming(255, "-") - // Add a CSharp-specific override for aws_s3_bucket.bucket. prov.Resources["aws_s3_bucket_legacy"].Fields["bucket"].CSharpName = "BucketName" @@ -7120,5 +7118,7 @@ func Provider() *tfbridge.ProviderInfo { // Fixes a spurious diff on repeat pulumi up for the aws_wafv2_web_acl resource (pulumi/pulumi#1423). shimv2.SetInstanceStateStrategy(prov.P.ResourcesMap().Get("aws_wafv2_web_acl"), shimv2.CtyInstanceState) + prov.SetAutonaming(255, "-") + return &prov } From 7c3b4ad97bcd33ab4c69e25fb8adbc4fd7cfd68c Mon Sep 17 00:00:00 2001 From: Anton Tayanovskyy Date: Wed, 2 Aug 2023 12:46:23 -0400 Subject: [PATCH 2/8] Use absolute references --- provider/go.mod | 4 ++-- provider/go.sum | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/provider/go.mod b/provider/go.mod index 382df9166e0..94e5c460c6a 100644 --- a/provider/go.mod +++ b/provider/go.mod @@ -20,8 +20,8 @@ replace ( github.com/hashicorp/terraform-provider-aws/shim => ./shim github.com/hashicorp/vault => github.com/hashicorp/vault v1.2.0 - github.com/pulumi/pulumi-terraform-bridge/pf => ../../pulumi-terraform-bridge/pf - github.com/pulumi/pulumi-terraform-bridge/v3 => ../../pulumi-terraform-bridge + github.com/pulumi/pulumi-terraform-bridge/pf => github.com/pulumi/pulumi-terraform-bridge/pf v0.14.2-0.20230802145745-14057592edb9 + github.com/pulumi/pulumi-terraform-bridge/v3 => github.com/pulumi/pulumi-terraform-bridge/v3 v3.55.1-0.20230802145745-14057592edb9 ) require ( diff --git a/provider/go.sum b/provider/go.sum index 4da06f3b7f8..156646eb453 100644 --- a/provider/go.sum +++ b/provider/go.sum @@ -2278,7 +2278,11 @@ github.com/prometheus/prometheus v0.37.0/go.mod h1:egARUgz+K93zwqsVIAneFlLZefyGO github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU= github.com/pulumi/pulumi-java/pkg v0.9.4 h1:gIQZmlUI1o9ye8CL2XFqtmAX6Lwr9uj/+HzjboiSmK4= github.com/pulumi/pulumi-java/pkg v0.9.4/go.mod h1:c6rSw/+q4O0IImgJ9axxoC6QesbPYWBaG5gimbHouUQ= +github.com/pulumi/pulumi-terraform-bridge/pf v0.14.2-0.20230802145745-14057592edb9 h1:XkoBYTSqCB/Bw85YbdshejgTlJajez3mYYDFadO9mCU= +github.com/pulumi/pulumi-terraform-bridge/pf v0.14.2-0.20230802145745-14057592edb9/go.mod h1:ziHnwUPOiiZsNA2vuoSJhZCvI4LfKRLqS4tKlcIBSCg= github.com/pulumi/pulumi-terraform-bridge/testing v0.0.1 h1:SCg1gjfY9N4yn8U8peIUYATifjoDABkyR7H9lmefsfc= +github.com/pulumi/pulumi-terraform-bridge/v3 v3.55.1-0.20230802145745-14057592edb9 h1:ST/aNf4LC06b61ldNInUq+7A211BLohVMfOk1dTTPjk= +github.com/pulumi/pulumi-terraform-bridge/v3 v3.55.1-0.20230802145745-14057592edb9/go.mod h1:ykaml8e6XS/yI9JOcNZ+6gLirs6EWTB0FmjbT+JyEdU= github.com/pulumi/pulumi-terraform-bridge/x/muxer v0.0.6 h1:uy8P3aaAbrOrGvytvCb2KsYqZMA9TJiY8IKeVQgNAJo= github.com/pulumi/pulumi-terraform-bridge/x/muxer v0.0.6/go.mod h1:uw1IN0Mlvi5SL0cmWzmKqZ+ZDNueRIXkr9aE+XQkrug= github.com/pulumi/pulumi-yaml v1.1.1 h1:8pyBNIU8+ym0wYpjhsCqN+cutygfK1XbhY2YEeNfyXY= From 827ab987fcf6fe82b2ca804a599795ed72507bbe Mon Sep 17 00:00:00 2001 From: Anton Tayanovskyy Date: Wed, 2 Aug 2023 13:05:52 -0400 Subject: [PATCH 3/8] Rebuild the schema --- provider/cmd/pulumi-resource-aws/schema.json | 117 +++++++------------ 1 file changed, 39 insertions(+), 78 deletions(-) diff --git a/provider/cmd/pulumi-resource-aws/schema.json b/provider/cmd/pulumi-resource-aws/schema.json index e75ab44da87..9cd2070034b 100644 --- a/provider/cmd/pulumi-resource-aws/schema.json +++ b/provider/cmd/pulumi-resource-aws/schema.json @@ -133500,7 +133500,7 @@ } }, "aws:appintegrations/dataIntegration:DataIntegration": { - "description": "Provides an Amazon AppIntegrations Data Integration resource.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\n\nconst example = new aws.appintegrations.DataIntegration(\"example\", {\n name: \"example\",\n description: \"example\",\n kmsKey: aws_kms_key.test.arn,\n sourceUri: \"Salesforce://AppFlow/example\",\n scheduleConfig: {\n firstExecutionFrom: \"1439788442681\",\n object: \"Account\",\n scheduleExpression: \"rate(1 hour)\",\n },\n tags: {\n Key1: \"Value1\",\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_aws as aws\n\nexample = aws.appintegrations.DataIntegration(\"example\",\n name=\"example\",\n description=\"example\",\n kms_key=aws_kms_key[\"test\"][\"arn\"],\n source_uri=\"Salesforce://AppFlow/example\",\n schedule_config=aws.appintegrations.DataIntegrationScheduleConfigArgs(\n first_execution_from=\"1439788442681\",\n object=\"Account\",\n schedule_expression=\"rate(1 hour)\",\n ),\n tags={\n \"Key1\": \"Value1\",\n })\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new Aws.AppIntegrations.DataIntegration(\"example\", new()\n {\n Name = \"example\",\n Description = \"example\",\n KmsKey = aws_kms_key.Test.Arn,\n SourceUri = \"Salesforce://AppFlow/example\",\n ScheduleConfig = new Aws.AppIntegrations.Inputs.DataIntegrationScheduleConfigArgs\n {\n FirstExecutionFrom = \"1439788442681\",\n Object = \"Account\",\n ScheduleExpression = \"rate(1 hour)\",\n },\n Tags = \n {\n { \"Key1\", \"Value1\" },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/appintegrations\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := appintegrations.NewDataIntegration(ctx, \"example\", \u0026appintegrations.DataIntegrationArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tDescription: pulumi.String(\"example\"),\n\t\t\tKmsKey: pulumi.Any(aws_kms_key.Test.Arn),\n\t\t\tSourceUri: pulumi.String(\"Salesforce://AppFlow/example\"),\n\t\t\tScheduleConfig: \u0026appintegrations.DataIntegrationScheduleConfigArgs{\n\t\t\t\tFirstExecutionFrom: pulumi.String(\"1439788442681\"),\n\t\t\t\tObject: pulumi.String(\"Account\"),\n\t\t\t\tScheduleExpression: pulumi.String(\"rate(1 hour)\"),\n\t\t\t},\n\t\t\tTags: pulumi.StringMap{\n\t\t\t\t\"Key1\": pulumi.String(\"Value1\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.appintegrations.DataIntegration;\nimport com.pulumi.aws.appintegrations.DataIntegrationArgs;\nimport com.pulumi.aws.appintegrations.inputs.DataIntegrationScheduleConfigArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new DataIntegration(\"example\", DataIntegrationArgs.builder() \n .name(\"example\")\n .description(\"example\")\n .kmsKey(aws_kms_key.test().arn())\n .sourceUri(\"Salesforce://AppFlow/example\")\n .scheduleConfig(DataIntegrationScheduleConfigArgs.builder()\n .firstExecutionFrom(\"1439788442681\")\n .object(\"Account\")\n .scheduleExpression(\"rate(1 hour)\")\n .build())\n .tags(Map.of(\"Key1\", \"Value1\"))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: aws:appintegrations:DataIntegration\n properties:\n name: example\n description: example\n kmsKey: ${aws_kms_key.test.arn}\n sourceUri: Salesforce://AppFlow/example\n scheduleConfig:\n firstExecutionFrom: '1439788442681'\n object: Account\n scheduleExpression: rate(1 hour)\n tags:\n Key1: Value1\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nterraform import {\n\n to = aws_appintegrations_data_integration.example\n\n id = \"12345678-1234-1234-1234-123456789123\" } Using `pulumi import`, import Amazon AppIntegrations Data Integrations using the `id`. For exampleconsole % pulumi import aws_appintegrations_data_integration.example 12345678-1234-1234-1234-123456789123 ", + "description": "Provides an Amazon AppIntegrations Data Integration resource.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\n\nconst example = new aws.appintegrations.DataIntegration(\"example\", {\n description: \"example\",\n kmsKey: aws_kms_key.test.arn,\n sourceUri: \"Salesforce://AppFlow/example\",\n scheduleConfig: {\n firstExecutionFrom: \"1439788442681\",\n object: \"Account\",\n scheduleExpression: \"rate(1 hour)\",\n },\n tags: {\n Key1: \"Value1\",\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_aws as aws\n\nexample = aws.appintegrations.DataIntegration(\"example\",\n description=\"example\",\n kms_key=aws_kms_key[\"test\"][\"arn\"],\n source_uri=\"Salesforce://AppFlow/example\",\n schedule_config=aws.appintegrations.DataIntegrationScheduleConfigArgs(\n first_execution_from=\"1439788442681\",\n object=\"Account\",\n schedule_expression=\"rate(1 hour)\",\n ),\n tags={\n \"Key1\": \"Value1\",\n })\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new Aws.AppIntegrations.DataIntegration(\"example\", new()\n {\n Description = \"example\",\n KmsKey = aws_kms_key.Test.Arn,\n SourceUri = \"Salesforce://AppFlow/example\",\n ScheduleConfig = new Aws.AppIntegrations.Inputs.DataIntegrationScheduleConfigArgs\n {\n FirstExecutionFrom = \"1439788442681\",\n Object = \"Account\",\n ScheduleExpression = \"rate(1 hour)\",\n },\n Tags = \n {\n { \"Key1\", \"Value1\" },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/appintegrations\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := appintegrations.NewDataIntegration(ctx, \"example\", \u0026appintegrations.DataIntegrationArgs{\n\t\t\tDescription: pulumi.String(\"example\"),\n\t\t\tKmsKey: pulumi.Any(aws_kms_key.Test.Arn),\n\t\t\tSourceUri: pulumi.String(\"Salesforce://AppFlow/example\"),\n\t\t\tScheduleConfig: \u0026appintegrations.DataIntegrationScheduleConfigArgs{\n\t\t\t\tFirstExecutionFrom: pulumi.String(\"1439788442681\"),\n\t\t\t\tObject: pulumi.String(\"Account\"),\n\t\t\t\tScheduleExpression: pulumi.String(\"rate(1 hour)\"),\n\t\t\t},\n\t\t\tTags: pulumi.StringMap{\n\t\t\t\t\"Key1\": pulumi.String(\"Value1\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.appintegrations.DataIntegration;\nimport com.pulumi.aws.appintegrations.DataIntegrationArgs;\nimport com.pulumi.aws.appintegrations.inputs.DataIntegrationScheduleConfigArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new DataIntegration(\"example\", DataIntegrationArgs.builder() \n .description(\"example\")\n .kmsKey(aws_kms_key.test().arn())\n .sourceUri(\"Salesforce://AppFlow/example\")\n .scheduleConfig(DataIntegrationScheduleConfigArgs.builder()\n .firstExecutionFrom(\"1439788442681\")\n .object(\"Account\")\n .scheduleExpression(\"rate(1 hour)\")\n .build())\n .tags(Map.of(\"Key1\", \"Value1\"))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: aws:appintegrations:DataIntegration\n properties:\n description: example\n kmsKey: ${aws_kms_key.test.arn}\n sourceUri: Salesforce://AppFlow/example\n scheduleConfig:\n firstExecutionFrom: '1439788442681'\n object: Account\n scheduleExpression: rate(1 hour)\n tags:\n Key1: Value1\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nterraform import {\n\n to = aws_appintegrations_data_integration.example\n\n id = \"12345678-1234-1234-1234-123456789123\" } Using `pulumi import`, import Amazon AppIntegrations Data Integrations using the `id`. For exampleconsole % pulumi import aws_appintegrations_data_integration.example 12345678-1234-1234-1234-123456789123 ", "properties": { "arn": { "type": "string", @@ -133583,7 +133583,6 @@ }, "requiredInputs": [ "kmsKey", - "name", "scheduleConfig", "sourceUri" ], @@ -138586,7 +138585,7 @@ } }, "aws:auditmanager/assessment:Assessment": { - "description": "Resource for managing an AWS Audit Manager Assessment.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n### Basic Usage\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\n\nconst test = new aws.auditmanager.Assessment(\"test\", {\n name: \"example\",\n assessmentReportsDestination: {\n destination: `s3://${aws_s3_bucket.test.id}`,\n destinationType: \"S3\",\n },\n frameworkId: aws_auditmanager_framework.test.id,\n roles: [{\n roleArn: aws_iam_role.test.arn,\n roleType: \"PROCESS_OWNER\",\n }],\n scope: {\n awsAccounts: [{\n id: data.aws_caller_identity.current.account_id,\n }],\n awsServices: [{\n serviceName: \"S3\",\n }],\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_aws as aws\n\ntest = aws.auditmanager.Assessment(\"test\",\n name=\"example\",\n assessment_reports_destination=aws.auditmanager.AssessmentAssessmentReportsDestinationArgs(\n destination=f\"s3://{aws_s3_bucket['test']['id']}\",\n destination_type=\"S3\",\n ),\n framework_id=aws_auditmanager_framework[\"test\"][\"id\"],\n roles=[aws.auditmanager.AssessmentRoleArgs(\n role_arn=aws_iam_role[\"test\"][\"arn\"],\n role_type=\"PROCESS_OWNER\",\n )],\n scope=aws.auditmanager.AssessmentScopeArgs(\n aws_accounts=[aws.auditmanager.AssessmentScopeAwsAccountArgs(\n id=data[\"aws_caller_identity\"][\"current\"][\"account_id\"],\n )],\n aws_services=[aws.auditmanager.AssessmentScopeAwsServiceArgs(\n service_name=\"S3\",\n )],\n ))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var test = new Aws.Auditmanager.Assessment(\"test\", new()\n {\n Name = \"example\",\n AssessmentReportsDestination = new Aws.Auditmanager.Inputs.AssessmentAssessmentReportsDestinationArgs\n {\n Destination = $\"s3://{aws_s3_bucket.Test.Id}\",\n DestinationType = \"S3\",\n },\n FrameworkId = aws_auditmanager_framework.Test.Id,\n Roles = new[]\n {\n new Aws.Auditmanager.Inputs.AssessmentRoleArgs\n {\n RoleArn = aws_iam_role.Test.Arn,\n RoleType = \"PROCESS_OWNER\",\n },\n },\n Scope = new Aws.Auditmanager.Inputs.AssessmentScopeArgs\n {\n AwsAccounts = new[]\n {\n new Aws.Auditmanager.Inputs.AssessmentScopeAwsAccountArgs\n {\n Id = data.Aws_caller_identity.Current.Account_id,\n },\n },\n AwsServices = new[]\n {\n new Aws.Auditmanager.Inputs.AssessmentScopeAwsServiceArgs\n {\n ServiceName = \"S3\",\n },\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/auditmanager\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := auditmanager.NewAssessment(ctx, \"test\", \u0026auditmanager.AssessmentArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tAssessmentReportsDestination: \u0026auditmanager.AssessmentAssessmentReportsDestinationArgs{\n\t\t\t\tDestination: pulumi.String(fmt.Sprintf(\"s3://%v\", aws_s3_bucket.Test.Id)),\n\t\t\t\tDestinationType: pulumi.String(\"S3\"),\n\t\t\t},\n\t\t\tFrameworkId: pulumi.Any(aws_auditmanager_framework.Test.Id),\n\t\t\tRoles: auditmanager.AssessmentRoleArray{\n\t\t\t\t\u0026auditmanager.AssessmentRoleArgs{\n\t\t\t\t\tRoleArn: pulumi.Any(aws_iam_role.Test.Arn),\n\t\t\t\t\tRoleType: pulumi.String(\"PROCESS_OWNER\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tScope: \u0026auditmanager.AssessmentScopeArgs{\n\t\t\t\tAwsAccounts: auditmanager.AssessmentScopeAwsAccountArray{\n\t\t\t\t\t\u0026auditmanager.AssessmentScopeAwsAccountArgs{\n\t\t\t\t\t\tId: pulumi.Any(data.Aws_caller_identity.Current.Account_id),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tAwsServices: auditmanager.AssessmentScopeAwsServiceArray{\n\t\t\t\t\t\u0026auditmanager.AssessmentScopeAwsServiceArgs{\n\t\t\t\t\t\tServiceName: pulumi.String(\"S3\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.auditmanager.Assessment;\nimport com.pulumi.aws.auditmanager.AssessmentArgs;\nimport com.pulumi.aws.auditmanager.inputs.AssessmentAssessmentReportsDestinationArgs;\nimport com.pulumi.aws.auditmanager.inputs.AssessmentRoleArgs;\nimport com.pulumi.aws.auditmanager.inputs.AssessmentScopeArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var test = new Assessment(\"test\", AssessmentArgs.builder() \n .name(\"example\")\n .assessmentReportsDestination(AssessmentAssessmentReportsDestinationArgs.builder()\n .destination(String.format(\"s3://%s\", aws_s3_bucket.test().id()))\n .destinationType(\"S3\")\n .build())\n .frameworkId(aws_auditmanager_framework.test().id())\n .roles(AssessmentRoleArgs.builder()\n .roleArn(aws_iam_role.test().arn())\n .roleType(\"PROCESS_OWNER\")\n .build())\n .scope(AssessmentScopeArgs.builder()\n .awsAccounts(AssessmentScopeAwsAccountArgs.builder()\n .id(data.aws_caller_identity().current().account_id())\n .build())\n .awsServices(AssessmentScopeAwsServiceArgs.builder()\n .serviceName(\"S3\")\n .build())\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n test:\n type: aws:auditmanager:Assessment\n properties:\n name: example\n assessmentReportsDestination:\n destination: s3://${aws_s3_bucket.test.id}\n destinationType: S3\n frameworkId: ${aws_auditmanager_framework.test.id}\n roles:\n - roleArn: ${aws_iam_role.test.arn}\n roleType: PROCESS_OWNER\n scope:\n awsAccounts:\n - id: ${data.aws_caller_identity.current.account_id}\n awsServices:\n - serviceName: S3\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nterraform import {\n\n to = aws_auditmanager_assessment.example\n\n id = \"abc123-de45\" } Using `pulumi import`, import Audit Manager Assessments using the assessment `id`. For exampleconsole % pulumi import aws_auditmanager_assessment.example abc123-de45 ", + "description": "Resource for managing an AWS Audit Manager Assessment.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n### Basic Usage\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\n\nconst test = new aws.auditmanager.Assessment(\"test\", {\n assessmentReportsDestination: {\n destination: `s3://${aws_s3_bucket.test.id}`,\n destinationType: \"S3\",\n },\n frameworkId: aws_auditmanager_framework.test.id,\n roles: [{\n roleArn: aws_iam_role.test.arn,\n roleType: \"PROCESS_OWNER\",\n }],\n scope: {\n awsAccounts: [{\n id: data.aws_caller_identity.current.account_id,\n }],\n awsServices: [{\n serviceName: \"S3\",\n }],\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_aws as aws\n\ntest = aws.auditmanager.Assessment(\"test\",\n assessment_reports_destination=aws.auditmanager.AssessmentAssessmentReportsDestinationArgs(\n destination=f\"s3://{aws_s3_bucket['test']['id']}\",\n destination_type=\"S3\",\n ),\n framework_id=aws_auditmanager_framework[\"test\"][\"id\"],\n roles=[aws.auditmanager.AssessmentRoleArgs(\n role_arn=aws_iam_role[\"test\"][\"arn\"],\n role_type=\"PROCESS_OWNER\",\n )],\n scope=aws.auditmanager.AssessmentScopeArgs(\n aws_accounts=[aws.auditmanager.AssessmentScopeAwsAccountArgs(\n id=data[\"aws_caller_identity\"][\"current\"][\"account_id\"],\n )],\n aws_services=[aws.auditmanager.AssessmentScopeAwsServiceArgs(\n service_name=\"S3\",\n )],\n ))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var test = new Aws.Auditmanager.Assessment(\"test\", new()\n {\n AssessmentReportsDestination = new Aws.Auditmanager.Inputs.AssessmentAssessmentReportsDestinationArgs\n {\n Destination = $\"s3://{aws_s3_bucket.Test.Id}\",\n DestinationType = \"S3\",\n },\n FrameworkId = aws_auditmanager_framework.Test.Id,\n Roles = new[]\n {\n new Aws.Auditmanager.Inputs.AssessmentRoleArgs\n {\n RoleArn = aws_iam_role.Test.Arn,\n RoleType = \"PROCESS_OWNER\",\n },\n },\n Scope = new Aws.Auditmanager.Inputs.AssessmentScopeArgs\n {\n AwsAccounts = new[]\n {\n new Aws.Auditmanager.Inputs.AssessmentScopeAwsAccountArgs\n {\n Id = data.Aws_caller_identity.Current.Account_id,\n },\n },\n AwsServices = new[]\n {\n new Aws.Auditmanager.Inputs.AssessmentScopeAwsServiceArgs\n {\n ServiceName = \"S3\",\n },\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/auditmanager\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := auditmanager.NewAssessment(ctx, \"test\", \u0026auditmanager.AssessmentArgs{\n\t\t\tAssessmentReportsDestination: \u0026auditmanager.AssessmentAssessmentReportsDestinationArgs{\n\t\t\t\tDestination: pulumi.String(fmt.Sprintf(\"s3://%v\", aws_s3_bucket.Test.Id)),\n\t\t\t\tDestinationType: pulumi.String(\"S3\"),\n\t\t\t},\n\t\t\tFrameworkId: pulumi.Any(aws_auditmanager_framework.Test.Id),\n\t\t\tRoles: auditmanager.AssessmentRoleArray{\n\t\t\t\t\u0026auditmanager.AssessmentRoleArgs{\n\t\t\t\t\tRoleArn: pulumi.Any(aws_iam_role.Test.Arn),\n\t\t\t\t\tRoleType: pulumi.String(\"PROCESS_OWNER\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tScope: \u0026auditmanager.AssessmentScopeArgs{\n\t\t\t\tAwsAccounts: auditmanager.AssessmentScopeAwsAccountArray{\n\t\t\t\t\t\u0026auditmanager.AssessmentScopeAwsAccountArgs{\n\t\t\t\t\t\tId: pulumi.Any(data.Aws_caller_identity.Current.Account_id),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tAwsServices: auditmanager.AssessmentScopeAwsServiceArray{\n\t\t\t\t\t\u0026auditmanager.AssessmentScopeAwsServiceArgs{\n\t\t\t\t\t\tServiceName: pulumi.String(\"S3\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.auditmanager.Assessment;\nimport com.pulumi.aws.auditmanager.AssessmentArgs;\nimport com.pulumi.aws.auditmanager.inputs.AssessmentAssessmentReportsDestinationArgs;\nimport com.pulumi.aws.auditmanager.inputs.AssessmentRoleArgs;\nimport com.pulumi.aws.auditmanager.inputs.AssessmentScopeArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var test = new Assessment(\"test\", AssessmentArgs.builder() \n .assessmentReportsDestination(AssessmentAssessmentReportsDestinationArgs.builder()\n .destination(String.format(\"s3://%s\", aws_s3_bucket.test().id()))\n .destinationType(\"S3\")\n .build())\n .frameworkId(aws_auditmanager_framework.test().id())\n .roles(AssessmentRoleArgs.builder()\n .roleArn(aws_iam_role.test().arn())\n .roleType(\"PROCESS_OWNER\")\n .build())\n .scope(AssessmentScopeArgs.builder()\n .awsAccounts(AssessmentScopeAwsAccountArgs.builder()\n .id(data.aws_caller_identity().current().account_id())\n .build())\n .awsServices(AssessmentScopeAwsServiceArgs.builder()\n .serviceName(\"S3\")\n .build())\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n test:\n type: aws:auditmanager:Assessment\n properties:\n assessmentReportsDestination:\n destination: s3://${aws_s3_bucket.test.id}\n destinationType: S3\n frameworkId: ${aws_auditmanager_framework.test.id}\n roles:\n - roleArn: ${aws_iam_role.test.arn}\n roleType: PROCESS_OWNER\n scope:\n awsAccounts:\n - id: ${data.aws_caller_identity.current.account_id}\n awsServices:\n - serviceName: S3\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nterraform import {\n\n to = aws_auditmanager_assessment.example\n\n id = \"abc123-de45\" } Using `pulumi import`, import Audit Manager Assessments using the assessment `id`. For exampleconsole % pulumi import aws_auditmanager_assessment.example abc123-de45 ", "properties": { "arn": { "type": "string", @@ -138691,7 +138690,6 @@ }, "requiredInputs": [ "frameworkId", - "name", "roles" ], "stateInputs": { @@ -138860,7 +138858,7 @@ } }, "aws:auditmanager/assessmentReport:AssessmentReport": { - "description": "Resource for managing an AWS Audit Manager Assessment Report.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n### Basic Usage\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\n\nconst test = new aws.auditmanager.AssessmentReport(\"test\", {\n name: \"example\",\n assessmentId: aws_auditmanager_assessment.test.id,\n});\n```\n```python\nimport pulumi\nimport pulumi_aws as aws\n\ntest = aws.auditmanager.AssessmentReport(\"test\",\n name=\"example\",\n assessment_id=aws_auditmanager_assessment[\"test\"][\"id\"])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var test = new Aws.Auditmanager.AssessmentReport(\"test\", new()\n {\n Name = \"example\",\n AssessmentId = aws_auditmanager_assessment.Test.Id,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/auditmanager\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := auditmanager.NewAssessmentReport(ctx, \"test\", \u0026auditmanager.AssessmentReportArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tAssessmentId: pulumi.Any(aws_auditmanager_assessment.Test.Id),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.auditmanager.AssessmentReport;\nimport com.pulumi.aws.auditmanager.AssessmentReportArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var test = new AssessmentReport(\"test\", AssessmentReportArgs.builder() \n .name(\"example\")\n .assessmentId(aws_auditmanager_assessment.test().id())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n test:\n type: aws:auditmanager:AssessmentReport\n properties:\n name: example\n assessmentId: ${aws_auditmanager_assessment.test.id}\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nterraform import {\n\n to = aws_auditmanager_assessment_report.example\n\n id = \"abc123-de45\" } Using `pulumi import`, import Audit Manager Assessment Reports using the assessment report `id`. For exampleconsole % pulumi import aws_auditmanager_assessment_report.example abc123-de45 ", + "description": "Resource for managing an AWS Audit Manager Assessment Report.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n### Basic Usage\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\n\nconst test = new aws.auditmanager.AssessmentReport(\"test\", {assessmentId: aws_auditmanager_assessment.test.id});\n```\n```python\nimport pulumi\nimport pulumi_aws as aws\n\ntest = aws.auditmanager.AssessmentReport(\"test\", assessment_id=aws_auditmanager_assessment[\"test\"][\"id\"])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var test = new Aws.Auditmanager.AssessmentReport(\"test\", new()\n {\n AssessmentId = aws_auditmanager_assessment.Test.Id,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/auditmanager\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := auditmanager.NewAssessmentReport(ctx, \"test\", \u0026auditmanager.AssessmentReportArgs{\n\t\t\tAssessmentId: pulumi.Any(aws_auditmanager_assessment.Test.Id),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.auditmanager.AssessmentReport;\nimport com.pulumi.aws.auditmanager.AssessmentReportArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var test = new AssessmentReport(\"test\", AssessmentReportArgs.builder() \n .assessmentId(aws_auditmanager_assessment.test().id())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n test:\n type: aws:auditmanager:AssessmentReport\n properties:\n assessmentId: ${aws_auditmanager_assessment.test.id}\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nterraform import {\n\n to = aws_auditmanager_assessment_report.example\n\n id = \"abc123-de45\" } Using `pulumi import`, import Audit Manager Assessment Reports using the assessment report `id`. For exampleconsole % pulumi import aws_auditmanager_assessment_report.example abc123-de45 ", "properties": { "assessmentId": { "type": "string", @@ -138904,8 +138902,7 @@ } }, "requiredInputs": [ - "assessmentId", - "name" + "assessmentId" ], "stateInputs": { "description": "Input properties used for looking up and filtering AssessmentReport resources.\n", @@ -138935,7 +138932,7 @@ } }, "aws:auditmanager/control:Control": { - "description": "Resource for managing an AWS Audit Manager Control.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n### Basic Usage\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\n\nconst example = new aws.auditmanager.Control(\"example\", {\n controlMappingSources: [{\n sourceName: \"example\",\n sourceSetUpOption: \"Procedural_Controls_Mapping\",\n sourceType: \"MANUAL\",\n }],\n name: \"example\",\n});\n```\n```python\nimport pulumi\nimport pulumi_aws as aws\n\nexample = aws.auditmanager.Control(\"example\",\n control_mapping_sources=[aws.auditmanager.ControlControlMappingSourceArgs(\n source_name=\"example\",\n source_set_up_option=\"Procedural_Controls_Mapping\",\n source_type=\"MANUAL\",\n )],\n name=\"example\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new Aws.Auditmanager.Control(\"example\", new()\n {\n ControlMappingSources = new[]\n {\n new Aws.Auditmanager.Inputs.ControlControlMappingSourceArgs\n {\n SourceName = \"example\",\n SourceSetUpOption = \"Procedural_Controls_Mapping\",\n SourceType = \"MANUAL\",\n },\n },\n Name = \"example\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/auditmanager\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := auditmanager.NewControl(ctx, \"example\", \u0026auditmanager.ControlArgs{\n\t\t\tControlMappingSources: auditmanager.ControlControlMappingSourceArray{\n\t\t\t\t\u0026auditmanager.ControlControlMappingSourceArgs{\n\t\t\t\t\tSourceName: pulumi.String(\"example\"),\n\t\t\t\t\tSourceSetUpOption: pulumi.String(\"Procedural_Controls_Mapping\"),\n\t\t\t\t\tSourceType: pulumi.String(\"MANUAL\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tName: pulumi.String(\"example\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.auditmanager.Control;\nimport com.pulumi.aws.auditmanager.ControlArgs;\nimport com.pulumi.aws.auditmanager.inputs.ControlControlMappingSourceArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new Control(\"example\", ControlArgs.builder() \n .controlMappingSources(ControlControlMappingSourceArgs.builder()\n .sourceName(\"example\")\n .sourceSetUpOption(\"Procedural_Controls_Mapping\")\n .sourceType(\"MANUAL\")\n .build())\n .name(\"example\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: aws:auditmanager:Control\n properties:\n controlMappingSources:\n - sourceName: example\n sourceSetUpOption: Procedural_Controls_Mapping\n sourceType: MANUAL\n name: example\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nterraform import {\n\n to = aws_auditmanager_control.example\n\n id = \"abc123-de45\" } Using `pulumi import`, import an Audit Manager Control using the `id`. For exampleconsole % pulumi import aws_auditmanager_control.example abc123-de45 ", + "description": "Resource for managing an AWS Audit Manager Control.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n### Basic Usage\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\n\nconst example = new aws.auditmanager.Control(\"example\", {controlMappingSources: [{\n sourceName: \"example\",\n sourceSetUpOption: \"Procedural_Controls_Mapping\",\n sourceType: \"MANUAL\",\n}]});\n```\n```python\nimport pulumi\nimport pulumi_aws as aws\n\nexample = aws.auditmanager.Control(\"example\", control_mapping_sources=[aws.auditmanager.ControlControlMappingSourceArgs(\n source_name=\"example\",\n source_set_up_option=\"Procedural_Controls_Mapping\",\n source_type=\"MANUAL\",\n)])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new Aws.Auditmanager.Control(\"example\", new()\n {\n ControlMappingSources = new[]\n {\n new Aws.Auditmanager.Inputs.ControlControlMappingSourceArgs\n {\n SourceName = \"example\",\n SourceSetUpOption = \"Procedural_Controls_Mapping\",\n SourceType = \"MANUAL\",\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/auditmanager\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := auditmanager.NewControl(ctx, \"example\", \u0026auditmanager.ControlArgs{\n\t\t\tControlMappingSources: auditmanager.ControlControlMappingSourceArray{\n\t\t\t\t\u0026auditmanager.ControlControlMappingSourceArgs{\n\t\t\t\t\tSourceName: pulumi.String(\"example\"),\n\t\t\t\t\tSourceSetUpOption: pulumi.String(\"Procedural_Controls_Mapping\"),\n\t\t\t\t\tSourceType: pulumi.String(\"MANUAL\"),\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.auditmanager.Control;\nimport com.pulumi.aws.auditmanager.ControlArgs;\nimport com.pulumi.aws.auditmanager.inputs.ControlControlMappingSourceArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new Control(\"example\", ControlArgs.builder() \n .controlMappingSources(ControlControlMappingSourceArgs.builder()\n .sourceName(\"example\")\n .sourceSetUpOption(\"Procedural_Controls_Mapping\")\n .sourceType(\"MANUAL\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: aws:auditmanager:Control\n properties:\n controlMappingSources:\n - sourceName: example\n sourceSetUpOption: Procedural_Controls_Mapping\n sourceType: MANUAL\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nterraform import {\n\n to = aws_auditmanager_control.example\n\n id = \"abc123-de45\" } Using `pulumi import`, import an Audit Manager Control using the `id`. For exampleconsole % pulumi import aws_auditmanager_control.example abc123-de45 ", "properties": { "actionPlanInstructions": { "type": "string", @@ -139028,9 +139025,6 @@ "description": "Steps to follow to determine if the control is satisfied.\n" } }, - "requiredInputs": [ - "name" - ], "stateInputs": { "description": "Input properties used for looking up and filtering Control resources.\n", "properties": { @@ -139087,7 +139081,7 @@ } }, "aws:auditmanager/framework:Framework": { - "description": "Resource for managing an AWS Audit Manager Framework.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n### Basic Usage\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\n\nconst test = new aws.auditmanager.Framework(\"test\", {\n name: \"example\",\n controlSets: [{\n name: \"example\",\n controls: [{\n id: aws_auditmanager_control.test.id,\n }],\n }],\n});\n```\n```python\nimport pulumi\nimport pulumi_aws as aws\n\ntest = aws.auditmanager.Framework(\"test\",\n name=\"example\",\n control_sets=[aws.auditmanager.FrameworkControlSetArgs(\n name=\"example\",\n controls=[aws.auditmanager.FrameworkControlSetControlArgs(\n id=aws_auditmanager_control[\"test\"][\"id\"],\n )],\n )])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var test = new Aws.Auditmanager.Framework(\"test\", new()\n {\n Name = \"example\",\n ControlSets = new[]\n {\n new Aws.Auditmanager.Inputs.FrameworkControlSetArgs\n {\n Name = \"example\",\n Controls = new[]\n {\n new Aws.Auditmanager.Inputs.FrameworkControlSetControlArgs\n {\n Id = aws_auditmanager_control.Test.Id,\n },\n },\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/auditmanager\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := auditmanager.NewFramework(ctx, \"test\", \u0026auditmanager.FrameworkArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tControlSets: auditmanager.FrameworkControlSetArray{\n\t\t\t\t\u0026auditmanager.FrameworkControlSetArgs{\n\t\t\t\t\tName: pulumi.String(\"example\"),\n\t\t\t\t\tControls: auditmanager.FrameworkControlSetControlArray{\n\t\t\t\t\t\t\u0026auditmanager.FrameworkControlSetControlArgs{\n\t\t\t\t\t\t\tId: pulumi.Any(aws_auditmanager_control.Test.Id),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.auditmanager.Framework;\nimport com.pulumi.aws.auditmanager.FrameworkArgs;\nimport com.pulumi.aws.auditmanager.inputs.FrameworkControlSetArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var test = new Framework(\"test\", FrameworkArgs.builder() \n .name(\"example\")\n .controlSets(FrameworkControlSetArgs.builder()\n .name(\"example\")\n .controls(FrameworkControlSetControlArgs.builder()\n .id(aws_auditmanager_control.test().id())\n .build())\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n test:\n type: aws:auditmanager:Framework\n properties:\n name: example\n controlSets:\n - name: example\n controls:\n - id: ${aws_auditmanager_control.test.id}\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nterraform import {\n\n to = aws_auditmanager_framework.example\n\n id = \"abc123-de45\" } Using `pulumi import`, import Audit Manager Framework using the framework `id`. For exampleconsole % pulumi import aws_auditmanager_framework.example abc123-de45 ", + "description": "Resource for managing an AWS Audit Manager Framework.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n### Basic Usage\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\n\nconst test = new aws.auditmanager.Framework(\"test\", {controlSets: [{\n name: \"example\",\n controls: [{\n id: aws_auditmanager_control.test.id,\n }],\n}]});\n```\n```python\nimport pulumi\nimport pulumi_aws as aws\n\ntest = aws.auditmanager.Framework(\"test\", control_sets=[aws.auditmanager.FrameworkControlSetArgs(\n name=\"example\",\n controls=[aws.auditmanager.FrameworkControlSetControlArgs(\n id=aws_auditmanager_control[\"test\"][\"id\"],\n )],\n)])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var test = new Aws.Auditmanager.Framework(\"test\", new()\n {\n ControlSets = new[]\n {\n new Aws.Auditmanager.Inputs.FrameworkControlSetArgs\n {\n Name = \"example\",\n Controls = new[]\n {\n new Aws.Auditmanager.Inputs.FrameworkControlSetControlArgs\n {\n Id = aws_auditmanager_control.Test.Id,\n },\n },\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/auditmanager\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := auditmanager.NewFramework(ctx, \"test\", \u0026auditmanager.FrameworkArgs{\n\t\t\tControlSets: auditmanager.FrameworkControlSetArray{\n\t\t\t\t\u0026auditmanager.FrameworkControlSetArgs{\n\t\t\t\t\tName: pulumi.String(\"example\"),\n\t\t\t\t\tControls: auditmanager.FrameworkControlSetControlArray{\n\t\t\t\t\t\t\u0026auditmanager.FrameworkControlSetControlArgs{\n\t\t\t\t\t\t\tId: pulumi.Any(aws_auditmanager_control.Test.Id),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.auditmanager.Framework;\nimport com.pulumi.aws.auditmanager.FrameworkArgs;\nimport com.pulumi.aws.auditmanager.inputs.FrameworkControlSetArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var test = new Framework(\"test\", FrameworkArgs.builder() \n .controlSets(FrameworkControlSetArgs.builder()\n .name(\"example\")\n .controls(FrameworkControlSetControlArgs.builder()\n .id(aws_auditmanager_control.test().id())\n .build())\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n test:\n type: aws:auditmanager:Framework\n properties:\n controlSets:\n - name: example\n controls:\n - id: ${aws_auditmanager_control.test.id}\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nterraform import {\n\n to = aws_auditmanager_framework.example\n\n id = \"abc123-de45\" } Using `pulumi import`, import Audit Manager Framework using the framework `id`. For exampleconsole % pulumi import aws_auditmanager_framework.example abc123-de45 ", "properties": { "arn": { "type": "string", @@ -139164,9 +139158,6 @@ "description": "A map of tags to assign to the framework. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.\n" } }, - "requiredInputs": [ - "name" - ], "stateInputs": { "description": "Input properties used for looking up and filtering Framework resources.\n", "properties": { @@ -144394,7 +144385,7 @@ } }, "aws:chime/sdkvoiceSipMediaApplication:SdkvoiceSipMediaApplication": { - "description": "A ChimeSDKVoice SIP Media Application is a managed object that passes values from a SIP rule to a target AWS Lambda function.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n### Basic Usage\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\n\nconst example = new aws.chime.SdkvoiceSipMediaApplication(\"example\", {\n awsRegion: \"us-east-1\",\n name: \"example-sip-media-application\",\n endpoints: {\n lambdaArn: aws_lambda_function.test.arn,\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_aws as aws\n\nexample = aws.chime.SdkvoiceSipMediaApplication(\"example\",\n aws_region=\"us-east-1\",\n name=\"example-sip-media-application\",\n endpoints=aws.chime.SdkvoiceSipMediaApplicationEndpointsArgs(\n lambda_arn=aws_lambda_function[\"test\"][\"arn\"],\n ))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new Aws.Chime.SdkvoiceSipMediaApplication(\"example\", new()\n {\n AwsRegion = \"us-east-1\",\n Name = \"example-sip-media-application\",\n Endpoints = new Aws.Chime.Inputs.SdkvoiceSipMediaApplicationEndpointsArgs\n {\n LambdaArn = aws_lambda_function.Test.Arn,\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/chime\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := chime.NewSdkvoiceSipMediaApplication(ctx, \"example\", \u0026chime.SdkvoiceSipMediaApplicationArgs{\n\t\t\tAwsRegion: pulumi.String(\"us-east-1\"),\n\t\t\tName: pulumi.String(\"example-sip-media-application\"),\n\t\t\tEndpoints: \u0026chime.SdkvoiceSipMediaApplicationEndpointsArgs{\n\t\t\t\tLambdaArn: pulumi.Any(aws_lambda_function.Test.Arn),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.chime.SdkvoiceSipMediaApplication;\nimport com.pulumi.aws.chime.SdkvoiceSipMediaApplicationArgs;\nimport com.pulumi.aws.chime.inputs.SdkvoiceSipMediaApplicationEndpointsArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new SdkvoiceSipMediaApplication(\"example\", SdkvoiceSipMediaApplicationArgs.builder() \n .awsRegion(\"us-east-1\")\n .name(\"example-sip-media-application\")\n .endpoints(SdkvoiceSipMediaApplicationEndpointsArgs.builder()\n .lambdaArn(aws_lambda_function.test().arn())\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: aws:chime:SdkvoiceSipMediaApplication\n properties:\n awsRegion: us-east-1\n name: example-sip-media-application\n endpoints:\n lambdaArn: ${aws_lambda_function.test.arn}\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nterraform import {\n\n to = aws_chimesdkvoice_sip_media_application.example\n\n id = \"abcdef123456\" } Using `pulumi import`, import a ChimeSDKVoice SIP Media Application using the `id`. For exampleconsole % pulumi import aws_chimesdkvoice_sip_media_application.example abcdef123456 ", + "description": "A ChimeSDKVoice SIP Media Application is a managed object that passes values from a SIP rule to a target AWS Lambda function.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n### Basic Usage\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\n\nconst example = new aws.chime.SdkvoiceSipMediaApplication(\"example\", {\n awsRegion: \"us-east-1\",\n endpoints: {\n lambdaArn: aws_lambda_function.test.arn,\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_aws as aws\n\nexample = aws.chime.SdkvoiceSipMediaApplication(\"example\",\n aws_region=\"us-east-1\",\n endpoints=aws.chime.SdkvoiceSipMediaApplicationEndpointsArgs(\n lambda_arn=aws_lambda_function[\"test\"][\"arn\"],\n ))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new Aws.Chime.SdkvoiceSipMediaApplication(\"example\", new()\n {\n AwsRegion = \"us-east-1\",\n Endpoints = new Aws.Chime.Inputs.SdkvoiceSipMediaApplicationEndpointsArgs\n {\n LambdaArn = aws_lambda_function.Test.Arn,\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/chime\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := chime.NewSdkvoiceSipMediaApplication(ctx, \"example\", \u0026chime.SdkvoiceSipMediaApplicationArgs{\n\t\t\tAwsRegion: pulumi.String(\"us-east-1\"),\n\t\t\tEndpoints: \u0026chime.SdkvoiceSipMediaApplicationEndpointsArgs{\n\t\t\t\tLambdaArn: pulumi.Any(aws_lambda_function.Test.Arn),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.chime.SdkvoiceSipMediaApplication;\nimport com.pulumi.aws.chime.SdkvoiceSipMediaApplicationArgs;\nimport com.pulumi.aws.chime.inputs.SdkvoiceSipMediaApplicationEndpointsArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new SdkvoiceSipMediaApplication(\"example\", SdkvoiceSipMediaApplicationArgs.builder() \n .awsRegion(\"us-east-1\")\n .endpoints(SdkvoiceSipMediaApplicationEndpointsArgs.builder()\n .lambdaArn(aws_lambda_function.test().arn())\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: aws:chime:SdkvoiceSipMediaApplication\n properties:\n awsRegion: us-east-1\n endpoints:\n lambdaArn: ${aws_lambda_function.test.arn}\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nterraform import {\n\n to = aws_chimesdkvoice_sip_media_application.example\n\n id = \"abcdef123456\" } Using `pulumi import`, import a ChimeSDKVoice SIP Media Application using the `id`. For exampleconsole % pulumi import aws_chimesdkvoice_sip_media_application.example abcdef123456 ", "properties": { "arn": { "type": "string", @@ -144458,8 +144449,7 @@ }, "requiredInputs": [ "awsRegion", - "endpoints", - "name" + "endpoints" ], "stateInputs": { "description": "Input properties used for looking up and filtering SdkvoiceSipMediaApplication resources.\n", @@ -144500,7 +144490,7 @@ } }, "aws:chime/sdkvoiceSipRule:SdkvoiceSipRule": { - "description": "A SIP rule associates your SIP media application with a phone number or a Request URI hostname. You can associate a SIP rule with more than one SIP media application. Each application then runs only that rule.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n### Basic Usage\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\n\nconst example = new aws.chime.SdkvoiceSipRule(\"example\", {\n name: \"example-sip-rule\",\n triggerType: \"RequestUriHostname\",\n triggerValue: aws_chime_voice_connector[\"example-voice-connector\"].outbound_host_name,\n targetApplications: [{\n priority: 1,\n sipMediaApplicationId: aws_chimesdkvoice_sip_media_application[\"example-sma\"].id,\n awsRegion: \"us-east-1\",\n }],\n});\n```\n```python\nimport pulumi\nimport pulumi_aws as aws\n\nexample = aws.chime.SdkvoiceSipRule(\"example\",\n name=\"example-sip-rule\",\n trigger_type=\"RequestUriHostname\",\n trigger_value=aws_chime_voice_connector[\"example-voice-connector\"][\"outbound_host_name\"],\n target_applications=[aws.chime.SdkvoiceSipRuleTargetApplicationArgs(\n priority=1,\n sip_media_application_id=aws_chimesdkvoice_sip_media_application[\"example-sma\"][\"id\"],\n aws_region=\"us-east-1\",\n )])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new Aws.Chime.SdkvoiceSipRule(\"example\", new()\n {\n Name = \"example-sip-rule\",\n TriggerType = \"RequestUriHostname\",\n TriggerValue = aws_chime_voice_connector.Example_voice_connector.Outbound_host_name,\n TargetApplications = new[]\n {\n new Aws.Chime.Inputs.SdkvoiceSipRuleTargetApplicationArgs\n {\n Priority = 1,\n SipMediaApplicationId = aws_chimesdkvoice_sip_media_application.Example_sma.Id,\n AwsRegion = \"us-east-1\",\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/chime\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := chime.NewSdkvoiceSipRule(ctx, \"example\", \u0026chime.SdkvoiceSipRuleArgs{\n\t\t\tName: pulumi.String(\"example-sip-rule\"),\n\t\t\tTriggerType: pulumi.String(\"RequestUriHostname\"),\n\t\t\tTriggerValue: pulumi.Any(aws_chime_voice_connector.ExampleVoiceConnector.Outbound_host_name),\n\t\t\tTargetApplications: chime.SdkvoiceSipRuleTargetApplicationArray{\n\t\t\t\t\u0026chime.SdkvoiceSipRuleTargetApplicationArgs{\n\t\t\t\t\tPriority: pulumi.Int(1),\n\t\t\t\t\tSipMediaApplicationId: pulumi.Any(aws_chimesdkvoice_sip_media_application.ExampleSma.Id),\n\t\t\t\t\tAwsRegion: pulumi.String(\"us-east-1\"),\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.chime.SdkvoiceSipRule;\nimport com.pulumi.aws.chime.SdkvoiceSipRuleArgs;\nimport com.pulumi.aws.chime.inputs.SdkvoiceSipRuleTargetApplicationArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new SdkvoiceSipRule(\"example\", SdkvoiceSipRuleArgs.builder() \n .name(\"example-sip-rule\")\n .triggerType(\"RequestUriHostname\")\n .triggerValue(aws_chime_voice_connector.example-voice-connector().outbound_host_name())\n .targetApplications(SdkvoiceSipRuleTargetApplicationArgs.builder()\n .priority(1)\n .sipMediaApplicationId(aws_chimesdkvoice_sip_media_application.example-sma().id())\n .awsRegion(\"us-east-1\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: aws:chime:SdkvoiceSipRule\n properties:\n name: example-sip-rule\n triggerType: RequestUriHostname\n triggerValue: ${aws_chime_voice_connector\"example-voice-connector\"[%!s(MISSING)].outbound_host_name}\n targetApplications:\n - priority: 1\n sipMediaApplicationId: ${aws_chimesdkvoice_sip_media_application\"example-sma\"[%!s(MISSING)].id}\n awsRegion: us-east-1\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nterraform import {\n\n to = aws_chimesdkvoice_sip_rule.example\n\n id = \"abcdef123456\" } Using `pulumi import`, import a ChimeSDKVoice SIP Rule using the `id`. For exampleconsole % pulumi import aws_chimesdkvoice_sip_rule.example abcdef123456 ", + "description": "A SIP rule associates your SIP media application with a phone number or a Request URI hostname. You can associate a SIP rule with more than one SIP media application. Each application then runs only that rule.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n### Basic Usage\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\n\nconst example = new aws.chime.SdkvoiceSipRule(\"example\", {\n triggerType: \"RequestUriHostname\",\n triggerValue: aws_chime_voice_connector[\"example-voice-connector\"].outbound_host_name,\n targetApplications: [{\n priority: 1,\n sipMediaApplicationId: aws_chimesdkvoice_sip_media_application[\"example-sma\"].id,\n awsRegion: \"us-east-1\",\n }],\n});\n```\n```python\nimport pulumi\nimport pulumi_aws as aws\n\nexample = aws.chime.SdkvoiceSipRule(\"example\",\n trigger_type=\"RequestUriHostname\",\n trigger_value=aws_chime_voice_connector[\"example-voice-connector\"][\"outbound_host_name\"],\n target_applications=[aws.chime.SdkvoiceSipRuleTargetApplicationArgs(\n priority=1,\n sip_media_application_id=aws_chimesdkvoice_sip_media_application[\"example-sma\"][\"id\"],\n aws_region=\"us-east-1\",\n )])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new Aws.Chime.SdkvoiceSipRule(\"example\", new()\n {\n TriggerType = \"RequestUriHostname\",\n TriggerValue = aws_chime_voice_connector.Example_voice_connector.Outbound_host_name,\n TargetApplications = new[]\n {\n new Aws.Chime.Inputs.SdkvoiceSipRuleTargetApplicationArgs\n {\n Priority = 1,\n SipMediaApplicationId = aws_chimesdkvoice_sip_media_application.Example_sma.Id,\n AwsRegion = \"us-east-1\",\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/chime\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := chime.NewSdkvoiceSipRule(ctx, \"example\", \u0026chime.SdkvoiceSipRuleArgs{\n\t\t\tTriggerType: pulumi.String(\"RequestUriHostname\"),\n\t\t\tTriggerValue: pulumi.Any(aws_chime_voice_connector.ExampleVoiceConnector.Outbound_host_name),\n\t\t\tTargetApplications: chime.SdkvoiceSipRuleTargetApplicationArray{\n\t\t\t\t\u0026chime.SdkvoiceSipRuleTargetApplicationArgs{\n\t\t\t\t\tPriority: pulumi.Int(1),\n\t\t\t\t\tSipMediaApplicationId: pulumi.Any(aws_chimesdkvoice_sip_media_application.ExampleSma.Id),\n\t\t\t\t\tAwsRegion: pulumi.String(\"us-east-1\"),\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.chime.SdkvoiceSipRule;\nimport com.pulumi.aws.chime.SdkvoiceSipRuleArgs;\nimport com.pulumi.aws.chime.inputs.SdkvoiceSipRuleTargetApplicationArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new SdkvoiceSipRule(\"example\", SdkvoiceSipRuleArgs.builder() \n .triggerType(\"RequestUriHostname\")\n .triggerValue(aws_chime_voice_connector.example-voice-connector().outbound_host_name())\n .targetApplications(SdkvoiceSipRuleTargetApplicationArgs.builder()\n .priority(1)\n .sipMediaApplicationId(aws_chimesdkvoice_sip_media_application.example-sma().id())\n .awsRegion(\"us-east-1\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: aws:chime:SdkvoiceSipRule\n properties:\n triggerType: RequestUriHostname\n triggerValue: ${aws_chime_voice_connector\"example-voice-connector\"[%!s(MISSING)].outbound_host_name}\n targetApplications:\n - priority: 1\n sipMediaApplicationId: ${aws_chimesdkvoice_sip_media_application\"example-sma\"[%!s(MISSING)].id}\n awsRegion: us-east-1\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nterraform import {\n\n to = aws_chimesdkvoice_sip_rule.example\n\n id = \"abcdef123456\" } Using `pulumi import`, import a ChimeSDKVoice SIP Rule using the `id`. For exampleconsole % pulumi import aws_chimesdkvoice_sip_rule.example abcdef123456 ", "properties": { "disabled": { "type": "boolean", @@ -144558,7 +144548,6 @@ } }, "requiredInputs": [ - "name", "targetApplications", "triggerType", "triggerValue" @@ -144594,7 +144583,7 @@ } }, "aws:chime/sdkvoiceVoiceProfileDomain:SdkvoiceVoiceProfileDomain": { - "description": "Resource for managing an AWS Chime SDK Voice Profile Domain.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n### Basic Usage\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\n\nconst exampleKey = new aws.kms.Key(\"exampleKey\", {\n description: \"KMS Key for Voice Profile Domain\",\n deletionWindowInDays: 7,\n});\nconst exampleSdkvoiceVoiceProfileDomain = new aws.chime.SdkvoiceVoiceProfileDomain(\"exampleSdkvoiceVoiceProfileDomain\", {\n name: \"ExampleVoiceProfileDomain\",\n serverSideEncryptionConfiguration: {\n kmsKeyArn: exampleKey.arn,\n },\n description: \"My Voice Profile Domain\",\n tags: {\n key1: \"value1\",\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_aws as aws\n\nexample_key = aws.kms.Key(\"exampleKey\",\n description=\"KMS Key for Voice Profile Domain\",\n deletion_window_in_days=7)\nexample_sdkvoice_voice_profile_domain = aws.chime.SdkvoiceVoiceProfileDomain(\"exampleSdkvoiceVoiceProfileDomain\",\n name=\"ExampleVoiceProfileDomain\",\n server_side_encryption_configuration=aws.chime.SdkvoiceVoiceProfileDomainServerSideEncryptionConfigurationArgs(\n kms_key_arn=example_key.arn,\n ),\n description=\"My Voice Profile Domain\",\n tags={\n \"key1\": \"value1\",\n })\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var exampleKey = new Aws.Kms.Key(\"exampleKey\", new()\n {\n Description = \"KMS Key for Voice Profile Domain\",\n DeletionWindowInDays = 7,\n });\n\n var exampleSdkvoiceVoiceProfileDomain = new Aws.Chime.SdkvoiceVoiceProfileDomain(\"exampleSdkvoiceVoiceProfileDomain\", new()\n {\n Name = \"ExampleVoiceProfileDomain\",\n ServerSideEncryptionConfiguration = new Aws.Chime.Inputs.SdkvoiceVoiceProfileDomainServerSideEncryptionConfigurationArgs\n {\n KmsKeyArn = exampleKey.Arn,\n },\n Description = \"My Voice Profile Domain\",\n Tags = \n {\n { \"key1\", \"value1\" },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/chime\"\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/kms\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleKey, err := kms.NewKey(ctx, \"exampleKey\", \u0026kms.KeyArgs{\n\t\t\tDescription: pulumi.String(\"KMS Key for Voice Profile Domain\"),\n\t\t\tDeletionWindowInDays: pulumi.Int(7),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = chime.NewSdkvoiceVoiceProfileDomain(ctx, \"exampleSdkvoiceVoiceProfileDomain\", \u0026chime.SdkvoiceVoiceProfileDomainArgs{\n\t\t\tName: pulumi.String(\"ExampleVoiceProfileDomain\"),\n\t\t\tServerSideEncryptionConfiguration: \u0026chime.SdkvoiceVoiceProfileDomainServerSideEncryptionConfigurationArgs{\n\t\t\t\tKmsKeyArn: exampleKey.Arn,\n\t\t\t},\n\t\t\tDescription: pulumi.String(\"My Voice Profile Domain\"),\n\t\t\tTags: pulumi.StringMap{\n\t\t\t\t\"key1\": pulumi.String(\"value1\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.kms.Key;\nimport com.pulumi.aws.kms.KeyArgs;\nimport com.pulumi.aws.chime.SdkvoiceVoiceProfileDomain;\nimport com.pulumi.aws.chime.SdkvoiceVoiceProfileDomainArgs;\nimport com.pulumi.aws.chime.inputs.SdkvoiceVoiceProfileDomainServerSideEncryptionConfigurationArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var exampleKey = new Key(\"exampleKey\", KeyArgs.builder() \n .description(\"KMS Key for Voice Profile Domain\")\n .deletionWindowInDays(7)\n .build());\n\n var exampleSdkvoiceVoiceProfileDomain = new SdkvoiceVoiceProfileDomain(\"exampleSdkvoiceVoiceProfileDomain\", SdkvoiceVoiceProfileDomainArgs.builder() \n .name(\"ExampleVoiceProfileDomain\")\n .serverSideEncryptionConfiguration(SdkvoiceVoiceProfileDomainServerSideEncryptionConfigurationArgs.builder()\n .kmsKeyArn(exampleKey.arn())\n .build())\n .description(\"My Voice Profile Domain\")\n .tags(Map.of(\"key1\", \"value1\"))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleKey:\n type: aws:kms:Key\n properties:\n description: KMS Key for Voice Profile Domain\n deletionWindowInDays: 7\n exampleSdkvoiceVoiceProfileDomain:\n type: aws:chime:SdkvoiceVoiceProfileDomain\n properties:\n name: ExampleVoiceProfileDomain\n serverSideEncryptionConfiguration:\n kmsKeyArn: ${exampleKey.arn}\n description: My Voice Profile Domain\n tags:\n key1: value1\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nterraform import {\n\n to = aws_chimesdkvoice_voice_profile_domain.example\n\n id = \"abcdef123456\" } Using `pulumi import`, import AWS Chime SDK Voice Profile Domain using the `id`. For exampleconsole % pulumi import aws_chimesdkvoice_voice_profile_domain.example abcdef123456 ", + "description": "Resource for managing an AWS Chime SDK Voice Profile Domain.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n### Basic Usage\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\n\nconst exampleKey = new aws.kms.Key(\"exampleKey\", {\n description: \"KMS Key for Voice Profile Domain\",\n deletionWindowInDays: 7,\n});\nconst exampleSdkvoiceVoiceProfileDomain = new aws.chime.SdkvoiceVoiceProfileDomain(\"exampleSdkvoiceVoiceProfileDomain\", {\n serverSideEncryptionConfiguration: {\n kmsKeyArn: exampleKey.arn,\n },\n description: \"My Voice Profile Domain\",\n tags: {\n key1: \"value1\",\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_aws as aws\n\nexample_key = aws.kms.Key(\"exampleKey\",\n description=\"KMS Key for Voice Profile Domain\",\n deletion_window_in_days=7)\nexample_sdkvoice_voice_profile_domain = aws.chime.SdkvoiceVoiceProfileDomain(\"exampleSdkvoiceVoiceProfileDomain\",\n server_side_encryption_configuration=aws.chime.SdkvoiceVoiceProfileDomainServerSideEncryptionConfigurationArgs(\n kms_key_arn=example_key.arn,\n ),\n description=\"My Voice Profile Domain\",\n tags={\n \"key1\": \"value1\",\n })\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var exampleKey = new Aws.Kms.Key(\"exampleKey\", new()\n {\n Description = \"KMS Key for Voice Profile Domain\",\n DeletionWindowInDays = 7,\n });\n\n var exampleSdkvoiceVoiceProfileDomain = new Aws.Chime.SdkvoiceVoiceProfileDomain(\"exampleSdkvoiceVoiceProfileDomain\", new()\n {\n ServerSideEncryptionConfiguration = new Aws.Chime.Inputs.SdkvoiceVoiceProfileDomainServerSideEncryptionConfigurationArgs\n {\n KmsKeyArn = exampleKey.Arn,\n },\n Description = \"My Voice Profile Domain\",\n Tags = \n {\n { \"key1\", \"value1\" },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/chime\"\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/kms\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleKey, err := kms.NewKey(ctx, \"exampleKey\", \u0026kms.KeyArgs{\n\t\t\tDescription: pulumi.String(\"KMS Key for Voice Profile Domain\"),\n\t\t\tDeletionWindowInDays: pulumi.Int(7),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = chime.NewSdkvoiceVoiceProfileDomain(ctx, \"exampleSdkvoiceVoiceProfileDomain\", \u0026chime.SdkvoiceVoiceProfileDomainArgs{\n\t\t\tServerSideEncryptionConfiguration: \u0026chime.SdkvoiceVoiceProfileDomainServerSideEncryptionConfigurationArgs{\n\t\t\t\tKmsKeyArn: exampleKey.Arn,\n\t\t\t},\n\t\t\tDescription: pulumi.String(\"My Voice Profile Domain\"),\n\t\t\tTags: pulumi.StringMap{\n\t\t\t\t\"key1\": pulumi.String(\"value1\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.kms.Key;\nimport com.pulumi.aws.kms.KeyArgs;\nimport com.pulumi.aws.chime.SdkvoiceVoiceProfileDomain;\nimport com.pulumi.aws.chime.SdkvoiceVoiceProfileDomainArgs;\nimport com.pulumi.aws.chime.inputs.SdkvoiceVoiceProfileDomainServerSideEncryptionConfigurationArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var exampleKey = new Key(\"exampleKey\", KeyArgs.builder() \n .description(\"KMS Key for Voice Profile Domain\")\n .deletionWindowInDays(7)\n .build());\n\n var exampleSdkvoiceVoiceProfileDomain = new SdkvoiceVoiceProfileDomain(\"exampleSdkvoiceVoiceProfileDomain\", SdkvoiceVoiceProfileDomainArgs.builder() \n .serverSideEncryptionConfiguration(SdkvoiceVoiceProfileDomainServerSideEncryptionConfigurationArgs.builder()\n .kmsKeyArn(exampleKey.arn())\n .build())\n .description(\"My Voice Profile Domain\")\n .tags(Map.of(\"key1\", \"value1\"))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleKey:\n type: aws:kms:Key\n properties:\n description: KMS Key for Voice Profile Domain\n deletionWindowInDays: 7\n exampleSdkvoiceVoiceProfileDomain:\n type: aws:chime:SdkvoiceVoiceProfileDomain\n properties:\n serverSideEncryptionConfiguration:\n kmsKeyArn: ${exampleKey.arn}\n description: My Voice Profile Domain\n tags:\n key1: value1\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nterraform import {\n\n to = aws_chimesdkvoice_voice_profile_domain.example\n\n id = \"abcdef123456\" } Using `pulumi import`, import AWS Chime SDK Voice Profile Domain using the `id`. For exampleconsole % pulumi import aws_chimesdkvoice_voice_profile_domain.example abcdef123456 ", "properties": { "arn": { "type": "string", @@ -144652,7 +144641,6 @@ } }, "requiredInputs": [ - "name", "serverSideEncryptionConfiguration" ], "stateInputs": { @@ -145362,7 +145350,7 @@ } }, "aws:cleanrooms/collaboration:Collaboration": { - "description": "Provides a AWS Clean Rooms collaboration. All members included in the definition will be invited to\njoin the collaboration and can create memberships.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n### Collaboration with tags\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\n\nconst testCollaboration = new aws.cleanrooms.Collaboration(\"testCollaboration\", {\n creatorDisplayName: \"Creator \",\n creatorMemberAbilities: [\n \"CAN_QUERY\",\n \"CAN_RECEIVE_RESULTS\",\n ],\n dataEncryptionMetadata: {\n allowClearText: true,\n allowDuplicates: true,\n allowJoinsOnColumnsWithDifferentNames: true,\n preserveNulls: false,\n },\n description: \"I made this collaboration with Pulumi!\",\n members: [{\n accountId: \"123456789012\",\n displayName: \"Other member\",\n memberAbilities: [],\n }],\n name: \"pulumi-example-collaboration\",\n queryLogStatus: \"DISABLED\",\n tags: {\n Project: \"Pulumi\",\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_aws as aws\n\ntest_collaboration = aws.cleanrooms.Collaboration(\"testCollaboration\",\n creator_display_name=\"Creator \",\n creator_member_abilities=[\n \"CAN_QUERY\",\n \"CAN_RECEIVE_RESULTS\",\n ],\n data_encryption_metadata=aws.cleanrooms.CollaborationDataEncryptionMetadataArgs(\n allow_clear_text=True,\n allow_duplicates=True,\n allow_joins_on_columns_with_different_names=True,\n preserve_nulls=False,\n ),\n description=\"I made this collaboration with Pulumi!\",\n members=[aws.cleanrooms.CollaborationMemberArgs(\n account_id=\"123456789012\",\n display_name=\"Other member\",\n member_abilities=[],\n )],\n name=\"pulumi-example-collaboration\",\n query_log_status=\"DISABLED\",\n tags={\n \"Project\": \"Pulumi\",\n })\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var testCollaboration = new Aws.CleanRooms.Collaboration(\"testCollaboration\", new()\n {\n CreatorDisplayName = \"Creator \",\n CreatorMemberAbilities = new[]\n {\n \"CAN_QUERY\",\n \"CAN_RECEIVE_RESULTS\",\n },\n DataEncryptionMetadata = new Aws.CleanRooms.Inputs.CollaborationDataEncryptionMetadataArgs\n {\n AllowClearText = true,\n AllowDuplicates = true,\n AllowJoinsOnColumnsWithDifferentNames = true,\n PreserveNulls = false,\n },\n Description = \"I made this collaboration with Pulumi!\",\n Members = new[]\n {\n new Aws.CleanRooms.Inputs.CollaborationMemberArgs\n {\n AccountId = \"123456789012\",\n DisplayName = \"Other member\",\n MemberAbilities = new[] {},\n },\n },\n Name = \"pulumi-example-collaboration\",\n QueryLogStatus = \"DISABLED\",\n Tags = \n {\n { \"Project\", \"Pulumi\" },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/cleanrooms\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := cleanrooms.NewCollaboration(ctx, \"testCollaboration\", \u0026cleanrooms.CollaborationArgs{\n\t\t\tCreatorDisplayName: pulumi.String(\"Creator \"),\n\t\t\tCreatorMemberAbilities: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"CAN_QUERY\"),\n\t\t\t\tpulumi.String(\"CAN_RECEIVE_RESULTS\"),\n\t\t\t},\n\t\t\tDataEncryptionMetadata: \u0026cleanrooms.CollaborationDataEncryptionMetadataArgs{\n\t\t\t\tAllowClearText: pulumi.Bool(true),\n\t\t\t\tAllowDuplicates: pulumi.Bool(true),\n\t\t\t\tAllowJoinsOnColumnsWithDifferentNames: pulumi.Bool(true),\n\t\t\t\tPreserveNulls: pulumi.Bool(false),\n\t\t\t},\n\t\t\tDescription: pulumi.String(\"I made this collaboration with Pulumi!\"),\n\t\t\tMembers: cleanrooms.CollaborationMemberArray{\n\t\t\t\t\u0026cleanrooms.CollaborationMemberArgs{\n\t\t\t\t\tAccountId: pulumi.String(\"123456789012\"),\n\t\t\t\t\tDisplayName: pulumi.String(\"Other member\"),\n\t\t\t\t\tMemberAbilities: pulumi.StringArray{},\n\t\t\t\t},\n\t\t\t},\n\t\t\tName: pulumi.String(\"pulumi-example-collaboration\"),\n\t\t\tQueryLogStatus: pulumi.String(\"DISABLED\"),\n\t\t\tTags: pulumi.StringMap{\n\t\t\t\t\"Project\": pulumi.String(\"Pulumi\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.cleanrooms.Collaboration;\nimport com.pulumi.aws.cleanrooms.CollaborationArgs;\nimport com.pulumi.aws.cleanrooms.inputs.CollaborationDataEncryptionMetadataArgs;\nimport com.pulumi.aws.cleanrooms.inputs.CollaborationMemberArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var testCollaboration = new Collaboration(\"testCollaboration\", CollaborationArgs.builder() \n .creatorDisplayName(\"Creator \")\n .creatorMemberAbilities( \n \"CAN_QUERY\",\n \"CAN_RECEIVE_RESULTS\")\n .dataEncryptionMetadata(CollaborationDataEncryptionMetadataArgs.builder()\n .allowClearText(true)\n .allowDuplicates(true)\n .allowJoinsOnColumnsWithDifferentNames(true)\n .preserveNulls(false)\n .build())\n .description(\"I made this collaboration with Pulumi!\")\n .members(CollaborationMemberArgs.builder()\n .accountId(123456789012)\n .displayName(\"Other member\")\n .memberAbilities()\n .build())\n .name(\"pulumi-example-collaboration\")\n .queryLogStatus(\"DISABLED\")\n .tags(Map.of(\"Project\", \"Pulumi\"))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n testCollaboration:\n type: aws:cleanrooms:Collaboration\n properties:\n creatorDisplayName: 'Creator '\n creatorMemberAbilities:\n - CAN_QUERY\n - CAN_RECEIVE_RESULTS\n dataEncryptionMetadata:\n allowClearText: true\n allowDuplicates: true\n allowJoinsOnColumnsWithDifferentNames: true\n preserveNulls: false\n description: I made this collaboration with Pulumi!\n members:\n - accountId: 1.23456789012e+11\n displayName: Other member\n memberAbilities: []\n name: pulumi-example-collaboration\n queryLogStatus: DISABLED\n tags:\n Project: Pulumi\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "Provides a AWS Clean Rooms collaboration. All members included in the definition will be invited to\njoin the collaboration and can create memberships.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n### Collaboration with tags\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\n\nconst testCollaboration = new aws.cleanrooms.Collaboration(\"testCollaboration\", {\n creatorDisplayName: \"Creator \",\n creatorMemberAbilities: [\n \"CAN_QUERY\",\n \"CAN_RECEIVE_RESULTS\",\n ],\n dataEncryptionMetadata: {\n allowClearText: true,\n allowDuplicates: true,\n allowJoinsOnColumnsWithDifferentNames: true,\n preserveNulls: false,\n },\n description: \"I made this collaboration with Pulumi!\",\n members: [{\n accountId: \"123456789012\",\n displayName: \"Other member\",\n memberAbilities: [],\n }],\n queryLogStatus: \"DISABLED\",\n tags: {\n Project: \"Pulumi\",\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_aws as aws\n\ntest_collaboration = aws.cleanrooms.Collaboration(\"testCollaboration\",\n creator_display_name=\"Creator \",\n creator_member_abilities=[\n \"CAN_QUERY\",\n \"CAN_RECEIVE_RESULTS\",\n ],\n data_encryption_metadata=aws.cleanrooms.CollaborationDataEncryptionMetadataArgs(\n allow_clear_text=True,\n allow_duplicates=True,\n allow_joins_on_columns_with_different_names=True,\n preserve_nulls=False,\n ),\n description=\"I made this collaboration with Pulumi!\",\n members=[aws.cleanrooms.CollaborationMemberArgs(\n account_id=\"123456789012\",\n display_name=\"Other member\",\n member_abilities=[],\n )],\n query_log_status=\"DISABLED\",\n tags={\n \"Project\": \"Pulumi\",\n })\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var testCollaboration = new Aws.CleanRooms.Collaboration(\"testCollaboration\", new()\n {\n CreatorDisplayName = \"Creator \",\n CreatorMemberAbilities = new[]\n {\n \"CAN_QUERY\",\n \"CAN_RECEIVE_RESULTS\",\n },\n DataEncryptionMetadata = new Aws.CleanRooms.Inputs.CollaborationDataEncryptionMetadataArgs\n {\n AllowClearText = true,\n AllowDuplicates = true,\n AllowJoinsOnColumnsWithDifferentNames = true,\n PreserveNulls = false,\n },\n Description = \"I made this collaboration with Pulumi!\",\n Members = new[]\n {\n new Aws.CleanRooms.Inputs.CollaborationMemberArgs\n {\n AccountId = \"123456789012\",\n DisplayName = \"Other member\",\n MemberAbilities = new[] {},\n },\n },\n QueryLogStatus = \"DISABLED\",\n Tags = \n {\n { \"Project\", \"Pulumi\" },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/cleanrooms\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := cleanrooms.NewCollaboration(ctx, \"testCollaboration\", \u0026cleanrooms.CollaborationArgs{\n\t\t\tCreatorDisplayName: pulumi.String(\"Creator \"),\n\t\t\tCreatorMemberAbilities: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"CAN_QUERY\"),\n\t\t\t\tpulumi.String(\"CAN_RECEIVE_RESULTS\"),\n\t\t\t},\n\t\t\tDataEncryptionMetadata: \u0026cleanrooms.CollaborationDataEncryptionMetadataArgs{\n\t\t\t\tAllowClearText: pulumi.Bool(true),\n\t\t\t\tAllowDuplicates: pulumi.Bool(true),\n\t\t\t\tAllowJoinsOnColumnsWithDifferentNames: pulumi.Bool(true),\n\t\t\t\tPreserveNulls: pulumi.Bool(false),\n\t\t\t},\n\t\t\tDescription: pulumi.String(\"I made this collaboration with Pulumi!\"),\n\t\t\tMembers: cleanrooms.CollaborationMemberArray{\n\t\t\t\t\u0026cleanrooms.CollaborationMemberArgs{\n\t\t\t\t\tAccountId: pulumi.String(\"123456789012\"),\n\t\t\t\t\tDisplayName: pulumi.String(\"Other member\"),\n\t\t\t\t\tMemberAbilities: pulumi.StringArray{},\n\t\t\t\t},\n\t\t\t},\n\t\t\tQueryLogStatus: pulumi.String(\"DISABLED\"),\n\t\t\tTags: pulumi.StringMap{\n\t\t\t\t\"Project\": pulumi.String(\"Pulumi\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.cleanrooms.Collaboration;\nimport com.pulumi.aws.cleanrooms.CollaborationArgs;\nimport com.pulumi.aws.cleanrooms.inputs.CollaborationDataEncryptionMetadataArgs;\nimport com.pulumi.aws.cleanrooms.inputs.CollaborationMemberArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var testCollaboration = new Collaboration(\"testCollaboration\", CollaborationArgs.builder() \n .creatorDisplayName(\"Creator \")\n .creatorMemberAbilities( \n \"CAN_QUERY\",\n \"CAN_RECEIVE_RESULTS\")\n .dataEncryptionMetadata(CollaborationDataEncryptionMetadataArgs.builder()\n .allowClearText(true)\n .allowDuplicates(true)\n .allowJoinsOnColumnsWithDifferentNames(true)\n .preserveNulls(false)\n .build())\n .description(\"I made this collaboration with Pulumi!\")\n .members(CollaborationMemberArgs.builder()\n .accountId(123456789012)\n .displayName(\"Other member\")\n .memberAbilities()\n .build())\n .queryLogStatus(\"DISABLED\")\n .tags(Map.of(\"Project\", \"Pulumi\"))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n testCollaboration:\n type: aws:cleanrooms:Collaboration\n properties:\n creatorDisplayName: 'Creator '\n creatorMemberAbilities:\n - CAN_QUERY\n - CAN_RECEIVE_RESULTS\n dataEncryptionMetadata:\n allowClearText: true\n allowDuplicates: true\n allowJoinsOnColumnsWithDifferentNames: true\n preserveNulls: false\n description: I made this collaboration with Pulumi!\n members:\n - accountId: 1.23456789012e+11\n displayName: Other member\n memberAbilities: []\n queryLogStatus: DISABLED\n tags:\n Project: Pulumi\n```\n{{% /example %}}\n{{% /examples %}}", "properties": { "arn": { "type": "string", @@ -145486,7 +145474,6 @@ "creatorDisplayName", "creatorMemberAbilities", "description", - "name", "queryLogStatus" ], "stateInputs": { @@ -147379,7 +147366,7 @@ } }, "aws:cloudfront/fieldLevelEncryptionProfile:FieldLevelEncryptionProfile": { - "description": "Provides a CloudFront Field-level Encryption Profile resource.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\nimport * as fs from \"fs\";\n\nconst example = new aws.cloudfront.PublicKey(\"example\", {\n comment: \"test public key\",\n encodedKey: fs.readFileSync(\"public_key.pem\"),\n name: \"test_key\",\n});\nconst test = new aws.cloudfront.FieldLevelEncryptionProfile(\"test\", {\n comment: \"test comment\",\n encryptionEntities: {\n items: [{\n publicKeyId: example.id,\n providerId: \"test provider\",\n fieldPatterns: {\n items: [\"DateOfBirth\"],\n },\n }],\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_aws as aws\n\nexample = aws.cloudfront.PublicKey(\"example\",\n comment=\"test public key\",\n encoded_key=(lambda path: open(path).read())(\"public_key.pem\"),\n name=\"test_key\")\ntest = aws.cloudfront.FieldLevelEncryptionProfile(\"test\",\n comment=\"test comment\",\n encryption_entities=aws.cloudfront.FieldLevelEncryptionProfileEncryptionEntitiesArgs(\n items=[aws.cloudfront.FieldLevelEncryptionProfileEncryptionEntitiesItemArgs(\n public_key_id=example.id,\n provider_id=\"test provider\",\n field_patterns=aws.cloudfront.FieldLevelEncryptionProfileEncryptionEntitiesItemFieldPatternsArgs(\n items=[\"DateOfBirth\"],\n ),\n )],\n ))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.IO;\nusing System.Linq;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new Aws.CloudFront.PublicKey(\"example\", new()\n {\n Comment = \"test public key\",\n EncodedKey = File.ReadAllText(\"public_key.pem\"),\n Name = \"test_key\",\n });\n\n var test = new Aws.CloudFront.FieldLevelEncryptionProfile(\"test\", new()\n {\n Comment = \"test comment\",\n EncryptionEntities = new Aws.CloudFront.Inputs.FieldLevelEncryptionProfileEncryptionEntitiesArgs\n {\n Items = new[]\n {\n new Aws.CloudFront.Inputs.FieldLevelEncryptionProfileEncryptionEntitiesItemArgs\n {\n PublicKeyId = example.Id,\n ProviderId = \"test provider\",\n FieldPatterns = new Aws.CloudFront.Inputs.FieldLevelEncryptionProfileEncryptionEntitiesItemFieldPatternsArgs\n {\n Items = new[]\n {\n \"DateOfBirth\",\n },\n },\n },\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"os\"\n\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/cloudfront\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc readFileOrPanic(path string) pulumi.StringPtrInput {\n\tdata, err := os.ReadFile(path)\n\tif err != nil {\n\t\tpanic(err.Error())\n\t}\n\treturn pulumi.String(string(data))\n}\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texample, err := cloudfront.NewPublicKey(ctx, \"example\", \u0026cloudfront.PublicKeyArgs{\n\t\t\tComment: pulumi.String(\"test public key\"),\n\t\t\tEncodedKey: readFileOrPanic(\"public_key.pem\"),\n\t\t\tName: pulumi.String(\"test_key\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = cloudfront.NewFieldLevelEncryptionProfile(ctx, \"test\", \u0026cloudfront.FieldLevelEncryptionProfileArgs{\n\t\t\tComment: pulumi.String(\"test comment\"),\n\t\t\tEncryptionEntities: \u0026cloudfront.FieldLevelEncryptionProfileEncryptionEntitiesArgs{\n\t\t\t\tItems: cloudfront.FieldLevelEncryptionProfileEncryptionEntitiesItemArray{\n\t\t\t\t\t\u0026cloudfront.FieldLevelEncryptionProfileEncryptionEntitiesItemArgs{\n\t\t\t\t\t\tPublicKeyId: example.ID(),\n\t\t\t\t\t\tProviderId: pulumi.String(\"test provider\"),\n\t\t\t\t\t\tFieldPatterns: \u0026cloudfront.FieldLevelEncryptionProfileEncryptionEntitiesItemFieldPatternsArgs{\n\t\t\t\t\t\t\tItems: pulumi.StringArray{\n\t\t\t\t\t\t\t\tpulumi.String(\"DateOfBirth\"),\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.cloudfront.PublicKey;\nimport com.pulumi.aws.cloudfront.PublicKeyArgs;\nimport com.pulumi.aws.cloudfront.FieldLevelEncryptionProfile;\nimport com.pulumi.aws.cloudfront.FieldLevelEncryptionProfileArgs;\nimport com.pulumi.aws.cloudfront.inputs.FieldLevelEncryptionProfileEncryptionEntitiesArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new PublicKey(\"example\", PublicKeyArgs.builder() \n .comment(\"test public key\")\n .encodedKey(Files.readString(Paths.get(\"public_key.pem\")))\n .name(\"test_key\")\n .build());\n\n var test = new FieldLevelEncryptionProfile(\"test\", FieldLevelEncryptionProfileArgs.builder() \n .comment(\"test comment\")\n .encryptionEntities(FieldLevelEncryptionProfileEncryptionEntitiesArgs.builder()\n .items(FieldLevelEncryptionProfileEncryptionEntitiesItemArgs.builder()\n .publicKeyId(example.id())\n .providerId(\"test provider\")\n .fieldPatterns(FieldLevelEncryptionProfileEncryptionEntitiesItemFieldPatternsArgs.builder()\n .items(\"DateOfBirth\")\n .build())\n .build())\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: aws:cloudfront:PublicKey\n properties:\n comment: test public key\n encodedKey:\n fn::readFile: public_key.pem\n name: test_key\n test:\n type: aws:cloudfront:FieldLevelEncryptionProfile\n properties:\n comment: test comment\n encryptionEntities:\n items:\n - publicKeyId: ${example.id}\n providerId: test provider\n fieldPatterns:\n items:\n - DateOfBirth\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nterraform import {\n\n to = aws_cloudfront_field_level_encryption_profile.profile\n\n id = \"K3D5EWEUDCCXON\" } Using `pulumi import`, import Cloudfront Field Level Encryption Profile using the `id`. For exampleconsole % pulumi import aws_cloudfront_field_level_encryption_profile.profile K3D5EWEUDCCXON ", + "description": "Provides a CloudFront Field-level Encryption Profile resource.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\nimport * as fs from \"fs\";\n\nconst example = new aws.cloudfront.PublicKey(\"example\", {\n comment: \"test public key\",\n encodedKey: fs.readFileSync(\"public_key.pem\"),\n});\nconst test = new aws.cloudfront.FieldLevelEncryptionProfile(\"test\", {\n comment: \"test comment\",\n encryptionEntities: {\n items: [{\n publicKeyId: example.id,\n providerId: \"test provider\",\n fieldPatterns: {\n items: [\"DateOfBirth\"],\n },\n }],\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_aws as aws\n\nexample = aws.cloudfront.PublicKey(\"example\",\n comment=\"test public key\",\n encoded_key=(lambda path: open(path).read())(\"public_key.pem\"))\ntest = aws.cloudfront.FieldLevelEncryptionProfile(\"test\",\n comment=\"test comment\",\n encryption_entities=aws.cloudfront.FieldLevelEncryptionProfileEncryptionEntitiesArgs(\n items=[aws.cloudfront.FieldLevelEncryptionProfileEncryptionEntitiesItemArgs(\n public_key_id=example.id,\n provider_id=\"test provider\",\n field_patterns=aws.cloudfront.FieldLevelEncryptionProfileEncryptionEntitiesItemFieldPatternsArgs(\n items=[\"DateOfBirth\"],\n ),\n )],\n ))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.IO;\nusing System.Linq;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new Aws.CloudFront.PublicKey(\"example\", new()\n {\n Comment = \"test public key\",\n EncodedKey = File.ReadAllText(\"public_key.pem\"),\n });\n\n var test = new Aws.CloudFront.FieldLevelEncryptionProfile(\"test\", new()\n {\n Comment = \"test comment\",\n EncryptionEntities = new Aws.CloudFront.Inputs.FieldLevelEncryptionProfileEncryptionEntitiesArgs\n {\n Items = new[]\n {\n new Aws.CloudFront.Inputs.FieldLevelEncryptionProfileEncryptionEntitiesItemArgs\n {\n PublicKeyId = example.Id,\n ProviderId = \"test provider\",\n FieldPatterns = new Aws.CloudFront.Inputs.FieldLevelEncryptionProfileEncryptionEntitiesItemFieldPatternsArgs\n {\n Items = new[]\n {\n \"DateOfBirth\",\n },\n },\n },\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"os\"\n\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/cloudfront\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc readFileOrPanic(path string) pulumi.StringPtrInput {\n\tdata, err := os.ReadFile(path)\n\tif err != nil {\n\t\tpanic(err.Error())\n\t}\n\treturn pulumi.String(string(data))\n}\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texample, err := cloudfront.NewPublicKey(ctx, \"example\", \u0026cloudfront.PublicKeyArgs{\n\t\t\tComment: pulumi.String(\"test public key\"),\n\t\t\tEncodedKey: readFileOrPanic(\"public_key.pem\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = cloudfront.NewFieldLevelEncryptionProfile(ctx, \"test\", \u0026cloudfront.FieldLevelEncryptionProfileArgs{\n\t\t\tComment: pulumi.String(\"test comment\"),\n\t\t\tEncryptionEntities: \u0026cloudfront.FieldLevelEncryptionProfileEncryptionEntitiesArgs{\n\t\t\t\tItems: cloudfront.FieldLevelEncryptionProfileEncryptionEntitiesItemArray{\n\t\t\t\t\t\u0026cloudfront.FieldLevelEncryptionProfileEncryptionEntitiesItemArgs{\n\t\t\t\t\t\tPublicKeyId: example.ID(),\n\t\t\t\t\t\tProviderId: pulumi.String(\"test provider\"),\n\t\t\t\t\t\tFieldPatterns: \u0026cloudfront.FieldLevelEncryptionProfileEncryptionEntitiesItemFieldPatternsArgs{\n\t\t\t\t\t\t\tItems: pulumi.StringArray{\n\t\t\t\t\t\t\t\tpulumi.String(\"DateOfBirth\"),\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.cloudfront.PublicKey;\nimport com.pulumi.aws.cloudfront.PublicKeyArgs;\nimport com.pulumi.aws.cloudfront.FieldLevelEncryptionProfile;\nimport com.pulumi.aws.cloudfront.FieldLevelEncryptionProfileArgs;\nimport com.pulumi.aws.cloudfront.inputs.FieldLevelEncryptionProfileEncryptionEntitiesArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new PublicKey(\"example\", PublicKeyArgs.builder() \n .comment(\"test public key\")\n .encodedKey(Files.readString(Paths.get(\"public_key.pem\")))\n .build());\n\n var test = new FieldLevelEncryptionProfile(\"test\", FieldLevelEncryptionProfileArgs.builder() \n .comment(\"test comment\")\n .encryptionEntities(FieldLevelEncryptionProfileEncryptionEntitiesArgs.builder()\n .items(FieldLevelEncryptionProfileEncryptionEntitiesItemArgs.builder()\n .publicKeyId(example.id())\n .providerId(\"test provider\")\n .fieldPatterns(FieldLevelEncryptionProfileEncryptionEntitiesItemFieldPatternsArgs.builder()\n .items(\"DateOfBirth\")\n .build())\n .build())\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: aws:cloudfront:PublicKey\n properties:\n comment: test public key\n encodedKey:\n fn::readFile: public_key.pem\n test:\n type: aws:cloudfront:FieldLevelEncryptionProfile\n properties:\n comment: test comment\n encryptionEntities:\n items:\n - publicKeyId: ${example.id}\n providerId: test provider\n fieldPatterns:\n items:\n - DateOfBirth\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nterraform import {\n\n to = aws_cloudfront_field_level_encryption_profile.profile\n\n id = \"K3D5EWEUDCCXON\" } Using `pulumi import`, import Cloudfront Field Level Encryption Profile using the `id`. For exampleconsole % pulumi import aws_cloudfront_field_level_encryption_profile.profile K3D5EWEUDCCXON ", "properties": { "callerReference": { "type": "string", @@ -147573,7 +147560,7 @@ } }, "aws:cloudfront/keyGroup:KeyGroup": { - "description": "{{% examples %}}\n## Example Usage\n{{% example %}}\n\nThe following example below creates a CloudFront key group.\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\nimport * as fs from \"fs\";\n\nconst examplePublicKey = new aws.cloudfront.PublicKey(\"examplePublicKey\", {\n comment: \"example public key\",\n encodedKey: fs.readFileSync(\"public_key.pem\"),\n name: \"example-key\",\n});\nconst exampleKeyGroup = new aws.cloudfront.KeyGroup(\"exampleKeyGroup\", {\n comment: \"example key group\",\n items: [examplePublicKey.id],\n});\n```\n```python\nimport pulumi\nimport pulumi_aws as aws\n\nexample_public_key = aws.cloudfront.PublicKey(\"examplePublicKey\",\n comment=\"example public key\",\n encoded_key=(lambda path: open(path).read())(\"public_key.pem\"),\n name=\"example-key\")\nexample_key_group = aws.cloudfront.KeyGroup(\"exampleKeyGroup\",\n comment=\"example key group\",\n items=[example_public_key.id])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.IO;\nusing System.Linq;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var examplePublicKey = new Aws.CloudFront.PublicKey(\"examplePublicKey\", new()\n {\n Comment = \"example public key\",\n EncodedKey = File.ReadAllText(\"public_key.pem\"),\n Name = \"example-key\",\n });\n\n var exampleKeyGroup = new Aws.CloudFront.KeyGroup(\"exampleKeyGroup\", new()\n {\n Comment = \"example key group\",\n Items = new[]\n {\n examplePublicKey.Id,\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"os\"\n\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/cloudfront\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc readFileOrPanic(path string) pulumi.StringPtrInput {\n\tdata, err := os.ReadFile(path)\n\tif err != nil {\n\t\tpanic(err.Error())\n\t}\n\treturn pulumi.String(string(data))\n}\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texamplePublicKey, err := cloudfront.NewPublicKey(ctx, \"examplePublicKey\", \u0026cloudfront.PublicKeyArgs{\n\t\t\tComment: pulumi.String(\"example public key\"),\n\t\t\tEncodedKey: readFileOrPanic(\"public_key.pem\"),\n\t\t\tName: pulumi.String(\"example-key\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = cloudfront.NewKeyGroup(ctx, \"exampleKeyGroup\", \u0026cloudfront.KeyGroupArgs{\n\t\t\tComment: pulumi.String(\"example key group\"),\n\t\t\tItems: pulumi.StringArray{\n\t\t\t\texamplePublicKey.ID(),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.cloudfront.PublicKey;\nimport com.pulumi.aws.cloudfront.PublicKeyArgs;\nimport com.pulumi.aws.cloudfront.KeyGroup;\nimport com.pulumi.aws.cloudfront.KeyGroupArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var examplePublicKey = new PublicKey(\"examplePublicKey\", PublicKeyArgs.builder() \n .comment(\"example public key\")\n .encodedKey(Files.readString(Paths.get(\"public_key.pem\")))\n .name(\"example-key\")\n .build());\n\n var exampleKeyGroup = new KeyGroup(\"exampleKeyGroup\", KeyGroupArgs.builder() \n .comment(\"example key group\")\n .items(examplePublicKey.id())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n examplePublicKey:\n type: aws:cloudfront:PublicKey\n properties:\n comment: example public key\n encodedKey:\n fn::readFile: public_key.pem\n name: example-key\n exampleKeyGroup:\n type: aws:cloudfront:KeyGroup\n properties:\n comment: example key group\n items:\n - ${examplePublicKey.id}\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nterraform import {\n\n to = aws_cloudfront_key_group.example\n\n id = \"4b4f2r1c-315d-5c2e-f093-216t50jed10f\" } Using `pulumi import`, import CloudFront Key Group using the `id`. For exampleconsole % pulumi import aws_cloudfront_key_group.example 4b4f2r1c-315d-5c2e-f093-216t50jed10f ", + "description": "{{% examples %}}\n## Example Usage\n{{% example %}}\n\nThe following example below creates a CloudFront key group.\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\nimport * as fs from \"fs\";\n\nconst examplePublicKey = new aws.cloudfront.PublicKey(\"examplePublicKey\", {\n comment: \"example public key\",\n encodedKey: fs.readFileSync(\"public_key.pem\"),\n});\nconst exampleKeyGroup = new aws.cloudfront.KeyGroup(\"exampleKeyGroup\", {\n comment: \"example key group\",\n items: [examplePublicKey.id],\n});\n```\n```python\nimport pulumi\nimport pulumi_aws as aws\n\nexample_public_key = aws.cloudfront.PublicKey(\"examplePublicKey\",\n comment=\"example public key\",\n encoded_key=(lambda path: open(path).read())(\"public_key.pem\"))\nexample_key_group = aws.cloudfront.KeyGroup(\"exampleKeyGroup\",\n comment=\"example key group\",\n items=[example_public_key.id])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.IO;\nusing System.Linq;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var examplePublicKey = new Aws.CloudFront.PublicKey(\"examplePublicKey\", new()\n {\n Comment = \"example public key\",\n EncodedKey = File.ReadAllText(\"public_key.pem\"),\n });\n\n var exampleKeyGroup = new Aws.CloudFront.KeyGroup(\"exampleKeyGroup\", new()\n {\n Comment = \"example key group\",\n Items = new[]\n {\n examplePublicKey.Id,\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"os\"\n\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/cloudfront\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc readFileOrPanic(path string) pulumi.StringPtrInput {\n\tdata, err := os.ReadFile(path)\n\tif err != nil {\n\t\tpanic(err.Error())\n\t}\n\treturn pulumi.String(string(data))\n}\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texamplePublicKey, err := cloudfront.NewPublicKey(ctx, \"examplePublicKey\", \u0026cloudfront.PublicKeyArgs{\n\t\t\tComment: pulumi.String(\"example public key\"),\n\t\t\tEncodedKey: readFileOrPanic(\"public_key.pem\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = cloudfront.NewKeyGroup(ctx, \"exampleKeyGroup\", \u0026cloudfront.KeyGroupArgs{\n\t\t\tComment: pulumi.String(\"example key group\"),\n\t\t\tItems: pulumi.StringArray{\n\t\t\t\texamplePublicKey.ID(),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.cloudfront.PublicKey;\nimport com.pulumi.aws.cloudfront.PublicKeyArgs;\nimport com.pulumi.aws.cloudfront.KeyGroup;\nimport com.pulumi.aws.cloudfront.KeyGroupArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var examplePublicKey = new PublicKey(\"examplePublicKey\", PublicKeyArgs.builder() \n .comment(\"example public key\")\n .encodedKey(Files.readString(Paths.get(\"public_key.pem\")))\n .build());\n\n var exampleKeyGroup = new KeyGroup(\"exampleKeyGroup\", KeyGroupArgs.builder() \n .comment(\"example key group\")\n .items(examplePublicKey.id())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n examplePublicKey:\n type: aws:cloudfront:PublicKey\n properties:\n comment: example public key\n encodedKey:\n fn::readFile: public_key.pem\n exampleKeyGroup:\n type: aws:cloudfront:KeyGroup\n properties:\n comment: example key group\n items:\n - ${examplePublicKey.id}\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nterraform import {\n\n to = aws_cloudfront_key_group.example\n\n id = \"4b4f2r1c-315d-5c2e-f093-216t50jed10f\" } Using `pulumi import`, import CloudFront Key Group using the `id`. For exampleconsole % pulumi import aws_cloudfront_key_group.example 4b4f2r1c-315d-5c2e-f093-216t50jed10f ", "properties": { "comment": { "type": "string", @@ -147967,7 +147954,7 @@ } }, "aws:cloudfront/publicKey:PublicKey": { - "description": "{{% examples %}}\n## Example Usage\n{{% example %}}\n\nThe following example below creates a CloudFront public key.\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\nimport * as fs from \"fs\";\n\nconst example = new aws.cloudfront.PublicKey(\"example\", {\n comment: \"test public key\",\n encodedKey: fs.readFileSync(\"public_key.pem\"),\n name: \"test_key\",\n});\n```\n```python\nimport pulumi\nimport pulumi_aws as aws\n\nexample = aws.cloudfront.PublicKey(\"example\",\n comment=\"test public key\",\n encoded_key=(lambda path: open(path).read())(\"public_key.pem\"),\n name=\"test_key\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.IO;\nusing System.Linq;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new Aws.CloudFront.PublicKey(\"example\", new()\n {\n Comment = \"test public key\",\n EncodedKey = File.ReadAllText(\"public_key.pem\"),\n Name = \"test_key\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"os\"\n\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/cloudfront\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc readFileOrPanic(path string) pulumi.StringPtrInput {\n\tdata, err := os.ReadFile(path)\n\tif err != nil {\n\t\tpanic(err.Error())\n\t}\n\treturn pulumi.String(string(data))\n}\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := cloudfront.NewPublicKey(ctx, \"example\", \u0026cloudfront.PublicKeyArgs{\n\t\t\tComment: pulumi.String(\"test public key\"),\n\t\t\tEncodedKey: readFileOrPanic(\"public_key.pem\"),\n\t\t\tName: pulumi.String(\"test_key\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.cloudfront.PublicKey;\nimport com.pulumi.aws.cloudfront.PublicKeyArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new PublicKey(\"example\", PublicKeyArgs.builder() \n .comment(\"test public key\")\n .encodedKey(Files.readString(Paths.get(\"public_key.pem\")))\n .name(\"test_key\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: aws:cloudfront:PublicKey\n properties:\n comment: test public key\n encodedKey:\n fn::readFile: public_key.pem\n name: test_key\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nterraform import {\n\n to = aws_cloudfront_public_key.example\n\n id = \"K3D5EWEUDCCXON\" } Using `pulumi import`, import CloudFront Public Key using the `id`. For exampleconsole % pulumi import aws_cloudfront_public_key.example K3D5EWEUDCCXON ", + "description": "{{% examples %}}\n## Example Usage\n{{% example %}}\n\nThe following example below creates a CloudFront public key.\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\nimport * as fs from \"fs\";\n\nconst example = new aws.cloudfront.PublicKey(\"example\", {\n comment: \"test public key\",\n encodedKey: fs.readFileSync(\"public_key.pem\"),\n});\n```\n```python\nimport pulumi\nimport pulumi_aws as aws\n\nexample = aws.cloudfront.PublicKey(\"example\",\n comment=\"test public key\",\n encoded_key=(lambda path: open(path).read())(\"public_key.pem\"))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.IO;\nusing System.Linq;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new Aws.CloudFront.PublicKey(\"example\", new()\n {\n Comment = \"test public key\",\n EncodedKey = File.ReadAllText(\"public_key.pem\"),\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"os\"\n\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/cloudfront\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc readFileOrPanic(path string) pulumi.StringPtrInput {\n\tdata, err := os.ReadFile(path)\n\tif err != nil {\n\t\tpanic(err.Error())\n\t}\n\treturn pulumi.String(string(data))\n}\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := cloudfront.NewPublicKey(ctx, \"example\", \u0026cloudfront.PublicKeyArgs{\n\t\t\tComment: pulumi.String(\"test public key\"),\n\t\t\tEncodedKey: readFileOrPanic(\"public_key.pem\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.cloudfront.PublicKey;\nimport com.pulumi.aws.cloudfront.PublicKeyArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new PublicKey(\"example\", PublicKeyArgs.builder() \n .comment(\"test public key\")\n .encodedKey(Files.readString(Paths.get(\"public_key.pem\")))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: aws:cloudfront:PublicKey\n properties:\n comment: test public key\n encodedKey:\n fn::readFile: public_key.pem\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nterraform import {\n\n to = aws_cloudfront_public_key.example\n\n id = \"K3D5EWEUDCCXON\" } Using `pulumi import`, import CloudFront Public Key using the `id`. For exampleconsole % pulumi import aws_cloudfront_public_key.example K3D5EWEUDCCXON ", "properties": { "callerReference": { "type": "string", @@ -202335,7 +202322,7 @@ } }, "aws:emrcontainers/jobTemplate:JobTemplate": { - "description": "Manages an EMR Containers (EMR on EKS) Job Template.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n### Basic Usage\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\n\nconst example = new aws.emrcontainers.JobTemplate(\"example\", {\n jobTemplateData: {\n executionRoleArn: aws_iam_role.example.arn,\n releaseLabel: \"emr-6.10.0-latest\",\n jobDriver: {\n sparkSqlJobDriver: {\n entryPoint: \"default\",\n },\n },\n },\n name: \"example\",\n});\n```\n```python\nimport pulumi\nimport pulumi_aws as aws\n\nexample = aws.emrcontainers.JobTemplate(\"example\",\n job_template_data=aws.emrcontainers.JobTemplateJobTemplateDataArgs(\n execution_role_arn=aws_iam_role[\"example\"][\"arn\"],\n release_label=\"emr-6.10.0-latest\",\n job_driver=aws.emrcontainers.JobTemplateJobTemplateDataJobDriverArgs(\n spark_sql_job_driver=aws.emrcontainers.JobTemplateJobTemplateDataJobDriverSparkSqlJobDriverArgs(\n entry_point=\"default\",\n ),\n ),\n ),\n name=\"example\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new Aws.EmrContainers.JobTemplate(\"example\", new()\n {\n JobTemplateData = new Aws.EmrContainers.Inputs.JobTemplateJobTemplateDataArgs\n {\n ExecutionRoleArn = aws_iam_role.Example.Arn,\n ReleaseLabel = \"emr-6.10.0-latest\",\n JobDriver = new Aws.EmrContainers.Inputs.JobTemplateJobTemplateDataJobDriverArgs\n {\n SparkSqlJobDriver = new Aws.EmrContainers.Inputs.JobTemplateJobTemplateDataJobDriverSparkSqlJobDriverArgs\n {\n EntryPoint = \"default\",\n },\n },\n },\n Name = \"example\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/emrcontainers\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := emrcontainers.NewJobTemplate(ctx, \"example\", \u0026emrcontainers.JobTemplateArgs{\n\t\t\tJobTemplateData: \u0026emrcontainers.JobTemplateJobTemplateDataArgs{\n\t\t\t\tExecutionRoleArn: pulumi.Any(aws_iam_role.Example.Arn),\n\t\t\t\tReleaseLabel: pulumi.String(\"emr-6.10.0-latest\"),\n\t\t\t\tJobDriver: \u0026emrcontainers.JobTemplateJobTemplateDataJobDriverArgs{\n\t\t\t\t\tSparkSqlJobDriver: \u0026emrcontainers.JobTemplateJobTemplateDataJobDriverSparkSqlJobDriverArgs{\n\t\t\t\t\t\tEntryPoint: pulumi.String(\"default\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tName: pulumi.String(\"example\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.emrcontainers.JobTemplate;\nimport com.pulumi.aws.emrcontainers.JobTemplateArgs;\nimport com.pulumi.aws.emrcontainers.inputs.JobTemplateJobTemplateDataArgs;\nimport com.pulumi.aws.emrcontainers.inputs.JobTemplateJobTemplateDataJobDriverArgs;\nimport com.pulumi.aws.emrcontainers.inputs.JobTemplateJobTemplateDataJobDriverSparkSqlJobDriverArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new JobTemplate(\"example\", JobTemplateArgs.builder() \n .jobTemplateData(JobTemplateJobTemplateDataArgs.builder()\n .executionRoleArn(aws_iam_role.example().arn())\n .releaseLabel(\"emr-6.10.0-latest\")\n .jobDriver(JobTemplateJobTemplateDataJobDriverArgs.builder()\n .sparkSqlJobDriver(JobTemplateJobTemplateDataJobDriverSparkSqlJobDriverArgs.builder()\n .entryPoint(\"default\")\n .build())\n .build())\n .build())\n .name(\"example\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: aws:emrcontainers:JobTemplate\n properties:\n jobTemplateData:\n executionRoleArn: ${aws_iam_role.example.arn}\n releaseLabel: emr-6.10.0-latest\n jobDriver:\n sparkSqlJobDriver:\n entryPoint: default\n name: example\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nterraform import {\n\n to = aws_emrcontainers_job_template.example\n\n id = \"a1b2c3d4e5f6g7h8i9j10k11l\" } Using `pulumi import`, import EKS job templates using the `id`. For exampleconsole % pulumi import aws_emrcontainers_job_template.example a1b2c3d4e5f6g7h8i9j10k11l ", + "description": "Manages an EMR Containers (EMR on EKS) Job Template.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n### Basic Usage\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\n\nconst example = new aws.emrcontainers.JobTemplate(\"example\", {jobTemplateData: {\n executionRoleArn: aws_iam_role.example.arn,\n releaseLabel: \"emr-6.10.0-latest\",\n jobDriver: {\n sparkSqlJobDriver: {\n entryPoint: \"default\",\n },\n },\n}});\n```\n```python\nimport pulumi\nimport pulumi_aws as aws\n\nexample = aws.emrcontainers.JobTemplate(\"example\", job_template_data=aws.emrcontainers.JobTemplateJobTemplateDataArgs(\n execution_role_arn=aws_iam_role[\"example\"][\"arn\"],\n release_label=\"emr-6.10.0-latest\",\n job_driver=aws.emrcontainers.JobTemplateJobTemplateDataJobDriverArgs(\n spark_sql_job_driver=aws.emrcontainers.JobTemplateJobTemplateDataJobDriverSparkSqlJobDriverArgs(\n entry_point=\"default\",\n ),\n ),\n))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new Aws.EmrContainers.JobTemplate(\"example\", new()\n {\n JobTemplateData = new Aws.EmrContainers.Inputs.JobTemplateJobTemplateDataArgs\n {\n ExecutionRoleArn = aws_iam_role.Example.Arn,\n ReleaseLabel = \"emr-6.10.0-latest\",\n JobDriver = new Aws.EmrContainers.Inputs.JobTemplateJobTemplateDataJobDriverArgs\n {\n SparkSqlJobDriver = new Aws.EmrContainers.Inputs.JobTemplateJobTemplateDataJobDriverSparkSqlJobDriverArgs\n {\n EntryPoint = \"default\",\n },\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/emrcontainers\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := emrcontainers.NewJobTemplate(ctx, \"example\", \u0026emrcontainers.JobTemplateArgs{\n\t\t\tJobTemplateData: \u0026emrcontainers.JobTemplateJobTemplateDataArgs{\n\t\t\t\tExecutionRoleArn: pulumi.Any(aws_iam_role.Example.Arn),\n\t\t\t\tReleaseLabel: pulumi.String(\"emr-6.10.0-latest\"),\n\t\t\t\tJobDriver: \u0026emrcontainers.JobTemplateJobTemplateDataJobDriverArgs{\n\t\t\t\t\tSparkSqlJobDriver: \u0026emrcontainers.JobTemplateJobTemplateDataJobDriverSparkSqlJobDriverArgs{\n\t\t\t\t\t\tEntryPoint: pulumi.String(\"default\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.emrcontainers.JobTemplate;\nimport com.pulumi.aws.emrcontainers.JobTemplateArgs;\nimport com.pulumi.aws.emrcontainers.inputs.JobTemplateJobTemplateDataArgs;\nimport com.pulumi.aws.emrcontainers.inputs.JobTemplateJobTemplateDataJobDriverArgs;\nimport com.pulumi.aws.emrcontainers.inputs.JobTemplateJobTemplateDataJobDriverSparkSqlJobDriverArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new JobTemplate(\"example\", JobTemplateArgs.builder() \n .jobTemplateData(JobTemplateJobTemplateDataArgs.builder()\n .executionRoleArn(aws_iam_role.example().arn())\n .releaseLabel(\"emr-6.10.0-latest\")\n .jobDriver(JobTemplateJobTemplateDataJobDriverArgs.builder()\n .sparkSqlJobDriver(JobTemplateJobTemplateDataJobDriverSparkSqlJobDriverArgs.builder()\n .entryPoint(\"default\")\n .build())\n .build())\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: aws:emrcontainers:JobTemplate\n properties:\n jobTemplateData:\n executionRoleArn: ${aws_iam_role.example.arn}\n releaseLabel: emr-6.10.0-latest\n jobDriver:\n sparkSqlJobDriver:\n entryPoint: default\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nterraform import {\n\n to = aws_emrcontainers_job_template.example\n\n id = \"a1b2c3d4e5f6g7h8i9j10k11l\" } Using `pulumi import`, import EKS job templates using the `id`. For exampleconsole % pulumi import aws_emrcontainers_job_template.example a1b2c3d4e5f6g7h8i9j10k11l ", "properties": { "arn": { "type": "string", @@ -202400,8 +202387,7 @@ } }, "requiredInputs": [ - "jobTemplateData", - "name" + "jobTemplateData" ], "stateInputs": { "description": "Input properties used for looking up and filtering JobTemplate resources.\n", @@ -203515,7 +203501,7 @@ } }, "aws:finspace/kxCluster:KxCluster": { - "description": "Resource for managing an AWS FinSpace Kx Cluster.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n### Basic Usage\n\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.finspace.KxCluster;\nimport com.pulumi.aws.finspace.KxClusterArgs;\nimport com.pulumi.aws.finspace.inputs.KxClusterCapacityConfigurationArgs;\nimport com.pulumi.aws.finspace.inputs.KxClusterVpcConfigurationArgs;\nimport com.pulumi.aws.finspace.inputs.KxClusterCacheStorageConfigurationArgs;\nimport com.pulumi.aws.finspace.inputs.KxClusterDatabaseArgs;\nimport com.pulumi.aws.finspace.inputs.KxClusterCodeArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new KxCluster(\"example\", KxClusterArgs.builder() \n .name(\"my-tf-kx-cluster\")\n .environmentId(aws_finspace_kx_environment.example().id())\n .type(\"HDB\")\n .releaseLabel(\"1.0\")\n .azMode(\"SINGLE\")\n .availabilityZoneId(\"use1-az2\")\n .capacityConfiguration(KxClusterCapacityConfigurationArgs.builder()\n .nodeType(\"kx.s.2xlarge\")\n .nodeCount(2)\n .build())\n .vpcConfiguration(KxClusterVpcConfigurationArgs.builder()\n .vpcId(aws_vpc.test().id())\n .securityGroupIds(aws_security_group.example().id())\n .subnetIds(aws_subnet.example().id())\n .ipAddressType(\"IP_V4\")\n .build())\n .cacheStorageConfigurations(KxClusterCacheStorageConfigurationArgs.builder()\n .type(\"CACHE_1000\")\n .size(1200)\n .build())\n .databases(KxClusterDatabaseArgs.builder()\n .databaseName(aws_finspace_kx_database.example().name())\n .cacheConfiguration(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))\n .build())\n .code(KxClusterCodeArgs.builder()\n .s3Bucket(aws_s3_bucket.test().id())\n .s3Key(aws_s3_object.object().key())\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: aws:finspace:KxCluster\n properties:\n name: my-tf-kx-cluster\n environmentId: ${aws_finspace_kx_environment.example.id}\n type: HDB\n releaseLabel: '1.0'\n azMode: SINGLE\n availabilityZoneId: use1-az2\n capacityConfiguration:\n nodeType: kx.s.2xlarge\n nodeCount: 2\n vpcConfiguration:\n vpcId: ${aws_vpc.test.id}\n securityGroupIds:\n - ${aws_security_group.example.id}\n subnetIds:\n - ${aws_subnet.example.id}\n ipAddressType: IP_V4\n cacheStorageConfigurations:\n - type: CACHE_1000\n size: 1200\n databases:\n - databaseName: ${aws_finspace_kx_database.example.name}\n cacheConfiguration:\n - cacheType: CACHE_1000\n dbPaths: /\n code:\n s3Bucket: ${aws_s3_bucket.test.id}\n s3Key: ${aws_s3_object.object.key}\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nterraform import {\n\n to = aws_finspace_kx_cluster.example\n\n id = \"n3ceo7wqxoxcti5tujqwzs,my-tf-kx-cluster\" } Using `pulumi import`, import an AWS FinSpace Kx Cluster using the `id` (environment ID and cluster name, comma-delimited). For exampleconsole % pulumi import aws_finspace_kx_cluster.example n3ceo7wqxoxcti5tujqwzs,my-tf-kx-cluster ", + "description": "Resource for managing an AWS FinSpace Kx Cluster.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n### Basic Usage\n\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.finspace.KxCluster;\nimport com.pulumi.aws.finspace.KxClusterArgs;\nimport com.pulumi.aws.finspace.inputs.KxClusterCapacityConfigurationArgs;\nimport com.pulumi.aws.finspace.inputs.KxClusterVpcConfigurationArgs;\nimport com.pulumi.aws.finspace.inputs.KxClusterCacheStorageConfigurationArgs;\nimport com.pulumi.aws.finspace.inputs.KxClusterDatabaseArgs;\nimport com.pulumi.aws.finspace.inputs.KxClusterCodeArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new KxCluster(\"example\", KxClusterArgs.builder() \n .environmentId(aws_finspace_kx_environment.example().id())\n .type(\"HDB\")\n .releaseLabel(\"1.0\")\n .azMode(\"SINGLE\")\n .availabilityZoneId(\"use1-az2\")\n .capacityConfiguration(KxClusterCapacityConfigurationArgs.builder()\n .nodeType(\"kx.s.2xlarge\")\n .nodeCount(2)\n .build())\n .vpcConfiguration(KxClusterVpcConfigurationArgs.builder()\n .vpcId(aws_vpc.test().id())\n .securityGroupIds(aws_security_group.example().id())\n .subnetIds(aws_subnet.example().id())\n .ipAddressType(\"IP_V4\")\n .build())\n .cacheStorageConfigurations(KxClusterCacheStorageConfigurationArgs.builder()\n .type(\"CACHE_1000\")\n .size(1200)\n .build())\n .databases(KxClusterDatabaseArgs.builder()\n .databaseName(aws_finspace_kx_database.example().name())\n .cacheConfiguration(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))\n .build())\n .code(KxClusterCodeArgs.builder()\n .s3Bucket(aws_s3_bucket.test().id())\n .s3Key(aws_s3_object.object().key())\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: aws:finspace:KxCluster\n properties:\n environmentId: ${aws_finspace_kx_environment.example.id}\n type: HDB\n releaseLabel: '1.0'\n azMode: SINGLE\n availabilityZoneId: use1-az2\n capacityConfiguration:\n nodeType: kx.s.2xlarge\n nodeCount: 2\n vpcConfiguration:\n vpcId: ${aws_vpc.test.id}\n securityGroupIds:\n - ${aws_security_group.example.id}\n subnetIds:\n - ${aws_subnet.example.id}\n ipAddressType: IP_V4\n cacheStorageConfigurations:\n - type: CACHE_1000\n size: 1200\n databases:\n - databaseName: ${aws_finspace_kx_database.example.name}\n cacheConfiguration:\n - cacheType: CACHE_1000\n dbPaths: /\n code:\n s3Bucket: ${aws_s3_bucket.test.id}\n s3Key: ${aws_s3_object.object.key}\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nterraform import {\n\n to = aws_finspace_kx_cluster.example\n\n id = \"n3ceo7wqxoxcti5tujqwzs,my-tf-kx-cluster\" } Using `pulumi import`, import an AWS FinSpace Kx Cluster using the `id` (environment ID and cluster name, comma-delimited). For exampleconsole % pulumi import aws_finspace_kx_cluster.example n3ceo7wqxoxcti5tujqwzs,my-tf-kx-cluster ", "properties": { "arn": { "type": "string", @@ -203749,7 +203735,6 @@ "azMode", "capacityConfiguration", "environmentId", - "name", "releaseLabel", "type", "vpcConfiguration" @@ -203888,7 +203873,7 @@ } }, "aws:finspace/kxDatabase:KxDatabase": { - "description": "Resource for managing an AWS FinSpace Kx Database.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n### Basic Usage\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\n\nconst exampleKey = new aws.kms.Key(\"exampleKey\", {\n description: \"Example KMS Key\",\n deletionWindowInDays: 7,\n});\nconst exampleKxEnvironment = new aws.finspace.KxEnvironment(\"exampleKxEnvironment\", {\n name: \"my-tf-kx-environment\",\n kmsKeyId: exampleKey.arn,\n});\nconst exampleKxDatabase = new aws.finspace.KxDatabase(\"exampleKxDatabase\", {\n environmentId: exampleKxEnvironment.id,\n name: \"my-tf-kx-database\",\n description: \"Example database description\",\n});\n```\n```python\nimport pulumi\nimport pulumi_aws as aws\n\nexample_key = aws.kms.Key(\"exampleKey\",\n description=\"Example KMS Key\",\n deletion_window_in_days=7)\nexample_kx_environment = aws.finspace.KxEnvironment(\"exampleKxEnvironment\",\n name=\"my-tf-kx-environment\",\n kms_key_id=example_key.arn)\nexample_kx_database = aws.finspace.KxDatabase(\"exampleKxDatabase\",\n environment_id=example_kx_environment.id,\n name=\"my-tf-kx-database\",\n description=\"Example database description\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var exampleKey = new Aws.Kms.Key(\"exampleKey\", new()\n {\n Description = \"Example KMS Key\",\n DeletionWindowInDays = 7,\n });\n\n var exampleKxEnvironment = new Aws.FinSpace.KxEnvironment(\"exampleKxEnvironment\", new()\n {\n Name = \"my-tf-kx-environment\",\n KmsKeyId = exampleKey.Arn,\n });\n\n var exampleKxDatabase = new Aws.FinSpace.KxDatabase(\"exampleKxDatabase\", new()\n {\n EnvironmentId = exampleKxEnvironment.Id,\n Name = \"my-tf-kx-database\",\n Description = \"Example database description\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/finspace\"\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/kms\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleKey, err := kms.NewKey(ctx, \"exampleKey\", \u0026kms.KeyArgs{\n\t\t\tDescription: pulumi.String(\"Example KMS Key\"),\n\t\t\tDeletionWindowInDays: pulumi.Int(7),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleKxEnvironment, err := finspace.NewKxEnvironment(ctx, \"exampleKxEnvironment\", \u0026finspace.KxEnvironmentArgs{\n\t\t\tName: pulumi.String(\"my-tf-kx-environment\"),\n\t\t\tKmsKeyId: exampleKey.Arn,\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = finspace.NewKxDatabase(ctx, \"exampleKxDatabase\", \u0026finspace.KxDatabaseArgs{\n\t\t\tEnvironmentId: exampleKxEnvironment.ID(),\n\t\t\tName: pulumi.String(\"my-tf-kx-database\"),\n\t\t\tDescription: pulumi.String(\"Example database description\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.kms.Key;\nimport com.pulumi.aws.kms.KeyArgs;\nimport com.pulumi.aws.finspace.KxEnvironment;\nimport com.pulumi.aws.finspace.KxEnvironmentArgs;\nimport com.pulumi.aws.finspace.KxDatabase;\nimport com.pulumi.aws.finspace.KxDatabaseArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var exampleKey = new Key(\"exampleKey\", KeyArgs.builder() \n .description(\"Example KMS Key\")\n .deletionWindowInDays(7)\n .build());\n\n var exampleKxEnvironment = new KxEnvironment(\"exampleKxEnvironment\", KxEnvironmentArgs.builder() \n .name(\"my-tf-kx-environment\")\n .kmsKeyId(exampleKey.arn())\n .build());\n\n var exampleKxDatabase = new KxDatabase(\"exampleKxDatabase\", KxDatabaseArgs.builder() \n .environmentId(exampleKxEnvironment.id())\n .name(\"my-tf-kx-database\")\n .description(\"Example database description\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleKey:\n type: aws:kms:Key\n properties:\n description: Example KMS Key\n deletionWindowInDays: 7\n exampleKxEnvironment:\n type: aws:finspace:KxEnvironment\n properties:\n name: my-tf-kx-environment\n kmsKeyId: ${exampleKey.arn}\n exampleKxDatabase:\n type: aws:finspace:KxDatabase\n properties:\n environmentId: ${exampleKxEnvironment.id}\n name: my-tf-kx-database\n description: Example database description\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nterraform import {\n\n to = aws_finspace_kx_database.example\n\n id = \"n3ceo7wqxoxcti5tujqwzs,my-tf-kx-database\" } Using `pulumi import`, import an AWS FinSpace Kx Database using the `id` (environment ID and database name, comma-delimited). For exampleconsole % pulumi import aws_finspace_kx_database.example n3ceo7wqxoxcti5tujqwzs,my-tf-kx-database ", + "description": "Resource for managing an AWS FinSpace Kx Database.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n### Basic Usage\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\n\nconst exampleKey = new aws.kms.Key(\"exampleKey\", {\n description: \"Example KMS Key\",\n deletionWindowInDays: 7,\n});\nconst exampleKxEnvironment = new aws.finspace.KxEnvironment(\"exampleKxEnvironment\", {kmsKeyId: exampleKey.arn});\nconst exampleKxDatabase = new aws.finspace.KxDatabase(\"exampleKxDatabase\", {\n environmentId: exampleKxEnvironment.id,\n description: \"Example database description\",\n});\n```\n```python\nimport pulumi\nimport pulumi_aws as aws\n\nexample_key = aws.kms.Key(\"exampleKey\",\n description=\"Example KMS Key\",\n deletion_window_in_days=7)\nexample_kx_environment = aws.finspace.KxEnvironment(\"exampleKxEnvironment\", kms_key_id=example_key.arn)\nexample_kx_database = aws.finspace.KxDatabase(\"exampleKxDatabase\",\n environment_id=example_kx_environment.id,\n description=\"Example database description\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var exampleKey = new Aws.Kms.Key(\"exampleKey\", new()\n {\n Description = \"Example KMS Key\",\n DeletionWindowInDays = 7,\n });\n\n var exampleKxEnvironment = new Aws.FinSpace.KxEnvironment(\"exampleKxEnvironment\", new()\n {\n KmsKeyId = exampleKey.Arn,\n });\n\n var exampleKxDatabase = new Aws.FinSpace.KxDatabase(\"exampleKxDatabase\", new()\n {\n EnvironmentId = exampleKxEnvironment.Id,\n Description = \"Example database description\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/finspace\"\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/kms\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleKey, err := kms.NewKey(ctx, \"exampleKey\", \u0026kms.KeyArgs{\n\t\t\tDescription: pulumi.String(\"Example KMS Key\"),\n\t\t\tDeletionWindowInDays: pulumi.Int(7),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleKxEnvironment, err := finspace.NewKxEnvironment(ctx, \"exampleKxEnvironment\", \u0026finspace.KxEnvironmentArgs{\n\t\t\tKmsKeyId: exampleKey.Arn,\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = finspace.NewKxDatabase(ctx, \"exampleKxDatabase\", \u0026finspace.KxDatabaseArgs{\n\t\t\tEnvironmentId: exampleKxEnvironment.ID(),\n\t\t\tDescription: pulumi.String(\"Example database description\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.kms.Key;\nimport com.pulumi.aws.kms.KeyArgs;\nimport com.pulumi.aws.finspace.KxEnvironment;\nimport com.pulumi.aws.finspace.KxEnvironmentArgs;\nimport com.pulumi.aws.finspace.KxDatabase;\nimport com.pulumi.aws.finspace.KxDatabaseArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var exampleKey = new Key(\"exampleKey\", KeyArgs.builder() \n .description(\"Example KMS Key\")\n .deletionWindowInDays(7)\n .build());\n\n var exampleKxEnvironment = new KxEnvironment(\"exampleKxEnvironment\", KxEnvironmentArgs.builder() \n .kmsKeyId(exampleKey.arn())\n .build());\n\n var exampleKxDatabase = new KxDatabase(\"exampleKxDatabase\", KxDatabaseArgs.builder() \n .environmentId(exampleKxEnvironment.id())\n .description(\"Example database description\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleKey:\n type: aws:kms:Key\n properties:\n description: Example KMS Key\n deletionWindowInDays: 7\n exampleKxEnvironment:\n type: aws:finspace:KxEnvironment\n properties:\n kmsKeyId: ${exampleKey.arn}\n exampleKxDatabase:\n type: aws:finspace:KxDatabase\n properties:\n environmentId: ${exampleKxEnvironment.id}\n description: Example database description\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nterraform import {\n\n to = aws_finspace_kx_database.example\n\n id = \"n3ceo7wqxoxcti5tujqwzs,my-tf-kx-database\" } Using `pulumi import`, import an AWS FinSpace Kx Database using the `id` (environment ID and database name, comma-delimited). For exampleconsole % pulumi import aws_finspace_kx_database.example n3ceo7wqxoxcti5tujqwzs,my-tf-kx-database ", "properties": { "arn": { "type": "string", @@ -203961,8 +203946,7 @@ } }, "requiredInputs": [ - "environmentId", - "name" + "environmentId" ], "stateInputs": { "description": "Input properties used for looking up and filtering KxDatabase resources.\n", @@ -204012,7 +203996,7 @@ } }, "aws:finspace/kxEnvironment:KxEnvironment": { - "description": "Resource for managing an AWS FinSpace Kx Environment.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n### Basic Usage\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\n\nconst exampleKey = new aws.kms.Key(\"exampleKey\", {\n description: \"Sample KMS Key\",\n deletionWindowInDays: 7,\n});\nconst exampleKxEnvironment = new aws.finspace.KxEnvironment(\"exampleKxEnvironment\", {\n name: \"my-tf-kx-environment\",\n kmsKeyId: exampleKey.arn,\n});\n```\n```python\nimport pulumi\nimport pulumi_aws as aws\n\nexample_key = aws.kms.Key(\"exampleKey\",\n description=\"Sample KMS Key\",\n deletion_window_in_days=7)\nexample_kx_environment = aws.finspace.KxEnvironment(\"exampleKxEnvironment\",\n name=\"my-tf-kx-environment\",\n kms_key_id=example_key.arn)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var exampleKey = new Aws.Kms.Key(\"exampleKey\", new()\n {\n Description = \"Sample KMS Key\",\n DeletionWindowInDays = 7,\n });\n\n var exampleKxEnvironment = new Aws.FinSpace.KxEnvironment(\"exampleKxEnvironment\", new()\n {\n Name = \"my-tf-kx-environment\",\n KmsKeyId = exampleKey.Arn,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/finspace\"\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/kms\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleKey, err := kms.NewKey(ctx, \"exampleKey\", \u0026kms.KeyArgs{\n\t\t\tDescription: pulumi.String(\"Sample KMS Key\"),\n\t\t\tDeletionWindowInDays: pulumi.Int(7),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = finspace.NewKxEnvironment(ctx, \"exampleKxEnvironment\", \u0026finspace.KxEnvironmentArgs{\n\t\t\tName: pulumi.String(\"my-tf-kx-environment\"),\n\t\t\tKmsKeyId: exampleKey.Arn,\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.kms.Key;\nimport com.pulumi.aws.kms.KeyArgs;\nimport com.pulumi.aws.finspace.KxEnvironment;\nimport com.pulumi.aws.finspace.KxEnvironmentArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var exampleKey = new Key(\"exampleKey\", KeyArgs.builder() \n .description(\"Sample KMS Key\")\n .deletionWindowInDays(7)\n .build());\n\n var exampleKxEnvironment = new KxEnvironment(\"exampleKxEnvironment\", KxEnvironmentArgs.builder() \n .name(\"my-tf-kx-environment\")\n .kmsKeyId(exampleKey.arn())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleKey:\n type: aws:kms:Key\n properties:\n description: Sample KMS Key\n deletionWindowInDays: 7\n exampleKxEnvironment:\n type: aws:finspace:KxEnvironment\n properties:\n name: my-tf-kx-environment\n kmsKeyId: ${exampleKey.arn}\n```\n{{% /example %}}\n{{% example %}}\n### With Network Setup\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\n\nconst exampleKey = new aws.kms.Key(\"exampleKey\", {\n description: \"Sample KMS Key\",\n deletionWindowInDays: 7,\n});\nconst exampleTransitGateway = new aws.ec2transitgateway.TransitGateway(\"exampleTransitGateway\", {description: \"example\"});\nconst exampleEnv = new aws.finspace.KxEnvironment(\"exampleEnv\", {\n name: \"my-tf-kx-environment\",\n description: \"Environment description\",\n kmsKeyId: exampleKey.arn,\n transitGatewayConfiguration: {\n transitGatewayId: exampleTransitGateway.id,\n routableCidrSpace: \"100.64.0.0/26\",\n },\n customDnsConfigurations: [{\n customDnsServerName: \"example.finspace.amazonaws.com\",\n customDnsServerIp: \"10.0.0.76\",\n }],\n});\n```\n```python\nimport pulumi\nimport pulumi_aws as aws\n\nexample_key = aws.kms.Key(\"exampleKey\",\n description=\"Sample KMS Key\",\n deletion_window_in_days=7)\nexample_transit_gateway = aws.ec2transitgateway.TransitGateway(\"exampleTransitGateway\", description=\"example\")\nexample_env = aws.finspace.KxEnvironment(\"exampleEnv\",\n name=\"my-tf-kx-environment\",\n description=\"Environment description\",\n kms_key_id=example_key.arn,\n transit_gateway_configuration=aws.finspace.KxEnvironmentTransitGatewayConfigurationArgs(\n transit_gateway_id=example_transit_gateway.id,\n routable_cidr_space=\"100.64.0.0/26\",\n ),\n custom_dns_configurations=[aws.finspace.KxEnvironmentCustomDnsConfigurationArgs(\n custom_dns_server_name=\"example.finspace.amazonaws.com\",\n custom_dns_server_ip=\"10.0.0.76\",\n )])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var exampleKey = new Aws.Kms.Key(\"exampleKey\", new()\n {\n Description = \"Sample KMS Key\",\n DeletionWindowInDays = 7,\n });\n\n var exampleTransitGateway = new Aws.Ec2TransitGateway.TransitGateway(\"exampleTransitGateway\", new()\n {\n Description = \"example\",\n });\n\n var exampleEnv = new Aws.FinSpace.KxEnvironment(\"exampleEnv\", new()\n {\n Name = \"my-tf-kx-environment\",\n Description = \"Environment description\",\n KmsKeyId = exampleKey.Arn,\n TransitGatewayConfiguration = new Aws.FinSpace.Inputs.KxEnvironmentTransitGatewayConfigurationArgs\n {\n TransitGatewayId = exampleTransitGateway.Id,\n RoutableCidrSpace = \"100.64.0.0/26\",\n },\n CustomDnsConfigurations = new[]\n {\n new Aws.FinSpace.Inputs.KxEnvironmentCustomDnsConfigurationArgs\n {\n CustomDnsServerName = \"example.finspace.amazonaws.com\",\n CustomDnsServerIp = \"10.0.0.76\",\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/ec2transitgateway\"\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/finspace\"\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/kms\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleKey, err := kms.NewKey(ctx, \"exampleKey\", \u0026kms.KeyArgs{\n\t\t\tDescription: pulumi.String(\"Sample KMS Key\"),\n\t\t\tDeletionWindowInDays: pulumi.Int(7),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleTransitGateway, err := ec2transitgateway.NewTransitGateway(ctx, \"exampleTransitGateway\", \u0026ec2transitgateway.TransitGatewayArgs{\n\t\t\tDescription: pulumi.String(\"example\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = finspace.NewKxEnvironment(ctx, \"exampleEnv\", \u0026finspace.KxEnvironmentArgs{\n\t\t\tName: pulumi.String(\"my-tf-kx-environment\"),\n\t\t\tDescription: pulumi.String(\"Environment description\"),\n\t\t\tKmsKeyId: exampleKey.Arn,\n\t\t\tTransitGatewayConfiguration: \u0026finspace.KxEnvironmentTransitGatewayConfigurationArgs{\n\t\t\t\tTransitGatewayId: exampleTransitGateway.ID(),\n\t\t\t\tRoutableCidrSpace: pulumi.String(\"100.64.0.0/26\"),\n\t\t\t},\n\t\t\tCustomDnsConfigurations: finspace.KxEnvironmentCustomDnsConfigurationArray{\n\t\t\t\t\u0026finspace.KxEnvironmentCustomDnsConfigurationArgs{\n\t\t\t\t\tCustomDnsServerName: pulumi.String(\"example.finspace.amazonaws.com\"),\n\t\t\t\t\tCustomDnsServerIp: pulumi.String(\"10.0.0.76\"),\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.kms.Key;\nimport com.pulumi.aws.kms.KeyArgs;\nimport com.pulumi.aws.ec2transitgateway.TransitGateway;\nimport com.pulumi.aws.ec2transitgateway.TransitGatewayArgs;\nimport com.pulumi.aws.finspace.KxEnvironment;\nimport com.pulumi.aws.finspace.KxEnvironmentArgs;\nimport com.pulumi.aws.finspace.inputs.KxEnvironmentTransitGatewayConfigurationArgs;\nimport com.pulumi.aws.finspace.inputs.KxEnvironmentCustomDnsConfigurationArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var exampleKey = new Key(\"exampleKey\", KeyArgs.builder() \n .description(\"Sample KMS Key\")\n .deletionWindowInDays(7)\n .build());\n\n var exampleTransitGateway = new TransitGateway(\"exampleTransitGateway\", TransitGatewayArgs.builder() \n .description(\"example\")\n .build());\n\n var exampleEnv = new KxEnvironment(\"exampleEnv\", KxEnvironmentArgs.builder() \n .name(\"my-tf-kx-environment\")\n .description(\"Environment description\")\n .kmsKeyId(exampleKey.arn())\n .transitGatewayConfiguration(KxEnvironmentTransitGatewayConfigurationArgs.builder()\n .transitGatewayId(exampleTransitGateway.id())\n .routableCidrSpace(\"100.64.0.0/26\")\n .build())\n .customDnsConfigurations(KxEnvironmentCustomDnsConfigurationArgs.builder()\n .customDnsServerName(\"example.finspace.amazonaws.com\")\n .customDnsServerIp(\"10.0.0.76\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleKey:\n type: aws:kms:Key\n properties:\n description: Sample KMS Key\n deletionWindowInDays: 7\n exampleTransitGateway:\n type: aws:ec2transitgateway:TransitGateway\n properties:\n description: example\n exampleEnv:\n type: aws:finspace:KxEnvironment\n properties:\n name: my-tf-kx-environment\n description: Environment description\n kmsKeyId: ${exampleKey.arn}\n transitGatewayConfiguration:\n transitGatewayId: ${exampleTransitGateway.id}\n routableCidrSpace: 100.64.0.0/26\n customDnsConfigurations:\n - customDnsServerName: example.finspace.amazonaws.com\n customDnsServerIp: 10.0.0.76\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nterraform import {\n\n to = aws_finspace_kx_environment.example\n\n id = \"n3ceo7wqxoxcti5tujqwzs\" } Using `pulumi import`, import an AWS FinSpace Kx Environment using the `id`. For exampleconsole % pulumi import aws_finspace_kx_environment.example n3ceo7wqxoxcti5tujqwzs ", + "description": "Resource for managing an AWS FinSpace Kx Environment.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n### Basic Usage\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\n\nconst exampleKey = new aws.kms.Key(\"exampleKey\", {\n description: \"Sample KMS Key\",\n deletionWindowInDays: 7,\n});\nconst exampleKxEnvironment = new aws.finspace.KxEnvironment(\"exampleKxEnvironment\", {kmsKeyId: exampleKey.arn});\n```\n```python\nimport pulumi\nimport pulumi_aws as aws\n\nexample_key = aws.kms.Key(\"exampleKey\",\n description=\"Sample KMS Key\",\n deletion_window_in_days=7)\nexample_kx_environment = aws.finspace.KxEnvironment(\"exampleKxEnvironment\", kms_key_id=example_key.arn)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var exampleKey = new Aws.Kms.Key(\"exampleKey\", new()\n {\n Description = \"Sample KMS Key\",\n DeletionWindowInDays = 7,\n });\n\n var exampleKxEnvironment = new Aws.FinSpace.KxEnvironment(\"exampleKxEnvironment\", new()\n {\n KmsKeyId = exampleKey.Arn,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/finspace\"\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/kms\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleKey, err := kms.NewKey(ctx, \"exampleKey\", \u0026kms.KeyArgs{\n\t\t\tDescription: pulumi.String(\"Sample KMS Key\"),\n\t\t\tDeletionWindowInDays: pulumi.Int(7),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = finspace.NewKxEnvironment(ctx, \"exampleKxEnvironment\", \u0026finspace.KxEnvironmentArgs{\n\t\t\tKmsKeyId: exampleKey.Arn,\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.kms.Key;\nimport com.pulumi.aws.kms.KeyArgs;\nimport com.pulumi.aws.finspace.KxEnvironment;\nimport com.pulumi.aws.finspace.KxEnvironmentArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var exampleKey = new Key(\"exampleKey\", KeyArgs.builder() \n .description(\"Sample KMS Key\")\n .deletionWindowInDays(7)\n .build());\n\n var exampleKxEnvironment = new KxEnvironment(\"exampleKxEnvironment\", KxEnvironmentArgs.builder() \n .kmsKeyId(exampleKey.arn())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleKey:\n type: aws:kms:Key\n properties:\n description: Sample KMS Key\n deletionWindowInDays: 7\n exampleKxEnvironment:\n type: aws:finspace:KxEnvironment\n properties:\n kmsKeyId: ${exampleKey.arn}\n```\n{{% /example %}}\n{{% example %}}\n### With Network Setup\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\n\nconst exampleKey = new aws.kms.Key(\"exampleKey\", {\n description: \"Sample KMS Key\",\n deletionWindowInDays: 7,\n});\nconst exampleTransitGateway = new aws.ec2transitgateway.TransitGateway(\"exampleTransitGateway\", {description: \"example\"});\nconst exampleEnv = new aws.finspace.KxEnvironment(\"exampleEnv\", {\n description: \"Environment description\",\n kmsKeyId: exampleKey.arn,\n transitGatewayConfiguration: {\n transitGatewayId: exampleTransitGateway.id,\n routableCidrSpace: \"100.64.0.0/26\",\n },\n customDnsConfigurations: [{\n customDnsServerName: \"example.finspace.amazonaws.com\",\n customDnsServerIp: \"10.0.0.76\",\n }],\n});\n```\n```python\nimport pulumi\nimport pulumi_aws as aws\n\nexample_key = aws.kms.Key(\"exampleKey\",\n description=\"Sample KMS Key\",\n deletion_window_in_days=7)\nexample_transit_gateway = aws.ec2transitgateway.TransitGateway(\"exampleTransitGateway\", description=\"example\")\nexample_env = aws.finspace.KxEnvironment(\"exampleEnv\",\n description=\"Environment description\",\n kms_key_id=example_key.arn,\n transit_gateway_configuration=aws.finspace.KxEnvironmentTransitGatewayConfigurationArgs(\n transit_gateway_id=example_transit_gateway.id,\n routable_cidr_space=\"100.64.0.0/26\",\n ),\n custom_dns_configurations=[aws.finspace.KxEnvironmentCustomDnsConfigurationArgs(\n custom_dns_server_name=\"example.finspace.amazonaws.com\",\n custom_dns_server_ip=\"10.0.0.76\",\n )])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var exampleKey = new Aws.Kms.Key(\"exampleKey\", new()\n {\n Description = \"Sample KMS Key\",\n DeletionWindowInDays = 7,\n });\n\n var exampleTransitGateway = new Aws.Ec2TransitGateway.TransitGateway(\"exampleTransitGateway\", new()\n {\n Description = \"example\",\n });\n\n var exampleEnv = new Aws.FinSpace.KxEnvironment(\"exampleEnv\", new()\n {\n Description = \"Environment description\",\n KmsKeyId = exampleKey.Arn,\n TransitGatewayConfiguration = new Aws.FinSpace.Inputs.KxEnvironmentTransitGatewayConfigurationArgs\n {\n TransitGatewayId = exampleTransitGateway.Id,\n RoutableCidrSpace = \"100.64.0.0/26\",\n },\n CustomDnsConfigurations = new[]\n {\n new Aws.FinSpace.Inputs.KxEnvironmentCustomDnsConfigurationArgs\n {\n CustomDnsServerName = \"example.finspace.amazonaws.com\",\n CustomDnsServerIp = \"10.0.0.76\",\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/ec2transitgateway\"\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/finspace\"\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/kms\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleKey, err := kms.NewKey(ctx, \"exampleKey\", \u0026kms.KeyArgs{\n\t\t\tDescription: pulumi.String(\"Sample KMS Key\"),\n\t\t\tDeletionWindowInDays: pulumi.Int(7),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleTransitGateway, err := ec2transitgateway.NewTransitGateway(ctx, \"exampleTransitGateway\", \u0026ec2transitgateway.TransitGatewayArgs{\n\t\t\tDescription: pulumi.String(\"example\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = finspace.NewKxEnvironment(ctx, \"exampleEnv\", \u0026finspace.KxEnvironmentArgs{\n\t\t\tDescription: pulumi.String(\"Environment description\"),\n\t\t\tKmsKeyId: exampleKey.Arn,\n\t\t\tTransitGatewayConfiguration: \u0026finspace.KxEnvironmentTransitGatewayConfigurationArgs{\n\t\t\t\tTransitGatewayId: exampleTransitGateway.ID(),\n\t\t\t\tRoutableCidrSpace: pulumi.String(\"100.64.0.0/26\"),\n\t\t\t},\n\t\t\tCustomDnsConfigurations: finspace.KxEnvironmentCustomDnsConfigurationArray{\n\t\t\t\t\u0026finspace.KxEnvironmentCustomDnsConfigurationArgs{\n\t\t\t\t\tCustomDnsServerName: pulumi.String(\"example.finspace.amazonaws.com\"),\n\t\t\t\t\tCustomDnsServerIp: pulumi.String(\"10.0.0.76\"),\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.kms.Key;\nimport com.pulumi.aws.kms.KeyArgs;\nimport com.pulumi.aws.ec2transitgateway.TransitGateway;\nimport com.pulumi.aws.ec2transitgateway.TransitGatewayArgs;\nimport com.pulumi.aws.finspace.KxEnvironment;\nimport com.pulumi.aws.finspace.KxEnvironmentArgs;\nimport com.pulumi.aws.finspace.inputs.KxEnvironmentTransitGatewayConfigurationArgs;\nimport com.pulumi.aws.finspace.inputs.KxEnvironmentCustomDnsConfigurationArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var exampleKey = new Key(\"exampleKey\", KeyArgs.builder() \n .description(\"Sample KMS Key\")\n .deletionWindowInDays(7)\n .build());\n\n var exampleTransitGateway = new TransitGateway(\"exampleTransitGateway\", TransitGatewayArgs.builder() \n .description(\"example\")\n .build());\n\n var exampleEnv = new KxEnvironment(\"exampleEnv\", KxEnvironmentArgs.builder() \n .description(\"Environment description\")\n .kmsKeyId(exampleKey.arn())\n .transitGatewayConfiguration(KxEnvironmentTransitGatewayConfigurationArgs.builder()\n .transitGatewayId(exampleTransitGateway.id())\n .routableCidrSpace(\"100.64.0.0/26\")\n .build())\n .customDnsConfigurations(KxEnvironmentCustomDnsConfigurationArgs.builder()\n .customDnsServerName(\"example.finspace.amazonaws.com\")\n .customDnsServerIp(\"10.0.0.76\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleKey:\n type: aws:kms:Key\n properties:\n description: Sample KMS Key\n deletionWindowInDays: 7\n exampleTransitGateway:\n type: aws:ec2transitgateway:TransitGateway\n properties:\n description: example\n exampleEnv:\n type: aws:finspace:KxEnvironment\n properties:\n description: Environment description\n kmsKeyId: ${exampleKey.arn}\n transitGatewayConfiguration:\n transitGatewayId: ${exampleTransitGateway.id}\n routableCidrSpace: 100.64.0.0/26\n customDnsConfigurations:\n - customDnsServerName: example.finspace.amazonaws.com\n customDnsServerIp: 10.0.0.76\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nterraform import {\n\n to = aws_finspace_kx_environment.example\n\n id = \"n3ceo7wqxoxcti5tujqwzs\" } Using `pulumi import`, import an AWS FinSpace Kx Environment using the `id`. For exampleconsole % pulumi import aws_finspace_kx_environment.example n3ceo7wqxoxcti5tujqwzs ", "properties": { "arn": { "type": "string", @@ -204123,8 +204107,7 @@ } }, "requiredInputs": [ - "kmsKeyId", - "name" + "kmsKeyId" ], "stateInputs": { "description": "Input properties used for looking up and filtering KxEnvironment resources.\n", @@ -204198,7 +204181,7 @@ } }, "aws:finspace/kxUser:KxUser": { - "description": "Resource for managing an AWS FinSpace Kx User.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n### Basic Usage\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\n\nconst exampleKey = new aws.kms.Key(\"exampleKey\", {\n description: \"Example KMS Key\",\n deletionWindowInDays: 7,\n});\nconst exampleKxEnvironment = new aws.finspace.KxEnvironment(\"exampleKxEnvironment\", {\n name: \"my-tf-kx-environment\",\n kmsKeyId: exampleKey.arn,\n});\nconst exampleRole = new aws.iam.Role(\"exampleRole\", {assumeRolePolicy: JSON.stringify({\n Version: \"2012-10-17\",\n Statement: [{\n Action: \"sts:AssumeRole\",\n Effect: \"Allow\",\n Sid: \"\",\n Principal: {\n Service: \"ec2.amazonaws.com\",\n },\n }],\n})});\nconst exampleKxUser = new aws.finspace.KxUser(\"exampleKxUser\", {\n name: \"my-tf-kx-user\",\n environmentId: exampleKxEnvironment.id,\n iamRole: exampleRole.arn,\n});\n```\n```python\nimport pulumi\nimport json\nimport pulumi_aws as aws\n\nexample_key = aws.kms.Key(\"exampleKey\",\n description=\"Example KMS Key\",\n deletion_window_in_days=7)\nexample_kx_environment = aws.finspace.KxEnvironment(\"exampleKxEnvironment\",\n name=\"my-tf-kx-environment\",\n kms_key_id=example_key.arn)\nexample_role = aws.iam.Role(\"exampleRole\", assume_role_policy=json.dumps({\n \"Version\": \"2012-10-17\",\n \"Statement\": [{\n \"Action\": \"sts:AssumeRole\",\n \"Effect\": \"Allow\",\n \"Sid\": \"\",\n \"Principal\": {\n \"Service\": \"ec2.amazonaws.com\",\n },\n }],\n}))\nexample_kx_user = aws.finspace.KxUser(\"exampleKxUser\",\n name=\"my-tf-kx-user\",\n environment_id=example_kx_environment.id,\n iam_role=example_role.arn)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text.Json;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var exampleKey = new Aws.Kms.Key(\"exampleKey\", new()\n {\n Description = \"Example KMS Key\",\n DeletionWindowInDays = 7,\n });\n\n var exampleKxEnvironment = new Aws.FinSpace.KxEnvironment(\"exampleKxEnvironment\", new()\n {\n Name = \"my-tf-kx-environment\",\n KmsKeyId = exampleKey.Arn,\n });\n\n var exampleRole = new Aws.Iam.Role(\"exampleRole\", new()\n {\n AssumeRolePolicy = JsonSerializer.Serialize(new Dictionary\u003cstring, object?\u003e\n {\n [\"Version\"] = \"2012-10-17\",\n [\"Statement\"] = new[]\n {\n new Dictionary\u003cstring, object?\u003e\n {\n [\"Action\"] = \"sts:AssumeRole\",\n [\"Effect\"] = \"Allow\",\n [\"Sid\"] = \"\",\n [\"Principal\"] = new Dictionary\u003cstring, object?\u003e\n {\n [\"Service\"] = \"ec2.amazonaws.com\",\n },\n },\n },\n }),\n });\n\n var exampleKxUser = new Aws.FinSpace.KxUser(\"exampleKxUser\", new()\n {\n Name = \"my-tf-kx-user\",\n EnvironmentId = exampleKxEnvironment.Id,\n IamRole = exampleRole.Arn,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"encoding/json\"\n\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/finspace\"\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/iam\"\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/kms\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleKey, err := kms.NewKey(ctx, \"exampleKey\", \u0026kms.KeyArgs{\n\t\t\tDescription: pulumi.String(\"Example KMS Key\"),\n\t\t\tDeletionWindowInDays: pulumi.Int(7),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleKxEnvironment, err := finspace.NewKxEnvironment(ctx, \"exampleKxEnvironment\", \u0026finspace.KxEnvironmentArgs{\n\t\t\tName: pulumi.String(\"my-tf-kx-environment\"),\n\t\t\tKmsKeyId: exampleKey.Arn,\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\ttmpJSON0, err := json.Marshal(map[string]interface{}{\n\t\t\t\"Version\": \"2012-10-17\",\n\t\t\t\"Statement\": []map[string]interface{}{\n\t\t\t\tmap[string]interface{}{\n\t\t\t\t\t\"Action\": \"sts:AssumeRole\",\n\t\t\t\t\t\"Effect\": \"Allow\",\n\t\t\t\t\t\"Sid\": \"\",\n\t\t\t\t\t\"Principal\": map[string]interface{}{\n\t\t\t\t\t\t\"Service\": \"ec2.amazonaws.com\",\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tjson0 := string(tmpJSON0)\n\t\texampleRole, err := iam.NewRole(ctx, \"exampleRole\", \u0026iam.RoleArgs{\n\t\t\tAssumeRolePolicy: pulumi.String(json0),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = finspace.NewKxUser(ctx, \"exampleKxUser\", \u0026finspace.KxUserArgs{\n\t\t\tName: pulumi.String(\"my-tf-kx-user\"),\n\t\t\tEnvironmentId: exampleKxEnvironment.ID(),\n\t\t\tIamRole: exampleRole.Arn,\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.kms.Key;\nimport com.pulumi.aws.kms.KeyArgs;\nimport com.pulumi.aws.finspace.KxEnvironment;\nimport com.pulumi.aws.finspace.KxEnvironmentArgs;\nimport com.pulumi.aws.iam.Role;\nimport com.pulumi.aws.iam.RoleArgs;\nimport com.pulumi.aws.finspace.KxUser;\nimport com.pulumi.aws.finspace.KxUserArgs;\nimport static com.pulumi.codegen.internal.Serialization.*;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var exampleKey = new Key(\"exampleKey\", KeyArgs.builder() \n .description(\"Example KMS Key\")\n .deletionWindowInDays(7)\n .build());\n\n var exampleKxEnvironment = new KxEnvironment(\"exampleKxEnvironment\", KxEnvironmentArgs.builder() \n .name(\"my-tf-kx-environment\")\n .kmsKeyId(exampleKey.arn())\n .build());\n\n var exampleRole = new Role(\"exampleRole\", RoleArgs.builder() \n .assumeRolePolicy(serializeJson(\n jsonObject(\n jsonProperty(\"Version\", \"2012-10-17\"),\n jsonProperty(\"Statement\", jsonArray(jsonObject(\n jsonProperty(\"Action\", \"sts:AssumeRole\"),\n jsonProperty(\"Effect\", \"Allow\"),\n jsonProperty(\"Sid\", \"\"),\n jsonProperty(\"Principal\", jsonObject(\n jsonProperty(\"Service\", \"ec2.amazonaws.com\")\n ))\n )))\n )))\n .build());\n\n var exampleKxUser = new KxUser(\"exampleKxUser\", KxUserArgs.builder() \n .name(\"my-tf-kx-user\")\n .environmentId(exampleKxEnvironment.id())\n .iamRole(exampleRole.arn())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleKey:\n type: aws:kms:Key\n properties:\n description: Example KMS Key\n deletionWindowInDays: 7\n exampleKxEnvironment:\n type: aws:finspace:KxEnvironment\n properties:\n name: my-tf-kx-environment\n kmsKeyId: ${exampleKey.arn}\n exampleRole:\n type: aws:iam:Role\n properties:\n assumeRolePolicy:\n fn::toJSON:\n Version: 2012-10-17\n Statement:\n - Action: sts:AssumeRole\n Effect: Allow\n Sid:\n Principal:\n Service: ec2.amazonaws.com\n exampleKxUser:\n type: aws:finspace:KxUser\n properties:\n name: my-tf-kx-user\n environmentId: ${exampleKxEnvironment.id}\n iamRole: ${exampleRole.arn}\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nterraform import {\n\n to = aws_finspace_kx_user.example\n\n id = \"n3ceo7wqxoxcti5tujqwzs,my-tf-kx-user\" } Using `pulumi import`, import an AWS FinSpace Kx User using the `id` (environment ID and user name, comma-delimited). For exampleconsole % pulumi import aws_finspace_kx_user.example n3ceo7wqxoxcti5tujqwzs,my-tf-kx-user ", + "description": "Resource for managing an AWS FinSpace Kx User.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n### Basic Usage\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\n\nconst exampleKey = new aws.kms.Key(\"exampleKey\", {\n description: \"Example KMS Key\",\n deletionWindowInDays: 7,\n});\nconst exampleKxEnvironment = new aws.finspace.KxEnvironment(\"exampleKxEnvironment\", {kmsKeyId: exampleKey.arn});\nconst exampleRole = new aws.iam.Role(\"exampleRole\", {assumeRolePolicy: JSON.stringify({\n Version: \"2012-10-17\",\n Statement: [{\n Action: \"sts:AssumeRole\",\n Effect: \"Allow\",\n Sid: \"\",\n Principal: {\n Service: \"ec2.amazonaws.com\",\n },\n }],\n})});\nconst exampleKxUser = new aws.finspace.KxUser(\"exampleKxUser\", {\n environmentId: exampleKxEnvironment.id,\n iamRole: exampleRole.arn,\n});\n```\n```python\nimport pulumi\nimport json\nimport pulumi_aws as aws\n\nexample_key = aws.kms.Key(\"exampleKey\",\n description=\"Example KMS Key\",\n deletion_window_in_days=7)\nexample_kx_environment = aws.finspace.KxEnvironment(\"exampleKxEnvironment\", kms_key_id=example_key.arn)\nexample_role = aws.iam.Role(\"exampleRole\", assume_role_policy=json.dumps({\n \"Version\": \"2012-10-17\",\n \"Statement\": [{\n \"Action\": \"sts:AssumeRole\",\n \"Effect\": \"Allow\",\n \"Sid\": \"\",\n \"Principal\": {\n \"Service\": \"ec2.amazonaws.com\",\n },\n }],\n}))\nexample_kx_user = aws.finspace.KxUser(\"exampleKxUser\",\n environment_id=example_kx_environment.id,\n iam_role=example_role.arn)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text.Json;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var exampleKey = new Aws.Kms.Key(\"exampleKey\", new()\n {\n Description = \"Example KMS Key\",\n DeletionWindowInDays = 7,\n });\n\n var exampleKxEnvironment = new Aws.FinSpace.KxEnvironment(\"exampleKxEnvironment\", new()\n {\n KmsKeyId = exampleKey.Arn,\n });\n\n var exampleRole = new Aws.Iam.Role(\"exampleRole\", new()\n {\n AssumeRolePolicy = JsonSerializer.Serialize(new Dictionary\u003cstring, object?\u003e\n {\n [\"Version\"] = \"2012-10-17\",\n [\"Statement\"] = new[]\n {\n new Dictionary\u003cstring, object?\u003e\n {\n [\"Action\"] = \"sts:AssumeRole\",\n [\"Effect\"] = \"Allow\",\n [\"Sid\"] = \"\",\n [\"Principal\"] = new Dictionary\u003cstring, object?\u003e\n {\n [\"Service\"] = \"ec2.amazonaws.com\",\n },\n },\n },\n }),\n });\n\n var exampleKxUser = new Aws.FinSpace.KxUser(\"exampleKxUser\", new()\n {\n EnvironmentId = exampleKxEnvironment.Id,\n IamRole = exampleRole.Arn,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"encoding/json\"\n\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/finspace\"\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/iam\"\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/kms\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleKey, err := kms.NewKey(ctx, \"exampleKey\", \u0026kms.KeyArgs{\n\t\t\tDescription: pulumi.String(\"Example KMS Key\"),\n\t\t\tDeletionWindowInDays: pulumi.Int(7),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleKxEnvironment, err := finspace.NewKxEnvironment(ctx, \"exampleKxEnvironment\", \u0026finspace.KxEnvironmentArgs{\n\t\t\tKmsKeyId: exampleKey.Arn,\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\ttmpJSON0, err := json.Marshal(map[string]interface{}{\n\t\t\t\"Version\": \"2012-10-17\",\n\t\t\t\"Statement\": []map[string]interface{}{\n\t\t\t\tmap[string]interface{}{\n\t\t\t\t\t\"Action\": \"sts:AssumeRole\",\n\t\t\t\t\t\"Effect\": \"Allow\",\n\t\t\t\t\t\"Sid\": \"\",\n\t\t\t\t\t\"Principal\": map[string]interface{}{\n\t\t\t\t\t\t\"Service\": \"ec2.amazonaws.com\",\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tjson0 := string(tmpJSON0)\n\t\texampleRole, err := iam.NewRole(ctx, \"exampleRole\", \u0026iam.RoleArgs{\n\t\t\tAssumeRolePolicy: pulumi.String(json0),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = finspace.NewKxUser(ctx, \"exampleKxUser\", \u0026finspace.KxUserArgs{\n\t\t\tEnvironmentId: exampleKxEnvironment.ID(),\n\t\t\tIamRole: exampleRole.Arn,\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.kms.Key;\nimport com.pulumi.aws.kms.KeyArgs;\nimport com.pulumi.aws.finspace.KxEnvironment;\nimport com.pulumi.aws.finspace.KxEnvironmentArgs;\nimport com.pulumi.aws.iam.Role;\nimport com.pulumi.aws.iam.RoleArgs;\nimport com.pulumi.aws.finspace.KxUser;\nimport com.pulumi.aws.finspace.KxUserArgs;\nimport static com.pulumi.codegen.internal.Serialization.*;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var exampleKey = new Key(\"exampleKey\", KeyArgs.builder() \n .description(\"Example KMS Key\")\n .deletionWindowInDays(7)\n .build());\n\n var exampleKxEnvironment = new KxEnvironment(\"exampleKxEnvironment\", KxEnvironmentArgs.builder() \n .kmsKeyId(exampleKey.arn())\n .build());\n\n var exampleRole = new Role(\"exampleRole\", RoleArgs.builder() \n .assumeRolePolicy(serializeJson(\n jsonObject(\n jsonProperty(\"Version\", \"2012-10-17\"),\n jsonProperty(\"Statement\", jsonArray(jsonObject(\n jsonProperty(\"Action\", \"sts:AssumeRole\"),\n jsonProperty(\"Effect\", \"Allow\"),\n jsonProperty(\"Sid\", \"\"),\n jsonProperty(\"Principal\", jsonObject(\n jsonProperty(\"Service\", \"ec2.amazonaws.com\")\n ))\n )))\n )))\n .build());\n\n var exampleKxUser = new KxUser(\"exampleKxUser\", KxUserArgs.builder() \n .environmentId(exampleKxEnvironment.id())\n .iamRole(exampleRole.arn())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleKey:\n type: aws:kms:Key\n properties:\n description: Example KMS Key\n deletionWindowInDays: 7\n exampleKxEnvironment:\n type: aws:finspace:KxEnvironment\n properties:\n kmsKeyId: ${exampleKey.arn}\n exampleRole:\n type: aws:iam:Role\n properties:\n assumeRolePolicy:\n fn::toJSON:\n Version: 2012-10-17\n Statement:\n - Action: sts:AssumeRole\n Effect: Allow\n Sid:\n Principal:\n Service: ec2.amazonaws.com\n exampleKxUser:\n type: aws:finspace:KxUser\n properties:\n environmentId: ${exampleKxEnvironment.id}\n iamRole: ${exampleRole.arn}\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nterraform import {\n\n to = aws_finspace_kx_user.example\n\n id = \"n3ceo7wqxoxcti5tujqwzs,my-tf-kx-user\" } Using `pulumi import`, import an AWS FinSpace Kx User using the `id` (environment ID and user name, comma-delimited). For exampleconsole % pulumi import aws_finspace_kx_user.example n3ceo7wqxoxcti5tujqwzs,my-tf-kx-user ", "properties": { "arn": { "type": "string", @@ -204263,8 +204246,7 @@ }, "requiredInputs": [ "environmentId", - "iamRole", - "name" + "iamRole" ], "stateInputs": { "description": "Input properties used for looking up and filtering KxUser resources.\n", @@ -209208,7 +209190,7 @@ } }, "aws:globalaccelerator/customRoutingAccelerator:CustomRoutingAccelerator": { - "description": "Creates a Global Accelerator custom routing accelerator.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\n\nconst example = new aws.globalaccelerator.CustomRoutingAccelerator(\"example\", {\n attributes: {\n flowLogsEnabled: true,\n flowLogsS3Bucket: \"example-bucket\",\n flowLogsS3Prefix: \"flow-logs/\",\n },\n enabled: true,\n ipAddressType: \"IPV4\",\n ipAddresses: [\"1.2.3.4\"],\n name: \"Example\",\n});\n```\n```python\nimport pulumi\nimport pulumi_aws as aws\n\nexample = aws.globalaccelerator.CustomRoutingAccelerator(\"example\",\n attributes=aws.globalaccelerator.CustomRoutingAcceleratorAttributesArgs(\n flow_logs_enabled=True,\n flow_logs_s3_bucket=\"example-bucket\",\n flow_logs_s3_prefix=\"flow-logs/\",\n ),\n enabled=True,\n ip_address_type=\"IPV4\",\n ip_addresses=[\"1.2.3.4\"],\n name=\"Example\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new Aws.GlobalAccelerator.CustomRoutingAccelerator(\"example\", new()\n {\n Attributes = new Aws.GlobalAccelerator.Inputs.CustomRoutingAcceleratorAttributesArgs\n {\n FlowLogsEnabled = true,\n FlowLogsS3Bucket = \"example-bucket\",\n FlowLogsS3Prefix = \"flow-logs/\",\n },\n Enabled = true,\n IpAddressType = \"IPV4\",\n IpAddresses = new[]\n {\n \"1.2.3.4\",\n },\n Name = \"Example\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/globalaccelerator\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := globalaccelerator.NewCustomRoutingAccelerator(ctx, \"example\", \u0026globalaccelerator.CustomRoutingAcceleratorArgs{\n\t\t\tAttributes: \u0026globalaccelerator.CustomRoutingAcceleratorAttributesArgs{\n\t\t\t\tFlowLogsEnabled: pulumi.Bool(true),\n\t\t\t\tFlowLogsS3Bucket: pulumi.String(\"example-bucket\"),\n\t\t\t\tFlowLogsS3Prefix: pulumi.String(\"flow-logs/\"),\n\t\t\t},\n\t\t\tEnabled: pulumi.Bool(true),\n\t\t\tIpAddressType: pulumi.String(\"IPV4\"),\n\t\t\tIpAddresses: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"1.2.3.4\"),\n\t\t\t},\n\t\t\tName: pulumi.String(\"Example\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.globalaccelerator.CustomRoutingAccelerator;\nimport com.pulumi.aws.globalaccelerator.CustomRoutingAcceleratorArgs;\nimport com.pulumi.aws.globalaccelerator.inputs.CustomRoutingAcceleratorAttributesArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new CustomRoutingAccelerator(\"example\", CustomRoutingAcceleratorArgs.builder() \n .attributes(CustomRoutingAcceleratorAttributesArgs.builder()\n .flowLogsEnabled(true)\n .flowLogsS3Bucket(\"example-bucket\")\n .flowLogsS3Prefix(\"flow-logs/\")\n .build())\n .enabled(true)\n .ipAddressType(\"IPV4\")\n .ipAddresses(\"1.2.3.4\")\n .name(\"Example\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: aws:globalaccelerator:CustomRoutingAccelerator\n properties:\n attributes:\n flowLogsEnabled: true\n flowLogsS3Bucket: example-bucket\n flowLogsS3Prefix: flow-logs/\n enabled: true\n ipAddressType: IPV4\n ipAddresses:\n - 1.2.3.4\n name: Example\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nterraform import {\n\n to = aws_globalaccelerator_custom_routing_accelerator.example\n\n id = \"arn:aws:globalaccelerator::111111111111:accelerator/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\" } Using `pulumi import`, import Global Accelerator custom routing accelerators using the `arn`. For exampleconsole % pulumi import aws_globalaccelerator_custom_routing_accelerator.example arn:aws:globalaccelerator::111111111111:accelerator/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx ", + "description": "Creates a Global Accelerator custom routing accelerator.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\n\nconst example = new aws.globalaccelerator.CustomRoutingAccelerator(\"example\", {\n attributes: {\n flowLogsEnabled: true,\n flowLogsS3Bucket: \"example-bucket\",\n flowLogsS3Prefix: \"flow-logs/\",\n },\n enabled: true,\n ipAddressType: \"IPV4\",\n ipAddresses: [\"1.2.3.4\"],\n});\n```\n```python\nimport pulumi\nimport pulumi_aws as aws\n\nexample = aws.globalaccelerator.CustomRoutingAccelerator(\"example\",\n attributes=aws.globalaccelerator.CustomRoutingAcceleratorAttributesArgs(\n flow_logs_enabled=True,\n flow_logs_s3_bucket=\"example-bucket\",\n flow_logs_s3_prefix=\"flow-logs/\",\n ),\n enabled=True,\n ip_address_type=\"IPV4\",\n ip_addresses=[\"1.2.3.4\"])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new Aws.GlobalAccelerator.CustomRoutingAccelerator(\"example\", new()\n {\n Attributes = new Aws.GlobalAccelerator.Inputs.CustomRoutingAcceleratorAttributesArgs\n {\n FlowLogsEnabled = true,\n FlowLogsS3Bucket = \"example-bucket\",\n FlowLogsS3Prefix = \"flow-logs/\",\n },\n Enabled = true,\n IpAddressType = \"IPV4\",\n IpAddresses = new[]\n {\n \"1.2.3.4\",\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/globalaccelerator\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := globalaccelerator.NewCustomRoutingAccelerator(ctx, \"example\", \u0026globalaccelerator.CustomRoutingAcceleratorArgs{\n\t\t\tAttributes: \u0026globalaccelerator.CustomRoutingAcceleratorAttributesArgs{\n\t\t\t\tFlowLogsEnabled: pulumi.Bool(true),\n\t\t\t\tFlowLogsS3Bucket: pulumi.String(\"example-bucket\"),\n\t\t\t\tFlowLogsS3Prefix: pulumi.String(\"flow-logs/\"),\n\t\t\t},\n\t\t\tEnabled: pulumi.Bool(true),\n\t\t\tIpAddressType: pulumi.String(\"IPV4\"),\n\t\t\tIpAddresses: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"1.2.3.4\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.globalaccelerator.CustomRoutingAccelerator;\nimport com.pulumi.aws.globalaccelerator.CustomRoutingAcceleratorArgs;\nimport com.pulumi.aws.globalaccelerator.inputs.CustomRoutingAcceleratorAttributesArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new CustomRoutingAccelerator(\"example\", CustomRoutingAcceleratorArgs.builder() \n .attributes(CustomRoutingAcceleratorAttributesArgs.builder()\n .flowLogsEnabled(true)\n .flowLogsS3Bucket(\"example-bucket\")\n .flowLogsS3Prefix(\"flow-logs/\")\n .build())\n .enabled(true)\n .ipAddressType(\"IPV4\")\n .ipAddresses(\"1.2.3.4\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: aws:globalaccelerator:CustomRoutingAccelerator\n properties:\n attributes:\n flowLogsEnabled: true\n flowLogsS3Bucket: example-bucket\n flowLogsS3Prefix: flow-logs/\n enabled: true\n ipAddressType: IPV4\n ipAddresses:\n - 1.2.3.4\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nterraform import {\n\n to = aws_globalaccelerator_custom_routing_accelerator.example\n\n id = \"arn:aws:globalaccelerator::111111111111:accelerator/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\" } Using `pulumi import`, import Global Accelerator custom routing accelerators using the `arn`. For exampleconsole % pulumi import aws_globalaccelerator_custom_routing_accelerator.example arn:aws:globalaccelerator::111111111111:accelerator/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx ", "properties": { "attributes": { "$ref": "#/types/aws:globalaccelerator/CustomRoutingAcceleratorAttributes:CustomRoutingAcceleratorAttributes", @@ -209303,9 +209285,6 @@ "description": "A map of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.\n" } }, - "requiredInputs": [ - "name" - ], "stateInputs": { "description": "Input properties used for looking up and filtering CustomRoutingAccelerator resources.\n", "properties": { @@ -209472,7 +209451,7 @@ } }, "aws:globalaccelerator/customRoutingListener:CustomRoutingListener": { - "description": "Provides a Global Accelerator custom routing listener.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\n\nconst exampleCustomRoutingAccelerator = new aws.globalaccelerator.CustomRoutingAccelerator(\"exampleCustomRoutingAccelerator\", {\n name: \"Example\",\n ipAddressType: \"IPV4\",\n enabled: true,\n attributes: {\n flowLogsEnabled: true,\n flowLogsS3Bucket: \"example-bucket\",\n flowLogsS3Prefix: \"flow-logs/\",\n },\n});\nconst exampleCustomRoutingListener = new aws.globalaccelerator.CustomRoutingListener(\"exampleCustomRoutingListener\", {\n acceleratorArn: exampleCustomRoutingAccelerator.id,\n portRanges: [{\n fromPort: 80,\n toPort: 80,\n }],\n});\n```\n```python\nimport pulumi\nimport pulumi_aws as aws\n\nexample_custom_routing_accelerator = aws.globalaccelerator.CustomRoutingAccelerator(\"exampleCustomRoutingAccelerator\",\n name=\"Example\",\n ip_address_type=\"IPV4\",\n enabled=True,\n attributes=aws.globalaccelerator.CustomRoutingAcceleratorAttributesArgs(\n flow_logs_enabled=True,\n flow_logs_s3_bucket=\"example-bucket\",\n flow_logs_s3_prefix=\"flow-logs/\",\n ))\nexample_custom_routing_listener = aws.globalaccelerator.CustomRoutingListener(\"exampleCustomRoutingListener\",\n accelerator_arn=example_custom_routing_accelerator.id,\n port_ranges=[aws.globalaccelerator.CustomRoutingListenerPortRangeArgs(\n from_port=80,\n to_port=80,\n )])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var exampleCustomRoutingAccelerator = new Aws.GlobalAccelerator.CustomRoutingAccelerator(\"exampleCustomRoutingAccelerator\", new()\n {\n Name = \"Example\",\n IpAddressType = \"IPV4\",\n Enabled = true,\n Attributes = new Aws.GlobalAccelerator.Inputs.CustomRoutingAcceleratorAttributesArgs\n {\n FlowLogsEnabled = true,\n FlowLogsS3Bucket = \"example-bucket\",\n FlowLogsS3Prefix = \"flow-logs/\",\n },\n });\n\n var exampleCustomRoutingListener = new Aws.GlobalAccelerator.CustomRoutingListener(\"exampleCustomRoutingListener\", new()\n {\n AcceleratorArn = exampleCustomRoutingAccelerator.Id,\n PortRanges = new[]\n {\n new Aws.GlobalAccelerator.Inputs.CustomRoutingListenerPortRangeArgs\n {\n FromPort = 80,\n ToPort = 80,\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/globalaccelerator\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleCustomRoutingAccelerator, err := globalaccelerator.NewCustomRoutingAccelerator(ctx, \"exampleCustomRoutingAccelerator\", \u0026globalaccelerator.CustomRoutingAcceleratorArgs{\n\t\t\tName: pulumi.String(\"Example\"),\n\t\t\tIpAddressType: pulumi.String(\"IPV4\"),\n\t\t\tEnabled: pulumi.Bool(true),\n\t\t\tAttributes: \u0026globalaccelerator.CustomRoutingAcceleratorAttributesArgs{\n\t\t\t\tFlowLogsEnabled: pulumi.Bool(true),\n\t\t\t\tFlowLogsS3Bucket: pulumi.String(\"example-bucket\"),\n\t\t\t\tFlowLogsS3Prefix: pulumi.String(\"flow-logs/\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = globalaccelerator.NewCustomRoutingListener(ctx, \"exampleCustomRoutingListener\", \u0026globalaccelerator.CustomRoutingListenerArgs{\n\t\t\tAcceleratorArn: exampleCustomRoutingAccelerator.ID(),\n\t\t\tPortRanges: globalaccelerator.CustomRoutingListenerPortRangeArray{\n\t\t\t\t\u0026globalaccelerator.CustomRoutingListenerPortRangeArgs{\n\t\t\t\t\tFromPort: pulumi.Int(80),\n\t\t\t\t\tToPort: pulumi.Int(80),\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.globalaccelerator.CustomRoutingAccelerator;\nimport com.pulumi.aws.globalaccelerator.CustomRoutingAcceleratorArgs;\nimport com.pulumi.aws.globalaccelerator.inputs.CustomRoutingAcceleratorAttributesArgs;\nimport com.pulumi.aws.globalaccelerator.CustomRoutingListener;\nimport com.pulumi.aws.globalaccelerator.CustomRoutingListenerArgs;\nimport com.pulumi.aws.globalaccelerator.inputs.CustomRoutingListenerPortRangeArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var exampleCustomRoutingAccelerator = new CustomRoutingAccelerator(\"exampleCustomRoutingAccelerator\", CustomRoutingAcceleratorArgs.builder() \n .name(\"Example\")\n .ipAddressType(\"IPV4\")\n .enabled(true)\n .attributes(CustomRoutingAcceleratorAttributesArgs.builder()\n .flowLogsEnabled(true)\n .flowLogsS3Bucket(\"example-bucket\")\n .flowLogsS3Prefix(\"flow-logs/\")\n .build())\n .build());\n\n var exampleCustomRoutingListener = new CustomRoutingListener(\"exampleCustomRoutingListener\", CustomRoutingListenerArgs.builder() \n .acceleratorArn(exampleCustomRoutingAccelerator.id())\n .portRanges(CustomRoutingListenerPortRangeArgs.builder()\n .fromPort(80)\n .toPort(80)\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleCustomRoutingAccelerator:\n type: aws:globalaccelerator:CustomRoutingAccelerator\n properties:\n name: Example\n ipAddressType: IPV4\n enabled: true\n attributes:\n flowLogsEnabled: true\n flowLogsS3Bucket: example-bucket\n flowLogsS3Prefix: flow-logs/\n exampleCustomRoutingListener:\n type: aws:globalaccelerator:CustomRoutingListener\n properties:\n acceleratorArn: ${exampleCustomRoutingAccelerator.id}\n portRanges:\n - fromPort: 80\n toPort: 80\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nterraform import {\n\n to = aws_globalaccelerator_custom_routing_listener.example\n\n id = \"arn:aws:globalaccelerator::111111111111:accelerator/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/listener/xxxxxxxx\" } Using `pulumi import`, import Global Accelerator custom routing listeners using the `id`. For exampleconsole % pulumi import aws_globalaccelerator_custom_routing_listener.example arn:aws:globalaccelerator::111111111111:accelerator/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/listener/xxxxxxxx ", + "description": "Provides a Global Accelerator custom routing listener.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\n\nconst exampleCustomRoutingAccelerator = new aws.globalaccelerator.CustomRoutingAccelerator(\"exampleCustomRoutingAccelerator\", {\n ipAddressType: \"IPV4\",\n enabled: true,\n attributes: {\n flowLogsEnabled: true,\n flowLogsS3Bucket: \"example-bucket\",\n flowLogsS3Prefix: \"flow-logs/\",\n },\n});\nconst exampleCustomRoutingListener = new aws.globalaccelerator.CustomRoutingListener(\"exampleCustomRoutingListener\", {\n acceleratorArn: exampleCustomRoutingAccelerator.id,\n portRanges: [{\n fromPort: 80,\n toPort: 80,\n }],\n});\n```\n```python\nimport pulumi\nimport pulumi_aws as aws\n\nexample_custom_routing_accelerator = aws.globalaccelerator.CustomRoutingAccelerator(\"exampleCustomRoutingAccelerator\",\n ip_address_type=\"IPV4\",\n enabled=True,\n attributes=aws.globalaccelerator.CustomRoutingAcceleratorAttributesArgs(\n flow_logs_enabled=True,\n flow_logs_s3_bucket=\"example-bucket\",\n flow_logs_s3_prefix=\"flow-logs/\",\n ))\nexample_custom_routing_listener = aws.globalaccelerator.CustomRoutingListener(\"exampleCustomRoutingListener\",\n accelerator_arn=example_custom_routing_accelerator.id,\n port_ranges=[aws.globalaccelerator.CustomRoutingListenerPortRangeArgs(\n from_port=80,\n to_port=80,\n )])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var exampleCustomRoutingAccelerator = new Aws.GlobalAccelerator.CustomRoutingAccelerator(\"exampleCustomRoutingAccelerator\", new()\n {\n IpAddressType = \"IPV4\",\n Enabled = true,\n Attributes = new Aws.GlobalAccelerator.Inputs.CustomRoutingAcceleratorAttributesArgs\n {\n FlowLogsEnabled = true,\n FlowLogsS3Bucket = \"example-bucket\",\n FlowLogsS3Prefix = \"flow-logs/\",\n },\n });\n\n var exampleCustomRoutingListener = new Aws.GlobalAccelerator.CustomRoutingListener(\"exampleCustomRoutingListener\", new()\n {\n AcceleratorArn = exampleCustomRoutingAccelerator.Id,\n PortRanges = new[]\n {\n new Aws.GlobalAccelerator.Inputs.CustomRoutingListenerPortRangeArgs\n {\n FromPort = 80,\n ToPort = 80,\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/globalaccelerator\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleCustomRoutingAccelerator, err := globalaccelerator.NewCustomRoutingAccelerator(ctx, \"exampleCustomRoutingAccelerator\", \u0026globalaccelerator.CustomRoutingAcceleratorArgs{\n\t\t\tIpAddressType: pulumi.String(\"IPV4\"),\n\t\t\tEnabled: pulumi.Bool(true),\n\t\t\tAttributes: \u0026globalaccelerator.CustomRoutingAcceleratorAttributesArgs{\n\t\t\t\tFlowLogsEnabled: pulumi.Bool(true),\n\t\t\t\tFlowLogsS3Bucket: pulumi.String(\"example-bucket\"),\n\t\t\t\tFlowLogsS3Prefix: pulumi.String(\"flow-logs/\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = globalaccelerator.NewCustomRoutingListener(ctx, \"exampleCustomRoutingListener\", \u0026globalaccelerator.CustomRoutingListenerArgs{\n\t\t\tAcceleratorArn: exampleCustomRoutingAccelerator.ID(),\n\t\t\tPortRanges: globalaccelerator.CustomRoutingListenerPortRangeArray{\n\t\t\t\t\u0026globalaccelerator.CustomRoutingListenerPortRangeArgs{\n\t\t\t\t\tFromPort: pulumi.Int(80),\n\t\t\t\t\tToPort: pulumi.Int(80),\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.globalaccelerator.CustomRoutingAccelerator;\nimport com.pulumi.aws.globalaccelerator.CustomRoutingAcceleratorArgs;\nimport com.pulumi.aws.globalaccelerator.inputs.CustomRoutingAcceleratorAttributesArgs;\nimport com.pulumi.aws.globalaccelerator.CustomRoutingListener;\nimport com.pulumi.aws.globalaccelerator.CustomRoutingListenerArgs;\nimport com.pulumi.aws.globalaccelerator.inputs.CustomRoutingListenerPortRangeArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var exampleCustomRoutingAccelerator = new CustomRoutingAccelerator(\"exampleCustomRoutingAccelerator\", CustomRoutingAcceleratorArgs.builder() \n .ipAddressType(\"IPV4\")\n .enabled(true)\n .attributes(CustomRoutingAcceleratorAttributesArgs.builder()\n .flowLogsEnabled(true)\n .flowLogsS3Bucket(\"example-bucket\")\n .flowLogsS3Prefix(\"flow-logs/\")\n .build())\n .build());\n\n var exampleCustomRoutingListener = new CustomRoutingListener(\"exampleCustomRoutingListener\", CustomRoutingListenerArgs.builder() \n .acceleratorArn(exampleCustomRoutingAccelerator.id())\n .portRanges(CustomRoutingListenerPortRangeArgs.builder()\n .fromPort(80)\n .toPort(80)\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleCustomRoutingAccelerator:\n type: aws:globalaccelerator:CustomRoutingAccelerator\n properties:\n ipAddressType: IPV4\n enabled: true\n attributes:\n flowLogsEnabled: true\n flowLogsS3Bucket: example-bucket\n flowLogsS3Prefix: flow-logs/\n exampleCustomRoutingListener:\n type: aws:globalaccelerator:CustomRoutingListener\n properties:\n acceleratorArn: ${exampleCustomRoutingAccelerator.id}\n portRanges:\n - fromPort: 80\n toPort: 80\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nterraform import {\n\n to = aws_globalaccelerator_custom_routing_listener.example\n\n id = \"arn:aws:globalaccelerator::111111111111:accelerator/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/listener/xxxxxxxx\" } Using `pulumi import`, import Global Accelerator custom routing listeners using the `id`. For exampleconsole % pulumi import aws_globalaccelerator_custom_routing_listener.example arn:aws:globalaccelerator::111111111111:accelerator/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/listener/xxxxxxxx ", "properties": { "acceleratorArn": { "type": "string", @@ -210881,7 +210860,7 @@ } }, "aws:glue/dataQualityRuleset:DataQualityRuleset": { - "description": "Provides a Glue Data Quality Ruleset Resource. You can refer to the [Glue Developer Guide](https://docs.aws.amazon.com/glue/latest/dg/glue-data-quality.html) for a full explanation of the Glue Data Quality Ruleset functionality\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n### Basic\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\n\nconst example = new aws.glue.DataQualityRuleset(\"example\", {\n name: \"example\",\n ruleset: \"Rules = [Completeness \\\"colA\\\" between 0.4 and 0.8]\",\n});\n```\n```python\nimport pulumi\nimport pulumi_aws as aws\n\nexample = aws.glue.DataQualityRuleset(\"example\",\n name=\"example\",\n ruleset=\"Rules = [Completeness \\\"colA\\\" between 0.4 and 0.8]\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new Aws.Glue.DataQualityRuleset(\"example\", new()\n {\n Name = \"example\",\n Ruleset = \"Rules = [Completeness \\\"colA\\\" between 0.4 and 0.8]\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/glue\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := glue.NewDataQualityRuleset(ctx, \"example\", \u0026glue.DataQualityRulesetArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tRuleset: pulumi.String(\"Rules = [Completeness \\\"colA\\\" between 0.4 and 0.8]\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.glue.DataQualityRuleset;\nimport com.pulumi.aws.glue.DataQualityRulesetArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new DataQualityRuleset(\"example\", DataQualityRulesetArgs.builder() \n .name(\"example\")\n .ruleset(\"Rules = [Completeness \\\"colA\\\" between 0.4 and 0.8]\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: aws:glue:DataQualityRuleset\n properties:\n name: example\n ruleset: Rules = [Completeness \"colA\" between 0.4 and 0.8]\n```\n{{% /example %}}\n{{% example %}}\n### With description\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\n\nconst example = new aws.glue.DataQualityRuleset(\"example\", {\n description: \"example\",\n name: \"example\",\n ruleset: \"Rules = [Completeness \\\"colA\\\" between 0.4 and 0.8]\",\n});\n```\n```python\nimport pulumi\nimport pulumi_aws as aws\n\nexample = aws.glue.DataQualityRuleset(\"example\",\n description=\"example\",\n name=\"example\",\n ruleset=\"Rules = [Completeness \\\"colA\\\" between 0.4 and 0.8]\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new Aws.Glue.DataQualityRuleset(\"example\", new()\n {\n Description = \"example\",\n Name = \"example\",\n Ruleset = \"Rules = [Completeness \\\"colA\\\" between 0.4 and 0.8]\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/glue\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := glue.NewDataQualityRuleset(ctx, \"example\", \u0026glue.DataQualityRulesetArgs{\n\t\t\tDescription: pulumi.String(\"example\"),\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tRuleset: pulumi.String(\"Rules = [Completeness \\\"colA\\\" between 0.4 and 0.8]\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.glue.DataQualityRuleset;\nimport com.pulumi.aws.glue.DataQualityRulesetArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new DataQualityRuleset(\"example\", DataQualityRulesetArgs.builder() \n .description(\"example\")\n .name(\"example\")\n .ruleset(\"Rules = [Completeness \\\"colA\\\" between 0.4 and 0.8]\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: aws:glue:DataQualityRuleset\n properties:\n description: example\n name: example\n ruleset: Rules = [Completeness \"colA\" between 0.4 and 0.8]\n```\n{{% /example %}}\n{{% example %}}\n### With tags\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\n\nconst example = new aws.glue.DataQualityRuleset(\"example\", {\n name: \"example\",\n ruleset: \"Rules = [Completeness \\\"colA\\\" between 0.4 and 0.8]\",\n tags: {\n hello: \"world\",\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_aws as aws\n\nexample = aws.glue.DataQualityRuleset(\"example\",\n name=\"example\",\n ruleset=\"Rules = [Completeness \\\"colA\\\" between 0.4 and 0.8]\",\n tags={\n \"hello\": \"world\",\n })\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new Aws.Glue.DataQualityRuleset(\"example\", new()\n {\n Name = \"example\",\n Ruleset = \"Rules = [Completeness \\\"colA\\\" between 0.4 and 0.8]\",\n Tags = \n {\n { \"hello\", \"world\" },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/glue\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := glue.NewDataQualityRuleset(ctx, \"example\", \u0026glue.DataQualityRulesetArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tRuleset: pulumi.String(\"Rules = [Completeness \\\"colA\\\" between 0.4 and 0.8]\"),\n\t\t\tTags: pulumi.StringMap{\n\t\t\t\t\"hello\": pulumi.String(\"world\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.glue.DataQualityRuleset;\nimport com.pulumi.aws.glue.DataQualityRulesetArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new DataQualityRuleset(\"example\", DataQualityRulesetArgs.builder() \n .name(\"example\")\n .ruleset(\"Rules = [Completeness \\\"colA\\\" between 0.4 and 0.8]\")\n .tags(Map.of(\"hello\", \"world\"))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: aws:glue:DataQualityRuleset\n properties:\n name: example\n ruleset: Rules = [Completeness \"colA\" between 0.4 and 0.8]\n tags:\n hello: world\n```\n{{% /example %}}\n{{% example %}}\n### With target_table\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\n\nconst example = new aws.glue.DataQualityRuleset(\"example\", {\n name: \"example\",\n ruleset: \"Rules = [Completeness \\\"colA\\\" between 0.4 and 0.8]\",\n targetTable: {\n databaseName: aws_glue_catalog_database.example.name,\n tableName: aws_glue_catalog_table.example.name,\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_aws as aws\n\nexample = aws.glue.DataQualityRuleset(\"example\",\n name=\"example\",\n ruleset=\"Rules = [Completeness \\\"colA\\\" between 0.4 and 0.8]\",\n target_table=aws.glue.DataQualityRulesetTargetTableArgs(\n database_name=aws_glue_catalog_database[\"example\"][\"name\"],\n table_name=aws_glue_catalog_table[\"example\"][\"name\"],\n ))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new Aws.Glue.DataQualityRuleset(\"example\", new()\n {\n Name = \"example\",\n Ruleset = \"Rules = [Completeness \\\"colA\\\" between 0.4 and 0.8]\",\n TargetTable = new Aws.Glue.Inputs.DataQualityRulesetTargetTableArgs\n {\n DatabaseName = aws_glue_catalog_database.Example.Name,\n TableName = aws_glue_catalog_table.Example.Name,\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/glue\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := glue.NewDataQualityRuleset(ctx, \"example\", \u0026glue.DataQualityRulesetArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tRuleset: pulumi.String(\"Rules = [Completeness \\\"colA\\\" between 0.4 and 0.8]\"),\n\t\t\tTargetTable: \u0026glue.DataQualityRulesetTargetTableArgs{\n\t\t\t\tDatabaseName: pulumi.Any(aws_glue_catalog_database.Example.Name),\n\t\t\t\tTableName: pulumi.Any(aws_glue_catalog_table.Example.Name),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.glue.DataQualityRuleset;\nimport com.pulumi.aws.glue.DataQualityRulesetArgs;\nimport com.pulumi.aws.glue.inputs.DataQualityRulesetTargetTableArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new DataQualityRuleset(\"example\", DataQualityRulesetArgs.builder() \n .name(\"example\")\n .ruleset(\"Rules = [Completeness \\\"colA\\\" between 0.4 and 0.8]\")\n .targetTable(DataQualityRulesetTargetTableArgs.builder()\n .databaseName(aws_glue_catalog_database.example().name())\n .tableName(aws_glue_catalog_table.example().name())\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: aws:glue:DataQualityRuleset\n properties:\n name: example\n ruleset: Rules = [Completeness \"colA\" between 0.4 and 0.8]\n targetTable:\n databaseName: ${aws_glue_catalog_database.example.name}\n tableName: ${aws_glue_catalog_table.example.name}\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nterraform import {\n\n to = aws_glue_data_quality_ruleset.example\n\n id = \"exampleName\" } Using `pulumi import`, import Glue Data Quality Ruleset using the `name`. For exampleconsole % pulumi import aws_glue_data_quality_ruleset.example exampleName ", + "description": "Provides a Glue Data Quality Ruleset Resource. You can refer to the [Glue Developer Guide](https://docs.aws.amazon.com/glue/latest/dg/glue-data-quality.html) for a full explanation of the Glue Data Quality Ruleset functionality\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n### Basic\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\n\nconst example = new aws.glue.DataQualityRuleset(\"example\", {ruleset: \"Rules = [Completeness \\\"colA\\\" between 0.4 and 0.8]\"});\n```\n```python\nimport pulumi\nimport pulumi_aws as aws\n\nexample = aws.glue.DataQualityRuleset(\"example\", ruleset=\"Rules = [Completeness \\\"colA\\\" between 0.4 and 0.8]\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new Aws.Glue.DataQualityRuleset(\"example\", new()\n {\n Ruleset = \"Rules = [Completeness \\\"colA\\\" between 0.4 and 0.8]\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/glue\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := glue.NewDataQualityRuleset(ctx, \"example\", \u0026glue.DataQualityRulesetArgs{\n\t\t\tRuleset: pulumi.String(\"Rules = [Completeness \\\"colA\\\" between 0.4 and 0.8]\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.glue.DataQualityRuleset;\nimport com.pulumi.aws.glue.DataQualityRulesetArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new DataQualityRuleset(\"example\", DataQualityRulesetArgs.builder() \n .ruleset(\"Rules = [Completeness \\\"colA\\\" between 0.4 and 0.8]\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: aws:glue:DataQualityRuleset\n properties:\n ruleset: Rules = [Completeness \"colA\" between 0.4 and 0.8]\n```\n{{% /example %}}\n{{% example %}}\n### With description\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\n\nconst example = new aws.glue.DataQualityRuleset(\"example\", {\n description: \"example\",\n ruleset: \"Rules = [Completeness \\\"colA\\\" between 0.4 and 0.8]\",\n});\n```\n```python\nimport pulumi\nimport pulumi_aws as aws\n\nexample = aws.glue.DataQualityRuleset(\"example\",\n description=\"example\",\n ruleset=\"Rules = [Completeness \\\"colA\\\" between 0.4 and 0.8]\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new Aws.Glue.DataQualityRuleset(\"example\", new()\n {\n Description = \"example\",\n Ruleset = \"Rules = [Completeness \\\"colA\\\" between 0.4 and 0.8]\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/glue\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := glue.NewDataQualityRuleset(ctx, \"example\", \u0026glue.DataQualityRulesetArgs{\n\t\t\tDescription: pulumi.String(\"example\"),\n\t\t\tRuleset: pulumi.String(\"Rules = [Completeness \\\"colA\\\" between 0.4 and 0.8]\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.glue.DataQualityRuleset;\nimport com.pulumi.aws.glue.DataQualityRulesetArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new DataQualityRuleset(\"example\", DataQualityRulesetArgs.builder() \n .description(\"example\")\n .ruleset(\"Rules = [Completeness \\\"colA\\\" between 0.4 and 0.8]\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: aws:glue:DataQualityRuleset\n properties:\n description: example\n ruleset: Rules = [Completeness \"colA\" between 0.4 and 0.8]\n```\n{{% /example %}}\n{{% example %}}\n### With tags\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\n\nconst example = new aws.glue.DataQualityRuleset(\"example\", {\n ruleset: \"Rules = [Completeness \\\"colA\\\" between 0.4 and 0.8]\",\n tags: {\n hello: \"world\",\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_aws as aws\n\nexample = aws.glue.DataQualityRuleset(\"example\",\n ruleset=\"Rules = [Completeness \\\"colA\\\" between 0.4 and 0.8]\",\n tags={\n \"hello\": \"world\",\n })\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new Aws.Glue.DataQualityRuleset(\"example\", new()\n {\n Ruleset = \"Rules = [Completeness \\\"colA\\\" between 0.4 and 0.8]\",\n Tags = \n {\n { \"hello\", \"world\" },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/glue\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := glue.NewDataQualityRuleset(ctx, \"example\", \u0026glue.DataQualityRulesetArgs{\n\t\t\tRuleset: pulumi.String(\"Rules = [Completeness \\\"colA\\\" between 0.4 and 0.8]\"),\n\t\t\tTags: pulumi.StringMap{\n\t\t\t\t\"hello\": pulumi.String(\"world\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.glue.DataQualityRuleset;\nimport com.pulumi.aws.glue.DataQualityRulesetArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new DataQualityRuleset(\"example\", DataQualityRulesetArgs.builder() \n .ruleset(\"Rules = [Completeness \\\"colA\\\" between 0.4 and 0.8]\")\n .tags(Map.of(\"hello\", \"world\"))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: aws:glue:DataQualityRuleset\n properties:\n ruleset: Rules = [Completeness \"colA\" between 0.4 and 0.8]\n tags:\n hello: world\n```\n{{% /example %}}\n{{% example %}}\n### With target_table\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\n\nconst example = new aws.glue.DataQualityRuleset(\"example\", {\n ruleset: \"Rules = [Completeness \\\"colA\\\" between 0.4 and 0.8]\",\n targetTable: {\n databaseName: aws_glue_catalog_database.example.name,\n tableName: aws_glue_catalog_table.example.name,\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_aws as aws\n\nexample = aws.glue.DataQualityRuleset(\"example\",\n ruleset=\"Rules = [Completeness \\\"colA\\\" between 0.4 and 0.8]\",\n target_table=aws.glue.DataQualityRulesetTargetTableArgs(\n database_name=aws_glue_catalog_database[\"example\"][\"name\"],\n table_name=aws_glue_catalog_table[\"example\"][\"name\"],\n ))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new Aws.Glue.DataQualityRuleset(\"example\", new()\n {\n Ruleset = \"Rules = [Completeness \\\"colA\\\" between 0.4 and 0.8]\",\n TargetTable = new Aws.Glue.Inputs.DataQualityRulesetTargetTableArgs\n {\n DatabaseName = aws_glue_catalog_database.Example.Name,\n TableName = aws_glue_catalog_table.Example.Name,\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/glue\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := glue.NewDataQualityRuleset(ctx, \"example\", \u0026glue.DataQualityRulesetArgs{\n\t\t\tRuleset: pulumi.String(\"Rules = [Completeness \\\"colA\\\" between 0.4 and 0.8]\"),\n\t\t\tTargetTable: \u0026glue.DataQualityRulesetTargetTableArgs{\n\t\t\t\tDatabaseName: pulumi.Any(aws_glue_catalog_database.Example.Name),\n\t\t\t\tTableName: pulumi.Any(aws_glue_catalog_table.Example.Name),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.glue.DataQualityRuleset;\nimport com.pulumi.aws.glue.DataQualityRulesetArgs;\nimport com.pulumi.aws.glue.inputs.DataQualityRulesetTargetTableArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new DataQualityRuleset(\"example\", DataQualityRulesetArgs.builder() \n .ruleset(\"Rules = [Completeness \\\"colA\\\" between 0.4 and 0.8]\")\n .targetTable(DataQualityRulesetTargetTableArgs.builder()\n .databaseName(aws_glue_catalog_database.example().name())\n .tableName(aws_glue_catalog_table.example().name())\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: aws:glue:DataQualityRuleset\n properties:\n ruleset: Rules = [Completeness \"colA\" between 0.4 and 0.8]\n targetTable:\n databaseName: ${aws_glue_catalog_database.example.name}\n tableName: ${aws_glue_catalog_table.example.name}\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nterraform import {\n\n to = aws_glue_data_quality_ruleset.example\n\n id = \"exampleName\" } Using `pulumi import`, import Glue Data Quality Ruleset using the `name`. For exampleconsole % pulumi import aws_glue_data_quality_ruleset.example exampleName ", "properties": { "arn": { "type": "string", @@ -210967,7 +210946,6 @@ } }, "requiredInputs": [ - "name", "ruleset" ], "stateInputs": { @@ -245331,7 +245309,7 @@ } }, "aws:opensearch/serverlessAccessPolicy:ServerlessAccessPolicy": { - "description": "Resource for managing an AWS OpenSearch Serverless Access Policy.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n### Basic Usage\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\n\nconst currentCallerIdentity = aws.getCallerIdentity({});\nconst currentPartition = aws.getPartition({});\nconst test = new aws.opensearch.ServerlessAccessPolicy(\"test\", {\n name: \"example\",\n type: \"data\",\n policy: Promise.all([currentPartition, currentCallerIdentity]).then(([currentPartition, currentCallerIdentity]) =\u003e JSON.stringify([{\n Rules: [{\n ResourceType: \"index\",\n Resource: [\"index/books/*\"],\n Permission: [\n \"aoss:CreateIndex\",\n \"aoss:ReadDocument\",\n \"aoss:UpdateIndex\",\n \"aoss:DeleteIndex\",\n \"aoss:WriteDocument\",\n ],\n }],\n Principal: [`arn:${currentPartition.partition}:iam::${currentCallerIdentity.accountId}:user/admin`],\n }])),\n});\n```\n```python\nimport pulumi\nimport json\nimport pulumi_aws as aws\n\ncurrent_caller_identity = aws.get_caller_identity()\ncurrent_partition = aws.get_partition()\ntest = aws.opensearch.ServerlessAccessPolicy(\"test\",\n name=\"example\",\n type=\"data\",\n policy=json.dumps([{\n \"Rules\": [{\n \"ResourceType\": \"index\",\n \"Resource\": [\"index/books/*\"],\n \"Permission\": [\n \"aoss:CreateIndex\",\n \"aoss:ReadDocument\",\n \"aoss:UpdateIndex\",\n \"aoss:DeleteIndex\",\n \"aoss:WriteDocument\",\n ],\n }],\n \"Principal\": [f\"arn:{current_partition.partition}:iam::{current_caller_identity.account_id}:user/admin\"],\n }]))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text.Json;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var currentCallerIdentity = Aws.GetCallerIdentity.Invoke();\n\n var currentPartition = Aws.GetPartition.Invoke();\n\n var test = new Aws.OpenSearch.ServerlessAccessPolicy(\"test\", new()\n {\n Name = \"example\",\n Type = \"data\",\n Policy = Output.Tuple(currentPartition, currentCallerIdentity).Apply(values =\u003e\n {\n var currentPartition = values.Item1;\n var currentCallerIdentity = values.Item2;\n return JsonSerializer.Serialize(new[]\n {\n new Dictionary\u003cstring, object?\u003e\n {\n [\"Rules\"] = new[]\n {\n new Dictionary\u003cstring, object?\u003e\n {\n [\"ResourceType\"] = \"index\",\n [\"Resource\"] = new[]\n {\n \"index/books/*\",\n },\n [\"Permission\"] = new[]\n {\n \"aoss:CreateIndex\",\n \"aoss:ReadDocument\",\n \"aoss:UpdateIndex\",\n \"aoss:DeleteIndex\",\n \"aoss:WriteDocument\",\n },\n },\n },\n [\"Principal\"] = new[]\n {\n $\"arn:{currentPartition.Apply(getPartitionResult =\u003e getPartitionResult.Partition)}:iam::{currentCallerIdentity.Apply(getCallerIdentityResult =\u003e getCallerIdentityResult.AccountId)}:user/admin\",\n },\n },\n });\n }),\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"encoding/json\"\n\t\"fmt\"\n\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws\"\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/opensearch\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tcurrentCallerIdentity, err := aws.GetCallerIdentity(ctx, nil, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tcurrentPartition, err := aws.GetPartition(ctx, nil, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\ttmpJSON0, err := json.Marshal([]map[string]interface{}{\n\t\t\tmap[string]interface{}{\n\t\t\t\t\"Rules\": []map[string]interface{}{\n\t\t\t\t\tmap[string]interface{}{\n\t\t\t\t\t\t\"ResourceType\": \"index\",\n\t\t\t\t\t\t\"Resource\": []string{\n\t\t\t\t\t\t\t\"index/books/*\",\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"Permission\": []string{\n\t\t\t\t\t\t\t\"aoss:CreateIndex\",\n\t\t\t\t\t\t\t\"aoss:ReadDocument\",\n\t\t\t\t\t\t\t\"aoss:UpdateIndex\",\n\t\t\t\t\t\t\t\"aoss:DeleteIndex\",\n\t\t\t\t\t\t\t\"aoss:WriteDocument\",\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\t\"Principal\": []string{\n\t\t\t\t\tfmt.Sprintf(\"arn:%v:iam::%v:user/admin\", currentPartition.Partition, currentCallerIdentity.AccountId),\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tjson0 := string(tmpJSON0)\n\t\t_, err = opensearch.NewServerlessAccessPolicy(ctx, \"test\", \u0026opensearch.ServerlessAccessPolicyArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tType: pulumi.String(\"data\"),\n\t\t\tPolicy: pulumi.String(json0),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.AwsFunctions;\nimport com.pulumi.aws.inputs.GetCallerIdentityArgs;\nimport com.pulumi.aws.inputs.GetPartitionArgs;\nimport com.pulumi.aws.opensearch.ServerlessAccessPolicy;\nimport com.pulumi.aws.opensearch.ServerlessAccessPolicyArgs;\nimport static com.pulumi.codegen.internal.Serialization.*;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var currentCallerIdentity = AwsFunctions.getCallerIdentity();\n\n final var currentPartition = AwsFunctions.getPartition();\n\n var test = new ServerlessAccessPolicy(\"test\", ServerlessAccessPolicyArgs.builder() \n .name(\"example\")\n .type(\"data\")\n .policy(serializeJson(\n jsonArray(jsonObject(\n jsonProperty(\"Rules\", jsonArray(jsonObject(\n jsonProperty(\"ResourceType\", \"index\"),\n jsonProperty(\"Resource\", jsonArray(\"index/books/*\")),\n jsonProperty(\"Permission\", jsonArray(\n \"aoss:CreateIndex\", \n \"aoss:ReadDocument\", \n \"aoss:UpdateIndex\", \n \"aoss:DeleteIndex\", \n \"aoss:WriteDocument\"\n ))\n ))),\n jsonProperty(\"Principal\", jsonArray(String.format(\"arn:%s:iam::%s:user/admin\", currentPartition.applyValue(getPartitionResult -\u003e getPartitionResult.partition()),currentCallerIdentity.applyValue(getCallerIdentityResult -\u003e getCallerIdentityResult.accountId()))))\n ))))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n test:\n type: aws:opensearch:ServerlessAccessPolicy\n properties:\n name: example\n type: data\n policy:\n fn::toJSON:\n - Rules:\n - ResourceType: index\n Resource:\n - index/books/*\n Permission:\n - aoss:CreateIndex\n - aoss:ReadDocument\n - aoss:UpdateIndex\n - aoss:DeleteIndex\n - aoss:WriteDocument\n Principal:\n - arn:${currentPartition.partition}:iam::${currentCallerIdentity.accountId}:user/admin\nvariables:\n currentCallerIdentity:\n fn::invoke:\n Function: aws:getCallerIdentity\n Arguments: {}\n currentPartition:\n fn::invoke:\n Function: aws:getPartition\n Arguments: {}\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nterraform import {\n\n to = aws_opensearchserverless_access_policy.example\n\n id = \"example/data\" } Using `pulumi import`, import OpenSearchServerless Access Policy using the `name` and `type` arguments separated by a slash (`/`). For exampleconsole % pulumi import aws_opensearchserverless_access_policy.example example/data ", + "description": "Resource for managing an AWS OpenSearch Serverless Access Policy.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n### Basic Usage\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\n\nconst currentCallerIdentity = aws.getCallerIdentity({});\nconst currentPartition = aws.getPartition({});\nconst test = new aws.opensearch.ServerlessAccessPolicy(\"test\", {\n type: \"data\",\n policy: Promise.all([currentPartition, currentCallerIdentity]).then(([currentPartition, currentCallerIdentity]) =\u003e JSON.stringify([{\n Rules: [{\n ResourceType: \"index\",\n Resource: [\"index/books/*\"],\n Permission: [\n \"aoss:CreateIndex\",\n \"aoss:ReadDocument\",\n \"aoss:UpdateIndex\",\n \"aoss:DeleteIndex\",\n \"aoss:WriteDocument\",\n ],\n }],\n Principal: [`arn:${currentPartition.partition}:iam::${currentCallerIdentity.accountId}:user/admin`],\n }])),\n});\n```\n```python\nimport pulumi\nimport json\nimport pulumi_aws as aws\n\ncurrent_caller_identity = aws.get_caller_identity()\ncurrent_partition = aws.get_partition()\ntest = aws.opensearch.ServerlessAccessPolicy(\"test\",\n type=\"data\",\n policy=json.dumps([{\n \"Rules\": [{\n \"ResourceType\": \"index\",\n \"Resource\": [\"index/books/*\"],\n \"Permission\": [\n \"aoss:CreateIndex\",\n \"aoss:ReadDocument\",\n \"aoss:UpdateIndex\",\n \"aoss:DeleteIndex\",\n \"aoss:WriteDocument\",\n ],\n }],\n \"Principal\": [f\"arn:{current_partition.partition}:iam::{current_caller_identity.account_id}:user/admin\"],\n }]))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text.Json;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var currentCallerIdentity = Aws.GetCallerIdentity.Invoke();\n\n var currentPartition = Aws.GetPartition.Invoke();\n\n var test = new Aws.OpenSearch.ServerlessAccessPolicy(\"test\", new()\n {\n Type = \"data\",\n Policy = Output.Tuple(currentPartition, currentCallerIdentity).Apply(values =\u003e\n {\n var currentPartition = values.Item1;\n var currentCallerIdentity = values.Item2;\n return JsonSerializer.Serialize(new[]\n {\n new Dictionary\u003cstring, object?\u003e\n {\n [\"Rules\"] = new[]\n {\n new Dictionary\u003cstring, object?\u003e\n {\n [\"ResourceType\"] = \"index\",\n [\"Resource\"] = new[]\n {\n \"index/books/*\",\n },\n [\"Permission\"] = new[]\n {\n \"aoss:CreateIndex\",\n \"aoss:ReadDocument\",\n \"aoss:UpdateIndex\",\n \"aoss:DeleteIndex\",\n \"aoss:WriteDocument\",\n },\n },\n },\n [\"Principal\"] = new[]\n {\n $\"arn:{currentPartition.Apply(getPartitionResult =\u003e getPartitionResult.Partition)}:iam::{currentCallerIdentity.Apply(getCallerIdentityResult =\u003e getCallerIdentityResult.AccountId)}:user/admin\",\n },\n },\n });\n }),\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"encoding/json\"\n\t\"fmt\"\n\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws\"\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/opensearch\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tcurrentCallerIdentity, err := aws.GetCallerIdentity(ctx, nil, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tcurrentPartition, err := aws.GetPartition(ctx, nil, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\ttmpJSON0, err := json.Marshal([]map[string]interface{}{\n\t\t\tmap[string]interface{}{\n\t\t\t\t\"Rules\": []map[string]interface{}{\n\t\t\t\t\tmap[string]interface{}{\n\t\t\t\t\t\t\"ResourceType\": \"index\",\n\t\t\t\t\t\t\"Resource\": []string{\n\t\t\t\t\t\t\t\"index/books/*\",\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"Permission\": []string{\n\t\t\t\t\t\t\t\"aoss:CreateIndex\",\n\t\t\t\t\t\t\t\"aoss:ReadDocument\",\n\t\t\t\t\t\t\t\"aoss:UpdateIndex\",\n\t\t\t\t\t\t\t\"aoss:DeleteIndex\",\n\t\t\t\t\t\t\t\"aoss:WriteDocument\",\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\t\"Principal\": []string{\n\t\t\t\t\tfmt.Sprintf(\"arn:%v:iam::%v:user/admin\", currentPartition.Partition, currentCallerIdentity.AccountId),\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tjson0 := string(tmpJSON0)\n\t\t_, err = opensearch.NewServerlessAccessPolicy(ctx, \"test\", \u0026opensearch.ServerlessAccessPolicyArgs{\n\t\t\tType: pulumi.String(\"data\"),\n\t\t\tPolicy: pulumi.String(json0),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.AwsFunctions;\nimport com.pulumi.aws.inputs.GetCallerIdentityArgs;\nimport com.pulumi.aws.inputs.GetPartitionArgs;\nimport com.pulumi.aws.opensearch.ServerlessAccessPolicy;\nimport com.pulumi.aws.opensearch.ServerlessAccessPolicyArgs;\nimport static com.pulumi.codegen.internal.Serialization.*;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var currentCallerIdentity = AwsFunctions.getCallerIdentity();\n\n final var currentPartition = AwsFunctions.getPartition();\n\n var test = new ServerlessAccessPolicy(\"test\", ServerlessAccessPolicyArgs.builder() \n .type(\"data\")\n .policy(serializeJson(\n jsonArray(jsonObject(\n jsonProperty(\"Rules\", jsonArray(jsonObject(\n jsonProperty(\"ResourceType\", \"index\"),\n jsonProperty(\"Resource\", jsonArray(\"index/books/*\")),\n jsonProperty(\"Permission\", jsonArray(\n \"aoss:CreateIndex\", \n \"aoss:ReadDocument\", \n \"aoss:UpdateIndex\", \n \"aoss:DeleteIndex\", \n \"aoss:WriteDocument\"\n ))\n ))),\n jsonProperty(\"Principal\", jsonArray(String.format(\"arn:%s:iam::%s:user/admin\", currentPartition.applyValue(getPartitionResult -\u003e getPartitionResult.partition()),currentCallerIdentity.applyValue(getCallerIdentityResult -\u003e getCallerIdentityResult.accountId()))))\n ))))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n test:\n type: aws:opensearch:ServerlessAccessPolicy\n properties:\n type: data\n policy:\n fn::toJSON:\n - Rules:\n - ResourceType: index\n Resource:\n - index/books/*\n Permission:\n - aoss:CreateIndex\n - aoss:ReadDocument\n - aoss:UpdateIndex\n - aoss:DeleteIndex\n - aoss:WriteDocument\n Principal:\n - arn:${currentPartition.partition}:iam::${currentCallerIdentity.accountId}:user/admin\nvariables:\n currentCallerIdentity:\n fn::invoke:\n Function: aws:getCallerIdentity\n Arguments: {}\n currentPartition:\n fn::invoke:\n Function: aws:getPartition\n Arguments: {}\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nterraform import {\n\n to = aws_opensearchserverless_access_policy.example\n\n id = \"example/data\" } Using `pulumi import`, import OpenSearchServerless Access Policy using the `name` and `type` arguments separated by a slash (`/`). For exampleconsole % pulumi import aws_opensearchserverless_access_policy.example example/data ", "properties": { "description": { "type": "string", @@ -245379,7 +245357,6 @@ } }, "requiredInputs": [ - "name", "policy", "type" ], @@ -245411,7 +245388,7 @@ } }, "aws:opensearch/serverlessCollection:ServerlessCollection": { - "description": "Resource for managing an AWS OpenSearch Serverless Collection.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n### Basic Usage\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\n\nconst exampleServerlessSecurityPolicy = new aws.opensearch.ServerlessSecurityPolicy(\"exampleServerlessSecurityPolicy\", {\n name: \"example\",\n type: \"encryption\",\n policy: JSON.stringify({\n Rules: [{\n Resource: [\"collection/example\"],\n ResourceType: \"collection\",\n }],\n AWSOwnedKey: true,\n }),\n});\nconst exampleServerlessCollection = new aws.opensearch.ServerlessCollection(\"exampleServerlessCollection\", {name: \"example\"}, {\n dependsOn: [exampleServerlessSecurityPolicy],\n});\n```\n```python\nimport pulumi\nimport json\nimport pulumi_aws as aws\n\nexample_serverless_security_policy = aws.opensearch.ServerlessSecurityPolicy(\"exampleServerlessSecurityPolicy\",\n name=\"example\",\n type=\"encryption\",\n policy=json.dumps({\n \"Rules\": [{\n \"Resource\": [\"collection/example\"],\n \"ResourceType\": \"collection\",\n }],\n \"AWSOwnedKey\": True,\n }))\nexample_serverless_collection = aws.opensearch.ServerlessCollection(\"exampleServerlessCollection\", name=\"example\",\nopts=pulumi.ResourceOptions(depends_on=[example_serverless_security_policy]))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text.Json;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var exampleServerlessSecurityPolicy = new Aws.OpenSearch.ServerlessSecurityPolicy(\"exampleServerlessSecurityPolicy\", new()\n {\n Name = \"example\",\n Type = \"encryption\",\n Policy = JsonSerializer.Serialize(new Dictionary\u003cstring, object?\u003e\n {\n [\"Rules\"] = new[]\n {\n new Dictionary\u003cstring, object?\u003e\n {\n [\"Resource\"] = new[]\n {\n \"collection/example\",\n },\n [\"ResourceType\"] = \"collection\",\n },\n },\n [\"AWSOwnedKey\"] = true,\n }),\n });\n\n var exampleServerlessCollection = new Aws.OpenSearch.ServerlessCollection(\"exampleServerlessCollection\", new()\n {\n Name = \"example\",\n }, new CustomResourceOptions\n {\n DependsOn = new[]\n {\n exampleServerlessSecurityPolicy,\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"encoding/json\"\n\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/opensearch\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\ttmpJSON0, err := json.Marshal(map[string]interface{}{\n\t\t\t\"Rules\": []map[string]interface{}{\n\t\t\t\tmap[string]interface{}{\n\t\t\t\t\t\"Resource\": []string{\n\t\t\t\t\t\t\"collection/example\",\n\t\t\t\t\t},\n\t\t\t\t\t\"ResourceType\": \"collection\",\n\t\t\t\t},\n\t\t\t},\n\t\t\t\"AWSOwnedKey\": true,\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tjson0 := string(tmpJSON0)\n\t\texampleServerlessSecurityPolicy, err := opensearch.NewServerlessSecurityPolicy(ctx, \"exampleServerlessSecurityPolicy\", \u0026opensearch.ServerlessSecurityPolicyArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tType: pulumi.String(\"encryption\"),\n\t\t\tPolicy: pulumi.String(json0),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = opensearch.NewServerlessCollection(ctx, \"exampleServerlessCollection\", \u0026opensearch.ServerlessCollectionArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t}, pulumi.DependsOn([]pulumi.Resource{\n\t\t\texampleServerlessSecurityPolicy,\n\t\t}))\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.opensearch.ServerlessSecurityPolicy;\nimport com.pulumi.aws.opensearch.ServerlessSecurityPolicyArgs;\nimport com.pulumi.aws.opensearch.ServerlessCollection;\nimport com.pulumi.aws.opensearch.ServerlessCollectionArgs;\nimport static com.pulumi.codegen.internal.Serialization.*;\nimport com.pulumi.resources.CustomResourceOptions;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var exampleServerlessSecurityPolicy = new ServerlessSecurityPolicy(\"exampleServerlessSecurityPolicy\", ServerlessSecurityPolicyArgs.builder() \n .name(\"example\")\n .type(\"encryption\")\n .policy(serializeJson(\n jsonObject(\n jsonProperty(\"Rules\", jsonArray(jsonObject(\n jsonProperty(\"Resource\", jsonArray(\"collection/example\")),\n jsonProperty(\"ResourceType\", \"collection\")\n ))),\n jsonProperty(\"AWSOwnedKey\", true)\n )))\n .build());\n\n var exampleServerlessCollection = new ServerlessCollection(\"exampleServerlessCollection\", ServerlessCollectionArgs.builder() \n .name(\"example\")\n .build(), CustomResourceOptions.builder()\n .dependsOn(exampleServerlessSecurityPolicy)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleServerlessSecurityPolicy:\n type: aws:opensearch:ServerlessSecurityPolicy\n properties:\n name: example\n type: encryption\n policy:\n fn::toJSON:\n Rules:\n - Resource:\n - collection/example\n ResourceType: collection\n AWSOwnedKey: true\n exampleServerlessCollection:\n type: aws:opensearch:ServerlessCollection\n properties:\n name: example\n options:\n dependson:\n - ${exampleServerlessSecurityPolicy}\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nterraform import {\n\n to = aws_opensearchserverless_collection.example\n\n id = \"example\" } Using `pulumi import`, import OpenSearchServerless Collection using the `id`. For exampleconsole % pulumi import aws_opensearchserverless_collection.example example ", + "description": "Resource for managing an AWS OpenSearch Serverless Collection.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n### Basic Usage\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\n\nconst exampleServerlessSecurityPolicy = new aws.opensearch.ServerlessSecurityPolicy(\"exampleServerlessSecurityPolicy\", {\n type: \"encryption\",\n policy: JSON.stringify({\n Rules: [{\n Resource: [\"collection/example\"],\n ResourceType: \"collection\",\n }],\n AWSOwnedKey: true,\n }),\n});\nconst exampleServerlessCollection = new aws.opensearch.ServerlessCollection(\"exampleServerlessCollection\", {}, {\n dependsOn: [exampleServerlessSecurityPolicy],\n});\n```\n```python\nimport pulumi\nimport json\nimport pulumi_aws as aws\n\nexample_serverless_security_policy = aws.opensearch.ServerlessSecurityPolicy(\"exampleServerlessSecurityPolicy\",\n type=\"encryption\",\n policy=json.dumps({\n \"Rules\": [{\n \"Resource\": [\"collection/example\"],\n \"ResourceType\": \"collection\",\n }],\n \"AWSOwnedKey\": True,\n }))\nexample_serverless_collection = aws.opensearch.ServerlessCollection(\"exampleServerlessCollection\", opts=pulumi.ResourceOptions(depends_on=[example_serverless_security_policy]))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text.Json;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var exampleServerlessSecurityPolicy = new Aws.OpenSearch.ServerlessSecurityPolicy(\"exampleServerlessSecurityPolicy\", new()\n {\n Type = \"encryption\",\n Policy = JsonSerializer.Serialize(new Dictionary\u003cstring, object?\u003e\n {\n [\"Rules\"] = new[]\n {\n new Dictionary\u003cstring, object?\u003e\n {\n [\"Resource\"] = new[]\n {\n \"collection/example\",\n },\n [\"ResourceType\"] = \"collection\",\n },\n },\n [\"AWSOwnedKey\"] = true,\n }),\n });\n\n var exampleServerlessCollection = new Aws.OpenSearch.ServerlessCollection(\"exampleServerlessCollection\", new()\n {\n }, new CustomResourceOptions\n {\n DependsOn = new[]\n {\n exampleServerlessSecurityPolicy,\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"encoding/json\"\n\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/opensearch\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\ttmpJSON0, err := json.Marshal(map[string]interface{}{\n\t\t\t\"Rules\": []map[string]interface{}{\n\t\t\t\tmap[string]interface{}{\n\t\t\t\t\t\"Resource\": []string{\n\t\t\t\t\t\t\"collection/example\",\n\t\t\t\t\t},\n\t\t\t\t\t\"ResourceType\": \"collection\",\n\t\t\t\t},\n\t\t\t},\n\t\t\t\"AWSOwnedKey\": true,\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tjson0 := string(tmpJSON0)\n\t\texampleServerlessSecurityPolicy, err := opensearch.NewServerlessSecurityPolicy(ctx, \"exampleServerlessSecurityPolicy\", \u0026opensearch.ServerlessSecurityPolicyArgs{\n\t\t\tType: pulumi.String(\"encryption\"),\n\t\t\tPolicy: pulumi.String(json0),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = opensearch.NewServerlessCollection(ctx, \"exampleServerlessCollection\", nil, pulumi.DependsOn([]pulumi.Resource{\n\t\t\texampleServerlessSecurityPolicy,\n\t\t}))\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.opensearch.ServerlessSecurityPolicy;\nimport com.pulumi.aws.opensearch.ServerlessSecurityPolicyArgs;\nimport com.pulumi.aws.opensearch.ServerlessCollection;\nimport com.pulumi.aws.opensearch.ServerlessCollectionArgs;\nimport static com.pulumi.codegen.internal.Serialization.*;\nimport com.pulumi.resources.CustomResourceOptions;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var exampleServerlessSecurityPolicy = new ServerlessSecurityPolicy(\"exampleServerlessSecurityPolicy\", ServerlessSecurityPolicyArgs.builder() \n .type(\"encryption\")\n .policy(serializeJson(\n jsonObject(\n jsonProperty(\"Rules\", jsonArray(jsonObject(\n jsonProperty(\"Resource\", jsonArray(\"collection/example\")),\n jsonProperty(\"ResourceType\", \"collection\")\n ))),\n jsonProperty(\"AWSOwnedKey\", true)\n )))\n .build());\n\n var exampleServerlessCollection = new ServerlessCollection(\"exampleServerlessCollection\", ServerlessCollectionArgs.Empty, CustomResourceOptions.builder()\n .dependsOn(exampleServerlessSecurityPolicy)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleServerlessSecurityPolicy:\n type: aws:opensearch:ServerlessSecurityPolicy\n properties:\n type: encryption\n policy:\n fn::toJSON:\n Rules:\n - Resource:\n - collection/example\n ResourceType: collection\n AWSOwnedKey: true\n exampleServerlessCollection:\n type: aws:opensearch:ServerlessCollection\n options:\n dependson:\n - ${exampleServerlessSecurityPolicy}\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nterraform import {\n\n to = aws_opensearchserverless_collection.example\n\n id = \"example\" } Using `pulumi import`, import OpenSearchServerless Collection using the `id`. For exampleconsole % pulumi import aws_opensearchserverless_collection.example example ", "properties": { "arn": { "type": "string", @@ -245490,9 +245467,6 @@ "description": "Type of collection. One of `SEARCH` or `TIMESERIES`.\n" } }, - "requiredInputs": [ - "name" - ], "stateInputs": { "description": "Input properties used for looking up and filtering ServerlessCollection resources.\n", "properties": { @@ -245544,7 +245518,7 @@ } }, "aws:opensearch/serverlessSecurityConfig:ServerlessSecurityConfig": { - "description": "Resource for managing an AWS OpenSearch Serverless Security Config.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n### Basic Usage\n\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.opensearch.ServerlessSecurityConfig;\nimport com.pulumi.aws.opensearch.ServerlessSecurityConfigArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new ServerlessSecurityConfig(\"example\", ServerlessSecurityConfigArgs.builder() \n .name(\"example\")\n .type(\"saml\")\n .samlOptions(ServerlessSecurityConfigSamlOptionsArgs.builder()\n .metadata(Files.readString(Paths.get(String.format(\"%s/idp-metadata.xml\", path.module()))))\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: aws:opensearch:ServerlessSecurityConfig\n properties:\n name: example\n type: saml\n samlOptions:\n - metadata:\n fn::readFile: ${path.module}/idp-metadata.xml\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nterraform import {\n\n to = aws_opensearchserverless_security_config.example\n\n id = \"saml/123456789012/example\" } Using `pulumi import`, import OpenSearchServerless Access Policy using the `name` argument prefixed with the string `saml/account_id/`. For exampleconsole % pulumi import aws_opensearchserverless_security_config.example saml/123456789012/example ", + "description": "Resource for managing an AWS OpenSearch Serverless Security Config.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n### Basic Usage\n\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.opensearch.ServerlessSecurityConfig;\nimport com.pulumi.aws.opensearch.ServerlessSecurityConfigArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new ServerlessSecurityConfig(\"example\", ServerlessSecurityConfigArgs.builder() \n .type(\"saml\")\n .samlOptions(ServerlessSecurityConfigSamlOptionsArgs.builder()\n .metadata(Files.readString(Paths.get(String.format(\"%s/idp-metadata.xml\", path.module()))))\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: aws:opensearch:ServerlessSecurityConfig\n properties:\n type: saml\n samlOptions:\n - metadata:\n fn::readFile: ${path.module}/idp-metadata.xml\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nterraform import {\n\n to = aws_opensearchserverless_security_config.example\n\n id = \"saml/123456789012/example\" } Using `pulumi import`, import OpenSearchServerless Access Policy using the `name` argument prefixed with the string `saml/account_id/`. For exampleconsole % pulumi import aws_opensearchserverless_security_config.example saml/123456789012/example ", "properties": { "configVersion": { "type": "string", @@ -245591,7 +245565,6 @@ } }, "requiredInputs": [ - "name", "type" ], "stateInputs": { @@ -245622,7 +245595,7 @@ } }, "aws:opensearch/serverlessSecurityPolicy:ServerlessSecurityPolicy": { - "description": "Resource for managing an AWS OpenSearch Serverless Security Policy. See AWS documentation for [encryption policies](https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-encryption.html#serverless-encryption-policies) and [network policies](https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-network.html#serverless-network-policies).\n\n{{% examples %}}\n## Example Usage\n\n### Encryption Security Policy\n{{% example %}}\n### Applies to a single collection\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\n\nconst example = new aws.opensearch.ServerlessSecurityPolicy(\"example\", {\n name: \"example\",\n type: \"encryption\",\n description: \"encryption security policy for example-collection\",\n policy: JSON.stringify({\n Rules: [{\n Resource: [\"collection/example-collection\"],\n ResourceType: \"collection\",\n }],\n AWSOwnedKey: true,\n }),\n});\n```\n```python\nimport pulumi\nimport json\nimport pulumi_aws as aws\n\nexample = aws.opensearch.ServerlessSecurityPolicy(\"example\",\n name=\"example\",\n type=\"encryption\",\n description=\"encryption security policy for example-collection\",\n policy=json.dumps({\n \"Rules\": [{\n \"Resource\": [\"collection/example-collection\"],\n \"ResourceType\": \"collection\",\n }],\n \"AWSOwnedKey\": True,\n }))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text.Json;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new Aws.OpenSearch.ServerlessSecurityPolicy(\"example\", new()\n {\n Name = \"example\",\n Type = \"encryption\",\n Description = \"encryption security policy for example-collection\",\n Policy = JsonSerializer.Serialize(new Dictionary\u003cstring, object?\u003e\n {\n [\"Rules\"] = new[]\n {\n new Dictionary\u003cstring, object?\u003e\n {\n [\"Resource\"] = new[]\n {\n \"collection/example-collection\",\n },\n [\"ResourceType\"] = \"collection\",\n },\n },\n [\"AWSOwnedKey\"] = true,\n }),\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"encoding/json\"\n\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/opensearch\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\ttmpJSON0, err := json.Marshal(map[string]interface{}{\n\t\t\t\"Rules\": []map[string]interface{}{\n\t\t\t\tmap[string]interface{}{\n\t\t\t\t\t\"Resource\": []string{\n\t\t\t\t\t\t\"collection/example-collection\",\n\t\t\t\t\t},\n\t\t\t\t\t\"ResourceType\": \"collection\",\n\t\t\t\t},\n\t\t\t},\n\t\t\t\"AWSOwnedKey\": true,\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tjson0 := string(tmpJSON0)\n\t\t_, err = opensearch.NewServerlessSecurityPolicy(ctx, \"example\", \u0026opensearch.ServerlessSecurityPolicyArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tType: pulumi.String(\"encryption\"),\n\t\t\tDescription: pulumi.String(\"encryption security policy for example-collection\"),\n\t\t\tPolicy: pulumi.String(json0),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.opensearch.ServerlessSecurityPolicy;\nimport com.pulumi.aws.opensearch.ServerlessSecurityPolicyArgs;\nimport static com.pulumi.codegen.internal.Serialization.*;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new ServerlessSecurityPolicy(\"example\", ServerlessSecurityPolicyArgs.builder() \n .name(\"example\")\n .type(\"encryption\")\n .description(\"encryption security policy for example-collection\")\n .policy(serializeJson(\n jsonObject(\n jsonProperty(\"Rules\", jsonArray(jsonObject(\n jsonProperty(\"Resource\", jsonArray(\"collection/example-collection\")),\n jsonProperty(\"ResourceType\", \"collection\")\n ))),\n jsonProperty(\"AWSOwnedKey\", true)\n )))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: aws:opensearch:ServerlessSecurityPolicy\n properties:\n name: example\n type: encryption\n description: encryption security policy for example-collection\n policy:\n fn::toJSON:\n Rules:\n - Resource:\n - collection/example-collection\n ResourceType: collection\n AWSOwnedKey: true\n```\n{{% /example %}}\n{{% example %}}\n### Applies to multiple collections\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\n\nconst example = new aws.opensearch.ServerlessSecurityPolicy(\"example\", {\n name: \"example\",\n type: \"encryption\",\n description: \"encryption security policy for collections that begin with \\\"example\\\"\",\n policy: JSON.stringify({\n Rules: [{\n Resource: [\"collection/example*\"],\n ResourceType: \"collection\",\n }],\n AWSOwnedKey: true,\n }),\n});\n```\n```python\nimport pulumi\nimport json\nimport pulumi_aws as aws\n\nexample = aws.opensearch.ServerlessSecurityPolicy(\"example\",\n name=\"example\",\n type=\"encryption\",\n description=\"encryption security policy for collections that begin with \\\"example\\\"\",\n policy=json.dumps({\n \"Rules\": [{\n \"Resource\": [\"collection/example*\"],\n \"ResourceType\": \"collection\",\n }],\n \"AWSOwnedKey\": True,\n }))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text.Json;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new Aws.OpenSearch.ServerlessSecurityPolicy(\"example\", new()\n {\n Name = \"example\",\n Type = \"encryption\",\n Description = \"encryption security policy for collections that begin with \\\"example\\\"\",\n Policy = JsonSerializer.Serialize(new Dictionary\u003cstring, object?\u003e\n {\n [\"Rules\"] = new[]\n {\n new Dictionary\u003cstring, object?\u003e\n {\n [\"Resource\"] = new[]\n {\n \"collection/example*\",\n },\n [\"ResourceType\"] = \"collection\",\n },\n },\n [\"AWSOwnedKey\"] = true,\n }),\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"encoding/json\"\n\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/opensearch\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\ttmpJSON0, err := json.Marshal(map[string]interface{}{\n\t\t\t\"Rules\": []map[string]interface{}{\n\t\t\t\tmap[string]interface{}{\n\t\t\t\t\t\"Resource\": []string{\n\t\t\t\t\t\t\"collection/example*\",\n\t\t\t\t\t},\n\t\t\t\t\t\"ResourceType\": \"collection\",\n\t\t\t\t},\n\t\t\t},\n\t\t\t\"AWSOwnedKey\": true,\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tjson0 := string(tmpJSON0)\n\t\t_, err = opensearch.NewServerlessSecurityPolicy(ctx, \"example\", \u0026opensearch.ServerlessSecurityPolicyArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tType: pulumi.String(\"encryption\"),\n\t\t\tDescription: pulumi.String(\"encryption security policy for collections that begin with \\\"example\\\"\"),\n\t\t\tPolicy: pulumi.String(json0),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.opensearch.ServerlessSecurityPolicy;\nimport com.pulumi.aws.opensearch.ServerlessSecurityPolicyArgs;\nimport static com.pulumi.codegen.internal.Serialization.*;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new ServerlessSecurityPolicy(\"example\", ServerlessSecurityPolicyArgs.builder() \n .name(\"example\")\n .type(\"encryption\")\n .description(\"encryption security policy for collections that begin with \\\"example\\\"\")\n .policy(serializeJson(\n jsonObject(\n jsonProperty(\"Rules\", jsonArray(jsonObject(\n jsonProperty(\"Resource\", jsonArray(\"collection/example*\")),\n jsonProperty(\"ResourceType\", \"collection\")\n ))),\n jsonProperty(\"AWSOwnedKey\", true)\n )))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: aws:opensearch:ServerlessSecurityPolicy\n properties:\n name: example\n type: encryption\n description: encryption security policy for collections that begin with \"example\"\n policy:\n fn::toJSON:\n Rules:\n - Resource:\n - collection/example*\n ResourceType: collection\n AWSOwnedKey: true\n```\n{{% /example %}}\n{{% example %}}\n### Using a customer managed key\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\n\nconst example = new aws.opensearch.ServerlessSecurityPolicy(\"example\", {\n name: \"example\",\n type: \"encryption\",\n description: \"encryption security policy using customer KMS key\",\n policy: JSON.stringify({\n Rules: [{\n Resource: [\"collection/customer-managed-key-collection\"],\n ResourceType: \"collection\",\n }],\n AWSOwnedKey: false,\n KmsARN: \"arn:aws:kms:us-east-1:123456789012:key/93fd6da4-a317-4c17-bfe9-382b5d988b36\",\n }),\n});\n```\n```python\nimport pulumi\nimport json\nimport pulumi_aws as aws\n\nexample = aws.opensearch.ServerlessSecurityPolicy(\"example\",\n name=\"example\",\n type=\"encryption\",\n description=\"encryption security policy using customer KMS key\",\n policy=json.dumps({\n \"Rules\": [{\n \"Resource\": [\"collection/customer-managed-key-collection\"],\n \"ResourceType\": \"collection\",\n }],\n \"AWSOwnedKey\": False,\n \"KmsARN\": \"arn:aws:kms:us-east-1:123456789012:key/93fd6da4-a317-4c17-bfe9-382b5d988b36\",\n }))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text.Json;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new Aws.OpenSearch.ServerlessSecurityPolicy(\"example\", new()\n {\n Name = \"example\",\n Type = \"encryption\",\n Description = \"encryption security policy using customer KMS key\",\n Policy = JsonSerializer.Serialize(new Dictionary\u003cstring, object?\u003e\n {\n [\"Rules\"] = new[]\n {\n new Dictionary\u003cstring, object?\u003e\n {\n [\"Resource\"] = new[]\n {\n \"collection/customer-managed-key-collection\",\n },\n [\"ResourceType\"] = \"collection\",\n },\n },\n [\"AWSOwnedKey\"] = false,\n [\"KmsARN\"] = \"arn:aws:kms:us-east-1:123456789012:key/93fd6da4-a317-4c17-bfe9-382b5d988b36\",\n }),\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"encoding/json\"\n\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/opensearch\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\ttmpJSON0, err := json.Marshal(map[string]interface{}{\n\t\t\t\"Rules\": []map[string]interface{}{\n\t\t\t\tmap[string]interface{}{\n\t\t\t\t\t\"Resource\": []string{\n\t\t\t\t\t\t\"collection/customer-managed-key-collection\",\n\t\t\t\t\t},\n\t\t\t\t\t\"ResourceType\": \"collection\",\n\t\t\t\t},\n\t\t\t},\n\t\t\t\"AWSOwnedKey\": false,\n\t\t\t\"KmsARN\": \"arn:aws:kms:us-east-1:123456789012:key/93fd6da4-a317-4c17-bfe9-382b5d988b36\",\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tjson0 := string(tmpJSON0)\n\t\t_, err = opensearch.NewServerlessSecurityPolicy(ctx, \"example\", \u0026opensearch.ServerlessSecurityPolicyArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tType: pulumi.String(\"encryption\"),\n\t\t\tDescription: pulumi.String(\"encryption security policy using customer KMS key\"),\n\t\t\tPolicy: pulumi.String(json0),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.opensearch.ServerlessSecurityPolicy;\nimport com.pulumi.aws.opensearch.ServerlessSecurityPolicyArgs;\nimport static com.pulumi.codegen.internal.Serialization.*;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new ServerlessSecurityPolicy(\"example\", ServerlessSecurityPolicyArgs.builder() \n .name(\"example\")\n .type(\"encryption\")\n .description(\"encryption security policy using customer KMS key\")\n .policy(serializeJson(\n jsonObject(\n jsonProperty(\"Rules\", jsonArray(jsonObject(\n jsonProperty(\"Resource\", jsonArray(\"collection/customer-managed-key-collection\")),\n jsonProperty(\"ResourceType\", \"collection\")\n ))),\n jsonProperty(\"AWSOwnedKey\", false),\n jsonProperty(\"KmsARN\", \"arn:aws:kms:us-east-1:123456789012:key/93fd6da4-a317-4c17-bfe9-382b5d988b36\")\n )))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: aws:opensearch:ServerlessSecurityPolicy\n properties:\n name: example\n type: encryption\n description: encryption security policy using customer KMS key\n policy:\n fn::toJSON:\n Rules:\n - Resource:\n - collection/customer-managed-key-collection\n ResourceType: collection\n AWSOwnedKey: false\n KmsARN: arn:aws:kms:us-east-1:123456789012:key/93fd6da4-a317-4c17-bfe9-382b5d988b36\n```\n{{% /example %}}\n### Network Security Policy\n{{% example %}}\n### Allow public access to the collection endpoint and the Dashboards endpoint\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\n\nconst example = new aws.opensearch.ServerlessSecurityPolicy(\"example\", {\n name: \"example\",\n type: \"network\",\n description: \"Public access\",\n policy: JSON.stringify([{\n Description: \"Public access to collection and Dashboards endpoint for example collection\",\n Rules: [\n {\n ResourceType: \"collection\",\n Resource: [\"collection/example-collection\"],\n },\n {\n ResourceType: \"dashboard\",\n Resource: [\"collection/example-collection\"],\n },\n ],\n AllowFromPublic: true,\n }]),\n});\n```\n```python\nimport pulumi\nimport json\nimport pulumi_aws as aws\n\nexample = aws.opensearch.ServerlessSecurityPolicy(\"example\",\n name=\"example\",\n type=\"network\",\n description=\"Public access\",\n policy=json.dumps([{\n \"Description\": \"Public access to collection and Dashboards endpoint for example collection\",\n \"Rules\": [\n {\n \"ResourceType\": \"collection\",\n \"Resource\": [\"collection/example-collection\"],\n },\n {\n \"ResourceType\": \"dashboard\",\n \"Resource\": [\"collection/example-collection\"],\n },\n ],\n \"AllowFromPublic\": True,\n }]))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text.Json;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new Aws.OpenSearch.ServerlessSecurityPolicy(\"example\", new()\n {\n Name = \"example\",\n Type = \"network\",\n Description = \"Public access\",\n Policy = JsonSerializer.Serialize(new[]\n {\n new Dictionary\u003cstring, object?\u003e\n {\n [\"Description\"] = \"Public access to collection and Dashboards endpoint for example collection\",\n [\"Rules\"] = new[]\n {\n new Dictionary\u003cstring, object?\u003e\n {\n [\"ResourceType\"] = \"collection\",\n [\"Resource\"] = new[]\n {\n \"collection/example-collection\",\n },\n },\n new Dictionary\u003cstring, object?\u003e\n {\n [\"ResourceType\"] = \"dashboard\",\n [\"Resource\"] = new[]\n {\n \"collection/example-collection\",\n },\n },\n },\n [\"AllowFromPublic\"] = true,\n },\n }),\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"encoding/json\"\n\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/opensearch\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\ttmpJSON0, err := json.Marshal([]map[string]interface{}{\n\t\t\tmap[string]interface{}{\n\t\t\t\t\"Description\": \"Public access to collection and Dashboards endpoint for example collection\",\n\t\t\t\t\"Rules\": []map[string]interface{}{\n\t\t\t\t\tmap[string]interface{}{\n\t\t\t\t\t\t\"ResourceType\": \"collection\",\n\t\t\t\t\t\t\"Resource\": []string{\n\t\t\t\t\t\t\t\"collection/example-collection\",\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t\tmap[string]interface{}{\n\t\t\t\t\t\t\"ResourceType\": \"dashboard\",\n\t\t\t\t\t\t\"Resource\": []string{\n\t\t\t\t\t\t\t\"collection/example-collection\",\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\t\"AllowFromPublic\": true,\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tjson0 := string(tmpJSON0)\n\t\t_, err = opensearch.NewServerlessSecurityPolicy(ctx, \"example\", \u0026opensearch.ServerlessSecurityPolicyArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tType: pulumi.String(\"network\"),\n\t\t\tDescription: pulumi.String(\"Public access\"),\n\t\t\tPolicy: pulumi.String(json0),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.opensearch.ServerlessSecurityPolicy;\nimport com.pulumi.aws.opensearch.ServerlessSecurityPolicyArgs;\nimport static com.pulumi.codegen.internal.Serialization.*;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new ServerlessSecurityPolicy(\"example\", ServerlessSecurityPolicyArgs.builder() \n .name(\"example\")\n .type(\"network\")\n .description(\"Public access\")\n .policy(serializeJson(\n jsonArray(jsonObject(\n jsonProperty(\"Description\", \"Public access to collection and Dashboards endpoint for example collection\"),\n jsonProperty(\"Rules\", jsonArray(\n jsonObject(\n jsonProperty(\"ResourceType\", \"collection\"),\n jsonProperty(\"Resource\", jsonArray(\"collection/example-collection\"))\n ), \n jsonObject(\n jsonProperty(\"ResourceType\", \"dashboard\"),\n jsonProperty(\"Resource\", jsonArray(\"collection/example-collection\"))\n )\n )),\n jsonProperty(\"AllowFromPublic\", true)\n ))))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: aws:opensearch:ServerlessSecurityPolicy\n properties:\n name: example\n type: network\n description: Public access\n policy:\n fn::toJSON:\n - Description: Public access to collection and Dashboards endpoint for example collection\n Rules:\n - ResourceType: collection\n Resource:\n - collection/example-collection\n - ResourceType: dashboard\n Resource:\n - collection/example-collection\n AllowFromPublic: true\n```\n{{% /example %}}\n{{% example %}}\n### Allow VPC access to the collection endpoint and the Dashboards endpoint\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\n\nconst example = new aws.opensearch.ServerlessSecurityPolicy(\"example\", {\n name: \"example\",\n type: \"network\",\n description: \"VPC access\",\n policy: JSON.stringify([{\n Description: \"VPC access to collection and Dashboards endpoint for example collection\",\n Rules: [\n {\n ResourceType: \"collection\",\n Resource: [\"collection/example-collection\"],\n },\n {\n ResourceType: \"dashboard\",\n Resource: [\"collection/example-collection\"],\n },\n ],\n AllowFromPublic: false,\n SourceVPCEs: [\"vpce-050f79086ee71ac05\"],\n }]),\n});\n```\n```python\nimport pulumi\nimport json\nimport pulumi_aws as aws\n\nexample = aws.opensearch.ServerlessSecurityPolicy(\"example\",\n name=\"example\",\n type=\"network\",\n description=\"VPC access\",\n policy=json.dumps([{\n \"Description\": \"VPC access to collection and Dashboards endpoint for example collection\",\n \"Rules\": [\n {\n \"ResourceType\": \"collection\",\n \"Resource\": [\"collection/example-collection\"],\n },\n {\n \"ResourceType\": \"dashboard\",\n \"Resource\": [\"collection/example-collection\"],\n },\n ],\n \"AllowFromPublic\": False,\n \"SourceVPCEs\": [\"vpce-050f79086ee71ac05\"],\n }]))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text.Json;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new Aws.OpenSearch.ServerlessSecurityPolicy(\"example\", new()\n {\n Name = \"example\",\n Type = \"network\",\n Description = \"VPC access\",\n Policy = JsonSerializer.Serialize(new[]\n {\n new Dictionary\u003cstring, object?\u003e\n {\n [\"Description\"] = \"VPC access to collection and Dashboards endpoint for example collection\",\n [\"Rules\"] = new[]\n {\n new Dictionary\u003cstring, object?\u003e\n {\n [\"ResourceType\"] = \"collection\",\n [\"Resource\"] = new[]\n {\n \"collection/example-collection\",\n },\n },\n new Dictionary\u003cstring, object?\u003e\n {\n [\"ResourceType\"] = \"dashboard\",\n [\"Resource\"] = new[]\n {\n \"collection/example-collection\",\n },\n },\n },\n [\"AllowFromPublic\"] = false,\n [\"SourceVPCEs\"] = new[]\n {\n \"vpce-050f79086ee71ac05\",\n },\n },\n }),\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"encoding/json\"\n\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/opensearch\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\ttmpJSON0, err := json.Marshal([]map[string]interface{}{\n\t\t\tmap[string]interface{}{\n\t\t\t\t\"Description\": \"VPC access to collection and Dashboards endpoint for example collection\",\n\t\t\t\t\"Rules\": []map[string]interface{}{\n\t\t\t\t\tmap[string]interface{}{\n\t\t\t\t\t\t\"ResourceType\": \"collection\",\n\t\t\t\t\t\t\"Resource\": []string{\n\t\t\t\t\t\t\t\"collection/example-collection\",\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t\tmap[string]interface{}{\n\t\t\t\t\t\t\"ResourceType\": \"dashboard\",\n\t\t\t\t\t\t\"Resource\": []string{\n\t\t\t\t\t\t\t\"collection/example-collection\",\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\t\"AllowFromPublic\": false,\n\t\t\t\t\"SourceVPCEs\": []string{\n\t\t\t\t\t\"vpce-050f79086ee71ac05\",\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tjson0 := string(tmpJSON0)\n\t\t_, err = opensearch.NewServerlessSecurityPolicy(ctx, \"example\", \u0026opensearch.ServerlessSecurityPolicyArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tType: pulumi.String(\"network\"),\n\t\t\tDescription: pulumi.String(\"VPC access\"),\n\t\t\tPolicy: pulumi.String(json0),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.opensearch.ServerlessSecurityPolicy;\nimport com.pulumi.aws.opensearch.ServerlessSecurityPolicyArgs;\nimport static com.pulumi.codegen.internal.Serialization.*;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new ServerlessSecurityPolicy(\"example\", ServerlessSecurityPolicyArgs.builder() \n .name(\"example\")\n .type(\"network\")\n .description(\"VPC access\")\n .policy(serializeJson(\n jsonArray(jsonObject(\n jsonProperty(\"Description\", \"VPC access to collection and Dashboards endpoint for example collection\"),\n jsonProperty(\"Rules\", jsonArray(\n jsonObject(\n jsonProperty(\"ResourceType\", \"collection\"),\n jsonProperty(\"Resource\", jsonArray(\"collection/example-collection\"))\n ), \n jsonObject(\n jsonProperty(\"ResourceType\", \"dashboard\"),\n jsonProperty(\"Resource\", jsonArray(\"collection/example-collection\"))\n )\n )),\n jsonProperty(\"AllowFromPublic\", false),\n jsonProperty(\"SourceVPCEs\", jsonArray(\"vpce-050f79086ee71ac05\"))\n ))))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: aws:opensearch:ServerlessSecurityPolicy\n properties:\n name: example\n type: network\n description: VPC access\n policy:\n fn::toJSON:\n - Description: VPC access to collection and Dashboards endpoint for example collection\n Rules:\n - ResourceType: collection\n Resource:\n - collection/example-collection\n - ResourceType: dashboard\n Resource:\n - collection/example-collection\n AllowFromPublic: false\n SourceVPCEs:\n - vpce-050f79086ee71ac05\n```\n{{% /example %}}\n{{% example %}}\n### Mixed access for different collections\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\n\nconst example = new aws.opensearch.ServerlessSecurityPolicy(\"example\", {\n name: \"example\",\n type: \"network\",\n description: \"Mixed access for marketing and sales\",\n policy: JSON.stringify([\n {\n Description: \"Marketing access\",\n Rules: [\n {\n ResourceType: \"collection\",\n Resource: [\"collection/marketing*\"],\n },\n {\n ResourceType: \"dashboard\",\n Resource: [\"collection/marketing*\"],\n },\n ],\n AllowFromPublic: false,\n SourceVPCEs: [\"vpce-050f79086ee71ac05\"],\n },\n {\n Description: \"Sales access\",\n Rules: [{\n ResourceType: \"collection\",\n Resource: [\"collection/finance\"],\n }],\n AllowFromPublic: true,\n },\n ]),\n});\n```\n```python\nimport pulumi\nimport json\nimport pulumi_aws as aws\n\nexample = aws.opensearch.ServerlessSecurityPolicy(\"example\",\n name=\"example\",\n type=\"network\",\n description=\"Mixed access for marketing and sales\",\n policy=json.dumps([\n {\n \"Description\": \"Marketing access\",\n \"Rules\": [\n {\n \"ResourceType\": \"collection\",\n \"Resource\": [\"collection/marketing*\"],\n },\n {\n \"ResourceType\": \"dashboard\",\n \"Resource\": [\"collection/marketing*\"],\n },\n ],\n \"AllowFromPublic\": False,\n \"SourceVPCEs\": [\"vpce-050f79086ee71ac05\"],\n },\n {\n \"Description\": \"Sales access\",\n \"Rules\": [{\n \"ResourceType\": \"collection\",\n \"Resource\": [\"collection/finance\"],\n }],\n \"AllowFromPublic\": True,\n },\n ]))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text.Json;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new Aws.OpenSearch.ServerlessSecurityPolicy(\"example\", new()\n {\n Name = \"example\",\n Type = \"network\",\n Description = \"Mixed access for marketing and sales\",\n Policy = JsonSerializer.Serialize(new[]\n {\n new Dictionary\u003cstring, object?\u003e\n {\n [\"Description\"] = \"Marketing access\",\n [\"Rules\"] = new[]\n {\n new Dictionary\u003cstring, object?\u003e\n {\n [\"ResourceType\"] = \"collection\",\n [\"Resource\"] = new[]\n {\n \"collection/marketing*\",\n },\n },\n new Dictionary\u003cstring, object?\u003e\n {\n [\"ResourceType\"] = \"dashboard\",\n [\"Resource\"] = new[]\n {\n \"collection/marketing*\",\n },\n },\n },\n [\"AllowFromPublic\"] = false,\n [\"SourceVPCEs\"] = new[]\n {\n \"vpce-050f79086ee71ac05\",\n },\n },\n new Dictionary\u003cstring, object?\u003e\n {\n [\"Description\"] = \"Sales access\",\n [\"Rules\"] = new[]\n {\n new Dictionary\u003cstring, object?\u003e\n {\n [\"ResourceType\"] = \"collection\",\n [\"Resource\"] = new[]\n {\n \"collection/finance\",\n },\n },\n },\n [\"AllowFromPublic\"] = true,\n },\n }),\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"encoding/json\"\n\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/opensearch\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\ttmpJSON0, err := json.Marshal([]interface{}{\n\t\t\tmap[string]interface{}{\n\t\t\t\t\"Description\": \"Marketing access\",\n\t\t\t\t\"Rules\": []map[string]interface{}{\n\t\t\t\t\tmap[string]interface{}{\n\t\t\t\t\t\t\"ResourceType\": \"collection\",\n\t\t\t\t\t\t\"Resource\": []string{\n\t\t\t\t\t\t\t\"collection/marketing*\",\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t\tmap[string]interface{}{\n\t\t\t\t\t\t\"ResourceType\": \"dashboard\",\n\t\t\t\t\t\t\"Resource\": []string{\n\t\t\t\t\t\t\t\"collection/marketing*\",\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\t\"AllowFromPublic\": false,\n\t\t\t\t\"SourceVPCEs\": []string{\n\t\t\t\t\t\"vpce-050f79086ee71ac05\",\n\t\t\t\t},\n\t\t\t},\n\t\t\tmap[string]interface{}{\n\t\t\t\t\"Description\": \"Sales access\",\n\t\t\t\t\"Rules\": []map[string]interface{}{\n\t\t\t\t\tmap[string]interface{}{\n\t\t\t\t\t\t\"ResourceType\": \"collection\",\n\t\t\t\t\t\t\"Resource\": []string{\n\t\t\t\t\t\t\t\"collection/finance\",\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\t\"AllowFromPublic\": true,\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tjson0 := string(tmpJSON0)\n\t\t_, err = opensearch.NewServerlessSecurityPolicy(ctx, \"example\", \u0026opensearch.ServerlessSecurityPolicyArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tType: pulumi.String(\"network\"),\n\t\t\tDescription: pulumi.String(\"Mixed access for marketing and sales\"),\n\t\t\tPolicy: pulumi.String(json0),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.opensearch.ServerlessSecurityPolicy;\nimport com.pulumi.aws.opensearch.ServerlessSecurityPolicyArgs;\nimport static com.pulumi.codegen.internal.Serialization.*;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new ServerlessSecurityPolicy(\"example\", ServerlessSecurityPolicyArgs.builder() \n .name(\"example\")\n .type(\"network\")\n .description(\"Mixed access for marketing and sales\")\n .policy(serializeJson(\n jsonArray(\n jsonObject(\n jsonProperty(\"Description\", \"Marketing access\"),\n jsonProperty(\"Rules\", jsonArray(\n jsonObject(\n jsonProperty(\"ResourceType\", \"collection\"),\n jsonProperty(\"Resource\", jsonArray(\"collection/marketing*\"))\n ), \n jsonObject(\n jsonProperty(\"ResourceType\", \"dashboard\"),\n jsonProperty(\"Resource\", jsonArray(\"collection/marketing*\"))\n )\n )),\n jsonProperty(\"AllowFromPublic\", false),\n jsonProperty(\"SourceVPCEs\", jsonArray(\"vpce-050f79086ee71ac05\"))\n ), \n jsonObject(\n jsonProperty(\"Description\", \"Sales access\"),\n jsonProperty(\"Rules\", jsonArray(jsonObject(\n jsonProperty(\"ResourceType\", \"collection\"),\n jsonProperty(\"Resource\", jsonArray(\"collection/finance\"))\n ))),\n jsonProperty(\"AllowFromPublic\", true)\n )\n )))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: aws:opensearch:ServerlessSecurityPolicy\n properties:\n name: example\n type: network\n description: Mixed access for marketing and sales\n policy:\n fn::toJSON:\n - Description: Marketing access\n Rules:\n - ResourceType: collection\n Resource:\n - collection/marketing*\n - ResourceType: dashboard\n Resource:\n - collection/marketing*\n AllowFromPublic: false\n SourceVPCEs:\n - vpce-050f79086ee71ac05\n - Description: Sales access\n Rules:\n - ResourceType: collection\n Resource:\n - collection/finance\n AllowFromPublic: true\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nterraform import {\n\n to = aws_opensearchserverless_security_policy.example\n\n id = \"example/encryption\" } Using `pulumi import`, import OpenSearchServerless Security Policy using the `name` and `type` arguments separated by a slash (`/`). For exampleconsole % pulumi import aws_opensearchserverless_security_policy.example example/encryption ", + "description": "Resource for managing an AWS OpenSearch Serverless Security Policy. See AWS documentation for [encryption policies](https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-encryption.html#serverless-encryption-policies) and [network policies](https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-network.html#serverless-network-policies).\n\n{{% examples %}}\n## Example Usage\n\n### Encryption Security Policy\n{{% example %}}\n### Applies to a single collection\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\n\nconst example = new aws.opensearch.ServerlessSecurityPolicy(\"example\", {\n type: \"encryption\",\n description: \"encryption security policy for example-collection\",\n policy: JSON.stringify({\n Rules: [{\n Resource: [\"collection/example-collection\"],\n ResourceType: \"collection\",\n }],\n AWSOwnedKey: true,\n }),\n});\n```\n```python\nimport pulumi\nimport json\nimport pulumi_aws as aws\n\nexample = aws.opensearch.ServerlessSecurityPolicy(\"example\",\n type=\"encryption\",\n description=\"encryption security policy for example-collection\",\n policy=json.dumps({\n \"Rules\": [{\n \"Resource\": [\"collection/example-collection\"],\n \"ResourceType\": \"collection\",\n }],\n \"AWSOwnedKey\": True,\n }))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text.Json;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new Aws.OpenSearch.ServerlessSecurityPolicy(\"example\", new()\n {\n Type = \"encryption\",\n Description = \"encryption security policy for example-collection\",\n Policy = JsonSerializer.Serialize(new Dictionary\u003cstring, object?\u003e\n {\n [\"Rules\"] = new[]\n {\n new Dictionary\u003cstring, object?\u003e\n {\n [\"Resource\"] = new[]\n {\n \"collection/example-collection\",\n },\n [\"ResourceType\"] = \"collection\",\n },\n },\n [\"AWSOwnedKey\"] = true,\n }),\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"encoding/json\"\n\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/opensearch\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\ttmpJSON0, err := json.Marshal(map[string]interface{}{\n\t\t\t\"Rules\": []map[string]interface{}{\n\t\t\t\tmap[string]interface{}{\n\t\t\t\t\t\"Resource\": []string{\n\t\t\t\t\t\t\"collection/example-collection\",\n\t\t\t\t\t},\n\t\t\t\t\t\"ResourceType\": \"collection\",\n\t\t\t\t},\n\t\t\t},\n\t\t\t\"AWSOwnedKey\": true,\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tjson0 := string(tmpJSON0)\n\t\t_, err = opensearch.NewServerlessSecurityPolicy(ctx, \"example\", \u0026opensearch.ServerlessSecurityPolicyArgs{\n\t\t\tType: pulumi.String(\"encryption\"),\n\t\t\tDescription: pulumi.String(\"encryption security policy for example-collection\"),\n\t\t\tPolicy: pulumi.String(json0),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.opensearch.ServerlessSecurityPolicy;\nimport com.pulumi.aws.opensearch.ServerlessSecurityPolicyArgs;\nimport static com.pulumi.codegen.internal.Serialization.*;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new ServerlessSecurityPolicy(\"example\", ServerlessSecurityPolicyArgs.builder() \n .type(\"encryption\")\n .description(\"encryption security policy for example-collection\")\n .policy(serializeJson(\n jsonObject(\n jsonProperty(\"Rules\", jsonArray(jsonObject(\n jsonProperty(\"Resource\", jsonArray(\"collection/example-collection\")),\n jsonProperty(\"ResourceType\", \"collection\")\n ))),\n jsonProperty(\"AWSOwnedKey\", true)\n )))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: aws:opensearch:ServerlessSecurityPolicy\n properties:\n type: encryption\n description: encryption security policy for example-collection\n policy:\n fn::toJSON:\n Rules:\n - Resource:\n - collection/example-collection\n ResourceType: collection\n AWSOwnedKey: true\n```\n{{% /example %}}\n{{% example %}}\n### Applies to multiple collections\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\n\nconst example = new aws.opensearch.ServerlessSecurityPolicy(\"example\", {\n type: \"encryption\",\n description: \"encryption security policy for collections that begin with \\\"example\\\"\",\n policy: JSON.stringify({\n Rules: [{\n Resource: [\"collection/example*\"],\n ResourceType: \"collection\",\n }],\n AWSOwnedKey: true,\n }),\n});\n```\n```python\nimport pulumi\nimport json\nimport pulumi_aws as aws\n\nexample = aws.opensearch.ServerlessSecurityPolicy(\"example\",\n type=\"encryption\",\n description=\"encryption security policy for collections that begin with \\\"example\\\"\",\n policy=json.dumps({\n \"Rules\": [{\n \"Resource\": [\"collection/example*\"],\n \"ResourceType\": \"collection\",\n }],\n \"AWSOwnedKey\": True,\n }))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text.Json;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new Aws.OpenSearch.ServerlessSecurityPolicy(\"example\", new()\n {\n Type = \"encryption\",\n Description = \"encryption security policy for collections that begin with \\\"example\\\"\",\n Policy = JsonSerializer.Serialize(new Dictionary\u003cstring, object?\u003e\n {\n [\"Rules\"] = new[]\n {\n new Dictionary\u003cstring, object?\u003e\n {\n [\"Resource\"] = new[]\n {\n \"collection/example*\",\n },\n [\"ResourceType\"] = \"collection\",\n },\n },\n [\"AWSOwnedKey\"] = true,\n }),\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"encoding/json\"\n\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/opensearch\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\ttmpJSON0, err := json.Marshal(map[string]interface{}{\n\t\t\t\"Rules\": []map[string]interface{}{\n\t\t\t\tmap[string]interface{}{\n\t\t\t\t\t\"Resource\": []string{\n\t\t\t\t\t\t\"collection/example*\",\n\t\t\t\t\t},\n\t\t\t\t\t\"ResourceType\": \"collection\",\n\t\t\t\t},\n\t\t\t},\n\t\t\t\"AWSOwnedKey\": true,\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tjson0 := string(tmpJSON0)\n\t\t_, err = opensearch.NewServerlessSecurityPolicy(ctx, \"example\", \u0026opensearch.ServerlessSecurityPolicyArgs{\n\t\t\tType: pulumi.String(\"encryption\"),\n\t\t\tDescription: pulumi.String(\"encryption security policy for collections that begin with \\\"example\\\"\"),\n\t\t\tPolicy: pulumi.String(json0),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.opensearch.ServerlessSecurityPolicy;\nimport com.pulumi.aws.opensearch.ServerlessSecurityPolicyArgs;\nimport static com.pulumi.codegen.internal.Serialization.*;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new ServerlessSecurityPolicy(\"example\", ServerlessSecurityPolicyArgs.builder() \n .type(\"encryption\")\n .description(\"encryption security policy for collections that begin with \\\"example\\\"\")\n .policy(serializeJson(\n jsonObject(\n jsonProperty(\"Rules\", jsonArray(jsonObject(\n jsonProperty(\"Resource\", jsonArray(\"collection/example*\")),\n jsonProperty(\"ResourceType\", \"collection\")\n ))),\n jsonProperty(\"AWSOwnedKey\", true)\n )))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: aws:opensearch:ServerlessSecurityPolicy\n properties:\n type: encryption\n description: encryption security policy for collections that begin with \"example\"\n policy:\n fn::toJSON:\n Rules:\n - Resource:\n - collection/example*\n ResourceType: collection\n AWSOwnedKey: true\n```\n{{% /example %}}\n{{% example %}}\n### Using a customer managed key\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\n\nconst example = new aws.opensearch.ServerlessSecurityPolicy(\"example\", {\n type: \"encryption\",\n description: \"encryption security policy using customer KMS key\",\n policy: JSON.stringify({\n Rules: [{\n Resource: [\"collection/customer-managed-key-collection\"],\n ResourceType: \"collection\",\n }],\n AWSOwnedKey: false,\n KmsARN: \"arn:aws:kms:us-east-1:123456789012:key/93fd6da4-a317-4c17-bfe9-382b5d988b36\",\n }),\n});\n```\n```python\nimport pulumi\nimport json\nimport pulumi_aws as aws\n\nexample = aws.opensearch.ServerlessSecurityPolicy(\"example\",\n type=\"encryption\",\n description=\"encryption security policy using customer KMS key\",\n policy=json.dumps({\n \"Rules\": [{\n \"Resource\": [\"collection/customer-managed-key-collection\"],\n \"ResourceType\": \"collection\",\n }],\n \"AWSOwnedKey\": False,\n \"KmsARN\": \"arn:aws:kms:us-east-1:123456789012:key/93fd6da4-a317-4c17-bfe9-382b5d988b36\",\n }))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text.Json;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new Aws.OpenSearch.ServerlessSecurityPolicy(\"example\", new()\n {\n Type = \"encryption\",\n Description = \"encryption security policy using customer KMS key\",\n Policy = JsonSerializer.Serialize(new Dictionary\u003cstring, object?\u003e\n {\n [\"Rules\"] = new[]\n {\n new Dictionary\u003cstring, object?\u003e\n {\n [\"Resource\"] = new[]\n {\n \"collection/customer-managed-key-collection\",\n },\n [\"ResourceType\"] = \"collection\",\n },\n },\n [\"AWSOwnedKey\"] = false,\n [\"KmsARN\"] = \"arn:aws:kms:us-east-1:123456789012:key/93fd6da4-a317-4c17-bfe9-382b5d988b36\",\n }),\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"encoding/json\"\n\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/opensearch\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\ttmpJSON0, err := json.Marshal(map[string]interface{}{\n\t\t\t\"Rules\": []map[string]interface{}{\n\t\t\t\tmap[string]interface{}{\n\t\t\t\t\t\"Resource\": []string{\n\t\t\t\t\t\t\"collection/customer-managed-key-collection\",\n\t\t\t\t\t},\n\t\t\t\t\t\"ResourceType\": \"collection\",\n\t\t\t\t},\n\t\t\t},\n\t\t\t\"AWSOwnedKey\": false,\n\t\t\t\"KmsARN\": \"arn:aws:kms:us-east-1:123456789012:key/93fd6da4-a317-4c17-bfe9-382b5d988b36\",\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tjson0 := string(tmpJSON0)\n\t\t_, err = opensearch.NewServerlessSecurityPolicy(ctx, \"example\", \u0026opensearch.ServerlessSecurityPolicyArgs{\n\t\t\tType: pulumi.String(\"encryption\"),\n\t\t\tDescription: pulumi.String(\"encryption security policy using customer KMS key\"),\n\t\t\tPolicy: pulumi.String(json0),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.opensearch.ServerlessSecurityPolicy;\nimport com.pulumi.aws.opensearch.ServerlessSecurityPolicyArgs;\nimport static com.pulumi.codegen.internal.Serialization.*;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new ServerlessSecurityPolicy(\"example\", ServerlessSecurityPolicyArgs.builder() \n .type(\"encryption\")\n .description(\"encryption security policy using customer KMS key\")\n .policy(serializeJson(\n jsonObject(\n jsonProperty(\"Rules\", jsonArray(jsonObject(\n jsonProperty(\"Resource\", jsonArray(\"collection/customer-managed-key-collection\")),\n jsonProperty(\"ResourceType\", \"collection\")\n ))),\n jsonProperty(\"AWSOwnedKey\", false),\n jsonProperty(\"KmsARN\", \"arn:aws:kms:us-east-1:123456789012:key/93fd6da4-a317-4c17-bfe9-382b5d988b36\")\n )))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: aws:opensearch:ServerlessSecurityPolicy\n properties:\n type: encryption\n description: encryption security policy using customer KMS key\n policy:\n fn::toJSON:\n Rules:\n - Resource:\n - collection/customer-managed-key-collection\n ResourceType: collection\n AWSOwnedKey: false\n KmsARN: arn:aws:kms:us-east-1:123456789012:key/93fd6da4-a317-4c17-bfe9-382b5d988b36\n```\n{{% /example %}}\n### Network Security Policy\n{{% example %}}\n### Allow public access to the collection endpoint and the Dashboards endpoint\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\n\nconst example = new aws.opensearch.ServerlessSecurityPolicy(\"example\", {\n type: \"network\",\n description: \"Public access\",\n policy: JSON.stringify([{\n Description: \"Public access to collection and Dashboards endpoint for example collection\",\n Rules: [\n {\n ResourceType: \"collection\",\n Resource: [\"collection/example-collection\"],\n },\n {\n ResourceType: \"dashboard\",\n Resource: [\"collection/example-collection\"],\n },\n ],\n AllowFromPublic: true,\n }]),\n});\n```\n```python\nimport pulumi\nimport json\nimport pulumi_aws as aws\n\nexample = aws.opensearch.ServerlessSecurityPolicy(\"example\",\n type=\"network\",\n description=\"Public access\",\n policy=json.dumps([{\n \"Description\": \"Public access to collection and Dashboards endpoint for example collection\",\n \"Rules\": [\n {\n \"ResourceType\": \"collection\",\n \"Resource\": [\"collection/example-collection\"],\n },\n {\n \"ResourceType\": \"dashboard\",\n \"Resource\": [\"collection/example-collection\"],\n },\n ],\n \"AllowFromPublic\": True,\n }]))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text.Json;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new Aws.OpenSearch.ServerlessSecurityPolicy(\"example\", new()\n {\n Type = \"network\",\n Description = \"Public access\",\n Policy = JsonSerializer.Serialize(new[]\n {\n new Dictionary\u003cstring, object?\u003e\n {\n [\"Description\"] = \"Public access to collection and Dashboards endpoint for example collection\",\n [\"Rules\"] = new[]\n {\n new Dictionary\u003cstring, object?\u003e\n {\n [\"ResourceType\"] = \"collection\",\n [\"Resource\"] = new[]\n {\n \"collection/example-collection\",\n },\n },\n new Dictionary\u003cstring, object?\u003e\n {\n [\"ResourceType\"] = \"dashboard\",\n [\"Resource\"] = new[]\n {\n \"collection/example-collection\",\n },\n },\n },\n [\"AllowFromPublic\"] = true,\n },\n }),\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"encoding/json\"\n\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/opensearch\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\ttmpJSON0, err := json.Marshal([]map[string]interface{}{\n\t\t\tmap[string]interface{}{\n\t\t\t\t\"Description\": \"Public access to collection and Dashboards endpoint for example collection\",\n\t\t\t\t\"Rules\": []map[string]interface{}{\n\t\t\t\t\tmap[string]interface{}{\n\t\t\t\t\t\t\"ResourceType\": \"collection\",\n\t\t\t\t\t\t\"Resource\": []string{\n\t\t\t\t\t\t\t\"collection/example-collection\",\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t\tmap[string]interface{}{\n\t\t\t\t\t\t\"ResourceType\": \"dashboard\",\n\t\t\t\t\t\t\"Resource\": []string{\n\t\t\t\t\t\t\t\"collection/example-collection\",\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\t\"AllowFromPublic\": true,\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tjson0 := string(tmpJSON0)\n\t\t_, err = opensearch.NewServerlessSecurityPolicy(ctx, \"example\", \u0026opensearch.ServerlessSecurityPolicyArgs{\n\t\t\tType: pulumi.String(\"network\"),\n\t\t\tDescription: pulumi.String(\"Public access\"),\n\t\t\tPolicy: pulumi.String(json0),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.opensearch.ServerlessSecurityPolicy;\nimport com.pulumi.aws.opensearch.ServerlessSecurityPolicyArgs;\nimport static com.pulumi.codegen.internal.Serialization.*;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new ServerlessSecurityPolicy(\"example\", ServerlessSecurityPolicyArgs.builder() \n .type(\"network\")\n .description(\"Public access\")\n .policy(serializeJson(\n jsonArray(jsonObject(\n jsonProperty(\"Description\", \"Public access to collection and Dashboards endpoint for example collection\"),\n jsonProperty(\"Rules\", jsonArray(\n jsonObject(\n jsonProperty(\"ResourceType\", \"collection\"),\n jsonProperty(\"Resource\", jsonArray(\"collection/example-collection\"))\n ), \n jsonObject(\n jsonProperty(\"ResourceType\", \"dashboard\"),\n jsonProperty(\"Resource\", jsonArray(\"collection/example-collection\"))\n )\n )),\n jsonProperty(\"AllowFromPublic\", true)\n ))))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: aws:opensearch:ServerlessSecurityPolicy\n properties:\n type: network\n description: Public access\n policy:\n fn::toJSON:\n - Description: Public access to collection and Dashboards endpoint for example collection\n Rules:\n - ResourceType: collection\n Resource:\n - collection/example-collection\n - ResourceType: dashboard\n Resource:\n - collection/example-collection\n AllowFromPublic: true\n```\n{{% /example %}}\n{{% example %}}\n### Allow VPC access to the collection endpoint and the Dashboards endpoint\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\n\nconst example = new aws.opensearch.ServerlessSecurityPolicy(\"example\", {\n type: \"network\",\n description: \"VPC access\",\n policy: JSON.stringify([{\n Description: \"VPC access to collection and Dashboards endpoint for example collection\",\n Rules: [\n {\n ResourceType: \"collection\",\n Resource: [\"collection/example-collection\"],\n },\n {\n ResourceType: \"dashboard\",\n Resource: [\"collection/example-collection\"],\n },\n ],\n AllowFromPublic: false,\n SourceVPCEs: [\"vpce-050f79086ee71ac05\"],\n }]),\n});\n```\n```python\nimport pulumi\nimport json\nimport pulumi_aws as aws\n\nexample = aws.opensearch.ServerlessSecurityPolicy(\"example\",\n type=\"network\",\n description=\"VPC access\",\n policy=json.dumps([{\n \"Description\": \"VPC access to collection and Dashboards endpoint for example collection\",\n \"Rules\": [\n {\n \"ResourceType\": \"collection\",\n \"Resource\": [\"collection/example-collection\"],\n },\n {\n \"ResourceType\": \"dashboard\",\n \"Resource\": [\"collection/example-collection\"],\n },\n ],\n \"AllowFromPublic\": False,\n \"SourceVPCEs\": [\"vpce-050f79086ee71ac05\"],\n }]))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text.Json;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new Aws.OpenSearch.ServerlessSecurityPolicy(\"example\", new()\n {\n Type = \"network\",\n Description = \"VPC access\",\n Policy = JsonSerializer.Serialize(new[]\n {\n new Dictionary\u003cstring, object?\u003e\n {\n [\"Description\"] = \"VPC access to collection and Dashboards endpoint for example collection\",\n [\"Rules\"] = new[]\n {\n new Dictionary\u003cstring, object?\u003e\n {\n [\"ResourceType\"] = \"collection\",\n [\"Resource\"] = new[]\n {\n \"collection/example-collection\",\n },\n },\n new Dictionary\u003cstring, object?\u003e\n {\n [\"ResourceType\"] = \"dashboard\",\n [\"Resource\"] = new[]\n {\n \"collection/example-collection\",\n },\n },\n },\n [\"AllowFromPublic\"] = false,\n [\"SourceVPCEs\"] = new[]\n {\n \"vpce-050f79086ee71ac05\",\n },\n },\n }),\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"encoding/json\"\n\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/opensearch\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\ttmpJSON0, err := json.Marshal([]map[string]interface{}{\n\t\t\tmap[string]interface{}{\n\t\t\t\t\"Description\": \"VPC access to collection and Dashboards endpoint for example collection\",\n\t\t\t\t\"Rules\": []map[string]interface{}{\n\t\t\t\t\tmap[string]interface{}{\n\t\t\t\t\t\t\"ResourceType\": \"collection\",\n\t\t\t\t\t\t\"Resource\": []string{\n\t\t\t\t\t\t\t\"collection/example-collection\",\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t\tmap[string]interface{}{\n\t\t\t\t\t\t\"ResourceType\": \"dashboard\",\n\t\t\t\t\t\t\"Resource\": []string{\n\t\t\t\t\t\t\t\"collection/example-collection\",\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\t\"AllowFromPublic\": false,\n\t\t\t\t\"SourceVPCEs\": []string{\n\t\t\t\t\t\"vpce-050f79086ee71ac05\",\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tjson0 := string(tmpJSON0)\n\t\t_, err = opensearch.NewServerlessSecurityPolicy(ctx, \"example\", \u0026opensearch.ServerlessSecurityPolicyArgs{\n\t\t\tType: pulumi.String(\"network\"),\n\t\t\tDescription: pulumi.String(\"VPC access\"),\n\t\t\tPolicy: pulumi.String(json0),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.opensearch.ServerlessSecurityPolicy;\nimport com.pulumi.aws.opensearch.ServerlessSecurityPolicyArgs;\nimport static com.pulumi.codegen.internal.Serialization.*;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new ServerlessSecurityPolicy(\"example\", ServerlessSecurityPolicyArgs.builder() \n .type(\"network\")\n .description(\"VPC access\")\n .policy(serializeJson(\n jsonArray(jsonObject(\n jsonProperty(\"Description\", \"VPC access to collection and Dashboards endpoint for example collection\"),\n jsonProperty(\"Rules\", jsonArray(\n jsonObject(\n jsonProperty(\"ResourceType\", \"collection\"),\n jsonProperty(\"Resource\", jsonArray(\"collection/example-collection\"))\n ), \n jsonObject(\n jsonProperty(\"ResourceType\", \"dashboard\"),\n jsonProperty(\"Resource\", jsonArray(\"collection/example-collection\"))\n )\n )),\n jsonProperty(\"AllowFromPublic\", false),\n jsonProperty(\"SourceVPCEs\", jsonArray(\"vpce-050f79086ee71ac05\"))\n ))))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: aws:opensearch:ServerlessSecurityPolicy\n properties:\n type: network\n description: VPC access\n policy:\n fn::toJSON:\n - Description: VPC access to collection and Dashboards endpoint for example collection\n Rules:\n - ResourceType: collection\n Resource:\n - collection/example-collection\n - ResourceType: dashboard\n Resource:\n - collection/example-collection\n AllowFromPublic: false\n SourceVPCEs:\n - vpce-050f79086ee71ac05\n```\n{{% /example %}}\n{{% example %}}\n### Mixed access for different collections\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\n\nconst example = new aws.opensearch.ServerlessSecurityPolicy(\"example\", {\n type: \"network\",\n description: \"Mixed access for marketing and sales\",\n policy: JSON.stringify([\n {\n Description: \"Marketing access\",\n Rules: [\n {\n ResourceType: \"collection\",\n Resource: [\"collection/marketing*\"],\n },\n {\n ResourceType: \"dashboard\",\n Resource: [\"collection/marketing*\"],\n },\n ],\n AllowFromPublic: false,\n SourceVPCEs: [\"vpce-050f79086ee71ac05\"],\n },\n {\n Description: \"Sales access\",\n Rules: [{\n ResourceType: \"collection\",\n Resource: [\"collection/finance\"],\n }],\n AllowFromPublic: true,\n },\n ]),\n});\n```\n```python\nimport pulumi\nimport json\nimport pulumi_aws as aws\n\nexample = aws.opensearch.ServerlessSecurityPolicy(\"example\",\n type=\"network\",\n description=\"Mixed access for marketing and sales\",\n policy=json.dumps([\n {\n \"Description\": \"Marketing access\",\n \"Rules\": [\n {\n \"ResourceType\": \"collection\",\n \"Resource\": [\"collection/marketing*\"],\n },\n {\n \"ResourceType\": \"dashboard\",\n \"Resource\": [\"collection/marketing*\"],\n },\n ],\n \"AllowFromPublic\": False,\n \"SourceVPCEs\": [\"vpce-050f79086ee71ac05\"],\n },\n {\n \"Description\": \"Sales access\",\n \"Rules\": [{\n \"ResourceType\": \"collection\",\n \"Resource\": [\"collection/finance\"],\n }],\n \"AllowFromPublic\": True,\n },\n ]))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text.Json;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new Aws.OpenSearch.ServerlessSecurityPolicy(\"example\", new()\n {\n Type = \"network\",\n Description = \"Mixed access for marketing and sales\",\n Policy = JsonSerializer.Serialize(new[]\n {\n new Dictionary\u003cstring, object?\u003e\n {\n [\"Description\"] = \"Marketing access\",\n [\"Rules\"] = new[]\n {\n new Dictionary\u003cstring, object?\u003e\n {\n [\"ResourceType\"] = \"collection\",\n [\"Resource\"] = new[]\n {\n \"collection/marketing*\",\n },\n },\n new Dictionary\u003cstring, object?\u003e\n {\n [\"ResourceType\"] = \"dashboard\",\n [\"Resource\"] = new[]\n {\n \"collection/marketing*\",\n },\n },\n },\n [\"AllowFromPublic\"] = false,\n [\"SourceVPCEs\"] = new[]\n {\n \"vpce-050f79086ee71ac05\",\n },\n },\n new Dictionary\u003cstring, object?\u003e\n {\n [\"Description\"] = \"Sales access\",\n [\"Rules\"] = new[]\n {\n new Dictionary\u003cstring, object?\u003e\n {\n [\"ResourceType\"] = \"collection\",\n [\"Resource\"] = new[]\n {\n \"collection/finance\",\n },\n },\n },\n [\"AllowFromPublic\"] = true,\n },\n }),\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"encoding/json\"\n\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/opensearch\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\ttmpJSON0, err := json.Marshal([]interface{}{\n\t\t\tmap[string]interface{}{\n\t\t\t\t\"Description\": \"Marketing access\",\n\t\t\t\t\"Rules\": []map[string]interface{}{\n\t\t\t\t\tmap[string]interface{}{\n\t\t\t\t\t\t\"ResourceType\": \"collection\",\n\t\t\t\t\t\t\"Resource\": []string{\n\t\t\t\t\t\t\t\"collection/marketing*\",\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t\tmap[string]interface{}{\n\t\t\t\t\t\t\"ResourceType\": \"dashboard\",\n\t\t\t\t\t\t\"Resource\": []string{\n\t\t\t\t\t\t\t\"collection/marketing*\",\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\t\"AllowFromPublic\": false,\n\t\t\t\t\"SourceVPCEs\": []string{\n\t\t\t\t\t\"vpce-050f79086ee71ac05\",\n\t\t\t\t},\n\t\t\t},\n\t\t\tmap[string]interface{}{\n\t\t\t\t\"Description\": \"Sales access\",\n\t\t\t\t\"Rules\": []map[string]interface{}{\n\t\t\t\t\tmap[string]interface{}{\n\t\t\t\t\t\t\"ResourceType\": \"collection\",\n\t\t\t\t\t\t\"Resource\": []string{\n\t\t\t\t\t\t\t\"collection/finance\",\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\t\"AllowFromPublic\": true,\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tjson0 := string(tmpJSON0)\n\t\t_, err = opensearch.NewServerlessSecurityPolicy(ctx, \"example\", \u0026opensearch.ServerlessSecurityPolicyArgs{\n\t\t\tType: pulumi.String(\"network\"),\n\t\t\tDescription: pulumi.String(\"Mixed access for marketing and sales\"),\n\t\t\tPolicy: pulumi.String(json0),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.opensearch.ServerlessSecurityPolicy;\nimport com.pulumi.aws.opensearch.ServerlessSecurityPolicyArgs;\nimport static com.pulumi.codegen.internal.Serialization.*;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new ServerlessSecurityPolicy(\"example\", ServerlessSecurityPolicyArgs.builder() \n .type(\"network\")\n .description(\"Mixed access for marketing and sales\")\n .policy(serializeJson(\n jsonArray(\n jsonObject(\n jsonProperty(\"Description\", \"Marketing access\"),\n jsonProperty(\"Rules\", jsonArray(\n jsonObject(\n jsonProperty(\"ResourceType\", \"collection\"),\n jsonProperty(\"Resource\", jsonArray(\"collection/marketing*\"))\n ), \n jsonObject(\n jsonProperty(\"ResourceType\", \"dashboard\"),\n jsonProperty(\"Resource\", jsonArray(\"collection/marketing*\"))\n )\n )),\n jsonProperty(\"AllowFromPublic\", false),\n jsonProperty(\"SourceVPCEs\", jsonArray(\"vpce-050f79086ee71ac05\"))\n ), \n jsonObject(\n jsonProperty(\"Description\", \"Sales access\"),\n jsonProperty(\"Rules\", jsonArray(jsonObject(\n jsonProperty(\"ResourceType\", \"collection\"),\n jsonProperty(\"Resource\", jsonArray(\"collection/finance\"))\n ))),\n jsonProperty(\"AllowFromPublic\", true)\n )\n )))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: aws:opensearch:ServerlessSecurityPolicy\n properties:\n type: network\n description: Mixed access for marketing and sales\n policy:\n fn::toJSON:\n - Description: Marketing access\n Rules:\n - ResourceType: collection\n Resource:\n - collection/marketing*\n - ResourceType: dashboard\n Resource:\n - collection/marketing*\n AllowFromPublic: false\n SourceVPCEs:\n - vpce-050f79086ee71ac05\n - Description: Sales access\n Rules:\n - ResourceType: collection\n Resource:\n - collection/finance\n AllowFromPublic: true\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nterraform import {\n\n to = aws_opensearchserverless_security_policy.example\n\n id = \"example/encryption\" } Using `pulumi import`, import OpenSearchServerless Security Policy using the `name` and `type` arguments separated by a slash (`/`). For exampleconsole % pulumi import aws_opensearchserverless_security_policy.example example/encryption ", "properties": { "description": { "type": "string", @@ -245670,7 +245643,6 @@ } }, "requiredInputs": [ - "name", "policy", "type" ], @@ -245702,7 +245674,7 @@ } }, "aws:opensearch/serverlessVpcEndpoint:ServerlessVpcEndpoint": { - "description": "Resource for managing an AWS OpenSearchServerless VPC Endpoint.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n### Basic Usage\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\n\nconst example = new aws.opensearch.ServerlessVpcEndpoint(\"example\", {\n name: \"myendpoint\",\n subnetIds: [aws_subnet.example.id],\n vpcId: aws_vpc.example.id,\n});\n```\n```python\nimport pulumi\nimport pulumi_aws as aws\n\nexample = aws.opensearch.ServerlessVpcEndpoint(\"example\",\n name=\"myendpoint\",\n subnet_ids=[aws_subnet[\"example\"][\"id\"]],\n vpc_id=aws_vpc[\"example\"][\"id\"])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new Aws.OpenSearch.ServerlessVpcEndpoint(\"example\", new()\n {\n Name = \"myendpoint\",\n SubnetIds = new[]\n {\n aws_subnet.Example.Id,\n },\n VpcId = aws_vpc.Example.Id,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/opensearch\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := opensearch.NewServerlessVpcEndpoint(ctx, \"example\", \u0026opensearch.ServerlessVpcEndpointArgs{\n\t\t\tName: pulumi.String(\"myendpoint\"),\n\t\t\tSubnetIds: pulumi.StringArray{\n\t\t\t\taws_subnet.Example.Id,\n\t\t\t},\n\t\t\tVpcId: pulumi.Any(aws_vpc.Example.Id),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.opensearch.ServerlessVpcEndpoint;\nimport com.pulumi.aws.opensearch.ServerlessVpcEndpointArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new ServerlessVpcEndpoint(\"example\", ServerlessVpcEndpointArgs.builder() \n .name(\"myendpoint\")\n .subnetIds(aws_subnet.example().id())\n .vpcId(aws_vpc.example().id())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: aws:opensearch:ServerlessVpcEndpoint\n properties:\n name: myendpoint\n subnetIds:\n - ${aws_subnet.example.id}\n vpcId: ${aws_vpc.example.id}\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nterraform import {\n\n to = aws_opensearchserverless_vpc_endpoint.example\n\n id = \"vpce-8012925589\" } Using `pulumi import`, import OpenSearchServerless Vpc Endpointa using the `id`. For exampleconsole % pulumi import aws_opensearchserverless_vpc_endpoint.example vpce-8012925589 ", + "description": "Resource for managing an AWS OpenSearchServerless VPC Endpoint.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n### Basic Usage\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\n\nconst example = new aws.opensearch.ServerlessVpcEndpoint(\"example\", {\n subnetIds: [aws_subnet.example.id],\n vpcId: aws_vpc.example.id,\n});\n```\n```python\nimport pulumi\nimport pulumi_aws as aws\n\nexample = aws.opensearch.ServerlessVpcEndpoint(\"example\",\n subnet_ids=[aws_subnet[\"example\"][\"id\"]],\n vpc_id=aws_vpc[\"example\"][\"id\"])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new Aws.OpenSearch.ServerlessVpcEndpoint(\"example\", new()\n {\n SubnetIds = new[]\n {\n aws_subnet.Example.Id,\n },\n VpcId = aws_vpc.Example.Id,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/opensearch\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := opensearch.NewServerlessVpcEndpoint(ctx, \"example\", \u0026opensearch.ServerlessVpcEndpointArgs{\n\t\t\tSubnetIds: pulumi.StringArray{\n\t\t\t\taws_subnet.Example.Id,\n\t\t\t},\n\t\t\tVpcId: pulumi.Any(aws_vpc.Example.Id),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.opensearch.ServerlessVpcEndpoint;\nimport com.pulumi.aws.opensearch.ServerlessVpcEndpointArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new ServerlessVpcEndpoint(\"example\", ServerlessVpcEndpointArgs.builder() \n .subnetIds(aws_subnet.example().id())\n .vpcId(aws_vpc.example().id())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: aws:opensearch:ServerlessVpcEndpoint\n properties:\n subnetIds:\n - ${aws_subnet.example.id}\n vpcId: ${aws_vpc.example.id}\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nterraform import {\n\n to = aws_opensearchserverless_vpc_endpoint.example\n\n id = \"vpce-8012925589\" } Using `pulumi import`, import OpenSearchServerless Vpc Endpointa using the `id`. For exampleconsole % pulumi import aws_opensearchserverless_vpc_endpoint.example vpce-8012925589 ", "properties": { "name": { "type": "string", @@ -245764,7 +245736,6 @@ } }, "requiredInputs": [ - "name", "subnetIds", "vpcId" ], @@ -256651,7 +256622,7 @@ } }, "aws:quicksight/theme:Theme": { - "description": "Resource for managing a QuickSight Theme.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n### Basic Usage\n\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.quicksight.Theme;\nimport com.pulumi.aws.quicksight.ThemeArgs;\nimport com.pulumi.aws.quicksight.inputs.ThemeConfigurationArgs;\nimport com.pulumi.aws.quicksight.inputs.ThemeConfigurationDataColorPaletteArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new Theme(\"example\", ThemeArgs.builder() \n .baseThemeId(\"MIDNIGHT\")\n .configuration(ThemeConfigurationArgs.builder()\n .dataColorPalette(ThemeConfigurationDataColorPaletteArgs.builder()\n .colors( \n \"#FFFFFF\",\n \"#111111\",\n \"#222222\",\n \"#333333\",\n \"#444444\",\n \"#555555\",\n \"#666666\",\n \"#777777\",\n \"#888888\",\n \"#999999\")\n .emptyFillColor(\"#FFFFFF\")\n .minMaxGradient( \n \"#FFFFFF\",\n \"#111111\")\n .build())\n .build())\n .name(\"example\")\n .themeId(\"example\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: aws:quicksight:Theme\n properties:\n baseThemeId: MIDNIGHT\n configuration:\n dataColorPalette:\n colors:\n - '#FFFFFF'\n - '#111111'\n - '#222222'\n - '#333333'\n - '#444444'\n - '#555555'\n - '#666666'\n - '#777777'\n - '#888888'\n - '#999999'\n emptyFillColor: '#FFFFFF'\n minMaxGradient:\n - '#FFFFFF'\n - '#111111'\n name: example\n themeId: example\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nterraform import {\n\n to = aws_quicksight_theme.example\n\n id = \"123456789012,example-id\" } Using `pulumi import`, import a QuickSight Theme using the AWS account ID and theme ID separated by a comma (`,`). For exampleconsole % pulumi import aws_quicksight_theme.example 123456789012,example-id ", + "description": "Resource for managing a QuickSight Theme.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n### Basic Usage\n\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.quicksight.Theme;\nimport com.pulumi.aws.quicksight.ThemeArgs;\nimport com.pulumi.aws.quicksight.inputs.ThemeConfigurationArgs;\nimport com.pulumi.aws.quicksight.inputs.ThemeConfigurationDataColorPaletteArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new Theme(\"example\", ThemeArgs.builder() \n .baseThemeId(\"MIDNIGHT\")\n .configuration(ThemeConfigurationArgs.builder()\n .dataColorPalette(ThemeConfigurationDataColorPaletteArgs.builder()\n .colors( \n \"#FFFFFF\",\n \"#111111\",\n \"#222222\",\n \"#333333\",\n \"#444444\",\n \"#555555\",\n \"#666666\",\n \"#777777\",\n \"#888888\",\n \"#999999\")\n .emptyFillColor(\"#FFFFFF\")\n .minMaxGradient( \n \"#FFFFFF\",\n \"#111111\")\n .build())\n .build())\n .themeId(\"example\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: aws:quicksight:Theme\n properties:\n baseThemeId: MIDNIGHT\n configuration:\n dataColorPalette:\n colors:\n - '#FFFFFF'\n - '#111111'\n - '#222222'\n - '#333333'\n - '#444444'\n - '#555555'\n - '#666666'\n - '#777777'\n - '#888888'\n - '#999999'\n emptyFillColor: '#FFFFFF'\n minMaxGradient:\n - '#FFFFFF'\n - '#111111'\n themeId: example\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nterraform import {\n\n to = aws_quicksight_theme.example\n\n id = \"123456789012,example-id\" } Using `pulumi import`, import a QuickSight Theme using the AWS account ID and theme ID separated by a comma (`,`). For exampleconsole % pulumi import aws_quicksight_theme.example 123456789012,example-id ", "properties": { "arn": { "type": "string", @@ -256775,7 +256746,6 @@ }, "requiredInputs": [ "baseThemeId", - "name", "themeId" ], "stateInputs": { @@ -256996,7 +256966,7 @@ } }, "aws:quicksight/vpcConnection:VpcConnection": { - "description": "Resource for managing an AWS QuickSight VPC Connection.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n### Basic Usage\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\n\nconst vpcConnectionRole = new aws.iam.Role(\"vpcConnectionRole\", {\n assumeRolePolicy: JSON.stringify({\n Version: \"2012-10-17\",\n Statement: [{\n Effect: \"Allow\",\n Action: \"sts:AssumeRole\",\n Principal: {\n Service: \"quicksight.amazonaws.com\",\n },\n }],\n }),\n inlinePolicies: [{\n name: \"QuickSightVPCConnectionRolePolicy\",\n policy: JSON.stringify({\n Version: \"2012-10-17\",\n Statement: [{\n Effect: \"Allow\",\n Action: [\n \"ec2:CreateNetworkInterface\",\n \"ec2:ModifyNetworkInterfaceAttribute\",\n \"ec2:DeleteNetworkInterface\",\n \"ec2:DescribeSubnets\",\n \"ec2:DescribeSecurityGroups\",\n ],\n Resource: [\"*\"],\n }],\n }),\n }],\n});\nconst example = new aws.quicksight.VpcConnection(\"example\", {\n vpcConnectionId: \"example-connection-id\",\n name: \"Example Connection\",\n roleArn: vpcConnectionRole.arn,\n securityGroupIds: [\"sg-00000000000000000\"],\n subnetIds: [\n \"subnet-00000000000000000\",\n \"subnet-00000000000000001\",\n ],\n});\n```\n```python\nimport pulumi\nimport json\nimport pulumi_aws as aws\n\nvpc_connection_role = aws.iam.Role(\"vpcConnectionRole\",\n assume_role_policy=json.dumps({\n \"Version\": \"2012-10-17\",\n \"Statement\": [{\n \"Effect\": \"Allow\",\n \"Action\": \"sts:AssumeRole\",\n \"Principal\": {\n \"Service\": \"quicksight.amazonaws.com\",\n },\n }],\n }),\n inline_policies=[aws.iam.RoleInlinePolicyArgs(\n name=\"QuickSightVPCConnectionRolePolicy\",\n policy=json.dumps({\n \"Version\": \"2012-10-17\",\n \"Statement\": [{\n \"Effect\": \"Allow\",\n \"Action\": [\n \"ec2:CreateNetworkInterface\",\n \"ec2:ModifyNetworkInterfaceAttribute\",\n \"ec2:DeleteNetworkInterface\",\n \"ec2:DescribeSubnets\",\n \"ec2:DescribeSecurityGroups\",\n ],\n \"Resource\": [\"*\"],\n }],\n }),\n )])\nexample = aws.quicksight.VpcConnection(\"example\",\n vpc_connection_id=\"example-connection-id\",\n name=\"Example Connection\",\n role_arn=vpc_connection_role.arn,\n security_group_ids=[\"sg-00000000000000000\"],\n subnet_ids=[\n \"subnet-00000000000000000\",\n \"subnet-00000000000000001\",\n ])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text.Json;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var vpcConnectionRole = new Aws.Iam.Role(\"vpcConnectionRole\", new()\n {\n AssumeRolePolicy = JsonSerializer.Serialize(new Dictionary\u003cstring, object?\u003e\n {\n [\"Version\"] = \"2012-10-17\",\n [\"Statement\"] = new[]\n {\n new Dictionary\u003cstring, object?\u003e\n {\n [\"Effect\"] = \"Allow\",\n [\"Action\"] = \"sts:AssumeRole\",\n [\"Principal\"] = new Dictionary\u003cstring, object?\u003e\n {\n [\"Service\"] = \"quicksight.amazonaws.com\",\n },\n },\n },\n }),\n InlinePolicies = new[]\n {\n new Aws.Iam.Inputs.RoleInlinePolicyArgs\n {\n Name = \"QuickSightVPCConnectionRolePolicy\",\n Policy = JsonSerializer.Serialize(new Dictionary\u003cstring, object?\u003e\n {\n [\"Version\"] = \"2012-10-17\",\n [\"Statement\"] = new[]\n {\n new Dictionary\u003cstring, object?\u003e\n {\n [\"Effect\"] = \"Allow\",\n [\"Action\"] = new[]\n {\n \"ec2:CreateNetworkInterface\",\n \"ec2:ModifyNetworkInterfaceAttribute\",\n \"ec2:DeleteNetworkInterface\",\n \"ec2:DescribeSubnets\",\n \"ec2:DescribeSecurityGroups\",\n },\n [\"Resource\"] = new[]\n {\n \"*\",\n },\n },\n },\n }),\n },\n },\n });\n\n var example = new Aws.Quicksight.VpcConnection(\"example\", new()\n {\n VpcConnectionId = \"example-connection-id\",\n Name = \"Example Connection\",\n RoleArn = vpcConnectionRole.Arn,\n SecurityGroupIds = new[]\n {\n \"sg-00000000000000000\",\n },\n SubnetIds = new[]\n {\n \"subnet-00000000000000000\",\n \"subnet-00000000000000001\",\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"encoding/json\"\n\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/iam\"\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/quicksight\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\ttmpJSON0, err := json.Marshal(map[string]interface{}{\n\t\t\t\"Version\": \"2012-10-17\",\n\t\t\t\"Statement\": []map[string]interface{}{\n\t\t\t\tmap[string]interface{}{\n\t\t\t\t\t\"Effect\": \"Allow\",\n\t\t\t\t\t\"Action\": \"sts:AssumeRole\",\n\t\t\t\t\t\"Principal\": map[string]interface{}{\n\t\t\t\t\t\t\"Service\": \"quicksight.amazonaws.com\",\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tjson0 := string(tmpJSON0)\n\t\ttmpJSON1, err := json.Marshal(map[string]interface{}{\n\t\t\t\"Version\": \"2012-10-17\",\n\t\t\t\"Statement\": []map[string]interface{}{\n\t\t\t\tmap[string]interface{}{\n\t\t\t\t\t\"Effect\": \"Allow\",\n\t\t\t\t\t\"Action\": []string{\n\t\t\t\t\t\t\"ec2:CreateNetworkInterface\",\n\t\t\t\t\t\t\"ec2:ModifyNetworkInterfaceAttribute\",\n\t\t\t\t\t\t\"ec2:DeleteNetworkInterface\",\n\t\t\t\t\t\t\"ec2:DescribeSubnets\",\n\t\t\t\t\t\t\"ec2:DescribeSecurityGroups\",\n\t\t\t\t\t},\n\t\t\t\t\t\"Resource\": []string{\n\t\t\t\t\t\t\"*\",\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tjson1 := string(tmpJSON1)\n\t\tvpcConnectionRole, err := iam.NewRole(ctx, \"vpcConnectionRole\", \u0026iam.RoleArgs{\n\t\t\tAssumeRolePolicy: pulumi.String(json0),\n\t\t\tInlinePolicies: iam.RoleInlinePolicyArray{\n\t\t\t\t\u0026iam.RoleInlinePolicyArgs{\n\t\t\t\t\tName: pulumi.String(\"QuickSightVPCConnectionRolePolicy\"),\n\t\t\t\t\tPolicy: pulumi.String(json1),\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = quicksight.NewVpcConnection(ctx, \"example\", \u0026quicksight.VpcConnectionArgs{\n\t\t\tVpcConnectionId: pulumi.String(\"example-connection-id\"),\n\t\t\tName: pulumi.String(\"Example Connection\"),\n\t\t\tRoleArn: vpcConnectionRole.Arn,\n\t\t\tSecurityGroupIds: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"sg-00000000000000000\"),\n\t\t\t},\n\t\t\tSubnetIds: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"subnet-00000000000000000\"),\n\t\t\t\tpulumi.String(\"subnet-00000000000000001\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.iam.Role;\nimport com.pulumi.aws.iam.RoleArgs;\nimport com.pulumi.aws.iam.inputs.RoleInlinePolicyArgs;\nimport com.pulumi.aws.quicksight.VpcConnection;\nimport com.pulumi.aws.quicksight.VpcConnectionArgs;\nimport static com.pulumi.codegen.internal.Serialization.*;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var vpcConnectionRole = new Role(\"vpcConnectionRole\", RoleArgs.builder() \n .assumeRolePolicy(serializeJson(\n jsonObject(\n jsonProperty(\"Version\", \"2012-10-17\"),\n jsonProperty(\"Statement\", jsonArray(jsonObject(\n jsonProperty(\"Effect\", \"Allow\"),\n jsonProperty(\"Action\", \"sts:AssumeRole\"),\n jsonProperty(\"Principal\", jsonObject(\n jsonProperty(\"Service\", \"quicksight.amazonaws.com\")\n ))\n )))\n )))\n .inlinePolicies(RoleInlinePolicyArgs.builder()\n .name(\"QuickSightVPCConnectionRolePolicy\")\n .policy(serializeJson(\n jsonObject(\n jsonProperty(\"Version\", \"2012-10-17\"),\n jsonProperty(\"Statement\", jsonArray(jsonObject(\n jsonProperty(\"Effect\", \"Allow\"),\n jsonProperty(\"Action\", jsonArray(\n \"ec2:CreateNetworkInterface\", \n \"ec2:ModifyNetworkInterfaceAttribute\", \n \"ec2:DeleteNetworkInterface\", \n \"ec2:DescribeSubnets\", \n \"ec2:DescribeSecurityGroups\"\n )),\n jsonProperty(\"Resource\", jsonArray(\"*\"))\n )))\n )))\n .build())\n .build());\n\n var example = new VpcConnection(\"example\", VpcConnectionArgs.builder() \n .vpcConnectionId(\"example-connection-id\")\n .name(\"Example Connection\")\n .roleArn(vpcConnectionRole.arn())\n .securityGroupIds(\"sg-00000000000000000\")\n .subnetIds( \n \"subnet-00000000000000000\",\n \"subnet-00000000000000001\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n vpcConnectionRole:\n type: aws:iam:Role\n properties:\n assumeRolePolicy:\n fn::toJSON:\n Version: 2012-10-17\n Statement:\n - Effect: Allow\n Action: sts:AssumeRole\n Principal:\n Service: quicksight.amazonaws.com\n inlinePolicies:\n - name: QuickSightVPCConnectionRolePolicy\n policy:\n fn::toJSON:\n Version: 2012-10-17\n Statement:\n - Effect: Allow\n Action:\n - ec2:CreateNetworkInterface\n - ec2:ModifyNetworkInterfaceAttribute\n - ec2:DeleteNetworkInterface\n - ec2:DescribeSubnets\n - ec2:DescribeSecurityGroups\n Resource:\n - '*'\n example:\n type: aws:quicksight:VpcConnection\n properties:\n vpcConnectionId: example-connection-id\n name: Example Connection\n roleArn: ${vpcConnectionRole.arn}\n securityGroupIds:\n - sg-00000000000000000\n subnetIds:\n - subnet-00000000000000000\n - subnet-00000000000000001\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nterraform import {\n\n to = aws_quicksight_vpc_connection.example\n\n id = \"123456789012,example\" } Using `pulumi import`, import QuickSight VPC connection using the AWS account ID and VPC connection ID separated by commas (`,`). For exampleconsole % pulumi import aws_quicksight_vpc_connection.example 123456789012,example ", + "description": "Resource for managing an AWS QuickSight VPC Connection.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n### Basic Usage\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\n\nconst vpcConnectionRole = new aws.iam.Role(\"vpcConnectionRole\", {\n assumeRolePolicy: JSON.stringify({\n Version: \"2012-10-17\",\n Statement: [{\n Effect: \"Allow\",\n Action: \"sts:AssumeRole\",\n Principal: {\n Service: \"quicksight.amazonaws.com\",\n },\n }],\n }),\n inlinePolicies: [{\n name: \"QuickSightVPCConnectionRolePolicy\",\n policy: JSON.stringify({\n Version: \"2012-10-17\",\n Statement: [{\n Effect: \"Allow\",\n Action: [\n \"ec2:CreateNetworkInterface\",\n \"ec2:ModifyNetworkInterfaceAttribute\",\n \"ec2:DeleteNetworkInterface\",\n \"ec2:DescribeSubnets\",\n \"ec2:DescribeSecurityGroups\",\n ],\n Resource: [\"*\"],\n }],\n }),\n }],\n});\nconst example = new aws.quicksight.VpcConnection(\"example\", {\n vpcConnectionId: \"example-connection-id\",\n roleArn: vpcConnectionRole.arn,\n securityGroupIds: [\"sg-00000000000000000\"],\n subnetIds: [\n \"subnet-00000000000000000\",\n \"subnet-00000000000000001\",\n ],\n});\n```\n```python\nimport pulumi\nimport json\nimport pulumi_aws as aws\n\nvpc_connection_role = aws.iam.Role(\"vpcConnectionRole\",\n assume_role_policy=json.dumps({\n \"Version\": \"2012-10-17\",\n \"Statement\": [{\n \"Effect\": \"Allow\",\n \"Action\": \"sts:AssumeRole\",\n \"Principal\": {\n \"Service\": \"quicksight.amazonaws.com\",\n },\n }],\n }),\n inline_policies=[aws.iam.RoleInlinePolicyArgs(\n name=\"QuickSightVPCConnectionRolePolicy\",\n policy=json.dumps({\n \"Version\": \"2012-10-17\",\n \"Statement\": [{\n \"Effect\": \"Allow\",\n \"Action\": [\n \"ec2:CreateNetworkInterface\",\n \"ec2:ModifyNetworkInterfaceAttribute\",\n \"ec2:DeleteNetworkInterface\",\n \"ec2:DescribeSubnets\",\n \"ec2:DescribeSecurityGroups\",\n ],\n \"Resource\": [\"*\"],\n }],\n }),\n )])\nexample = aws.quicksight.VpcConnection(\"example\",\n vpc_connection_id=\"example-connection-id\",\n role_arn=vpc_connection_role.arn,\n security_group_ids=[\"sg-00000000000000000\"],\n subnet_ids=[\n \"subnet-00000000000000000\",\n \"subnet-00000000000000001\",\n ])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text.Json;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var vpcConnectionRole = new Aws.Iam.Role(\"vpcConnectionRole\", new()\n {\n AssumeRolePolicy = JsonSerializer.Serialize(new Dictionary\u003cstring, object?\u003e\n {\n [\"Version\"] = \"2012-10-17\",\n [\"Statement\"] = new[]\n {\n new Dictionary\u003cstring, object?\u003e\n {\n [\"Effect\"] = \"Allow\",\n [\"Action\"] = \"sts:AssumeRole\",\n [\"Principal\"] = new Dictionary\u003cstring, object?\u003e\n {\n [\"Service\"] = \"quicksight.amazonaws.com\",\n },\n },\n },\n }),\n InlinePolicies = new[]\n {\n new Aws.Iam.Inputs.RoleInlinePolicyArgs\n {\n Name = \"QuickSightVPCConnectionRolePolicy\",\n Policy = JsonSerializer.Serialize(new Dictionary\u003cstring, object?\u003e\n {\n [\"Version\"] = \"2012-10-17\",\n [\"Statement\"] = new[]\n {\n new Dictionary\u003cstring, object?\u003e\n {\n [\"Effect\"] = \"Allow\",\n [\"Action\"] = new[]\n {\n \"ec2:CreateNetworkInterface\",\n \"ec2:ModifyNetworkInterfaceAttribute\",\n \"ec2:DeleteNetworkInterface\",\n \"ec2:DescribeSubnets\",\n \"ec2:DescribeSecurityGroups\",\n },\n [\"Resource\"] = new[]\n {\n \"*\",\n },\n },\n },\n }),\n },\n },\n });\n\n var example = new Aws.Quicksight.VpcConnection(\"example\", new()\n {\n VpcConnectionId = \"example-connection-id\",\n RoleArn = vpcConnectionRole.Arn,\n SecurityGroupIds = new[]\n {\n \"sg-00000000000000000\",\n },\n SubnetIds = new[]\n {\n \"subnet-00000000000000000\",\n \"subnet-00000000000000001\",\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"encoding/json\"\n\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/iam\"\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/quicksight\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\ttmpJSON0, err := json.Marshal(map[string]interface{}{\n\t\t\t\"Version\": \"2012-10-17\",\n\t\t\t\"Statement\": []map[string]interface{}{\n\t\t\t\tmap[string]interface{}{\n\t\t\t\t\t\"Effect\": \"Allow\",\n\t\t\t\t\t\"Action\": \"sts:AssumeRole\",\n\t\t\t\t\t\"Principal\": map[string]interface{}{\n\t\t\t\t\t\t\"Service\": \"quicksight.amazonaws.com\",\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tjson0 := string(tmpJSON0)\n\t\ttmpJSON1, err := json.Marshal(map[string]interface{}{\n\t\t\t\"Version\": \"2012-10-17\",\n\t\t\t\"Statement\": []map[string]interface{}{\n\t\t\t\tmap[string]interface{}{\n\t\t\t\t\t\"Effect\": \"Allow\",\n\t\t\t\t\t\"Action\": []string{\n\t\t\t\t\t\t\"ec2:CreateNetworkInterface\",\n\t\t\t\t\t\t\"ec2:ModifyNetworkInterfaceAttribute\",\n\t\t\t\t\t\t\"ec2:DeleteNetworkInterface\",\n\t\t\t\t\t\t\"ec2:DescribeSubnets\",\n\t\t\t\t\t\t\"ec2:DescribeSecurityGroups\",\n\t\t\t\t\t},\n\t\t\t\t\t\"Resource\": []string{\n\t\t\t\t\t\t\"*\",\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tjson1 := string(tmpJSON1)\n\t\tvpcConnectionRole, err := iam.NewRole(ctx, \"vpcConnectionRole\", \u0026iam.RoleArgs{\n\t\t\tAssumeRolePolicy: pulumi.String(json0),\n\t\t\tInlinePolicies: iam.RoleInlinePolicyArray{\n\t\t\t\t\u0026iam.RoleInlinePolicyArgs{\n\t\t\t\t\tName: pulumi.String(\"QuickSightVPCConnectionRolePolicy\"),\n\t\t\t\t\tPolicy: pulumi.String(json1),\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = quicksight.NewVpcConnection(ctx, \"example\", \u0026quicksight.VpcConnectionArgs{\n\t\t\tVpcConnectionId: pulumi.String(\"example-connection-id\"),\n\t\t\tRoleArn: vpcConnectionRole.Arn,\n\t\t\tSecurityGroupIds: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"sg-00000000000000000\"),\n\t\t\t},\n\t\t\tSubnetIds: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"subnet-00000000000000000\"),\n\t\t\t\tpulumi.String(\"subnet-00000000000000001\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.iam.Role;\nimport com.pulumi.aws.iam.RoleArgs;\nimport com.pulumi.aws.iam.inputs.RoleInlinePolicyArgs;\nimport com.pulumi.aws.quicksight.VpcConnection;\nimport com.pulumi.aws.quicksight.VpcConnectionArgs;\nimport static com.pulumi.codegen.internal.Serialization.*;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var vpcConnectionRole = new Role(\"vpcConnectionRole\", RoleArgs.builder() \n .assumeRolePolicy(serializeJson(\n jsonObject(\n jsonProperty(\"Version\", \"2012-10-17\"),\n jsonProperty(\"Statement\", jsonArray(jsonObject(\n jsonProperty(\"Effect\", \"Allow\"),\n jsonProperty(\"Action\", \"sts:AssumeRole\"),\n jsonProperty(\"Principal\", jsonObject(\n jsonProperty(\"Service\", \"quicksight.amazonaws.com\")\n ))\n )))\n )))\n .inlinePolicies(RoleInlinePolicyArgs.builder()\n .name(\"QuickSightVPCConnectionRolePolicy\")\n .policy(serializeJson(\n jsonObject(\n jsonProperty(\"Version\", \"2012-10-17\"),\n jsonProperty(\"Statement\", jsonArray(jsonObject(\n jsonProperty(\"Effect\", \"Allow\"),\n jsonProperty(\"Action\", jsonArray(\n \"ec2:CreateNetworkInterface\", \n \"ec2:ModifyNetworkInterfaceAttribute\", \n \"ec2:DeleteNetworkInterface\", \n \"ec2:DescribeSubnets\", \n \"ec2:DescribeSecurityGroups\"\n )),\n jsonProperty(\"Resource\", jsonArray(\"*\"))\n )))\n )))\n .build())\n .build());\n\n var example = new VpcConnection(\"example\", VpcConnectionArgs.builder() \n .vpcConnectionId(\"example-connection-id\")\n .roleArn(vpcConnectionRole.arn())\n .securityGroupIds(\"sg-00000000000000000\")\n .subnetIds( \n \"subnet-00000000000000000\",\n \"subnet-00000000000000001\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n vpcConnectionRole:\n type: aws:iam:Role\n properties:\n assumeRolePolicy:\n fn::toJSON:\n Version: 2012-10-17\n Statement:\n - Effect: Allow\n Action: sts:AssumeRole\n Principal:\n Service: quicksight.amazonaws.com\n inlinePolicies:\n - name: QuickSightVPCConnectionRolePolicy\n policy:\n fn::toJSON:\n Version: 2012-10-17\n Statement:\n - Effect: Allow\n Action:\n - ec2:CreateNetworkInterface\n - ec2:ModifyNetworkInterfaceAttribute\n - ec2:DeleteNetworkInterface\n - ec2:DescribeSubnets\n - ec2:DescribeSecurityGroups\n Resource:\n - '*'\n example:\n type: aws:quicksight:VpcConnection\n properties:\n vpcConnectionId: example-connection-id\n roleArn: ${vpcConnectionRole.arn}\n securityGroupIds:\n - sg-00000000000000000\n subnetIds:\n - subnet-00000000000000000\n - subnet-00000000000000001\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nterraform import {\n\n to = aws_quicksight_vpc_connection.example\n\n id = \"123456789012,example\" } Using `pulumi import`, import QuickSight VPC connection using the AWS account ID and VPC connection ID separated by commas (`,`). For exampleconsole % pulumi import aws_quicksight_vpc_connection.example 123456789012,example ", "properties": { "arn": { "type": "string", @@ -257122,7 +257092,6 @@ } }, "requiredInputs": [ - "name", "roleArn", "securityGroupIds", "subnetIds", @@ -266632,7 +266601,7 @@ } }, "aws:resourceexplorer/view:View": { - "description": "Provides a resource to manage a Resource Explorer view.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\n\nconst exampleIndex = new aws.resourceexplorer.Index(\"exampleIndex\", {type: \"LOCAL\"});\nconst exampleView = new aws.resourceexplorer.View(\"exampleView\", {\n name: \"exampleview\",\n filters: {\n filterString: \"resourcetype:ec2:instance\",\n },\n includedProperties: [{\n name: \"tags\",\n }],\n}, {\n dependsOn: [exampleIndex],\n});\n```\n```python\nimport pulumi\nimport pulumi_aws as aws\n\nexample_index = aws.resourceexplorer.Index(\"exampleIndex\", type=\"LOCAL\")\nexample_view = aws.resourceexplorer.View(\"exampleView\",\n name=\"exampleview\",\n filters=aws.resourceexplorer.ViewFiltersArgs(\n filter_string=\"resourcetype:ec2:instance\",\n ),\n included_properties=[aws.resourceexplorer.ViewIncludedPropertyArgs(\n name=\"tags\",\n )],\n opts=pulumi.ResourceOptions(depends_on=[example_index]))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var exampleIndex = new Aws.ResourceExplorer.Index(\"exampleIndex\", new()\n {\n Type = \"LOCAL\",\n });\n\n var exampleView = new Aws.ResourceExplorer.View(\"exampleView\", new()\n {\n Name = \"exampleview\",\n Filters = new Aws.ResourceExplorer.Inputs.ViewFiltersArgs\n {\n FilterString = \"resourcetype:ec2:instance\",\n },\n IncludedProperties = new[]\n {\n new Aws.ResourceExplorer.Inputs.ViewIncludedPropertyArgs\n {\n Name = \"tags\",\n },\n },\n }, new CustomResourceOptions\n {\n DependsOn = new[]\n {\n exampleIndex,\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/resourceexplorer\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleIndex, err := resourceexplorer.NewIndex(ctx, \"exampleIndex\", \u0026resourceexplorer.IndexArgs{\n\t\t\tType: pulumi.String(\"LOCAL\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = resourceexplorer.NewView(ctx, \"exampleView\", \u0026resourceexplorer.ViewArgs{\n\t\t\tName: pulumi.String(\"exampleview\"),\n\t\t\tFilters: \u0026resourceexplorer.ViewFiltersArgs{\n\t\t\t\tFilterString: pulumi.String(\"resourcetype:ec2:instance\"),\n\t\t\t},\n\t\t\tIncludedProperties: resourceexplorer.ViewIncludedPropertyArray{\n\t\t\t\t\u0026resourceexplorer.ViewIncludedPropertyArgs{\n\t\t\t\t\tName: pulumi.String(\"tags\"),\n\t\t\t\t},\n\t\t\t},\n\t\t}, pulumi.DependsOn([]pulumi.Resource{\n\t\t\texampleIndex,\n\t\t}))\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.resourceexplorer.Index;\nimport com.pulumi.aws.resourceexplorer.IndexArgs;\nimport com.pulumi.aws.resourceexplorer.View;\nimport com.pulumi.aws.resourceexplorer.ViewArgs;\nimport com.pulumi.aws.resourceexplorer.inputs.ViewFiltersArgs;\nimport com.pulumi.aws.resourceexplorer.inputs.ViewIncludedPropertyArgs;\nimport com.pulumi.resources.CustomResourceOptions;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var exampleIndex = new Index(\"exampleIndex\", IndexArgs.builder() \n .type(\"LOCAL\")\n .build());\n\n var exampleView = new View(\"exampleView\", ViewArgs.builder() \n .name(\"exampleview\")\n .filters(ViewFiltersArgs.builder()\n .filterString(\"resourcetype:ec2:instance\")\n .build())\n .includedProperties(ViewIncludedPropertyArgs.builder()\n .name(\"tags\")\n .build())\n .build(), CustomResourceOptions.builder()\n .dependsOn(exampleIndex)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleIndex:\n type: aws:resourceexplorer:Index\n properties:\n type: LOCAL\n exampleView:\n type: aws:resourceexplorer:View\n properties:\n name: exampleview\n filters:\n filterString: resourcetype:ec2:instance\n includedProperties:\n - name: tags\n options:\n dependson:\n - ${exampleIndex}\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nterraform import {\n\n to = aws_resourceexplorer2_view.example\n\n id = \"arn:aws:resource-explorer-2:us-west-2:123456789012:view/exampleview/e0914f6c-6c27-4b47-b5d4-6b28381a2421\" } Using `pulumi import`, import Resource Explorer views using the `arn`. For exampleconsole % pulumi import aws_resourceexplorer2_view.example arn:aws:resource-explorer-2:us-west-2:123456789012:view/exampleview/e0914f6c-6c27-4b47-b5d4-6b28381a2421 ", + "description": "Provides a resource to manage a Resource Explorer view.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\n\nconst exampleIndex = new aws.resourceexplorer.Index(\"exampleIndex\", {type: \"LOCAL\"});\nconst exampleView = new aws.resourceexplorer.View(\"exampleView\", {\n filters: {\n filterString: \"resourcetype:ec2:instance\",\n },\n includedProperties: [{\n name: \"tags\",\n }],\n}, {\n dependsOn: [exampleIndex],\n});\n```\n```python\nimport pulumi\nimport pulumi_aws as aws\n\nexample_index = aws.resourceexplorer.Index(\"exampleIndex\", type=\"LOCAL\")\nexample_view = aws.resourceexplorer.View(\"exampleView\",\n filters=aws.resourceexplorer.ViewFiltersArgs(\n filter_string=\"resourcetype:ec2:instance\",\n ),\n included_properties=[aws.resourceexplorer.ViewIncludedPropertyArgs(\n name=\"tags\",\n )],\n opts=pulumi.ResourceOptions(depends_on=[example_index]))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var exampleIndex = new Aws.ResourceExplorer.Index(\"exampleIndex\", new()\n {\n Type = \"LOCAL\",\n });\n\n var exampleView = new Aws.ResourceExplorer.View(\"exampleView\", new()\n {\n Filters = new Aws.ResourceExplorer.Inputs.ViewFiltersArgs\n {\n FilterString = \"resourcetype:ec2:instance\",\n },\n IncludedProperties = new[]\n {\n new Aws.ResourceExplorer.Inputs.ViewIncludedPropertyArgs\n {\n Name = \"tags\",\n },\n },\n }, new CustomResourceOptions\n {\n DependsOn = new[]\n {\n exampleIndex,\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/resourceexplorer\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleIndex, err := resourceexplorer.NewIndex(ctx, \"exampleIndex\", \u0026resourceexplorer.IndexArgs{\n\t\t\tType: pulumi.String(\"LOCAL\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = resourceexplorer.NewView(ctx, \"exampleView\", \u0026resourceexplorer.ViewArgs{\n\t\t\tFilters: \u0026resourceexplorer.ViewFiltersArgs{\n\t\t\t\tFilterString: pulumi.String(\"resourcetype:ec2:instance\"),\n\t\t\t},\n\t\t\tIncludedProperties: resourceexplorer.ViewIncludedPropertyArray{\n\t\t\t\t\u0026resourceexplorer.ViewIncludedPropertyArgs{\n\t\t\t\t\tName: pulumi.String(\"tags\"),\n\t\t\t\t},\n\t\t\t},\n\t\t}, pulumi.DependsOn([]pulumi.Resource{\n\t\t\texampleIndex,\n\t\t}))\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.resourceexplorer.Index;\nimport com.pulumi.aws.resourceexplorer.IndexArgs;\nimport com.pulumi.aws.resourceexplorer.View;\nimport com.pulumi.aws.resourceexplorer.ViewArgs;\nimport com.pulumi.aws.resourceexplorer.inputs.ViewFiltersArgs;\nimport com.pulumi.aws.resourceexplorer.inputs.ViewIncludedPropertyArgs;\nimport com.pulumi.resources.CustomResourceOptions;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var exampleIndex = new Index(\"exampleIndex\", IndexArgs.builder() \n .type(\"LOCAL\")\n .build());\n\n var exampleView = new View(\"exampleView\", ViewArgs.builder() \n .filters(ViewFiltersArgs.builder()\n .filterString(\"resourcetype:ec2:instance\")\n .build())\n .includedProperties(ViewIncludedPropertyArgs.builder()\n .name(\"tags\")\n .build())\n .build(), CustomResourceOptions.builder()\n .dependsOn(exampleIndex)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleIndex:\n type: aws:resourceexplorer:Index\n properties:\n type: LOCAL\n exampleView:\n type: aws:resourceexplorer:View\n properties:\n filters:\n filterString: resourcetype:ec2:instance\n includedProperties:\n - name: tags\n options:\n dependson:\n - ${exampleIndex}\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nterraform import {\n\n to = aws_resourceexplorer2_view.example\n\n id = \"arn:aws:resource-explorer-2:us-west-2:123456789012:view/exampleview/e0914f6c-6c27-4b47-b5d4-6b28381a2421\" } Using `pulumi import`, import Resource Explorer views using the `arn`. For exampleconsole % pulumi import aws_resourceexplorer2_view.example arn:aws:resource-explorer-2:us-west-2:123456789012:view/exampleview/e0914f6c-6c27-4b47-b5d4-6b28381a2421 ", "properties": { "arn": { "type": "string", @@ -266706,9 +266675,6 @@ "description": "Key-value map of resource tags. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.\n" } }, - "requiredInputs": [ - "name" - ], "stateInputs": { "description": "Input properties used for looking up and filtering View resources.\n", "properties": { @@ -267202,7 +267168,7 @@ } }, "aws:route53/cidrCollection:CidrCollection": { - "description": "Provides a Route53 CIDR collection resource.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\n\nconst example = new aws.route53.CidrCollection(\"example\", {name: \"collection-1\"});\n```\n```python\nimport pulumi\nimport pulumi_aws as aws\n\nexample = aws.route53.CidrCollection(\"example\", name=\"collection-1\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new Aws.Route53.CidrCollection(\"example\", new()\n {\n Name = \"collection-1\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/route53\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := route53.NewCidrCollection(ctx, \"example\", \u0026route53.CidrCollectionArgs{\n\t\t\tName: pulumi.String(\"collection-1\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.route53.CidrCollection;\nimport com.pulumi.aws.route53.CidrCollectionArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new CidrCollection(\"example\", CidrCollectionArgs.builder() \n .name(\"collection-1\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: aws:route53:CidrCollection\n properties:\n name: collection-1\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nterraform import {\n\n to = aws_route53_cidr_collection.example\n\n id = \"9ac32814-3e67-0932-6048-8d779cc6f511\" } Using `pulumi import`, import CIDR collections using their ID. For exampleconsole % pulumi import aws_route53_cidr_collection.example 9ac32814-3e67-0932-6048-8d779cc6f511 ", + "description": "Provides a Route53 CIDR collection resource.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\n\nconst example = new aws.route53.CidrCollection(\"example\", {});\n```\n```python\nimport pulumi\nimport pulumi_aws as aws\n\nexample = aws.route53.CidrCollection(\"example\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new Aws.Route53.CidrCollection(\"example\");\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/route53\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := route53.NewCidrCollection(ctx, \"example\", nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.route53.CidrCollection;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new CidrCollection(\"example\");\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: aws:route53:CidrCollection\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nterraform import {\n\n to = aws_route53_cidr_collection.example\n\n id = \"9ac32814-3e67-0932-6048-8d779cc6f511\" } Using `pulumi import`, import CIDR collections using their ID. For exampleconsole % pulumi import aws_route53_cidr_collection.example 9ac32814-3e67-0932-6048-8d779cc6f511 ", "properties": { "arn": { "type": "string", @@ -267228,9 +267194,6 @@ "description": "Unique name for the CIDR collection.\n" } }, - "requiredInputs": [ - "name" - ], "stateInputs": { "description": "Input properties used for looking up and filtering CidrCollection resources.\n", "properties": { @@ -267251,7 +267214,7 @@ } }, "aws:route53/cidrLocation:CidrLocation": { - "description": "Provides a Route53 CIDR location resource.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\n\nconst exampleCidrCollection = new aws.route53.CidrCollection(\"exampleCidrCollection\", {name: \"collection-1\"});\nconst exampleCidrLocation = new aws.route53.CidrLocation(\"exampleCidrLocation\", {\n cidrCollectionId: exampleCidrCollection.id,\n name: \"office\",\n cidrBlocks: [\n \"200.5.3.0/24\",\n \"200.6.3.0/24\",\n ],\n});\n```\n```python\nimport pulumi\nimport pulumi_aws as aws\n\nexample_cidr_collection = aws.route53.CidrCollection(\"exampleCidrCollection\", name=\"collection-1\")\nexample_cidr_location = aws.route53.CidrLocation(\"exampleCidrLocation\",\n cidr_collection_id=example_cidr_collection.id,\n name=\"office\",\n cidr_blocks=[\n \"200.5.3.0/24\",\n \"200.6.3.0/24\",\n ])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var exampleCidrCollection = new Aws.Route53.CidrCollection(\"exampleCidrCollection\", new()\n {\n Name = \"collection-1\",\n });\n\n var exampleCidrLocation = new Aws.Route53.CidrLocation(\"exampleCidrLocation\", new()\n {\n CidrCollectionId = exampleCidrCollection.Id,\n Name = \"office\",\n CidrBlocks = new[]\n {\n \"200.5.3.0/24\",\n \"200.6.3.0/24\",\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/route53\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleCidrCollection, err := route53.NewCidrCollection(ctx, \"exampleCidrCollection\", \u0026route53.CidrCollectionArgs{\n\t\t\tName: pulumi.String(\"collection-1\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = route53.NewCidrLocation(ctx, \"exampleCidrLocation\", \u0026route53.CidrLocationArgs{\n\t\t\tCidrCollectionId: exampleCidrCollection.ID(),\n\t\t\tName: pulumi.String(\"office\"),\n\t\t\tCidrBlocks: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"200.5.3.0/24\"),\n\t\t\t\tpulumi.String(\"200.6.3.0/24\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.route53.CidrCollection;\nimport com.pulumi.aws.route53.CidrCollectionArgs;\nimport com.pulumi.aws.route53.CidrLocation;\nimport com.pulumi.aws.route53.CidrLocationArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var exampleCidrCollection = new CidrCollection(\"exampleCidrCollection\", CidrCollectionArgs.builder() \n .name(\"collection-1\")\n .build());\n\n var exampleCidrLocation = new CidrLocation(\"exampleCidrLocation\", CidrLocationArgs.builder() \n .cidrCollectionId(exampleCidrCollection.id())\n .name(\"office\")\n .cidrBlocks( \n \"200.5.3.0/24\",\n \"200.6.3.0/24\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleCidrCollection:\n type: aws:route53:CidrCollection\n properties:\n name: collection-1\n exampleCidrLocation:\n type: aws:route53:CidrLocation\n properties:\n cidrCollectionId: ${exampleCidrCollection.id}\n name: office\n cidrBlocks:\n - 200.5.3.0/24\n - 200.6.3.0/24\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nterraform import {\n\n to = aws_route53_cidr_location.example\n\n id = \"9ac32814-3e67-0932-6048-8d779cc6f511,office\" } Using `pulumi import`, import CIDR locations using their the CIDR collection ID and location name. For exampleconsole % pulumi import aws_route53_cidr_location.example 9ac32814-3e67-0932-6048-8d779cc6f511,office ", + "description": "Provides a Route53 CIDR location resource.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\n\nconst exampleCidrCollection = new aws.route53.CidrCollection(\"exampleCidrCollection\", {});\nconst exampleCidrLocation = new aws.route53.CidrLocation(\"exampleCidrLocation\", {\n cidrCollectionId: exampleCidrCollection.id,\n cidrBlocks: [\n \"200.5.3.0/24\",\n \"200.6.3.0/24\",\n ],\n});\n```\n```python\nimport pulumi\nimport pulumi_aws as aws\n\nexample_cidr_collection = aws.route53.CidrCollection(\"exampleCidrCollection\")\nexample_cidr_location = aws.route53.CidrLocation(\"exampleCidrLocation\",\n cidr_collection_id=example_cidr_collection.id,\n cidr_blocks=[\n \"200.5.3.0/24\",\n \"200.6.3.0/24\",\n ])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var exampleCidrCollection = new Aws.Route53.CidrCollection(\"exampleCidrCollection\");\n\n var exampleCidrLocation = new Aws.Route53.CidrLocation(\"exampleCidrLocation\", new()\n {\n CidrCollectionId = exampleCidrCollection.Id,\n CidrBlocks = new[]\n {\n \"200.5.3.0/24\",\n \"200.6.3.0/24\",\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/route53\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleCidrCollection, err := route53.NewCidrCollection(ctx, \"exampleCidrCollection\", nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = route53.NewCidrLocation(ctx, \"exampleCidrLocation\", \u0026route53.CidrLocationArgs{\n\t\t\tCidrCollectionId: exampleCidrCollection.ID(),\n\t\t\tCidrBlocks: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"200.5.3.0/24\"),\n\t\t\t\tpulumi.String(\"200.6.3.0/24\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.route53.CidrCollection;\nimport com.pulumi.aws.route53.CidrLocation;\nimport com.pulumi.aws.route53.CidrLocationArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var exampleCidrCollection = new CidrCollection(\"exampleCidrCollection\");\n\n var exampleCidrLocation = new CidrLocation(\"exampleCidrLocation\", CidrLocationArgs.builder() \n .cidrCollectionId(exampleCidrCollection.id())\n .cidrBlocks( \n \"200.5.3.0/24\",\n \"200.6.3.0/24\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleCidrCollection:\n type: aws:route53:CidrCollection\n exampleCidrLocation:\n type: aws:route53:CidrLocation\n properties:\n cidrCollectionId: ${exampleCidrCollection.id}\n cidrBlocks:\n - 200.5.3.0/24\n - 200.6.3.0/24\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nterraform import {\n\n to = aws_route53_cidr_location.example\n\n id = \"9ac32814-3e67-0932-6048-8d779cc6f511,office\" } Using `pulumi import`, import CIDR locations using their the CIDR collection ID and location name. For exampleconsole % pulumi import aws_route53_cidr_location.example 9ac32814-3e67-0932-6048-8d779cc6f511,office ", "properties": { "cidrBlocks": { "type": "array", @@ -267293,8 +267256,7 @@ }, "requiredInputs": [ "cidrBlocks", - "cidrCollectionId", - "name" + "cidrCollectionId" ], "stateInputs": { "description": "Input properties used for looking up and filtering CidrLocation resources.\n", @@ -285598,7 +285560,7 @@ } }, "aws:sfn/alias:Alias": { - "description": "Provides a Step Function State Machine Alias.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n### Basic Usage\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\n\nconst sfnAlias = new aws.sfn.Alias(\"sfnAlias\", {\n name: \"my_sfn_alias\",\n routingConfigurations: [{\n stateMachineVersionArn: aws_sfn_state_machine.sfn_test.state_machine_version_arn,\n weight: 100,\n }],\n});\nconst mySfnAlias = new aws.sfn.Alias(\"mySfnAlias\", {\n name: \"my_sfn_alias\",\n routingConfigurations: [\n {\n stateMachineVersionArn: \"arn:aws:states:us-east-1:12345:stateMachine:demo:3\",\n weight: 50,\n },\n {\n stateMachineVersionArn: \"arn:aws:states:us-east-1:12345:stateMachine:demo:2\",\n weight: 50,\n },\n ],\n});\n```\n```python\nimport pulumi\nimport pulumi_aws as aws\n\nsfn_alias = aws.sfn.Alias(\"sfnAlias\",\n name=\"my_sfn_alias\",\n routing_configurations=[aws.sfn.AliasRoutingConfigurationArgs(\n state_machine_version_arn=aws_sfn_state_machine[\"sfn_test\"][\"state_machine_version_arn\"],\n weight=100,\n )])\nmy_sfn_alias = aws.sfn.Alias(\"mySfnAlias\",\n name=\"my_sfn_alias\",\n routing_configurations=[\n aws.sfn.AliasRoutingConfigurationArgs(\n state_machine_version_arn=\"arn:aws:states:us-east-1:12345:stateMachine:demo:3\",\n weight=50,\n ),\n aws.sfn.AliasRoutingConfigurationArgs(\n state_machine_version_arn=\"arn:aws:states:us-east-1:12345:stateMachine:demo:2\",\n weight=50,\n ),\n ])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var sfnAlias = new Aws.Sfn.Alias(\"sfnAlias\", new()\n {\n Name = \"my_sfn_alias\",\n RoutingConfigurations = new[]\n {\n new Aws.Sfn.Inputs.AliasRoutingConfigurationArgs\n {\n StateMachineVersionArn = aws_sfn_state_machine.Sfn_test.State_machine_version_arn,\n Weight = 100,\n },\n },\n });\n\n var mySfnAlias = new Aws.Sfn.Alias(\"mySfnAlias\", new()\n {\n Name = \"my_sfn_alias\",\n RoutingConfigurations = new[]\n {\n new Aws.Sfn.Inputs.AliasRoutingConfigurationArgs\n {\n StateMachineVersionArn = \"arn:aws:states:us-east-1:12345:stateMachine:demo:3\",\n Weight = 50,\n },\n new Aws.Sfn.Inputs.AliasRoutingConfigurationArgs\n {\n StateMachineVersionArn = \"arn:aws:states:us-east-1:12345:stateMachine:demo:2\",\n Weight = 50,\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/sfn\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := sfn.NewAlias(ctx, \"sfnAlias\", \u0026sfn.AliasArgs{\n\t\t\tName: pulumi.String(\"my_sfn_alias\"),\n\t\t\tRoutingConfigurations: sfn.AliasRoutingConfigurationArray{\n\t\t\t\t\u0026sfn.AliasRoutingConfigurationArgs{\n\t\t\t\t\tStateMachineVersionArn: pulumi.Any(aws_sfn_state_machine.Sfn_test.State_machine_version_arn),\n\t\t\t\t\tWeight: pulumi.Int(100),\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = sfn.NewAlias(ctx, \"mySfnAlias\", \u0026sfn.AliasArgs{\n\t\t\tName: pulumi.String(\"my_sfn_alias\"),\n\t\t\tRoutingConfigurations: sfn.AliasRoutingConfigurationArray{\n\t\t\t\t\u0026sfn.AliasRoutingConfigurationArgs{\n\t\t\t\t\tStateMachineVersionArn: pulumi.String(\"arn:aws:states:us-east-1:12345:stateMachine:demo:3\"),\n\t\t\t\t\tWeight: pulumi.Int(50),\n\t\t\t\t},\n\t\t\t\t\u0026sfn.AliasRoutingConfigurationArgs{\n\t\t\t\t\tStateMachineVersionArn: pulumi.String(\"arn:aws:states:us-east-1:12345:stateMachine:demo:2\"),\n\t\t\t\t\tWeight: pulumi.Int(50),\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.sfn.Alias;\nimport com.pulumi.aws.sfn.AliasArgs;\nimport com.pulumi.aws.sfn.inputs.AliasRoutingConfigurationArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var sfnAlias = new Alias(\"sfnAlias\", AliasArgs.builder() \n .name(\"my_sfn_alias\")\n .routingConfigurations(AliasRoutingConfigurationArgs.builder()\n .stateMachineVersionArn(aws_sfn_state_machine.sfn_test().state_machine_version_arn())\n .weight(100)\n .build())\n .build());\n\n var mySfnAlias = new Alias(\"mySfnAlias\", AliasArgs.builder() \n .name(\"my_sfn_alias\")\n .routingConfigurations( \n AliasRoutingConfigurationArgs.builder()\n .stateMachineVersionArn(\"arn:aws:states:us-east-1:12345:stateMachine:demo:3\")\n .weight(50)\n .build(),\n AliasRoutingConfigurationArgs.builder()\n .stateMachineVersionArn(\"arn:aws:states:us-east-1:12345:stateMachine:demo:2\")\n .weight(50)\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n sfnAlias:\n type: aws:sfn:Alias\n properties:\n name: my_sfn_alias\n routingConfigurations:\n - stateMachineVersionArn: ${aws_sfn_state_machine.sfn_test.state_machine_version_arn}\n weight: 100\n mySfnAlias:\n type: aws:sfn:Alias\n properties:\n name: my_sfn_alias\n routingConfigurations:\n - stateMachineVersionArn: arn:aws:states:us-east-1:12345:stateMachine:demo:3\n weight: 50\n - stateMachineVersionArn: arn:aws:states:us-east-1:12345:stateMachine:demo:2\n weight: 50\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nterraform import {\n\n to = aws_sfn_alias.foo\n\n id = \"arn:aws:states:us-east-1:123456789098:stateMachine:myStateMachine:foo\" } Using `pulumi import`, import SFN (Step Functions) Alias using the `arn`. For exampleconsole % pulumi import aws_sfn_alias.foo arn:aws:states:us-east-1:123456789098:stateMachine:myStateMachine:foo ", + "description": "Provides a Step Function State Machine Alias.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n### Basic Usage\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\n\nconst sfnAlias = new aws.sfn.Alias(\"sfnAlias\", {routingConfigurations: [{\n stateMachineVersionArn: aws_sfn_state_machine.sfn_test.state_machine_version_arn,\n weight: 100,\n}]});\nconst mySfnAlias = new aws.sfn.Alias(\"mySfnAlias\", {routingConfigurations: [\n {\n stateMachineVersionArn: \"arn:aws:states:us-east-1:12345:stateMachine:demo:3\",\n weight: 50,\n },\n {\n stateMachineVersionArn: \"arn:aws:states:us-east-1:12345:stateMachine:demo:2\",\n weight: 50,\n },\n]});\n```\n```python\nimport pulumi\nimport pulumi_aws as aws\n\nsfn_alias = aws.sfn.Alias(\"sfnAlias\", routing_configurations=[aws.sfn.AliasRoutingConfigurationArgs(\n state_machine_version_arn=aws_sfn_state_machine[\"sfn_test\"][\"state_machine_version_arn\"],\n weight=100,\n)])\nmy_sfn_alias = aws.sfn.Alias(\"mySfnAlias\", routing_configurations=[\n aws.sfn.AliasRoutingConfigurationArgs(\n state_machine_version_arn=\"arn:aws:states:us-east-1:12345:stateMachine:demo:3\",\n weight=50,\n ),\n aws.sfn.AliasRoutingConfigurationArgs(\n state_machine_version_arn=\"arn:aws:states:us-east-1:12345:stateMachine:demo:2\",\n weight=50,\n ),\n])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var sfnAlias = new Aws.Sfn.Alias(\"sfnAlias\", new()\n {\n RoutingConfigurations = new[]\n {\n new Aws.Sfn.Inputs.AliasRoutingConfigurationArgs\n {\n StateMachineVersionArn = aws_sfn_state_machine.Sfn_test.State_machine_version_arn,\n Weight = 100,\n },\n },\n });\n\n var mySfnAlias = new Aws.Sfn.Alias(\"mySfnAlias\", new()\n {\n RoutingConfigurations = new[]\n {\n new Aws.Sfn.Inputs.AliasRoutingConfigurationArgs\n {\n StateMachineVersionArn = \"arn:aws:states:us-east-1:12345:stateMachine:demo:3\",\n Weight = 50,\n },\n new Aws.Sfn.Inputs.AliasRoutingConfigurationArgs\n {\n StateMachineVersionArn = \"arn:aws:states:us-east-1:12345:stateMachine:demo:2\",\n Weight = 50,\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/sfn\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := sfn.NewAlias(ctx, \"sfnAlias\", \u0026sfn.AliasArgs{\n\t\t\tRoutingConfigurations: sfn.AliasRoutingConfigurationArray{\n\t\t\t\t\u0026sfn.AliasRoutingConfigurationArgs{\n\t\t\t\t\tStateMachineVersionArn: pulumi.Any(aws_sfn_state_machine.Sfn_test.State_machine_version_arn),\n\t\t\t\t\tWeight: pulumi.Int(100),\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = sfn.NewAlias(ctx, \"mySfnAlias\", \u0026sfn.AliasArgs{\n\t\t\tRoutingConfigurations: sfn.AliasRoutingConfigurationArray{\n\t\t\t\t\u0026sfn.AliasRoutingConfigurationArgs{\n\t\t\t\t\tStateMachineVersionArn: pulumi.String(\"arn:aws:states:us-east-1:12345:stateMachine:demo:3\"),\n\t\t\t\t\tWeight: pulumi.Int(50),\n\t\t\t\t},\n\t\t\t\t\u0026sfn.AliasRoutingConfigurationArgs{\n\t\t\t\t\tStateMachineVersionArn: pulumi.String(\"arn:aws:states:us-east-1:12345:stateMachine:demo:2\"),\n\t\t\t\t\tWeight: pulumi.Int(50),\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.sfn.Alias;\nimport com.pulumi.aws.sfn.AliasArgs;\nimport com.pulumi.aws.sfn.inputs.AliasRoutingConfigurationArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var sfnAlias = new Alias(\"sfnAlias\", AliasArgs.builder() \n .routingConfigurations(AliasRoutingConfigurationArgs.builder()\n .stateMachineVersionArn(aws_sfn_state_machine.sfn_test().state_machine_version_arn())\n .weight(100)\n .build())\n .build());\n\n var mySfnAlias = new Alias(\"mySfnAlias\", AliasArgs.builder() \n .routingConfigurations( \n AliasRoutingConfigurationArgs.builder()\n .stateMachineVersionArn(\"arn:aws:states:us-east-1:12345:stateMachine:demo:3\")\n .weight(50)\n .build(),\n AliasRoutingConfigurationArgs.builder()\n .stateMachineVersionArn(\"arn:aws:states:us-east-1:12345:stateMachine:demo:2\")\n .weight(50)\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n sfnAlias:\n type: aws:sfn:Alias\n properties:\n routingConfigurations:\n - stateMachineVersionArn: ${aws_sfn_state_machine.sfn_test.state_machine_version_arn}\n weight: 100\n mySfnAlias:\n type: aws:sfn:Alias\n properties:\n routingConfigurations:\n - stateMachineVersionArn: arn:aws:states:us-east-1:12345:stateMachine:demo:3\n weight: 50\n - stateMachineVersionArn: arn:aws:states:us-east-1:12345:stateMachine:demo:2\n weight: 50\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nterraform import {\n\n to = aws_sfn_alias.foo\n\n id = \"arn:aws:states:us-east-1:123456789098:stateMachine:myStateMachine:foo\" } Using `pulumi import`, import SFN (Step Functions) Alias using the `arn`. For exampleconsole % pulumi import aws_sfn_alias.foo arn:aws:states:us-east-1:123456789098:stateMachine:myStateMachine:foo ", "properties": { "arn": { "type": "string", @@ -285649,7 +285611,6 @@ } }, "requiredInputs": [ - "name", "routingConfigurations" ], "stateInputs": { @@ -304211,7 +304172,7 @@ } }, "aws:auditmanager/getControl:getControl": { - "description": "Data source for managing an AWS Audit Manager Control.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n### Basic Usage\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\n\nconst example = aws.auditmanager.getControl({\n name: \"1. Risk Management\",\n type: \"Standard\",\n});\n```\n```python\nimport pulumi\nimport pulumi_aws as aws\n\nexample = aws.auditmanager.get_control(name=\"1. Risk Management\",\n type=\"Standard\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = Aws.Auditmanager.GetControl.Invoke(new()\n {\n Name = \"1. Risk Management\",\n Type = \"Standard\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/auditmanager\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := auditmanager.LookupControl(ctx, \u0026auditmanager.LookupControlArgs{\n\t\t\tName: \"1. Risk Management\",\n\t\t\tType: \"Standard\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.auditmanager.AuditmanagerFunctions;\nimport com.pulumi.aws.auditmanager.inputs.GetControlArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = AuditmanagerFunctions.getControl(GetControlArgs.builder()\n .name(\"1. Risk Management\")\n .type(\"Standard\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n Function: aws:auditmanager:getControl\n Arguments:\n name: 1. Risk Management\n type: Standard\n```\n{{% /example %}}\n{{% example %}}\n### With Framework Resource\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\n\nconst exampleControl = aws.auditmanager.getControl({\n name: \"1. Risk Management\",\n type: \"Standard\",\n});\nconst example2 = aws.auditmanager.getControl({\n name: \"2. Personnel\",\n type: \"Standard\",\n});\nconst exampleFramework = new aws.auditmanager.Framework(\"exampleFramework\", {\n name: \"example\",\n controlSets: [\n {\n name: \"example\",\n controls: [{\n id: exampleControl.then(exampleControl =\u003e exampleControl.id),\n }],\n },\n {\n name: \"example2\",\n controls: [{\n id: example2.then(example2 =\u003e example2.id),\n }],\n },\n ],\n});\n```\n```python\nimport pulumi\nimport pulumi_aws as aws\n\nexample_control = aws.auditmanager.get_control(name=\"1. Risk Management\",\n type=\"Standard\")\nexample2 = aws.auditmanager.get_control(name=\"2. Personnel\",\n type=\"Standard\")\nexample_framework = aws.auditmanager.Framework(\"exampleFramework\",\n name=\"example\",\n control_sets=[\n aws.auditmanager.FrameworkControlSetArgs(\n name=\"example\",\n controls=[aws.auditmanager.FrameworkControlSetControlArgs(\n id=example_control.id,\n )],\n ),\n aws.auditmanager.FrameworkControlSetArgs(\n name=\"example2\",\n controls=[aws.auditmanager.FrameworkControlSetControlArgs(\n id=example2.id,\n )],\n ),\n ])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var exampleControl = Aws.Auditmanager.GetControl.Invoke(new()\n {\n Name = \"1. Risk Management\",\n Type = \"Standard\",\n });\n\n var example2 = Aws.Auditmanager.GetControl.Invoke(new()\n {\n Name = \"2. Personnel\",\n Type = \"Standard\",\n });\n\n var exampleFramework = new Aws.Auditmanager.Framework(\"exampleFramework\", new()\n {\n Name = \"example\",\n ControlSets = new[]\n {\n new Aws.Auditmanager.Inputs.FrameworkControlSetArgs\n {\n Name = \"example\",\n Controls = new[]\n {\n new Aws.Auditmanager.Inputs.FrameworkControlSetControlArgs\n {\n Id = exampleControl.Apply(getControlResult =\u003e getControlResult.Id),\n },\n },\n },\n new Aws.Auditmanager.Inputs.FrameworkControlSetArgs\n {\n Name = \"example2\",\n Controls = new[]\n {\n new Aws.Auditmanager.Inputs.FrameworkControlSetControlArgs\n {\n Id = example2.Apply(getControlResult =\u003e getControlResult.Id),\n },\n },\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/auditmanager\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleControl, err := auditmanager.LookupControl(ctx, \u0026auditmanager.LookupControlArgs{\n\t\t\tName: \"1. Risk Management\",\n\t\t\tType: \"Standard\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texample2, err := auditmanager.LookupControl(ctx, \u0026auditmanager.LookupControlArgs{\n\t\t\tName: \"2. Personnel\",\n\t\t\tType: \"Standard\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = auditmanager.NewFramework(ctx, \"exampleFramework\", \u0026auditmanager.FrameworkArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tControlSets: auditmanager.FrameworkControlSetArray{\n\t\t\t\t\u0026auditmanager.FrameworkControlSetArgs{\n\t\t\t\t\tName: pulumi.String(\"example\"),\n\t\t\t\t\tControls: auditmanager.FrameworkControlSetControlArray{\n\t\t\t\t\t\t\u0026auditmanager.FrameworkControlSetControlArgs{\n\t\t\t\t\t\t\tId: *pulumi.String(exampleControl.Id),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\t\u0026auditmanager.FrameworkControlSetArgs{\n\t\t\t\t\tName: pulumi.String(\"example2\"),\n\t\t\t\t\tControls: auditmanager.FrameworkControlSetControlArray{\n\t\t\t\t\t\t\u0026auditmanager.FrameworkControlSetControlArgs{\n\t\t\t\t\t\t\tId: *pulumi.String(example2.Id),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.auditmanager.AuditmanagerFunctions;\nimport com.pulumi.aws.auditmanager.inputs.GetControlArgs;\nimport com.pulumi.aws.auditmanager.Framework;\nimport com.pulumi.aws.auditmanager.FrameworkArgs;\nimport com.pulumi.aws.auditmanager.inputs.FrameworkControlSetArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var exampleControl = AuditmanagerFunctions.getControl(GetControlArgs.builder()\n .name(\"1. Risk Management\")\n .type(\"Standard\")\n .build());\n\n final var example2 = AuditmanagerFunctions.getControl(GetControlArgs.builder()\n .name(\"2. Personnel\")\n .type(\"Standard\")\n .build());\n\n var exampleFramework = new Framework(\"exampleFramework\", FrameworkArgs.builder() \n .name(\"example\")\n .controlSets( \n FrameworkControlSetArgs.builder()\n .name(\"example\")\n .controls(FrameworkControlSetControlArgs.builder()\n .id(exampleControl.applyValue(getControlResult -\u003e getControlResult.id()))\n .build())\n .build(),\n FrameworkControlSetArgs.builder()\n .name(\"example2\")\n .controls(FrameworkControlSetControlArgs.builder()\n .id(example2.applyValue(getControlResult -\u003e getControlResult.id()))\n .build())\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleFramework:\n type: aws:auditmanager:Framework\n properties:\n name: example\n controlSets:\n - name: example\n controls:\n - id: ${exampleControl.id}\n - name: example2\n controls:\n - id: ${example2.id}\nvariables:\n exampleControl:\n fn::invoke:\n Function: aws:auditmanager:getControl\n Arguments:\n name: 1. Risk Management\n type: Standard\n example2:\n fn::invoke:\n Function: aws:auditmanager:getControl\n Arguments:\n name: 2. Personnel\n type: Standard\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "Data source for managing an AWS Audit Manager Control.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n### Basic Usage\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\n\nconst example = aws.auditmanager.getControl({\n name: \"1. Risk Management\",\n type: \"Standard\",\n});\n```\n```python\nimport pulumi\nimport pulumi_aws as aws\n\nexample = aws.auditmanager.get_control(name=\"1. Risk Management\",\n type=\"Standard\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = Aws.Auditmanager.GetControl.Invoke(new()\n {\n Name = \"1. Risk Management\",\n Type = \"Standard\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/auditmanager\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := auditmanager.LookupControl(ctx, \u0026auditmanager.LookupControlArgs{\n\t\t\tName: \"1. Risk Management\",\n\t\t\tType: \"Standard\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.auditmanager.AuditmanagerFunctions;\nimport com.pulumi.aws.auditmanager.inputs.GetControlArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = AuditmanagerFunctions.getControl(GetControlArgs.builder()\n .name(\"1. Risk Management\")\n .type(\"Standard\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n Function: aws:auditmanager:getControl\n Arguments:\n name: 1. Risk Management\n type: Standard\n```\n{{% /example %}}\n{{% example %}}\n### With Framework Resource\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\n\nconst exampleControl = aws.auditmanager.getControl({\n name: \"1. Risk Management\",\n type: \"Standard\",\n});\nconst example2 = aws.auditmanager.getControl({\n name: \"2. Personnel\",\n type: \"Standard\",\n});\nconst exampleFramework = new aws.auditmanager.Framework(\"exampleFramework\", {controlSets: [\n {\n name: \"example\",\n controls: [{\n id: exampleControl.then(exampleControl =\u003e exampleControl.id),\n }],\n },\n {\n name: \"example2\",\n controls: [{\n id: example2.then(example2 =\u003e example2.id),\n }],\n },\n]});\n```\n```python\nimport pulumi\nimport pulumi_aws as aws\n\nexample_control = aws.auditmanager.get_control(name=\"1. Risk Management\",\n type=\"Standard\")\nexample2 = aws.auditmanager.get_control(name=\"2. Personnel\",\n type=\"Standard\")\nexample_framework = aws.auditmanager.Framework(\"exampleFramework\", control_sets=[\n aws.auditmanager.FrameworkControlSetArgs(\n name=\"example\",\n controls=[aws.auditmanager.FrameworkControlSetControlArgs(\n id=example_control.id,\n )],\n ),\n aws.auditmanager.FrameworkControlSetArgs(\n name=\"example2\",\n controls=[aws.auditmanager.FrameworkControlSetControlArgs(\n id=example2.id,\n )],\n ),\n])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var exampleControl = Aws.Auditmanager.GetControl.Invoke(new()\n {\n Name = \"1. Risk Management\",\n Type = \"Standard\",\n });\n\n var example2 = Aws.Auditmanager.GetControl.Invoke(new()\n {\n Name = \"2. Personnel\",\n Type = \"Standard\",\n });\n\n var exampleFramework = new Aws.Auditmanager.Framework(\"exampleFramework\", new()\n {\n ControlSets = new[]\n {\n new Aws.Auditmanager.Inputs.FrameworkControlSetArgs\n {\n Name = \"example\",\n Controls = new[]\n {\n new Aws.Auditmanager.Inputs.FrameworkControlSetControlArgs\n {\n Id = exampleControl.Apply(getControlResult =\u003e getControlResult.Id),\n },\n },\n },\n new Aws.Auditmanager.Inputs.FrameworkControlSetArgs\n {\n Name = \"example2\",\n Controls = new[]\n {\n new Aws.Auditmanager.Inputs.FrameworkControlSetControlArgs\n {\n Id = example2.Apply(getControlResult =\u003e getControlResult.Id),\n },\n },\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/auditmanager\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleControl, err := auditmanager.LookupControl(ctx, \u0026auditmanager.LookupControlArgs{\n\t\t\tName: \"1. Risk Management\",\n\t\t\tType: \"Standard\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texample2, err := auditmanager.LookupControl(ctx, \u0026auditmanager.LookupControlArgs{\n\t\t\tName: \"2. Personnel\",\n\t\t\tType: \"Standard\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = auditmanager.NewFramework(ctx, \"exampleFramework\", \u0026auditmanager.FrameworkArgs{\n\t\t\tControlSets: auditmanager.FrameworkControlSetArray{\n\t\t\t\t\u0026auditmanager.FrameworkControlSetArgs{\n\t\t\t\t\tName: pulumi.String(\"example\"),\n\t\t\t\t\tControls: auditmanager.FrameworkControlSetControlArray{\n\t\t\t\t\t\t\u0026auditmanager.FrameworkControlSetControlArgs{\n\t\t\t\t\t\t\tId: *pulumi.String(exampleControl.Id),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\t\u0026auditmanager.FrameworkControlSetArgs{\n\t\t\t\t\tName: pulumi.String(\"example2\"),\n\t\t\t\t\tControls: auditmanager.FrameworkControlSetControlArray{\n\t\t\t\t\t\t\u0026auditmanager.FrameworkControlSetControlArgs{\n\t\t\t\t\t\t\tId: *pulumi.String(example2.Id),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.auditmanager.AuditmanagerFunctions;\nimport com.pulumi.aws.auditmanager.inputs.GetControlArgs;\nimport com.pulumi.aws.auditmanager.Framework;\nimport com.pulumi.aws.auditmanager.FrameworkArgs;\nimport com.pulumi.aws.auditmanager.inputs.FrameworkControlSetArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var exampleControl = AuditmanagerFunctions.getControl(GetControlArgs.builder()\n .name(\"1. Risk Management\")\n .type(\"Standard\")\n .build());\n\n final var example2 = AuditmanagerFunctions.getControl(GetControlArgs.builder()\n .name(\"2. Personnel\")\n .type(\"Standard\")\n .build());\n\n var exampleFramework = new Framework(\"exampleFramework\", FrameworkArgs.builder() \n .controlSets( \n FrameworkControlSetArgs.builder()\n .name(\"example\")\n .controls(FrameworkControlSetControlArgs.builder()\n .id(exampleControl.applyValue(getControlResult -\u003e getControlResult.id()))\n .build())\n .build(),\n FrameworkControlSetArgs.builder()\n .name(\"example2\")\n .controls(FrameworkControlSetControlArgs.builder()\n .id(example2.applyValue(getControlResult -\u003e getControlResult.id()))\n .build())\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleFramework:\n type: aws:auditmanager:Framework\n properties:\n controlSets:\n - name: example\n controls:\n - id: ${exampleControl.id}\n - name: example2\n controls:\n - id: ${example2.id}\nvariables:\n exampleControl:\n fn::invoke:\n Function: aws:auditmanager:getControl\n Arguments:\n name: 1. Risk Management\n type: Standard\n example2:\n fn::invoke:\n Function: aws:auditmanager:getControl\n Arguments:\n name: 2. Personnel\n type: Standard\n```\n{{% /example %}}\n{{% /examples %}}", "inputs": { "description": "A collection of arguments for invoking getControl.\n", "properties": { From fea11eb90aeb24bb4fdb1272ac48875421559523 Mon Sep 17 00:00:00 2001 From: Anton Tayanovskyy Date: Wed, 2 Aug 2023 13:13:49 -0400 Subject: [PATCH 4/8] build_sdks --- sdk/dotnet/AppIntegrations/DataIntegration.cs | 5 +- sdk/dotnet/Auditmanager/Assessment.cs | 5 +- sdk/dotnet/Auditmanager/AssessmentReport.cs | 5 +- sdk/dotnet/Auditmanager/Control.cs | 7 +- sdk/dotnet/Auditmanager/Framework.cs | 7 +- sdk/dotnet/Auditmanager/GetControl.cs | 2 - .../Chime/SdkvoiceSipMediaApplication.cs | 5 +- sdk/dotnet/Chime/SdkvoiceSipRule.cs | 5 +- .../Chime/SdkvoiceVoiceProfileDomain.cs | 5 +- sdk/dotnet/CleanRooms/Collaboration.cs | 5 +- .../CloudFront/FieldLevelEncryptionProfile.cs | 1 - sdk/dotnet/CloudFront/KeyGroup.cs | 1 - sdk/dotnet/CloudFront/PublicKey.cs | 1 - sdk/dotnet/EmrContainers/JobTemplate.cs | 5 +- sdk/dotnet/FinSpace/KxCluster.cs | 4 +- sdk/dotnet/FinSpace/KxDatabase.cs | 6 +- sdk/dotnet/FinSpace/KxEnvironment.cs | 6 +- sdk/dotnet/FinSpace/KxUser.cs | 6 +- .../CustomRoutingAccelerator.cs | 7 +- .../CustomRoutingListener.cs | 1 - sdk/dotnet/Glue/DataQualityRuleset.cs | 8 +- .../OpenSearch/ServerlessAccessPolicy.cs | 5 +- sdk/dotnet/OpenSearch/ServerlessCollection.cs | 8 +- .../OpenSearch/ServerlessSecurityConfig.cs | 4 +- .../OpenSearch/ServerlessSecurityPolicy.cs | 10 +- .../OpenSearch/ServerlessVpcEndpoint.cs | 5 +- sdk/dotnet/Quicksight/Theme.cs | 4 +- sdk/dotnet/Quicksight/VpcConnection.cs | 5 +- sdk/dotnet/ResourceExplorer/View.cs | 7 +- sdk/dotnet/Route53/CidrCollection.cs | 11 +-- sdk/dotnet/Route53/CidrLocation.cs | 10 +- sdk/dotnet/Sfn/Alias.cs | 6 +- sdk/go/aws/appintegrations/dataIntegration.go | 8 +- sdk/go/aws/auditmanager/assessment.go | 8 +- sdk/go/aws/auditmanager/assessmentReport.go | 8 +- sdk/go/aws/auditmanager/control.go | 11 +-- sdk/go/aws/auditmanager/framework.go | 11 +-- sdk/go/aws/auditmanager/getControl.go | 1 - .../aws/chime/sdkvoiceSipMediaApplication.go | 8 +- sdk/go/aws/chime/sdkvoiceSipRule.go | 8 +- .../aws/chime/sdkvoiceVoiceProfileDomain.go | 8 +- sdk/go/aws/cleanrooms/collaboration.go | 8 +- .../cloudfront/fieldLevelEncryptionProfile.go | 1 - sdk/go/aws/cloudfront/keyGroup.go | 1 - sdk/go/aws/cloudfront/publicKey.go | 1 - sdk/go/aws/emrcontainers/jobTemplate.go | 8 +- sdk/go/aws/finspace/kxCluster.go | 7 +- sdk/go/aws/finspace/kxDatabase.go | 9 +- sdk/go/aws/finspace/kxEnvironment.go | 9 +- sdk/go/aws/finspace/kxUser.go | 9 +- .../customRoutingAccelerator.go | 11 +-- .../customRoutingListener.go | 1 - sdk/go/aws/glue/dataQualityRuleset.go | 11 +-- .../aws/opensearch/serverlessAccessPolicy.go | 8 +- sdk/go/aws/opensearch/serverlessCollection.go | 15 +-- .../opensearch/serverlessSecurityConfig.go | 7 +- .../opensearch/serverlessSecurityPolicy.go | 13 +-- .../aws/opensearch/serverlessVpcEndpoint.go | 8 +- sdk/go/aws/quicksight/theme.go | 7 +- sdk/go/aws/quicksight/vpcConnection.go | 8 +- sdk/go/aws/resourceexplorer/view.go | 11 +-- sdk/go/aws/route53/cidrCollection.go | 14 +-- sdk/go/aws/route53/cidrLocation.go | 12 +-- sdk/go/aws/sfn/alias.go | 9 +- .../aws/appintegrations/DataIntegration.java | 1 - .../appintegrations/DataIntegrationArgs.java | 11 +-- .../pulumi/aws/auditmanager/Assessment.java | 1 - .../aws/auditmanager/AssessmentArgs.java | 11 +-- .../aws/auditmanager/AssessmentReport.java | 1 - .../auditmanager/AssessmentReportArgs.java | 11 +-- .../auditmanager/AuditmanagerFunctions.java | 4 - .../com/pulumi/aws/auditmanager/Control.java | 5 +- .../pulumi/aws/auditmanager/ControlArgs.java | 11 +-- .../pulumi/aws/auditmanager/Framework.java | 5 +- .../aws/auditmanager/FrameworkArgs.java | 11 +-- .../chime/SdkvoiceSipMediaApplication.java | 1 - .../SdkvoiceSipMediaApplicationArgs.java | 11 +-- .../com/pulumi/aws/chime/SdkvoiceSipRule.java | 1 - .../pulumi/aws/chime/SdkvoiceSipRuleArgs.java | 11 +-- .../aws/chime/SdkvoiceVoiceProfileDomain.java | 1 - .../chime/SdkvoiceVoiceProfileDomainArgs.java | 11 +-- .../pulumi/aws/cleanrooms/Collaboration.java | 1 - .../aws/cleanrooms/CollaborationArgs.java | 11 +-- .../FieldLevelEncryptionProfile.java | 1 - .../com/pulumi/aws/cloudfront/KeyGroup.java | 1 - .../com/pulumi/aws/cloudfront/PublicKey.java | 1 - .../pulumi/aws/emrcontainers/JobTemplate.java | 1 - .../aws/emrcontainers/JobTemplateArgs.java | 11 +-- .../com/pulumi/aws/finspace/KxCluster.java | 1 - .../pulumi/aws/finspace/KxClusterArgs.java | 11 +-- .../com/pulumi/aws/finspace/KxDatabase.java | 2 - .../pulumi/aws/finspace/KxDatabaseArgs.java | 11 +-- .../pulumi/aws/finspace/KxEnvironment.java | 2 - .../aws/finspace/KxEnvironmentArgs.java | 11 +-- .../java/com/pulumi/aws/finspace/KxUser.java | 2 - .../com/pulumi/aws/finspace/KxUserArgs.java | 11 +-- .../CustomRoutingAccelerator.java | 5 +- .../CustomRoutingAcceleratorArgs.java | 11 +-- .../CustomRoutingListener.java | 1 - .../pulumi/aws/glue/DataQualityRuleset.java | 4 - .../aws/glue/DataQualityRulesetArgs.java | 11 +-- .../opensearch/ServerlessAccessPolicy.java | 1 - .../ServerlessAccessPolicyArgs.java | 11 +-- .../aws/opensearch/ServerlessCollection.java | 13 +-- .../opensearch/ServerlessCollectionArgs.java | 11 +-- .../opensearch/ServerlessSecurityConfig.java | 1 - .../ServerlessSecurityConfigArgs.java | 11 +-- .../opensearch/ServerlessSecurityPolicy.java | 6 -- .../ServerlessSecurityPolicyArgs.java | 11 +-- .../aws/opensearch/ServerlessVpcEndpoint.java | 1 - .../opensearch/ServerlessVpcEndpointArgs.java | 11 +-- .../java/com/pulumi/aws/quicksight/Theme.java | 1 - .../com/pulumi/aws/quicksight/ThemeArgs.java | 11 +-- .../pulumi/aws/quicksight/VpcConnection.java | 1 - .../aws/quicksight/VpcConnectionArgs.java | 11 +-- .../com/pulumi/aws/resourceexplorer/View.java | 5 +- .../pulumi/aws/resourceexplorer/ViewArgs.java | 11 +-- .../pulumi/aws/route53/CidrCollection.java | 9 +- .../aws/route53/CidrCollectionArgs.java | 13 +-- .../com/pulumi/aws/route53/CidrLocation.java | 6 +- .../pulumi/aws/route53/CidrLocationArgs.java | 13 +-- .../main/java/com/pulumi/aws/sfn/Alias.java | 2 - .../java/com/pulumi/aws/sfn/AliasArgs.java | 11 +-- sdk/nodejs/appintegrations/dataIntegration.ts | 6 +- sdk/nodejs/auditmanager/assessment.ts | 6 +- sdk/nodejs/auditmanager/assessmentReport.ts | 10 +- sdk/nodejs/auditmanager/control.ts | 20 ++-- sdk/nodejs/auditmanager/framework.ts | 18 ++-- sdk/nodejs/auditmanager/getControl.ts | 62 ++++++------ .../chime/sdkvoiceSipMediaApplication.ts | 6 +- sdk/nodejs/chime/sdkvoiceSipRule.ts | 6 +- .../chime/sdkvoiceVoiceProfileDomain.ts | 6 +- sdk/nodejs/cleanrooms/collaboration.ts | 6 +- .../cloudfront/fieldLevelEncryptionProfile.ts | 1 - sdk/nodejs/cloudfront/keyGroup.ts | 1 - sdk/nodejs/cloudfront/publicKey.ts | 1 - sdk/nodejs/emrcontainers/jobTemplate.ts | 22 ++--- sdk/nodejs/finspace/kxCluster.ts | 5 +- sdk/nodejs/finspace/kxDatabase.ts | 11 +-- sdk/nodejs/finspace/kxEnvironment.ts | 11 +-- sdk/nodejs/finspace/kxUser.ts | 11 +-- .../customRoutingAccelerator.ts | 8 +- .../customRoutingListener.ts | 1 - sdk/nodejs/glue/dataQualityRuleset.ts | 13 +-- .../opensearch/serverlessAccessPolicy.ts | 6 +- sdk/nodejs/opensearch/serverlessCollection.ts | 10 +- .../opensearch/serverlessSecurityConfig.ts | 5 +- .../opensearch/serverlessSecurityPolicy.ts | 11 +-- .../opensearch/serverlessVpcEndpoint.ts | 6 +- sdk/nodejs/quicksight/theme.ts | 5 +- sdk/nodejs/quicksight/vpcConnection.ts | 6 +- sdk/nodejs/resourceexplorer/view.ts | 8 +- sdk/nodejs/route53/cidrCollection.ts | 9 +- sdk/nodejs/route53/cidrLocation.ts | 8 +- sdk/nodejs/sfn/alias.ts | 39 +++----- .../appintegrations/data_integration.py | 35 +++---- .../pulumi_aws/auditmanager/assessment.py | 35 +++---- .../auditmanager/assessment_report.py | 43 ++++---- sdk/python/pulumi_aws/auditmanager/control.py | 59 +++++------ .../pulumi_aws/auditmanager/framework.py | 59 +++++------ .../pulumi_aws/auditmanager/get_control.py | 60 ++++++----- .../chime/sdkvoice_sip_media_application.py | 13 +-- .../pulumi_aws/chime/sdkvoice_sip_rule.py | 37 ++++--- .../chime/sdkvoice_voice_profile_domain.py | 35 +++---- .../pulumi_aws/cleanrooms/collaboration.py | 35 +++---- .../field_level_encryption_profile.py | 6 +- sdk/python/pulumi_aws/cloudfront/key_group.py | 6 +- .../pulumi_aws/cloudfront/public_key.py | 6 +- .../pulumi_aws/emrcontainers/job_template.py | 65 ++++++------ sdk/python/pulumi_aws/finspace/kx_cluster.py | 33 +++---- sdk/python/pulumi_aws/finspace/kx_database.py | 47 ++++----- .../pulumi_aws/finspace/kx_environment.py | 43 ++++---- sdk/python/pulumi_aws/finspace/kx_user.py | 21 ++-- .../custom_routing_accelerator.py | 41 ++++---- .../custom_routing_listener.py | 2 - .../pulumi_aws/glue/data_quality_ruleset.py | 47 ++++----- .../opensearch/serverless_access_policy.py | 37 ++++--- .../opensearch/serverless_collection.py | 47 ++++----- .../opensearch/serverless_security_config.py | 33 +++---- .../opensearch/serverless_security_policy.py | 47 ++++----- .../opensearch/serverless_vpc_endpoint.py | 35 +++---- sdk/python/pulumi_aws/quicksight/theme.py | 33 +++---- .../pulumi_aws/quicksight/vpc_connection.py | 35 +++---- .../pulumi_aws/resourceexplorer/view.py | 37 ++++--- .../pulumi_aws/route53/cidr_collection.py | 17 ++-- .../pulumi_aws/route53/cidr_location.py | 17 ++-- sdk/python/pulumi_aws/sfn/alias.py | 99 +++++++++---------- 187 files changed, 897 insertions(+), 1432 deletions(-) diff --git a/sdk/dotnet/AppIntegrations/DataIntegration.cs b/sdk/dotnet/AppIntegrations/DataIntegration.cs index be67ef48026..f8df70f411e 100644 --- a/sdk/dotnet/AppIntegrations/DataIntegration.cs +++ b/sdk/dotnet/AppIntegrations/DataIntegration.cs @@ -24,7 +24,6 @@ namespace Pulumi.Aws.AppIntegrations /// { /// var example = new Aws.AppIntegrations.DataIntegration("example", new() /// { - /// Name = "example", /// Description = "example", /// KmsKey = aws_kms_key.Test.Arn, /// SourceUri = "Salesforce://AppFlow/example", @@ -163,8 +162,8 @@ public sealed class DataIntegrationArgs : global::Pulumi.ResourceArgs /// /// Specifies the name of the Data Integration. /// - [Input("name", required: true)] - public Input Name { get; set; } = null!; + [Input("name")] + public Input? Name { get; set; } /// /// A block that defines the name of the data and how often it should be pulled from the source. The Schedule Config block is documented below. diff --git a/sdk/dotnet/Auditmanager/Assessment.cs b/sdk/dotnet/Auditmanager/Assessment.cs index 5628a1a36ca..227bf859923 100644 --- a/sdk/dotnet/Auditmanager/Assessment.cs +++ b/sdk/dotnet/Auditmanager/Assessment.cs @@ -25,7 +25,6 @@ namespace Pulumi.Aws.Auditmanager /// { /// var test = new Aws.Auditmanager.Assessment("test", new() /// { - /// Name = "example", /// AssessmentReportsDestination = new Aws.Auditmanager.Inputs.AssessmentAssessmentReportsDestinationArgs /// { /// Destination = $"s3://{aws_s3_bucket.Test.Id}", @@ -205,8 +204,8 @@ public sealed class AssessmentArgs : global::Pulumi.ResourceArgs /// /// Name of the assessment. /// - [Input("name", required: true)] - public Input Name { get; set; } = null!; + [Input("name")] + public Input? Name { get; set; } [Input("roles", required: true)] private InputList? _roles; diff --git a/sdk/dotnet/Auditmanager/AssessmentReport.cs b/sdk/dotnet/Auditmanager/AssessmentReport.cs index 4e1a0bf13da..9ac4ddb1b04 100644 --- a/sdk/dotnet/Auditmanager/AssessmentReport.cs +++ b/sdk/dotnet/Auditmanager/AssessmentReport.cs @@ -25,7 +25,6 @@ namespace Pulumi.Aws.Auditmanager /// { /// var test = new Aws.Auditmanager.AssessmentReport("test", new() /// { - /// Name = "example", /// AssessmentId = aws_auditmanager_assessment.Test.Id, /// }); /// @@ -138,8 +137,8 @@ public sealed class AssessmentReportArgs : global::Pulumi.ResourceArgs /// /// Name of the assessment report. /// - [Input("name", required: true)] - public Input Name { get; set; } = null!; + [Input("name")] + public Input? Name { get; set; } public AssessmentReportArgs() { diff --git a/sdk/dotnet/Auditmanager/Control.cs b/sdk/dotnet/Auditmanager/Control.cs index 10d5bbfeb3d..7638fefd300 100644 --- a/sdk/dotnet/Auditmanager/Control.cs +++ b/sdk/dotnet/Auditmanager/Control.cs @@ -34,7 +34,6 @@ namespace Pulumi.Aws.Auditmanager /// SourceType = "MANUAL", /// }, /// }, - /// Name = "example", /// }); /// /// }); @@ -119,7 +118,7 @@ public partial class Control : global::Pulumi.CustomResource /// The unique name of the resource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior - public Control(string name, ControlArgs args, CustomResourceOptions? options = null) + public Control(string name, ControlArgs? args = null, CustomResourceOptions? options = null) : base("aws:auditmanager/control:Control", name, args ?? new ControlArgs(), MakeResourceOptions(options, "")) { } @@ -192,8 +191,8 @@ public InputList ControlMappingSources /// /// Name of the control. /// - [Input("name", required: true)] - public Input Name { get; set; } = null!; + [Input("name")] + public Input? Name { get; set; } [Input("tags")] private InputMap? _tags; diff --git a/sdk/dotnet/Auditmanager/Framework.cs b/sdk/dotnet/Auditmanager/Framework.cs index e2bb6fe1a36..0f0e158cdf1 100644 --- a/sdk/dotnet/Auditmanager/Framework.cs +++ b/sdk/dotnet/Auditmanager/Framework.cs @@ -25,7 +25,6 @@ namespace Pulumi.Aws.Auditmanager /// { /// var test = new Aws.Auditmanager.Framework("test", new() /// { - /// Name = "example", /// ControlSets = new[] /// { /// new Aws.Auditmanager.Inputs.FrameworkControlSetArgs @@ -112,7 +111,7 @@ public partial class Framework : global::Pulumi.CustomResource /// The unique name of the resource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior - public Framework(string name, FrameworkArgs args, CustomResourceOptions? options = null) + public Framework(string name, FrameworkArgs? args = null, CustomResourceOptions? options = null) : base("aws:auditmanager/framework:Framework", name, args ?? new FrameworkArgs(), MakeResourceOptions(options, "")) { } @@ -179,8 +178,8 @@ public InputList ControlSets /// /// Name of the framework. /// - [Input("name", required: true)] - public Input Name { get; set; } = null!; + [Input("name")] + public Input? Name { get; set; } [Input("tags")] private InputMap? _tags; diff --git a/sdk/dotnet/Auditmanager/GetControl.cs b/sdk/dotnet/Auditmanager/GetControl.cs index 43827dd1eb8..4a6669d5688 100644 --- a/sdk/dotnet/Auditmanager/GetControl.cs +++ b/sdk/dotnet/Auditmanager/GetControl.cs @@ -61,7 +61,6 @@ public static class GetControl /// /// var exampleFramework = new Aws.Auditmanager.Framework("exampleFramework", new() /// { - /// Name = "example", /// ControlSets = new[] /// { /// new Aws.Auditmanager.Inputs.FrameworkControlSetArgs @@ -147,7 +146,6 @@ public static Task InvokeAsync(GetControlArgs args, InvokeOpti /// /// var exampleFramework = new Aws.Auditmanager.Framework("exampleFramework", new() /// { - /// Name = "example", /// ControlSets = new[] /// { /// new Aws.Auditmanager.Inputs.FrameworkControlSetArgs diff --git a/sdk/dotnet/Chime/SdkvoiceSipMediaApplication.cs b/sdk/dotnet/Chime/SdkvoiceSipMediaApplication.cs index 58020d6abe5..dfeb81ead38 100644 --- a/sdk/dotnet/Chime/SdkvoiceSipMediaApplication.cs +++ b/sdk/dotnet/Chime/SdkvoiceSipMediaApplication.cs @@ -26,7 +26,6 @@ namespace Pulumi.Aws.Chime /// var example = new Aws.Chime.SdkvoiceSipMediaApplication("example", new() /// { /// AwsRegion = "us-east-1", - /// Name = "example-sip-media-application", /// Endpoints = new Aws.Chime.Inputs.SdkvoiceSipMediaApplicationEndpointsArgs /// { /// LambdaArn = aws_lambda_function.Test.Arn, @@ -148,8 +147,8 @@ public sealed class SdkvoiceSipMediaApplicationArgs : global::Pulumi.ResourceArg /// /// The following arguments are optional: /// - [Input("name", required: true)] - public Input Name { get; set; } = null!; + [Input("name")] + public Input? Name { get; set; } [Input("tags")] private InputMap? _tags; diff --git a/sdk/dotnet/Chime/SdkvoiceSipRule.cs b/sdk/dotnet/Chime/SdkvoiceSipRule.cs index 0f7bca17e8b..5c419289445 100644 --- a/sdk/dotnet/Chime/SdkvoiceSipRule.cs +++ b/sdk/dotnet/Chime/SdkvoiceSipRule.cs @@ -25,7 +25,6 @@ namespace Pulumi.Aws.Chime /// { /// var example = new Aws.Chime.SdkvoiceSipRule("example", new() /// { - /// Name = "example-sip-rule", /// TriggerType = "RequestUriHostname", /// TriggerValue = aws_chime_voice_connector.Example_voice_connector.Outbound_host_name, /// TargetApplications = new[] @@ -140,8 +139,8 @@ public sealed class SdkvoiceSipRuleArgs : global::Pulumi.ResourceArgs /// /// The name of the SIP rule. /// - [Input("name", required: true)] - public Input Name { get; set; } = null!; + [Input("name")] + public Input? Name { get; set; } [Input("targetApplications", required: true)] private InputList? _targetApplications; diff --git a/sdk/dotnet/Chime/SdkvoiceVoiceProfileDomain.cs b/sdk/dotnet/Chime/SdkvoiceVoiceProfileDomain.cs index 4638f62cde0..c5384d20ffb 100644 --- a/sdk/dotnet/Chime/SdkvoiceVoiceProfileDomain.cs +++ b/sdk/dotnet/Chime/SdkvoiceVoiceProfileDomain.cs @@ -31,7 +31,6 @@ namespace Pulumi.Aws.Chime /// /// var exampleSdkvoiceVoiceProfileDomain = new Aws.Chime.SdkvoiceVoiceProfileDomain("exampleSdkvoiceVoiceProfileDomain", new() /// { - /// Name = "ExampleVoiceProfileDomain", /// ServerSideEncryptionConfiguration = new Aws.Chime.Inputs.SdkvoiceVoiceProfileDomainServerSideEncryptionConfigurationArgs /// { /// KmsKeyArn = exampleKey.Arn, @@ -142,8 +141,8 @@ public sealed class SdkvoiceVoiceProfileDomainArgs : global::Pulumi.ResourceArgs /// /// Name of Voice Profile Domain. /// - [Input("name", required: true)] - public Input Name { get; set; } = null!; + [Input("name")] + public Input? Name { get; set; } /// /// Configuration for server side encryption. diff --git a/sdk/dotnet/CleanRooms/Collaboration.cs b/sdk/dotnet/CleanRooms/Collaboration.cs index 01ddbc41540..9dee835757c 100644 --- a/sdk/dotnet/CleanRooms/Collaboration.cs +++ b/sdk/dotnet/CleanRooms/Collaboration.cs @@ -49,7 +49,6 @@ namespace Pulumi.Aws.CleanRooms /// MemberAbilities = new[] {}, /// }, /// }, - /// Name = "pulumi-example-collaboration", /// QueryLogStatus = "DISABLED", /// Tags = /// { @@ -254,8 +253,8 @@ public InputList Members /// /// The name of the collaboration. Collaboration names do not need to be unique. /// - [Input("name", required: true)] - public Input Name { get; set; } = null!; + [Input("name")] + public Input? Name { get; set; } /// /// Determines if members of the collaboration can enable query logs within their own diff --git a/sdk/dotnet/CloudFront/FieldLevelEncryptionProfile.cs b/sdk/dotnet/CloudFront/FieldLevelEncryptionProfile.cs index 4627717a18d..62524170f23 100644 --- a/sdk/dotnet/CloudFront/FieldLevelEncryptionProfile.cs +++ b/sdk/dotnet/CloudFront/FieldLevelEncryptionProfile.cs @@ -27,7 +27,6 @@ namespace Pulumi.Aws.CloudFront /// { /// Comment = "test public key", /// EncodedKey = File.ReadAllText("public_key.pem"), - /// Name = "test_key", /// }); /// /// var test = new Aws.CloudFront.FieldLevelEncryptionProfile("test", new() diff --git a/sdk/dotnet/CloudFront/KeyGroup.cs b/sdk/dotnet/CloudFront/KeyGroup.cs index 75ab0786760..6954e456363 100644 --- a/sdk/dotnet/CloudFront/KeyGroup.cs +++ b/sdk/dotnet/CloudFront/KeyGroup.cs @@ -27,7 +27,6 @@ namespace Pulumi.Aws.CloudFront /// { /// Comment = "example public key", /// EncodedKey = File.ReadAllText("public_key.pem"), - /// Name = "example-key", /// }); /// /// var exampleKeyGroup = new Aws.CloudFront.KeyGroup("exampleKeyGroup", new() diff --git a/sdk/dotnet/CloudFront/PublicKey.cs b/sdk/dotnet/CloudFront/PublicKey.cs index 452aa34c836..656012f4f9c 100644 --- a/sdk/dotnet/CloudFront/PublicKey.cs +++ b/sdk/dotnet/CloudFront/PublicKey.cs @@ -27,7 +27,6 @@ namespace Pulumi.Aws.CloudFront /// { /// Comment = "test public key", /// EncodedKey = File.ReadAllText("public_key.pem"), - /// Name = "test_key", /// }); /// /// }); diff --git a/sdk/dotnet/EmrContainers/JobTemplate.cs b/sdk/dotnet/EmrContainers/JobTemplate.cs index 4c61a4c18ed..07afd5e792d 100644 --- a/sdk/dotnet/EmrContainers/JobTemplate.cs +++ b/sdk/dotnet/EmrContainers/JobTemplate.cs @@ -37,7 +37,6 @@ namespace Pulumi.Aws.EmrContainers /// }, /// }, /// }, - /// Name = "example", /// }); /// /// }); @@ -151,8 +150,8 @@ public sealed class JobTemplateArgs : global::Pulumi.ResourceArgs /// /// The specified name of the job template. /// - [Input("name", required: true)] - public Input Name { get; set; } = null!; + [Input("name")] + public Input? Name { get; set; } [Input("tags")] private InputMap? _tags; diff --git a/sdk/dotnet/FinSpace/KxCluster.cs b/sdk/dotnet/FinSpace/KxCluster.cs index b85acbdce5b..14e595c1beb 100644 --- a/sdk/dotnet/FinSpace/KxCluster.cs +++ b/sdk/dotnet/FinSpace/KxCluster.cs @@ -311,8 +311,8 @@ public InputList Databases /// /// Unique name for the cluster that you want to create. /// - [Input("name", required: true)] - public Input Name { get; set; } = null!; + [Input("name")] + public Input? Name { get; set; } /// /// Version of FinSpace Managed kdb to run. diff --git a/sdk/dotnet/FinSpace/KxDatabase.cs b/sdk/dotnet/FinSpace/KxDatabase.cs index a170c10f6b7..47bf17a7a4a 100644 --- a/sdk/dotnet/FinSpace/KxDatabase.cs +++ b/sdk/dotnet/FinSpace/KxDatabase.cs @@ -31,14 +31,12 @@ namespace Pulumi.Aws.FinSpace /// /// var exampleKxEnvironment = new Aws.FinSpace.KxEnvironment("exampleKxEnvironment", new() /// { - /// Name = "my-tf-kx-environment", /// KmsKeyId = exampleKey.Arn, /// }); /// /// var exampleKxDatabase = new Aws.FinSpace.KxDatabase("exampleKxDatabase", new() /// { /// EnvironmentId = exampleKxEnvironment.Id, - /// Name = "my-tf-kx-database", /// Description = "Example database description", /// }); /// @@ -169,8 +167,8 @@ public sealed class KxDatabaseArgs : global::Pulumi.ResourceArgs /// /// The following arguments are optional: /// - [Input("name", required: true)] - public Input Name { get; set; } = null!; + [Input("name")] + public Input? Name { get; set; } [Input("tags")] private InputMap? _tags; diff --git a/sdk/dotnet/FinSpace/KxEnvironment.cs b/sdk/dotnet/FinSpace/KxEnvironment.cs index c3b52889e5d..084dc4fb54c 100644 --- a/sdk/dotnet/FinSpace/KxEnvironment.cs +++ b/sdk/dotnet/FinSpace/KxEnvironment.cs @@ -31,7 +31,6 @@ namespace Pulumi.Aws.FinSpace /// /// var exampleKxEnvironment = new Aws.FinSpace.KxEnvironment("exampleKxEnvironment", new() /// { - /// Name = "my-tf-kx-environment", /// KmsKeyId = exampleKey.Arn, /// }); /// @@ -60,7 +59,6 @@ namespace Pulumi.Aws.FinSpace /// /// var exampleEnv = new Aws.FinSpace.KxEnvironment("exampleEnv", new() /// { - /// Name = "my-tf-kx-environment", /// Description = "Environment description", /// KmsKeyId = exampleKey.Arn, /// TransitGatewayConfiguration = new Aws.FinSpace.Inputs.KxEnvironmentTransitGatewayConfigurationArgs @@ -247,8 +245,8 @@ public InputList CustomDnsConfig /// /// Name of the KX environment that you want to create. /// - [Input("name", required: true)] - public Input Name { get; set; } = null!; + [Input("name")] + public Input? Name { get; set; } [Input("tags")] private InputMap? _tags; diff --git a/sdk/dotnet/FinSpace/KxUser.cs b/sdk/dotnet/FinSpace/KxUser.cs index a08b6c101e0..113b6326c07 100644 --- a/sdk/dotnet/FinSpace/KxUser.cs +++ b/sdk/dotnet/FinSpace/KxUser.cs @@ -32,7 +32,6 @@ namespace Pulumi.Aws.FinSpace /// /// var exampleKxEnvironment = new Aws.FinSpace.KxEnvironment("exampleKxEnvironment", new() /// { - /// Name = "my-tf-kx-environment", /// KmsKeyId = exampleKey.Arn, /// }); /// @@ -59,7 +58,6 @@ namespace Pulumi.Aws.FinSpace /// /// var exampleKxUser = new Aws.FinSpace.KxUser("exampleKxUser", new() /// { - /// Name = "my-tf-kx-user", /// EnvironmentId = exampleKxEnvironment.Id, /// IamRole = exampleRole.Arn, /// }); @@ -179,8 +177,8 @@ public sealed class KxUserArgs : global::Pulumi.ResourceArgs /// /// A unique identifier for the user. /// - [Input("name", required: true)] - public Input Name { get; set; } = null!; + [Input("name")] + public Input? Name { get; set; } [Input("tags")] private InputMap? _tags; diff --git a/sdk/dotnet/GlobalAccelerator/CustomRoutingAccelerator.cs b/sdk/dotnet/GlobalAccelerator/CustomRoutingAccelerator.cs index c6595e3dd12..2d3eb800a97 100644 --- a/sdk/dotnet/GlobalAccelerator/CustomRoutingAccelerator.cs +++ b/sdk/dotnet/GlobalAccelerator/CustomRoutingAccelerator.cs @@ -36,7 +36,6 @@ namespace Pulumi.Aws.GlobalAccelerator /// { /// "1.2.3.4", /// }, - /// Name = "Example", /// }); /// /// }); @@ -123,7 +122,7 @@ public partial class CustomRoutingAccelerator : global::Pulumi.CustomResource /// The unique name of the resource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior - public CustomRoutingAccelerator(string name, CustomRoutingAcceleratorArgs args, CustomResourceOptions? options = null) + public CustomRoutingAccelerator(string name, CustomRoutingAcceleratorArgs? args = null, CustomResourceOptions? options = null) : base("aws:globalaccelerator/customRoutingAccelerator:CustomRoutingAccelerator", name, args ?? new CustomRoutingAcceleratorArgs(), MakeResourceOptions(options, "")) { } @@ -194,8 +193,8 @@ public InputList IpAddresses /// /// The name of a custom routing accelerator. /// - [Input("name", required: true)] - public Input Name { get; set; } = null!; + [Input("name")] + public Input? Name { get; set; } [Input("tags")] private InputMap? _tags; diff --git a/sdk/dotnet/GlobalAccelerator/CustomRoutingListener.cs b/sdk/dotnet/GlobalAccelerator/CustomRoutingListener.cs index 2810e4514c6..6180d466420 100644 --- a/sdk/dotnet/GlobalAccelerator/CustomRoutingListener.cs +++ b/sdk/dotnet/GlobalAccelerator/CustomRoutingListener.cs @@ -24,7 +24,6 @@ namespace Pulumi.Aws.GlobalAccelerator /// { /// var exampleCustomRoutingAccelerator = new Aws.GlobalAccelerator.CustomRoutingAccelerator("exampleCustomRoutingAccelerator", new() /// { - /// Name = "Example", /// IpAddressType = "IPV4", /// Enabled = true, /// Attributes = new Aws.GlobalAccelerator.Inputs.CustomRoutingAcceleratorAttributesArgs diff --git a/sdk/dotnet/Glue/DataQualityRuleset.cs b/sdk/dotnet/Glue/DataQualityRuleset.cs index 457d9428c87..bd9f96f490a 100644 --- a/sdk/dotnet/Glue/DataQualityRuleset.cs +++ b/sdk/dotnet/Glue/DataQualityRuleset.cs @@ -25,7 +25,6 @@ namespace Pulumi.Aws.Glue /// { /// var example = new Aws.Glue.DataQualityRuleset("example", new() /// { - /// Name = "example", /// Ruleset = "Rules = [Completeness \"colA\" between 0.4 and 0.8]", /// }); /// @@ -44,7 +43,6 @@ namespace Pulumi.Aws.Glue /// var example = new Aws.Glue.DataQualityRuleset("example", new() /// { /// Description = "example", - /// Name = "example", /// Ruleset = "Rules = [Completeness \"colA\" between 0.4 and 0.8]", /// }); /// @@ -62,7 +60,6 @@ namespace Pulumi.Aws.Glue /// { /// var example = new Aws.Glue.DataQualityRuleset("example", new() /// { - /// Name = "example", /// Ruleset = "Rules = [Completeness \"colA\" between 0.4 and 0.8]", /// Tags = /// { @@ -84,7 +81,6 @@ namespace Pulumi.Aws.Glue /// { /// var example = new Aws.Glue.DataQualityRuleset("example", new() /// { - /// Name = "example", /// Ruleset = "Rules = [Completeness \"colA\" between 0.4 and 0.8]", /// TargetTable = new Aws.Glue.Inputs.DataQualityRulesetTargetTableArgs /// { @@ -222,8 +218,8 @@ public sealed class DataQualityRulesetArgs : global::Pulumi.ResourceArgs /// /// Name of the data quality ruleset. /// - [Input("name", required: true)] - public Input Name { get; set; } = null!; + [Input("name")] + public Input? Name { get; set; } /// /// A Data Quality Definition Language (DQDL) ruleset. For more information, see the AWS Glue developer guide. diff --git a/sdk/dotnet/OpenSearch/ServerlessAccessPolicy.cs b/sdk/dotnet/OpenSearch/ServerlessAccessPolicy.cs index 31b7d4dfc23..57fb0a1a0e3 100644 --- a/sdk/dotnet/OpenSearch/ServerlessAccessPolicy.cs +++ b/sdk/dotnet/OpenSearch/ServerlessAccessPolicy.cs @@ -30,7 +30,6 @@ namespace Pulumi.Aws.OpenSearch /// /// var test = new Aws.OpenSearch.ServerlessAccessPolicy("test", new() /// { - /// Name = "example", /// Type = "data", /// Policy = Output.Tuple(currentPartition, currentCallerIdentity).Apply(values => /// { @@ -169,8 +168,8 @@ public sealed class ServerlessAccessPolicyArgs : global::Pulumi.ResourceArgs /// /// Name of the policy. /// - [Input("name", required: true)] - public Input Name { get; set; } = null!; + [Input("name")] + public Input? Name { get; set; } /// /// JSON policy document to use as the content for the new policy diff --git a/sdk/dotnet/OpenSearch/ServerlessCollection.cs b/sdk/dotnet/OpenSearch/ServerlessCollection.cs index 942efcbf1e5..a95f909e484 100644 --- a/sdk/dotnet/OpenSearch/ServerlessCollection.cs +++ b/sdk/dotnet/OpenSearch/ServerlessCollection.cs @@ -26,7 +26,6 @@ namespace Pulumi.Aws.OpenSearch /// { /// var exampleServerlessSecurityPolicy = new Aws.OpenSearch.ServerlessSecurityPolicy("exampleServerlessSecurityPolicy", new() /// { - /// Name = "example", /// Type = "encryption", /// Policy = JsonSerializer.Serialize(new Dictionary<string, object?> /// { @@ -47,7 +46,6 @@ namespace Pulumi.Aws.OpenSearch /// /// var exampleServerlessCollection = new Aws.OpenSearch.ServerlessCollection("exampleServerlessCollection", new() /// { - /// Name = "example", /// }, new CustomResourceOptions /// { /// DependsOn = new[] @@ -131,7 +129,7 @@ public partial class ServerlessCollection : global::Pulumi.CustomResource /// The unique name of the resource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior - public ServerlessCollection(string name, ServerlessCollectionArgs args, CustomResourceOptions? options = null) + public ServerlessCollection(string name, ServerlessCollectionArgs? args = null, CustomResourceOptions? options = null) : base("aws:opensearch/serverlessCollection:ServerlessCollection", name, args ?? new ServerlessCollectionArgs(), MakeResourceOptions(options, "")) { } @@ -180,8 +178,8 @@ public sealed class ServerlessCollectionArgs : global::Pulumi.ResourceArgs /// /// The following arguments are optional: /// - [Input("name", required: true)] - public Input Name { get; set; } = null!; + [Input("name")] + public Input? Name { get; set; } [Input("tags")] private InputMap? _tags; diff --git a/sdk/dotnet/OpenSearch/ServerlessSecurityConfig.cs b/sdk/dotnet/OpenSearch/ServerlessSecurityConfig.cs index 3c4bf77544b..4528127e006 100644 --- a/sdk/dotnet/OpenSearch/ServerlessSecurityConfig.cs +++ b/sdk/dotnet/OpenSearch/ServerlessSecurityConfig.cs @@ -112,8 +112,8 @@ public sealed class ServerlessSecurityConfigArgs : global::Pulumi.ResourceArgs /// /// Name of the policy. /// - [Input("name", required: true)] - public Input Name { get; set; } = null!; + [Input("name")] + public Input? Name { get; set; } /// /// Configuration block for SAML options. diff --git a/sdk/dotnet/OpenSearch/ServerlessSecurityPolicy.cs b/sdk/dotnet/OpenSearch/ServerlessSecurityPolicy.cs index 7a4b532f301..12b7c2411fd 100644 --- a/sdk/dotnet/OpenSearch/ServerlessSecurityPolicy.cs +++ b/sdk/dotnet/OpenSearch/ServerlessSecurityPolicy.cs @@ -28,7 +28,6 @@ namespace Pulumi.Aws.OpenSearch /// { /// var example = new Aws.OpenSearch.ServerlessSecurityPolicy("example", new() /// { - /// Name = "example", /// Type = "encryption", /// Description = "encryption security policy for example-collection", /// Policy = JsonSerializer.Serialize(new Dictionary<string, object?> @@ -63,7 +62,6 @@ namespace Pulumi.Aws.OpenSearch /// { /// var example = new Aws.OpenSearch.ServerlessSecurityPolicy("example", new() /// { - /// Name = "example", /// Type = "encryption", /// Description = "encryption security policy for collections that begin with \"example\"", /// Policy = JsonSerializer.Serialize(new Dictionary<string, object?> @@ -98,7 +96,6 @@ namespace Pulumi.Aws.OpenSearch /// { /// var example = new Aws.OpenSearch.ServerlessSecurityPolicy("example", new() /// { - /// Name = "example", /// Type = "encryption", /// Description = "encryption security policy using customer KMS key", /// Policy = JsonSerializer.Serialize(new Dictionary<string, object?> @@ -135,7 +132,6 @@ namespace Pulumi.Aws.OpenSearch /// { /// var example = new Aws.OpenSearch.ServerlessSecurityPolicy("example", new() /// { - /// Name = "example", /// Type = "network", /// Description = "Public access", /// Policy = JsonSerializer.Serialize(new[] @@ -182,7 +178,6 @@ namespace Pulumi.Aws.OpenSearch /// { /// var example = new Aws.OpenSearch.ServerlessSecurityPolicy("example", new() /// { - /// Name = "example", /// Type = "network", /// Description = "VPC access", /// Policy = JsonSerializer.Serialize(new[] @@ -233,7 +228,6 @@ namespace Pulumi.Aws.OpenSearch /// { /// var example = new Aws.OpenSearch.ServerlessSecurityPolicy("example", new() /// { - /// Name = "example", /// Type = "network", /// Description = "Mixed access for marketing and sales", /// Policy = JsonSerializer.Serialize(new[] @@ -386,8 +380,8 @@ public sealed class ServerlessSecurityPolicyArgs : global::Pulumi.ResourceArgs /// /// Name of the policy. /// - [Input("name", required: true)] - public Input Name { get; set; } = null!; + [Input("name")] + public Input? Name { get; set; } /// /// JSON policy document to use as the content for the new policy diff --git a/sdk/dotnet/OpenSearch/ServerlessVpcEndpoint.cs b/sdk/dotnet/OpenSearch/ServerlessVpcEndpoint.cs index 39857947d7e..beaf3f3aaa1 100644 --- a/sdk/dotnet/OpenSearch/ServerlessVpcEndpoint.cs +++ b/sdk/dotnet/OpenSearch/ServerlessVpcEndpoint.cs @@ -25,7 +25,6 @@ namespace Pulumi.Aws.OpenSearch /// { /// var example = new Aws.OpenSearch.ServerlessVpcEndpoint("example", new() /// { - /// Name = "myendpoint", /// SubnetIds = new[] /// { /// aws_subnet.Example.Id, @@ -125,8 +124,8 @@ public sealed class ServerlessVpcEndpointArgs : global::Pulumi.ResourceArgs /// /// Name of the interface endpoint. /// - [Input("name", required: true)] - public Input Name { get; set; } = null!; + [Input("name")] + public Input? Name { get; set; } [Input("securityGroupIds")] private InputList? _securityGroupIds; diff --git a/sdk/dotnet/Quicksight/Theme.cs b/sdk/dotnet/Quicksight/Theme.cs index eebc5819afb..77ecab48374 100644 --- a/sdk/dotnet/Quicksight/Theme.cs +++ b/sdk/dotnet/Quicksight/Theme.cs @@ -180,8 +180,8 @@ public sealed class ThemeArgs : global::Pulumi.ResourceArgs /// /// Display name of the theme. /// - [Input("name", required: true)] - public Input Name { get; set; } = null!; + [Input("name")] + public Input? Name { get; set; } [Input("permissions")] private InputList? _permissions; diff --git a/sdk/dotnet/Quicksight/VpcConnection.cs b/sdk/dotnet/Quicksight/VpcConnection.cs index dbfd5a3bc7d..69d2f62f892 100644 --- a/sdk/dotnet/Quicksight/VpcConnection.cs +++ b/sdk/dotnet/Quicksight/VpcConnection.cs @@ -77,7 +77,6 @@ namespace Pulumi.Aws.Quicksight /// var example = new Aws.Quicksight.VpcConnection("example", new() /// { /// VpcConnectionId = "example-connection-id", - /// Name = "Example Connection", /// RoleArn = vpcConnectionRole.Arn, /// SecurityGroupIds = new[] /// { @@ -242,8 +241,8 @@ public InputList DnsResolvers /// /// The display name for the VPC connection. /// - [Input("name", required: true)] - public Input Name { get; set; } = null!; + [Input("name")] + public Input? Name { get; set; } /// /// The IAM role to associate with the VPC connection. diff --git a/sdk/dotnet/ResourceExplorer/View.cs b/sdk/dotnet/ResourceExplorer/View.cs index bae7c299e90..77e8cbf268b 100644 --- a/sdk/dotnet/ResourceExplorer/View.cs +++ b/sdk/dotnet/ResourceExplorer/View.cs @@ -29,7 +29,6 @@ namespace Pulumi.Aws.ResourceExplorer /// /// var exampleView = new Aws.ResourceExplorer.View("exampleView", new() /// { - /// Name = "exampleview", /// Filters = new Aws.ResourceExplorer.Inputs.ViewFiltersArgs /// { /// FilterString = "resourcetype:ec2:instance", @@ -113,7 +112,7 @@ public partial class View : global::Pulumi.CustomResource /// The unique name of the resource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior - public View(string name, ViewArgs args, CustomResourceOptions? options = null) + public View(string name, ViewArgs? args = null, CustomResourceOptions? options = null) : base("aws:resourceexplorer/view:View", name, args ?? new ViewArgs(), MakeResourceOptions(options, "")) { } @@ -178,8 +177,8 @@ public InputList IncludedProperties /// /// The name of the view. The name must be no more than 64 characters long, and can include letters, digits, and the dash (-) character. The name must be unique within its AWS Region. /// - [Input("name", required: true)] - public Input Name { get; set; } = null!; + [Input("name")] + public Input? Name { get; set; } [Input("tags")] private InputMap? _tags; diff --git a/sdk/dotnet/Route53/CidrCollection.cs b/sdk/dotnet/Route53/CidrCollection.cs index 9d522eb4af0..9e017eb6a07 100644 --- a/sdk/dotnet/Route53/CidrCollection.cs +++ b/sdk/dotnet/Route53/CidrCollection.cs @@ -22,10 +22,7 @@ namespace Pulumi.Aws.Route53 /// /// return await Deployment.RunAsync(() => /// { - /// var example = new Aws.Route53.CidrCollection("example", new() - /// { - /// Name = "collection-1", - /// }); + /// var example = new Aws.Route53.CidrCollection("example"); /// /// }); /// ``` @@ -67,7 +64,7 @@ public partial class CidrCollection : global::Pulumi.CustomResource /// The unique name of the resource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior - public CidrCollection(string name, CidrCollectionArgs args, CustomResourceOptions? options = null) + public CidrCollection(string name, CidrCollectionArgs? args = null, CustomResourceOptions? options = null) : base("aws:route53/cidrCollection:CidrCollection", name, args ?? new CidrCollectionArgs(), MakeResourceOptions(options, "")) { } @@ -108,8 +105,8 @@ public sealed class CidrCollectionArgs : global::Pulumi.ResourceArgs /// /// Unique name for the CIDR collection. /// - [Input("name", required: true)] - public Input Name { get; set; } = null!; + [Input("name")] + public Input? Name { get; set; } public CidrCollectionArgs() { diff --git a/sdk/dotnet/Route53/CidrLocation.cs b/sdk/dotnet/Route53/CidrLocation.cs index 7f3797d8437..c2f975fad01 100644 --- a/sdk/dotnet/Route53/CidrLocation.cs +++ b/sdk/dotnet/Route53/CidrLocation.cs @@ -22,15 +22,11 @@ namespace Pulumi.Aws.Route53 /// /// return await Deployment.RunAsync(() => /// { - /// var exampleCidrCollection = new Aws.Route53.CidrCollection("exampleCidrCollection", new() - /// { - /// Name = "collection-1", - /// }); + /// var exampleCidrCollection = new Aws.Route53.CidrCollection("exampleCidrCollection"); /// /// var exampleCidrLocation = new Aws.Route53.CidrLocation("exampleCidrLocation", new() /// { /// CidrCollectionId = exampleCidrCollection.Id, - /// Name = "office", /// CidrBlocks = new[] /// { /// "200.5.3.0/24", @@ -137,8 +133,8 @@ public InputList CidrBlocks /// /// Name for the CIDR location. /// - [Input("name", required: true)] - public Input Name { get; set; } = null!; + [Input("name")] + public Input? Name { get; set; } public CidrLocationArgs() { diff --git a/sdk/dotnet/Sfn/Alias.cs b/sdk/dotnet/Sfn/Alias.cs index e54f355c592..7441c3a5861 100644 --- a/sdk/dotnet/Sfn/Alias.cs +++ b/sdk/dotnet/Sfn/Alias.cs @@ -25,7 +25,6 @@ namespace Pulumi.Aws.Sfn /// { /// var sfnAlias = new Aws.Sfn.Alias("sfnAlias", new() /// { - /// Name = "my_sfn_alias", /// RoutingConfigurations = new[] /// { /// new Aws.Sfn.Inputs.AliasRoutingConfigurationArgs @@ -38,7 +37,6 @@ namespace Pulumi.Aws.Sfn /// /// var mySfnAlias = new Aws.Sfn.Alias("mySfnAlias", new() /// { - /// Name = "my_sfn_alias", /// RoutingConfigurations = new[] /// { /// new Aws.Sfn.Inputs.AliasRoutingConfigurationArgs @@ -153,8 +151,8 @@ public sealed class AliasArgs : global::Pulumi.ResourceArgs /// /// Name for the alias you are creating. /// - [Input("name", required: true)] - public Input Name { get; set; } = null!; + [Input("name")] + public Input? Name { get; set; } [Input("routingConfigurations", required: true)] private InputList? _routingConfigurations; diff --git a/sdk/go/aws/appintegrations/dataIntegration.go b/sdk/go/aws/appintegrations/dataIntegration.go index 10dd8662afe..9702d854c5b 100644 --- a/sdk/go/aws/appintegrations/dataIntegration.go +++ b/sdk/go/aws/appintegrations/dataIntegration.go @@ -29,7 +29,6 @@ import ( // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // _, err := appintegrations.NewDataIntegration(ctx, "example", &appintegrations.DataIntegrationArgs{ -// Name: pulumi.String("example"), // Description: pulumi.String("example"), // KmsKey: pulumi.Any(aws_kms_key.Test.Arn), // SourceUri: pulumi.String("Salesforce://AppFlow/example"), @@ -89,9 +88,6 @@ func NewDataIntegration(ctx *pulumi.Context, if args.KmsKey == nil { return nil, errors.New("invalid value for required argument 'KmsKey'") } - if args.Name == nil { - return nil, errors.New("invalid value for required argument 'Name'") - } if args.ScheduleConfig == nil { return nil, errors.New("invalid value for required argument 'ScheduleConfig'") } @@ -168,7 +164,7 @@ type dataIntegrationArgs struct { // Specifies the KMS key Amazon Resource Name (ARN) for the Data Integration. KmsKey string `pulumi:"kmsKey"` // Specifies the name of the Data Integration. - Name string `pulumi:"name"` + Name *string `pulumi:"name"` // A block that defines the name of the data and how often it should be pulled from the source. The Schedule Config block is documented below. ScheduleConfig DataIntegrationScheduleConfig `pulumi:"scheduleConfig"` // Specifies the URI of the data source. Create an AppFlow Connector Profile and reference the name of the profile in the URL. An example of this value for Salesforce is `Salesforce://AppFlow/example` where `example` is the name of the AppFlow Connector Profile. @@ -184,7 +180,7 @@ type DataIntegrationArgs struct { // Specifies the KMS key Amazon Resource Name (ARN) for the Data Integration. KmsKey pulumi.StringInput // Specifies the name of the Data Integration. - Name pulumi.StringInput + Name pulumi.StringPtrInput // A block that defines the name of the data and how often it should be pulled from the source. The Schedule Config block is documented below. ScheduleConfig DataIntegrationScheduleConfigInput // Specifies the URI of the data source. Create an AppFlow Connector Profile and reference the name of the profile in the URL. An example of this value for Salesforce is `Salesforce://AppFlow/example` where `example` is the name of the AppFlow Connector Profile. diff --git a/sdk/go/aws/auditmanager/assessment.go b/sdk/go/aws/auditmanager/assessment.go index a6047af0ba4..a32cd054d16 100644 --- a/sdk/go/aws/auditmanager/assessment.go +++ b/sdk/go/aws/auditmanager/assessment.go @@ -32,7 +32,6 @@ import ( // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // _, err := auditmanager.NewAssessment(ctx, "test", &auditmanager.AssessmentArgs{ -// Name: pulumi.String("example"), // AssessmentReportsDestination: &auditmanager.AssessmentAssessmentReportsDestinationArgs{ // Destination: pulumi.String(fmt.Sprintf("s3://%v", aws_s3_bucket.Test.Id)), // DestinationType: pulumi.String("S3"), @@ -111,9 +110,6 @@ func NewAssessment(ctx *pulumi.Context, if args.FrameworkId == nil { return nil, errors.New("invalid value for required argument 'FrameworkId'") } - if args.Name == nil { - return nil, errors.New("invalid value for required argument 'Name'") - } if args.Roles == nil { return nil, errors.New("invalid value for required argument 'Roles'") } @@ -203,7 +199,7 @@ type assessmentArgs struct { // Unique identifier of the framework the assessment will be created from. FrameworkId string `pulumi:"frameworkId"` // Name of the assessment. - Name string `pulumi:"name"` + Name *string `pulumi:"name"` // List of roles for the assessment. See `roles` below. Roles []AssessmentRole `pulumi:"roles"` // Amazon Web Services accounts and services that are in scope for the assessment. See `scope` below. @@ -223,7 +219,7 @@ type AssessmentArgs struct { // Unique identifier of the framework the assessment will be created from. FrameworkId pulumi.StringInput // Name of the assessment. - Name pulumi.StringInput + Name pulumi.StringPtrInput // List of roles for the assessment. See `roles` below. Roles AssessmentRoleArrayInput // Amazon Web Services accounts and services that are in scope for the assessment. See `scope` below. diff --git a/sdk/go/aws/auditmanager/assessmentReport.go b/sdk/go/aws/auditmanager/assessmentReport.go index 8d4e3b9a7b7..5cd38eb7572 100644 --- a/sdk/go/aws/auditmanager/assessmentReport.go +++ b/sdk/go/aws/auditmanager/assessmentReport.go @@ -30,7 +30,6 @@ import ( // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // _, err := auditmanager.NewAssessmentReport(ctx, "test", &auditmanager.AssessmentReportArgs{ -// Name: pulumi.String("example"), // AssessmentId: pulumi.Any(aws_auditmanager_assessment.Test.Id), // }) // if err != nil { @@ -76,9 +75,6 @@ func NewAssessmentReport(ctx *pulumi.Context, if args.AssessmentId == nil { return nil, errors.New("invalid value for required argument 'AssessmentId'") } - if args.Name == nil { - return nil, errors.New("invalid value for required argument 'Name'") - } opts = internal.PkgResourceDefaultOpts(opts) var resource AssessmentReport err := ctx.RegisterResource("aws:auditmanager/assessmentReport:AssessmentReport", name, args, &resource, opts...) @@ -143,7 +139,7 @@ type assessmentReportArgs struct { // Description of the assessment report. Description *string `pulumi:"description"` // Name of the assessment report. - Name string `pulumi:"name"` + Name *string `pulumi:"name"` } // The set of arguments for constructing a AssessmentReport resource. @@ -155,7 +151,7 @@ type AssessmentReportArgs struct { // Description of the assessment report. Description pulumi.StringPtrInput // Name of the assessment report. - Name pulumi.StringInput + Name pulumi.StringPtrInput } func (AssessmentReportArgs) ElementType() reflect.Type { diff --git a/sdk/go/aws/auditmanager/control.go b/sdk/go/aws/auditmanager/control.go index 71571167d08..a848cf816dc 100644 --- a/sdk/go/aws/auditmanager/control.go +++ b/sdk/go/aws/auditmanager/control.go @@ -7,7 +7,6 @@ import ( "context" "reflect" - "errors" "github.com/pulumi/pulumi-aws/sdk/v6/go/aws/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) @@ -37,7 +36,6 @@ import ( // SourceType: pulumi.String("MANUAL"), // }, // }, -// Name: pulumi.String("example"), // }) // if err != nil { // return err @@ -86,12 +84,9 @@ type Control struct { func NewControl(ctx *pulumi.Context, name string, args *ControlArgs, opts ...pulumi.ResourceOption) (*Control, error) { if args == nil { - return nil, errors.New("missing one or more required arguments") + args = &ControlArgs{} } - if args.Name == nil { - return nil, errors.New("invalid value for required argument 'Name'") - } opts = internal.PkgResourceDefaultOpts(opts) var resource Control err := ctx.RegisterResource("aws:auditmanager/control:Control", name, args, &resource, opts...) @@ -180,7 +175,7 @@ type controlArgs struct { // Description of the control. Description *string `pulumi:"description"` // Name of the control. - Name string `pulumi:"name"` + Name *string `pulumi:"name"` // A map of tags to assign to the control. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. Tags map[string]string `pulumi:"tags"` // Steps to follow to determine if the control is satisfied. @@ -200,7 +195,7 @@ type ControlArgs struct { // Description of the control. Description pulumi.StringPtrInput // Name of the control. - Name pulumi.StringInput + Name pulumi.StringPtrInput // A map of tags to assign to the control. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. Tags pulumi.StringMapInput // Steps to follow to determine if the control is satisfied. diff --git a/sdk/go/aws/auditmanager/framework.go b/sdk/go/aws/auditmanager/framework.go index 12ebae8fe47..42156fb51cb 100644 --- a/sdk/go/aws/auditmanager/framework.go +++ b/sdk/go/aws/auditmanager/framework.go @@ -7,7 +7,6 @@ import ( "context" "reflect" - "errors" "github.com/pulumi/pulumi-aws/sdk/v6/go/aws/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) @@ -30,7 +29,6 @@ import ( // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // _, err := auditmanager.NewFramework(ctx, "test", &auditmanager.FrameworkArgs{ -// Name: pulumi.String("example"), // ControlSets: auditmanager.FrameworkControlSetArray{ // &auditmanager.FrameworkControlSetArgs{ // Name: pulumi.String("example"), @@ -85,12 +83,9 @@ type Framework struct { func NewFramework(ctx *pulumi.Context, name string, args *FrameworkArgs, opts ...pulumi.ResourceOption) (*Framework, error) { if args == nil { - return nil, errors.New("missing one or more required arguments") + args = &FrameworkArgs{} } - if args.Name == nil { - return nil, errors.New("invalid value for required argument 'Name'") - } opts = internal.PkgResourceDefaultOpts(opts) var resource Framework err := ctx.RegisterResource("aws:auditmanager/framework:Framework", name, args, &resource, opts...) @@ -169,7 +164,7 @@ type frameworkArgs struct { // Description of the framework. Description *string `pulumi:"description"` // Name of the framework. - Name string `pulumi:"name"` + Name *string `pulumi:"name"` // A map of tags to assign to the framework. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. Tags map[string]string `pulumi:"tags"` } @@ -185,7 +180,7 @@ type FrameworkArgs struct { // Description of the framework. Description pulumi.StringPtrInput // Name of the framework. - Name pulumi.StringInput + Name pulumi.StringPtrInput // A map of tags to assign to the framework. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. Tags pulumi.StringMapInput } diff --git a/sdk/go/aws/auditmanager/getControl.go b/sdk/go/aws/auditmanager/getControl.go index 55eb8a56c65..d89fe4ab1f9 100644 --- a/sdk/go/aws/auditmanager/getControl.go +++ b/sdk/go/aws/auditmanager/getControl.go @@ -69,7 +69,6 @@ import ( // return err // } // _, err = auditmanager.NewFramework(ctx, "exampleFramework", &auditmanager.FrameworkArgs{ -// Name: pulumi.String("example"), // ControlSets: auditmanager.FrameworkControlSetArray{ // &auditmanager.FrameworkControlSetArgs{ // Name: pulumi.String("example"), diff --git a/sdk/go/aws/chime/sdkvoiceSipMediaApplication.go b/sdk/go/aws/chime/sdkvoiceSipMediaApplication.go index b6abf6d58bd..f967be08671 100644 --- a/sdk/go/aws/chime/sdkvoiceSipMediaApplication.go +++ b/sdk/go/aws/chime/sdkvoiceSipMediaApplication.go @@ -31,7 +31,6 @@ import ( // pulumi.Run(func(ctx *pulumi.Context) error { // _, err := chime.NewSdkvoiceSipMediaApplication(ctx, "example", &chime.SdkvoiceSipMediaApplicationArgs{ // AwsRegion: pulumi.String("us-east-1"), -// Name: pulumi.String("example-sip-media-application"), // Endpoints: &chime.SdkvoiceSipMediaApplicationEndpointsArgs{ // LambdaArn: pulumi.Any(aws_lambda_function.Test.Arn), // }, @@ -84,9 +83,6 @@ func NewSdkvoiceSipMediaApplication(ctx *pulumi.Context, if args.Endpoints == nil { return nil, errors.New("invalid value for required argument 'Endpoints'") } - if args.Name == nil { - return nil, errors.New("invalid value for required argument 'Name'") - } opts = internal.PkgResourceDefaultOpts(opts) var resource SdkvoiceSipMediaApplication err := ctx.RegisterResource("aws:chime/sdkvoiceSipMediaApplication:SdkvoiceSipMediaApplication", name, args, &resource, opts...) @@ -155,7 +151,7 @@ type sdkvoiceSipMediaApplicationArgs struct { // The name of the AWS Chime SDK Voice Sip Media Application. // // The following arguments are optional: - Name string `pulumi:"name"` + Name *string `pulumi:"name"` // Key-value mapping of resource tags. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. Tags map[string]string `pulumi:"tags"` } @@ -169,7 +165,7 @@ type SdkvoiceSipMediaApplicationArgs struct { // The name of the AWS Chime SDK Voice Sip Media Application. // // The following arguments are optional: - Name pulumi.StringInput + Name pulumi.StringPtrInput // Key-value mapping of resource tags. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. Tags pulumi.StringMapInput } diff --git a/sdk/go/aws/chime/sdkvoiceSipRule.go b/sdk/go/aws/chime/sdkvoiceSipRule.go index 0a832548cae..686d0e3f633 100644 --- a/sdk/go/aws/chime/sdkvoiceSipRule.go +++ b/sdk/go/aws/chime/sdkvoiceSipRule.go @@ -30,7 +30,6 @@ import ( // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // _, err := chime.NewSdkvoiceSipRule(ctx, "example", &chime.SdkvoiceSipRuleArgs{ -// Name: pulumi.String("example-sip-rule"), // TriggerType: pulumi.String("RequestUriHostname"), // TriggerValue: pulumi.Any(aws_chime_voice_connector.ExampleVoiceConnector.Outbound_host_name), // TargetApplications: chime.SdkvoiceSipRuleTargetApplicationArray{ @@ -81,9 +80,6 @@ func NewSdkvoiceSipRule(ctx *pulumi.Context, return nil, errors.New("missing one or more required arguments") } - if args.Name == nil { - return nil, errors.New("invalid value for required argument 'Name'") - } if args.TargetApplications == nil { return nil, errors.New("invalid value for required argument 'TargetApplications'") } @@ -153,7 +149,7 @@ type sdkvoiceSipRuleArgs struct { // Enables or disables a rule. You must disable rules before you can delete them. Disabled *bool `pulumi:"disabled"` // The name of the SIP rule. - Name string `pulumi:"name"` + Name *string `pulumi:"name"` // List of SIP media applications with priority and AWS Region. Only one SIP application per AWS Region can be used. See `targetApplications`. TargetApplications []SdkvoiceSipRuleTargetApplication `pulumi:"targetApplications"` // The type of trigger assigned to the SIP rule in `triggerValue`. Valid values are `RequestUriHostname` or `ToPhoneNumber`. @@ -169,7 +165,7 @@ type SdkvoiceSipRuleArgs struct { // Enables or disables a rule. You must disable rules before you can delete them. Disabled pulumi.BoolPtrInput // The name of the SIP rule. - Name pulumi.StringInput + Name pulumi.StringPtrInput // List of SIP media applications with priority and AWS Region. Only one SIP application per AWS Region can be used. See `targetApplications`. TargetApplications SdkvoiceSipRuleTargetApplicationArrayInput // The type of trigger assigned to the SIP rule in `triggerValue`. Valid values are `RequestUriHostname` or `ToPhoneNumber`. diff --git a/sdk/go/aws/chime/sdkvoiceVoiceProfileDomain.go b/sdk/go/aws/chime/sdkvoiceVoiceProfileDomain.go index af5e6b715be..6a91be51f2e 100644 --- a/sdk/go/aws/chime/sdkvoiceVoiceProfileDomain.go +++ b/sdk/go/aws/chime/sdkvoiceVoiceProfileDomain.go @@ -38,7 +38,6 @@ import ( // return err // } // _, err = chime.NewSdkvoiceVoiceProfileDomain(ctx, "exampleSdkvoiceVoiceProfileDomain", &chime.SdkvoiceVoiceProfileDomainArgs{ -// Name: pulumi.String("ExampleVoiceProfileDomain"), // ServerSideEncryptionConfiguration: &chime.SdkvoiceVoiceProfileDomainServerSideEncryptionConfigurationArgs{ // KmsKeyArn: exampleKey.Arn, // }, @@ -85,9 +84,6 @@ func NewSdkvoiceVoiceProfileDomain(ctx *pulumi.Context, return nil, errors.New("missing one or more required arguments") } - if args.Name == nil { - return nil, errors.New("invalid value for required argument 'Name'") - } if args.ServerSideEncryptionConfiguration == nil { return nil, errors.New("invalid value for required argument 'ServerSideEncryptionConfiguration'") } @@ -147,7 +143,7 @@ type sdkvoiceVoiceProfileDomainArgs struct { // Description of Voice Profile Domain. Description *string `pulumi:"description"` // Name of Voice Profile Domain. - Name string `pulumi:"name"` + Name *string `pulumi:"name"` // Configuration for server side encryption. ServerSideEncryptionConfiguration SdkvoiceVoiceProfileDomainServerSideEncryptionConfiguration `pulumi:"serverSideEncryptionConfiguration"` Tags map[string]string `pulumi:"tags"` @@ -158,7 +154,7 @@ type SdkvoiceVoiceProfileDomainArgs struct { // Description of Voice Profile Domain. Description pulumi.StringPtrInput // Name of Voice Profile Domain. - Name pulumi.StringInput + Name pulumi.StringPtrInput // Configuration for server side encryption. ServerSideEncryptionConfiguration SdkvoiceVoiceProfileDomainServerSideEncryptionConfigurationInput Tags pulumi.StringMapInput diff --git a/sdk/go/aws/cleanrooms/collaboration.go b/sdk/go/aws/cleanrooms/collaboration.go index 8e30e1cc5d3..45469858870 100644 --- a/sdk/go/aws/cleanrooms/collaboration.go +++ b/sdk/go/aws/cleanrooms/collaboration.go @@ -50,7 +50,6 @@ import ( // MemberAbilities: pulumi.StringArray{}, // }, // }, -// Name: pulumi.String("pulumi-example-collaboration"), // QueryLogStatus: pulumi.String("DISABLED"), // Tags: pulumi.StringMap{ // "Project": pulumi.String("Pulumi"), @@ -126,9 +125,6 @@ func NewCollaboration(ctx *pulumi.Context, if args.Description == nil { return nil, errors.New("invalid value for required argument 'Description'") } - if args.Name == nil { - return nil, errors.New("invalid value for required argument 'Name'") - } if args.QueryLogStatus == nil { return nil, errors.New("invalid value for required argument 'QueryLogStatus'") } @@ -273,7 +269,7 @@ type collaborationArgs struct { // s Members []CollaborationMember `pulumi:"members"` // The name of the collaboration. Collaboration names do not need to be unique. - Name string `pulumi:"name"` + Name *string `pulumi:"name"` // Determines if members of the collaboration can enable query logs within their own // emberships. Valid values [may be found here](https://docs.aws.amazon.com/clean-rooms/latest/apireference/API_CreateCollaboration.html#API-Cr // ateCollaboration-request-queryLogStatus). @@ -310,7 +306,7 @@ type CollaborationArgs struct { // s Members CollaborationMemberArrayInput // The name of the collaboration. Collaboration names do not need to be unique. - Name pulumi.StringInput + Name pulumi.StringPtrInput // Determines if members of the collaboration can enable query logs within their own // emberships. Valid values [may be found here](https://docs.aws.amazon.com/clean-rooms/latest/apireference/API_CreateCollaboration.html#API-Cr // ateCollaboration-request-queryLogStatus). diff --git a/sdk/go/aws/cloudfront/fieldLevelEncryptionProfile.go b/sdk/go/aws/cloudfront/fieldLevelEncryptionProfile.go index 22786e302c8..5085531894f 100644 --- a/sdk/go/aws/cloudfront/fieldLevelEncryptionProfile.go +++ b/sdk/go/aws/cloudfront/fieldLevelEncryptionProfile.go @@ -41,7 +41,6 @@ import ( // example, err := cloudfront.NewPublicKey(ctx, "example", &cloudfront.PublicKeyArgs{ // Comment: pulumi.String("test public key"), // EncodedKey: readFileOrPanic("public_key.pem"), -// Name: pulumi.String("test_key"), // }) // if err != nil { // return err diff --git a/sdk/go/aws/cloudfront/keyGroup.go b/sdk/go/aws/cloudfront/keyGroup.go index b3b0e6647f7..9e4da657631 100644 --- a/sdk/go/aws/cloudfront/keyGroup.go +++ b/sdk/go/aws/cloudfront/keyGroup.go @@ -41,7 +41,6 @@ import ( // examplePublicKey, err := cloudfront.NewPublicKey(ctx, "examplePublicKey", &cloudfront.PublicKeyArgs{ // Comment: pulumi.String("example public key"), // EncodedKey: readFileOrPanic("public_key.pem"), -// Name: pulumi.String("example-key"), // }) // if err != nil { // return err diff --git a/sdk/go/aws/cloudfront/publicKey.go b/sdk/go/aws/cloudfront/publicKey.go index 8091446255e..6c1da1c7f72 100644 --- a/sdk/go/aws/cloudfront/publicKey.go +++ b/sdk/go/aws/cloudfront/publicKey.go @@ -41,7 +41,6 @@ import ( // _, err := cloudfront.NewPublicKey(ctx, "example", &cloudfront.PublicKeyArgs{ // Comment: pulumi.String("test public key"), // EncodedKey: readFileOrPanic("public_key.pem"), -// Name: pulumi.String("test_key"), // }) // if err != nil { // return err diff --git a/sdk/go/aws/emrcontainers/jobTemplate.go b/sdk/go/aws/emrcontainers/jobTemplate.go index 67a2852d384..aa6fef60965 100644 --- a/sdk/go/aws/emrcontainers/jobTemplate.go +++ b/sdk/go/aws/emrcontainers/jobTemplate.go @@ -39,7 +39,6 @@ import ( // }, // }, // }, -// Name: pulumi.String("example"), // }) // if err != nil { // return err @@ -84,9 +83,6 @@ func NewJobTemplate(ctx *pulumi.Context, if args.JobTemplateData == nil { return nil, errors.New("invalid value for required argument 'JobTemplateData'") } - if args.Name == nil { - return nil, errors.New("invalid value for required argument 'Name'") - } opts = internal.PkgResourceDefaultOpts(opts) var resource JobTemplate err := ctx.RegisterResource("aws:emrcontainers/jobTemplate:JobTemplate", name, args, &resource, opts...) @@ -149,7 +145,7 @@ type jobTemplateArgs struct { // The KMS key ARN used to encrypt the job template. KmsKeyArn *string `pulumi:"kmsKeyArn"` // The specified name of the job template. - Name string `pulumi:"name"` + Name *string `pulumi:"name"` // Key-value mapping of resource tags. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. Tags map[string]string `pulumi:"tags"` } @@ -161,7 +157,7 @@ type JobTemplateArgs struct { // The KMS key ARN used to encrypt the job template. KmsKeyArn pulumi.StringPtrInput // The specified name of the job template. - Name pulumi.StringInput + Name pulumi.StringPtrInput // Key-value mapping of resource tags. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. Tags pulumi.StringMapInput } diff --git a/sdk/go/aws/finspace/kxCluster.go b/sdk/go/aws/finspace/kxCluster.go index b0a6b9500bd..c9648d30895 100644 --- a/sdk/go/aws/finspace/kxCluster.go +++ b/sdk/go/aws/finspace/kxCluster.go @@ -97,9 +97,6 @@ func NewKxCluster(ctx *pulumi.Context, if args.EnvironmentId == nil { return nil, errors.New("invalid value for required argument 'EnvironmentId'") } - if args.Name == nil { - return nil, errors.New("invalid value for required argument 'Name'") - } if args.ReleaseLabel == nil { return nil, errors.New("invalid value for required argument 'ReleaseLabel'") } @@ -275,7 +272,7 @@ type kxClusterArgs struct { // Path to Q program that will be run at launch of a cluster. This is a relative path within .zip file that contains the custom code, which will be loaded on the cluster. It must include the file name itself. For example, somedir/init.q. InitializationScript *string `pulumi:"initializationScript"` // Unique name for the cluster that you want to create. - Name string `pulumi:"name"` + Name *string `pulumi:"name"` // Version of FinSpace Managed kdb to run. ReleaseLabel string `pulumi:"releaseLabel"` // Size and type of the temporary storage that is used to hold data during the savedown process. This parameter is required when you choose `type` as RDB. All the data written to this storage space is lost when the cluster node is restarted. See savedown_storage_configuration. @@ -322,7 +319,7 @@ type KxClusterArgs struct { // Path to Q program that will be run at launch of a cluster. This is a relative path within .zip file that contains the custom code, which will be loaded on the cluster. It must include the file name itself. For example, somedir/init.q. InitializationScript pulumi.StringPtrInput // Unique name for the cluster that you want to create. - Name pulumi.StringInput + Name pulumi.StringPtrInput // Version of FinSpace Managed kdb to run. ReleaseLabel pulumi.StringInput // Size and type of the temporary storage that is used to hold data during the savedown process. This parameter is required when you choose `type` as RDB. All the data written to this storage space is lost when the cluster node is restarted. See savedown_storage_configuration. diff --git a/sdk/go/aws/finspace/kxDatabase.go b/sdk/go/aws/finspace/kxDatabase.go index c53f495ab96..ce5f25cce28 100644 --- a/sdk/go/aws/finspace/kxDatabase.go +++ b/sdk/go/aws/finspace/kxDatabase.go @@ -38,7 +38,6 @@ import ( // return err // } // exampleKxEnvironment, err := finspace.NewKxEnvironment(ctx, "exampleKxEnvironment", &finspace.KxEnvironmentArgs{ -// Name: pulumi.String("my-tf-kx-environment"), // KmsKeyId: exampleKey.Arn, // }) // if err != nil { @@ -46,7 +45,6 @@ import ( // } // _, err = finspace.NewKxDatabase(ctx, "exampleKxDatabase", &finspace.KxDatabaseArgs{ // EnvironmentId: exampleKxEnvironment.ID(), -// Name: pulumi.String("my-tf-kx-database"), // Description: pulumi.String("Example database description"), // }) // if err != nil { @@ -98,9 +96,6 @@ func NewKxDatabase(ctx *pulumi.Context, if args.EnvironmentId == nil { return nil, errors.New("invalid value for required argument 'EnvironmentId'") } - if args.Name == nil { - return nil, errors.New("invalid value for required argument 'Name'") - } opts = internal.PkgResourceDefaultOpts(opts) var resource KxDatabase err := ctx.RegisterResource("aws:finspace/kxDatabase:KxDatabase", name, args, &resource, opts...) @@ -177,7 +172,7 @@ type kxDatabaseArgs struct { // Name of the KX database. // // The following arguments are optional: - Name string `pulumi:"name"` + Name *string `pulumi:"name"` // Key-value mapping of resource tags. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. Tags map[string]string `pulumi:"tags"` } @@ -191,7 +186,7 @@ type KxDatabaseArgs struct { // Name of the KX database. // // The following arguments are optional: - Name pulumi.StringInput + Name pulumi.StringPtrInput // Key-value mapping of resource tags. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. Tags pulumi.StringMapInput } diff --git a/sdk/go/aws/finspace/kxEnvironment.go b/sdk/go/aws/finspace/kxEnvironment.go index ae7d582da2e..687b9d9f0c0 100644 --- a/sdk/go/aws/finspace/kxEnvironment.go +++ b/sdk/go/aws/finspace/kxEnvironment.go @@ -38,7 +38,6 @@ import ( // return err // } // _, err = finspace.NewKxEnvironment(ctx, "exampleKxEnvironment", &finspace.KxEnvironmentArgs{ -// Name: pulumi.String("my-tf-kx-environment"), // KmsKeyId: exampleKey.Arn, // }) // if err != nil { @@ -79,7 +78,6 @@ import ( // return err // } // _, err = finspace.NewKxEnvironment(ctx, "exampleEnv", &finspace.KxEnvironmentArgs{ -// Name: pulumi.String("my-tf-kx-environment"), // Description: pulumi.String("Environment description"), // KmsKeyId: exampleKey.Arn, // TransitGatewayConfiguration: &finspace.KxEnvironmentTransitGatewayConfigurationArgs{ @@ -152,9 +150,6 @@ func NewKxEnvironment(ctx *pulumi.Context, if args.KmsKeyId == nil { return nil, errors.New("invalid value for required argument 'KmsKeyId'") } - if args.Name == nil { - return nil, errors.New("invalid value for required argument 'Name'") - } opts = internal.PkgResourceDefaultOpts(opts) var resource KxEnvironment err := ctx.RegisterResource("aws:finspace/kxEnvironment:KxEnvironment", name, args, &resource, opts...) @@ -253,7 +248,7 @@ type kxEnvironmentArgs struct { // The following arguments are optional: KmsKeyId string `pulumi:"kmsKeyId"` // Name of the KX environment that you want to create. - Name string `pulumi:"name"` + Name *string `pulumi:"name"` // Key-value mapping of resource tags. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. Tags map[string]string `pulumi:"tags"` // Transit gateway and network configuration that is used to connect the KX environment to an internal network. Defined below. @@ -271,7 +266,7 @@ type KxEnvironmentArgs struct { // The following arguments are optional: KmsKeyId pulumi.StringInput // Name of the KX environment that you want to create. - Name pulumi.StringInput + Name pulumi.StringPtrInput // Key-value mapping of resource tags. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. Tags pulumi.StringMapInput // Transit gateway and network configuration that is used to connect the KX environment to an internal network. Defined below. diff --git a/sdk/go/aws/finspace/kxUser.go b/sdk/go/aws/finspace/kxUser.go index 9f19b8c0714..447d24e4083 100644 --- a/sdk/go/aws/finspace/kxUser.go +++ b/sdk/go/aws/finspace/kxUser.go @@ -41,7 +41,6 @@ import ( // return err // } // exampleKxEnvironment, err := finspace.NewKxEnvironment(ctx, "exampleKxEnvironment", &finspace.KxEnvironmentArgs{ -// Name: pulumi.String("my-tf-kx-environment"), // KmsKeyId: exampleKey.Arn, // }) // if err != nil { @@ -71,7 +70,6 @@ import ( // return err // } // _, err = finspace.NewKxUser(ctx, "exampleKxUser", &finspace.KxUserArgs{ -// Name: pulumi.String("my-tf-kx-user"), // EnvironmentId: exampleKxEnvironment.ID(), // IamRole: exampleRole.Arn, // }) @@ -123,9 +121,6 @@ func NewKxUser(ctx *pulumi.Context, if args.IamRole == nil { return nil, errors.New("invalid value for required argument 'IamRole'") } - if args.Name == nil { - return nil, errors.New("invalid value for required argument 'Name'") - } opts = internal.PkgResourceDefaultOpts(opts) var resource KxUser err := ctx.RegisterResource("aws:finspace/kxUser:KxUser", name, args, &resource, opts...) @@ -194,7 +189,7 @@ type kxUserArgs struct { // The following arguments are optional: IamRole string `pulumi:"iamRole"` // A unique identifier for the user. - Name string `pulumi:"name"` + Name *string `pulumi:"name"` // Key-value mapping of resource tags. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. Tags map[string]string `pulumi:"tags"` } @@ -208,7 +203,7 @@ type KxUserArgs struct { // The following arguments are optional: IamRole pulumi.StringInput // A unique identifier for the user. - Name pulumi.StringInput + Name pulumi.StringPtrInput // Key-value mapping of resource tags. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. Tags pulumi.StringMapInput } diff --git a/sdk/go/aws/globalaccelerator/customRoutingAccelerator.go b/sdk/go/aws/globalaccelerator/customRoutingAccelerator.go index 609aa09ea3f..8fece09571d 100644 --- a/sdk/go/aws/globalaccelerator/customRoutingAccelerator.go +++ b/sdk/go/aws/globalaccelerator/customRoutingAccelerator.go @@ -7,7 +7,6 @@ import ( "context" "reflect" - "errors" "github.com/pulumi/pulumi-aws/sdk/v6/go/aws/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) @@ -39,7 +38,6 @@ import ( // IpAddresses: pulumi.StringArray{ // pulumi.String("1.2.3.4"), // }, -// Name: pulumi.String("Example"), // }) // if err != nil { // return err @@ -88,12 +86,9 @@ type CustomRoutingAccelerator struct { func NewCustomRoutingAccelerator(ctx *pulumi.Context, name string, args *CustomRoutingAcceleratorArgs, opts ...pulumi.ResourceOption) (*CustomRoutingAccelerator, error) { if args == nil { - return nil, errors.New("missing one or more required arguments") + args = &CustomRoutingAcceleratorArgs{} } - if args.Name == nil { - return nil, errors.New("invalid value for required argument 'Name'") - } opts = internal.PkgResourceDefaultOpts(opts) var resource CustomRoutingAccelerator err := ctx.RegisterResource("aws:globalaccelerator/customRoutingAccelerator:CustomRoutingAccelerator", name, args, &resource, opts...) @@ -180,7 +175,7 @@ type customRoutingAcceleratorArgs struct { // The IP addresses to use for BYOIP accelerators. If not specified, the service assigns IP addresses. Valid values: 1 or 2 IPv4 addresses. IpAddresses []string `pulumi:"ipAddresses"` // The name of a custom routing accelerator. - Name string `pulumi:"name"` + Name *string `pulumi:"name"` // A map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. Tags map[string]string `pulumi:"tags"` } @@ -196,7 +191,7 @@ type CustomRoutingAcceleratorArgs struct { // The IP addresses to use for BYOIP accelerators. If not specified, the service assigns IP addresses. Valid values: 1 or 2 IPv4 addresses. IpAddresses pulumi.StringArrayInput // The name of a custom routing accelerator. - Name pulumi.StringInput + Name pulumi.StringPtrInput // A map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. Tags pulumi.StringMapInput } diff --git a/sdk/go/aws/globalaccelerator/customRoutingListener.go b/sdk/go/aws/globalaccelerator/customRoutingListener.go index cd447e96877..604c65a0611 100644 --- a/sdk/go/aws/globalaccelerator/customRoutingListener.go +++ b/sdk/go/aws/globalaccelerator/customRoutingListener.go @@ -29,7 +29,6 @@ import ( // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // exampleCustomRoutingAccelerator, err := globalaccelerator.NewCustomRoutingAccelerator(ctx, "exampleCustomRoutingAccelerator", &globalaccelerator.CustomRoutingAcceleratorArgs{ -// Name: pulumi.String("Example"), // IpAddressType: pulumi.String("IPV4"), // Enabled: pulumi.Bool(true), // Attributes: &globalaccelerator.CustomRoutingAcceleratorAttributesArgs{ diff --git a/sdk/go/aws/glue/dataQualityRuleset.go b/sdk/go/aws/glue/dataQualityRuleset.go index 3891ebcb6fc..a9e4064a9de 100644 --- a/sdk/go/aws/glue/dataQualityRuleset.go +++ b/sdk/go/aws/glue/dataQualityRuleset.go @@ -30,7 +30,6 @@ import ( // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // _, err := glue.NewDataQualityRuleset(ctx, "example", &glue.DataQualityRulesetArgs{ -// Name: pulumi.String("example"), // Ruleset: pulumi.String("Rules = [Completeness \"colA\" between 0.4 and 0.8]"), // }) // if err != nil { @@ -57,7 +56,6 @@ import ( // pulumi.Run(func(ctx *pulumi.Context) error { // _, err := glue.NewDataQualityRuleset(ctx, "example", &glue.DataQualityRulesetArgs{ // Description: pulumi.String("example"), -// Name: pulumi.String("example"), // Ruleset: pulumi.String("Rules = [Completeness \"colA\" between 0.4 and 0.8]"), // }) // if err != nil { @@ -83,7 +81,6 @@ import ( // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // _, err := glue.NewDataQualityRuleset(ctx, "example", &glue.DataQualityRulesetArgs{ -// Name: pulumi.String("example"), // Ruleset: pulumi.String("Rules = [Completeness \"colA\" between 0.4 and 0.8]"), // Tags: pulumi.StringMap{ // "hello": pulumi.String("world"), @@ -112,7 +109,6 @@ import ( // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // _, err := glue.NewDataQualityRuleset(ctx, "example", &glue.DataQualityRulesetArgs{ -// Name: pulumi.String("example"), // Ruleset: pulumi.String("Rules = [Completeness \"colA\" between 0.4 and 0.8]"), // TargetTable: &glue.DataQualityRulesetTargetTableArgs{ // DatabaseName: pulumi.Any(aws_glue_catalog_database.Example.Name), @@ -167,9 +163,6 @@ func NewDataQualityRuleset(ctx *pulumi.Context, return nil, errors.New("missing one or more required arguments") } - if args.Name == nil { - return nil, errors.New("invalid value for required argument 'Name'") - } if args.Ruleset == nil { return nil, errors.New("invalid value for required argument 'Ruleset'") } @@ -249,7 +242,7 @@ type dataQualityRulesetArgs struct { // Description of the data quality ruleset. Description *string `pulumi:"description"` // Name of the data quality ruleset. - Name string `pulumi:"name"` + Name *string `pulumi:"name"` // A Data Quality Definition Language (DQDL) ruleset. For more information, see the AWS Glue developer guide. Ruleset string `pulumi:"ruleset"` // Key-value map of resource tags. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. @@ -263,7 +256,7 @@ type DataQualityRulesetArgs struct { // Description of the data quality ruleset. Description pulumi.StringPtrInput // Name of the data quality ruleset. - Name pulumi.StringInput + Name pulumi.StringPtrInput // A Data Quality Definition Language (DQDL) ruleset. For more information, see the AWS Glue developer guide. Ruleset pulumi.StringInput // Key-value map of resource tags. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. diff --git a/sdk/go/aws/opensearch/serverlessAccessPolicy.go b/sdk/go/aws/opensearch/serverlessAccessPolicy.go index 3da748f577d..8bda8ad81bf 100644 --- a/sdk/go/aws/opensearch/serverlessAccessPolicy.go +++ b/sdk/go/aws/opensearch/serverlessAccessPolicy.go @@ -68,7 +68,6 @@ import ( // } // json0 := string(tmpJSON0) // _, err = opensearch.NewServerlessAccessPolicy(ctx, "test", &opensearch.ServerlessAccessPolicyArgs{ -// Name: pulumi.String("example"), // Type: pulumi.String("data"), // Policy: pulumi.String(json0), // }) @@ -112,9 +111,6 @@ func NewServerlessAccessPolicy(ctx *pulumi.Context, return nil, errors.New("missing one or more required arguments") } - if args.Name == nil { - return nil, errors.New("invalid value for required argument 'Name'") - } if args.Policy == nil { return nil, errors.New("invalid value for required argument 'Policy'") } @@ -181,7 +177,7 @@ type serverlessAccessPolicyArgs struct { // Description of the policy. Typically used to store information about the permissions defined in the policy. Description *string `pulumi:"description"` // Name of the policy. - Name string `pulumi:"name"` + Name *string `pulumi:"name"` // JSON policy document to use as the content for the new policy Policy string `pulumi:"policy"` // Type of access policy. Must be `data`. @@ -195,7 +191,7 @@ type ServerlessAccessPolicyArgs struct { // Description of the policy. Typically used to store information about the permissions defined in the policy. Description pulumi.StringPtrInput // Name of the policy. - Name pulumi.StringInput + Name pulumi.StringPtrInput // JSON policy document to use as the content for the new policy Policy pulumi.StringInput // Type of access policy. Must be `data`. diff --git a/sdk/go/aws/opensearch/serverlessCollection.go b/sdk/go/aws/opensearch/serverlessCollection.go index 5235341e690..5bef9b65f8a 100644 --- a/sdk/go/aws/opensearch/serverlessCollection.go +++ b/sdk/go/aws/opensearch/serverlessCollection.go @@ -7,7 +7,6 @@ import ( "context" "reflect" - "errors" "github.com/pulumi/pulumi-aws/sdk/v6/go/aws/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) @@ -47,16 +46,13 @@ import ( // } // json0 := string(tmpJSON0) // exampleServerlessSecurityPolicy, err := opensearch.NewServerlessSecurityPolicy(ctx, "exampleServerlessSecurityPolicy", &opensearch.ServerlessSecurityPolicyArgs{ -// Name: pulumi.String("example"), // Type: pulumi.String("encryption"), // Policy: pulumi.String(json0), // }) // if err != nil { // return err // } -// _, err = opensearch.NewServerlessCollection(ctx, "exampleServerlessCollection", &opensearch.ServerlessCollectionArgs{ -// Name: pulumi.String("example"), -// }, pulumi.DependsOn([]pulumi.Resource{ +// _, err = opensearch.NewServerlessCollection(ctx, "exampleServerlessCollection", nil, pulumi.DependsOn([]pulumi.Resource{ // exampleServerlessSecurityPolicy, // })) // if err != nil { @@ -103,12 +99,9 @@ type ServerlessCollection struct { func NewServerlessCollection(ctx *pulumi.Context, name string, args *ServerlessCollectionArgs, opts ...pulumi.ResourceOption) (*ServerlessCollection, error) { if args == nil { - return nil, errors.New("missing one or more required arguments") + args = &ServerlessCollectionArgs{} } - if args.Name == nil { - return nil, errors.New("invalid value for required argument 'Name'") - } opts = internal.PkgResourceDefaultOpts(opts) var resource ServerlessCollection err := ctx.RegisterResource("aws:opensearch/serverlessCollection:ServerlessCollection", name, args, &resource, opts...) @@ -185,7 +178,7 @@ type serverlessCollectionArgs struct { // Name of the collection. // // The following arguments are optional: - Name string `pulumi:"name"` + Name *string `pulumi:"name"` // A map of tags to assign to the collection. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. Tags map[string]string `pulumi:"tags"` Timeouts *ServerlessCollectionTimeouts `pulumi:"timeouts"` @@ -200,7 +193,7 @@ type ServerlessCollectionArgs struct { // Name of the collection. // // The following arguments are optional: - Name pulumi.StringInput + Name pulumi.StringPtrInput // A map of tags to assign to the collection. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. Tags pulumi.StringMapInput Timeouts ServerlessCollectionTimeoutsPtrInput diff --git a/sdk/go/aws/opensearch/serverlessSecurityConfig.go b/sdk/go/aws/opensearch/serverlessSecurityConfig.go index df22c8e3404..68ec6b7e38d 100644 --- a/sdk/go/aws/opensearch/serverlessSecurityConfig.go +++ b/sdk/go/aws/opensearch/serverlessSecurityConfig.go @@ -47,9 +47,6 @@ func NewServerlessSecurityConfig(ctx *pulumi.Context, return nil, errors.New("missing one or more required arguments") } - if args.Name == nil { - return nil, errors.New("invalid value for required argument 'Name'") - } if args.Type == nil { return nil, errors.New("invalid value for required argument 'Type'") } @@ -113,7 +110,7 @@ type serverlessSecurityConfigArgs struct { // Description of the security configuration. Description *string `pulumi:"description"` // Name of the policy. - Name string `pulumi:"name"` + Name *string `pulumi:"name"` // Configuration block for SAML options. SamlOptions *ServerlessSecurityConfigSamlOptions `pulumi:"samlOptions"` // Type of configuration. Must be `saml`. @@ -127,7 +124,7 @@ type ServerlessSecurityConfigArgs struct { // Description of the security configuration. Description pulumi.StringPtrInput // Name of the policy. - Name pulumi.StringInput + Name pulumi.StringPtrInput // Configuration block for SAML options. SamlOptions ServerlessSecurityConfigSamlOptionsPtrInput // Type of configuration. Must be `saml`. diff --git a/sdk/go/aws/opensearch/serverlessSecurityPolicy.go b/sdk/go/aws/opensearch/serverlessSecurityPolicy.go index 7d8d878e76f..f304ab54ebe 100644 --- a/sdk/go/aws/opensearch/serverlessSecurityPolicy.go +++ b/sdk/go/aws/opensearch/serverlessSecurityPolicy.go @@ -49,7 +49,6 @@ import ( // } // json0 := string(tmpJSON0) // _, err = opensearch.NewServerlessSecurityPolicy(ctx, "example", &opensearch.ServerlessSecurityPolicyArgs{ -// Name: pulumi.String("example"), // Type: pulumi.String("encryption"), // Description: pulumi.String("encryption security policy for example-collection"), // Policy: pulumi.String(json0), @@ -94,7 +93,6 @@ import ( // } // json0 := string(tmpJSON0) // _, err = opensearch.NewServerlessSecurityPolicy(ctx, "example", &opensearch.ServerlessSecurityPolicyArgs{ -// Name: pulumi.String("example"), // Type: pulumi.String("encryption"), // Description: pulumi.String("encryption security policy for collections that begin with \"example\""), // Policy: pulumi.String(json0), @@ -140,7 +138,6 @@ import ( // } // json0 := string(tmpJSON0) // _, err = opensearch.NewServerlessSecurityPolicy(ctx, "example", &opensearch.ServerlessSecurityPolicyArgs{ -// Name: pulumi.String("example"), // Type: pulumi.String("encryption"), // Description: pulumi.String("encryption security policy using customer KMS key"), // Policy: pulumi.String(json0), @@ -195,7 +192,6 @@ import ( // } // json0 := string(tmpJSON0) // _, err = opensearch.NewServerlessSecurityPolicy(ctx, "example", &opensearch.ServerlessSecurityPolicyArgs{ -// Name: pulumi.String("example"), // Type: pulumi.String("network"), // Description: pulumi.String("Public access"), // Policy: pulumi.String(json0), @@ -252,7 +248,6 @@ import ( // } // json0 := string(tmpJSON0) // _, err = opensearch.NewServerlessSecurityPolicy(ctx, "example", &opensearch.ServerlessSecurityPolicyArgs{ -// Name: pulumi.String("example"), // Type: pulumi.String("network"), // Description: pulumi.String("VPC access"), // Policy: pulumi.String(json0), @@ -321,7 +316,6 @@ import ( // } // json0 := string(tmpJSON0) // _, err = opensearch.NewServerlessSecurityPolicy(ctx, "example", &opensearch.ServerlessSecurityPolicyArgs{ -// Name: pulumi.String("example"), // Type: pulumi.String("network"), // Description: pulumi.String("Mixed access for marketing and sales"), // Policy: pulumi.String(json0), @@ -366,9 +360,6 @@ func NewServerlessSecurityPolicy(ctx *pulumi.Context, return nil, errors.New("missing one or more required arguments") } - if args.Name == nil { - return nil, errors.New("invalid value for required argument 'Name'") - } if args.Policy == nil { return nil, errors.New("invalid value for required argument 'Policy'") } @@ -435,7 +426,7 @@ type serverlessSecurityPolicyArgs struct { // Description of the policy. Typically used to store information about the permissions defined in the policy. Description *string `pulumi:"description"` // Name of the policy. - Name string `pulumi:"name"` + Name *string `pulumi:"name"` // JSON policy document to use as the content for the new policy Policy string `pulumi:"policy"` // Type of security policy. One of `encryption` or `network`. @@ -449,7 +440,7 @@ type ServerlessSecurityPolicyArgs struct { // Description of the policy. Typically used to store information about the permissions defined in the policy. Description pulumi.StringPtrInput // Name of the policy. - Name pulumi.StringInput + Name pulumi.StringPtrInput // JSON policy document to use as the content for the new policy Policy pulumi.StringInput // Type of security policy. One of `encryption` or `network`. diff --git a/sdk/go/aws/opensearch/serverlessVpcEndpoint.go b/sdk/go/aws/opensearch/serverlessVpcEndpoint.go index fc87e5f65fd..608678c9c81 100644 --- a/sdk/go/aws/opensearch/serverlessVpcEndpoint.go +++ b/sdk/go/aws/opensearch/serverlessVpcEndpoint.go @@ -30,7 +30,6 @@ import ( // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // _, err := opensearch.NewServerlessVpcEndpoint(ctx, "example", &opensearch.ServerlessVpcEndpointArgs{ -// Name: pulumi.String("myendpoint"), // SubnetIds: pulumi.StringArray{ // aws_subnet.Example.Id, // }, @@ -75,9 +74,6 @@ func NewServerlessVpcEndpoint(ctx *pulumi.Context, return nil, errors.New("missing one or more required arguments") } - if args.Name == nil { - return nil, errors.New("invalid value for required argument 'Name'") - } if args.SubnetIds == nil { return nil, errors.New("invalid value for required argument 'SubnetIds'") } @@ -140,7 +136,7 @@ func (ServerlessVpcEndpointState) ElementType() reflect.Type { type serverlessVpcEndpointArgs struct { // Name of the interface endpoint. - Name string `pulumi:"name"` + Name *string `pulumi:"name"` // One or more security groups that define the ports, protocols, and sources for inbound traffic that you are authorizing into your endpoint. Up to 5 security groups can be provided. SecurityGroupIds []string `pulumi:"securityGroupIds"` // One or more subnet IDs from which you'll access OpenSearch Serverless. Up to 6 subnets can be provided. @@ -155,7 +151,7 @@ type serverlessVpcEndpointArgs struct { // The set of arguments for constructing a ServerlessVpcEndpoint resource. type ServerlessVpcEndpointArgs struct { // Name of the interface endpoint. - Name pulumi.StringInput + Name pulumi.StringPtrInput // One or more security groups that define the ports, protocols, and sources for inbound traffic that you are authorizing into your endpoint. Up to 5 security groups can be provided. SecurityGroupIds pulumi.StringArrayInput // One or more subnet IDs from which you'll access OpenSearch Serverless. Up to 6 subnets can be provided. diff --git a/sdk/go/aws/quicksight/theme.go b/sdk/go/aws/quicksight/theme.go index 8980bccb562..73578500983 100644 --- a/sdk/go/aws/quicksight/theme.go +++ b/sdk/go/aws/quicksight/theme.go @@ -68,9 +68,6 @@ func NewTheme(ctx *pulumi.Context, if args.BaseThemeId == nil { return nil, errors.New("invalid value for required argument 'BaseThemeId'") } - if args.Name == nil { - return nil, errors.New("invalid value for required argument 'Name'") - } if args.ThemeId == nil { return nil, errors.New("invalid value for required argument 'ThemeId'") } @@ -176,7 +173,7 @@ type themeArgs struct { // The following arguments are optional: Configuration *ThemeConfiguration `pulumi:"configuration"` // Display name of the theme. - Name string `pulumi:"name"` + Name *string `pulumi:"name"` // A set of resource permissions on the theme. Maximum of 64 items. See permissions. Permissions []ThemePermission `pulumi:"permissions"` // Key-value map of resource tags. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. @@ -198,7 +195,7 @@ type ThemeArgs struct { // The following arguments are optional: Configuration ThemeConfigurationPtrInput // Display name of the theme. - Name pulumi.StringInput + Name pulumi.StringPtrInput // A set of resource permissions on the theme. Maximum of 64 items. See permissions. Permissions ThemePermissionArrayInput // Key-value map of resource tags. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. diff --git a/sdk/go/aws/quicksight/vpcConnection.go b/sdk/go/aws/quicksight/vpcConnection.go index 306e1e8ca9d..61b37330d11 100644 --- a/sdk/go/aws/quicksight/vpcConnection.go +++ b/sdk/go/aws/quicksight/vpcConnection.go @@ -84,7 +84,6 @@ import ( // } // _, err = quicksight.NewVpcConnection(ctx, "example", &quicksight.VpcConnectionArgs{ // VpcConnectionId: pulumi.String("example-connection-id"), -// Name: pulumi.String("Example Connection"), // RoleArn: vpcConnectionRole.Arn, // SecurityGroupIds: pulumi.StringArray{ // pulumi.String("sg-00000000000000000"), @@ -147,9 +146,6 @@ func NewVpcConnection(ctx *pulumi.Context, return nil, errors.New("missing one or more required arguments") } - if args.Name == nil { - return nil, errors.New("invalid value for required argument 'Name'") - } if args.RoleArn == nil { return nil, errors.New("invalid value for required argument 'RoleArn'") } @@ -250,7 +246,7 @@ type vpcConnectionArgs struct { // A list of IP addresses of DNS resolver endpoints for the VPC connection. DnsResolvers []string `pulumi:"dnsResolvers"` // The display name for the VPC connection. - Name string `pulumi:"name"` + Name *string `pulumi:"name"` // The IAM role to associate with the VPC connection. RoleArn string `pulumi:"roleArn"` // A list of security group IDs for the VPC connection. @@ -273,7 +269,7 @@ type VpcConnectionArgs struct { // A list of IP addresses of DNS resolver endpoints for the VPC connection. DnsResolvers pulumi.StringArrayInput // The display name for the VPC connection. - Name pulumi.StringInput + Name pulumi.StringPtrInput // The IAM role to associate with the VPC connection. RoleArn pulumi.StringInput // A list of security group IDs for the VPC connection. diff --git a/sdk/go/aws/resourceexplorer/view.go b/sdk/go/aws/resourceexplorer/view.go index f6d88d30a62..dd3468e6031 100644 --- a/sdk/go/aws/resourceexplorer/view.go +++ b/sdk/go/aws/resourceexplorer/view.go @@ -7,7 +7,6 @@ import ( "context" "reflect" - "errors" "github.com/pulumi/pulumi-aws/sdk/v6/go/aws/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) @@ -35,7 +34,6 @@ import ( // return err // } // _, err = resourceexplorer.NewView(ctx, "exampleView", &resourceexplorer.ViewArgs{ -// Name: pulumi.String("exampleview"), // Filters: &resourceexplorer.ViewFiltersArgs{ // FilterString: pulumi.String("resourcetype:ec2:instance"), // }, @@ -86,12 +84,9 @@ type View struct { func NewView(ctx *pulumi.Context, name string, args *ViewArgs, opts ...pulumi.ResourceOption) (*View, error) { if args == nil { - return nil, errors.New("missing one or more required arguments") + args = &ViewArgs{} } - if args.Name == nil { - return nil, errors.New("invalid value for required argument 'Name'") - } opts = internal.PkgResourceDefaultOpts(opts) var resource View err := ctx.RegisterResource("aws:resourceexplorer/view:View", name, args, &resource, opts...) @@ -160,7 +155,7 @@ type viewArgs struct { // Optional fields to be included in search results from this view. See Included Properties below for more details. IncludedProperties []ViewIncludedProperty `pulumi:"includedProperties"` // The name of the view. The name must be no more than 64 characters long, and can include letters, digits, and the dash (-) character. The name must be unique within its AWS Region. - Name string `pulumi:"name"` + Name *string `pulumi:"name"` // Key-value map of resource tags. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. Tags map[string]string `pulumi:"tags"` } @@ -174,7 +169,7 @@ type ViewArgs struct { // Optional fields to be included in search results from this view. See Included Properties below for more details. IncludedProperties ViewIncludedPropertyArrayInput // The name of the view. The name must be no more than 64 characters long, and can include letters, digits, and the dash (-) character. The name must be unique within its AWS Region. - Name pulumi.StringInput + Name pulumi.StringPtrInput // Key-value map of resource tags. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. Tags pulumi.StringMapInput } diff --git a/sdk/go/aws/route53/cidrCollection.go b/sdk/go/aws/route53/cidrCollection.go index b1003d99c45..da67e1a8569 100644 --- a/sdk/go/aws/route53/cidrCollection.go +++ b/sdk/go/aws/route53/cidrCollection.go @@ -7,7 +7,6 @@ import ( "context" "reflect" - "errors" "github.com/pulumi/pulumi-aws/sdk/v6/go/aws/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) @@ -28,9 +27,7 @@ import ( // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := route53.NewCidrCollection(ctx, "example", &route53.CidrCollectionArgs{ -// Name: pulumi.String("collection-1"), -// }) +// _, err := route53.NewCidrCollection(ctx, "example", nil) // if err != nil { // return err // } @@ -62,12 +59,9 @@ type CidrCollection struct { func NewCidrCollection(ctx *pulumi.Context, name string, args *CidrCollectionArgs, opts ...pulumi.ResourceOption) (*CidrCollection, error) { if args == nil { - return nil, errors.New("missing one or more required arguments") + args = &CidrCollectionArgs{} } - if args.Name == nil { - return nil, errors.New("invalid value for required argument 'Name'") - } opts = internal.PkgResourceDefaultOpts(opts) var resource CidrCollection err := ctx.RegisterResource("aws:route53/cidrCollection:CidrCollection", name, args, &resource, opts...) @@ -114,13 +108,13 @@ func (CidrCollectionState) ElementType() reflect.Type { type cidrCollectionArgs struct { // Unique name for the CIDR collection. - Name string `pulumi:"name"` + Name *string `pulumi:"name"` } // The set of arguments for constructing a CidrCollection resource. type CidrCollectionArgs struct { // Unique name for the CIDR collection. - Name pulumi.StringInput + Name pulumi.StringPtrInput } func (CidrCollectionArgs) ElementType() reflect.Type { diff --git a/sdk/go/aws/route53/cidrLocation.go b/sdk/go/aws/route53/cidrLocation.go index d67e3d9caa4..367d95af0ab 100644 --- a/sdk/go/aws/route53/cidrLocation.go +++ b/sdk/go/aws/route53/cidrLocation.go @@ -28,15 +28,12 @@ import ( // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { -// exampleCidrCollection, err := route53.NewCidrCollection(ctx, "exampleCidrCollection", &route53.CidrCollectionArgs{ -// Name: pulumi.String("collection-1"), -// }) +// exampleCidrCollection, err := route53.NewCidrCollection(ctx, "exampleCidrCollection", nil) // if err != nil { // return err // } // _, err = route53.NewCidrLocation(ctx, "exampleCidrLocation", &route53.CidrLocationArgs{ // CidrCollectionId: exampleCidrCollection.ID(), -// Name: pulumi.String("office"), // CidrBlocks: pulumi.StringArray{ // pulumi.String("200.5.3.0/24"), // pulumi.String("200.6.3.0/24"), @@ -82,9 +79,6 @@ func NewCidrLocation(ctx *pulumi.Context, if args.CidrCollectionId == nil { return nil, errors.New("invalid value for required argument 'CidrCollectionId'") } - if args.Name == nil { - return nil, errors.New("invalid value for required argument 'Name'") - } opts = internal.PkgResourceDefaultOpts(opts) var resource CidrLocation err := ctx.RegisterResource("aws:route53/cidrLocation:CidrLocation", name, args, &resource, opts...) @@ -135,7 +129,7 @@ type cidrLocationArgs struct { // The ID of the CIDR collection to update. CidrCollectionId string `pulumi:"cidrCollectionId"` // Name for the CIDR location. - Name string `pulumi:"name"` + Name *string `pulumi:"name"` } // The set of arguments for constructing a CidrLocation resource. @@ -145,7 +139,7 @@ type CidrLocationArgs struct { // The ID of the CIDR collection to update. CidrCollectionId pulumi.StringInput // Name for the CIDR location. - Name pulumi.StringInput + Name pulumi.StringPtrInput } func (CidrLocationArgs) ElementType() reflect.Type { diff --git a/sdk/go/aws/sfn/alias.go b/sdk/go/aws/sfn/alias.go index 4fd429ef3b3..642d468d63a 100644 --- a/sdk/go/aws/sfn/alias.go +++ b/sdk/go/aws/sfn/alias.go @@ -30,7 +30,6 @@ import ( // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // _, err := sfn.NewAlias(ctx, "sfnAlias", &sfn.AliasArgs{ -// Name: pulumi.String("my_sfn_alias"), // RoutingConfigurations: sfn.AliasRoutingConfigurationArray{ // &sfn.AliasRoutingConfigurationArgs{ // StateMachineVersionArn: pulumi.Any(aws_sfn_state_machine.Sfn_test.State_machine_version_arn), @@ -42,7 +41,6 @@ import ( // return err // } // _, err = sfn.NewAlias(ctx, "mySfnAlias", &sfn.AliasArgs{ -// Name: pulumi.String("my_sfn_alias"), // RoutingConfigurations: sfn.AliasRoutingConfigurationArray{ // &sfn.AliasRoutingConfigurationArgs{ // StateMachineVersionArn: pulumi.String("arn:aws:states:us-east-1:12345:stateMachine:demo:3"), @@ -92,9 +90,6 @@ func NewAlias(ctx *pulumi.Context, return nil, errors.New("missing one or more required arguments") } - if args.Name == nil { - return nil, errors.New("invalid value for required argument 'Name'") - } if args.RoutingConfigurations == nil { return nil, errors.New("invalid value for required argument 'RoutingConfigurations'") } @@ -154,7 +149,7 @@ type aliasArgs struct { // Description of the alias. Description *string `pulumi:"description"` // Name for the alias you are creating. - Name string `pulumi:"name"` + Name *string `pulumi:"name"` // The StateMachine alias' route configuration settings. Fields documented below RoutingConfigurations []AliasRoutingConfiguration `pulumi:"routingConfigurations"` } @@ -164,7 +159,7 @@ type AliasArgs struct { // Description of the alias. Description pulumi.StringPtrInput // Name for the alias you are creating. - Name pulumi.StringInput + Name pulumi.StringPtrInput // The StateMachine alias' route configuration settings. Fields documented below RoutingConfigurations AliasRoutingConfigurationArrayInput } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appintegrations/DataIntegration.java b/sdk/java/src/main/java/com/pulumi/aws/appintegrations/DataIntegration.java index b5901fd1fe1..9103a184483 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appintegrations/DataIntegration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appintegrations/DataIntegration.java @@ -43,7 +43,6 @@ * * public static void stack(Context ctx) { * var example = new DataIntegration("example", DataIntegrationArgs.builder() - * .name("example") * .description("example") * .kmsKey(aws_kms_key.test().arn()) * .sourceUri("Salesforce://AppFlow/example") diff --git a/sdk/java/src/main/java/com/pulumi/aws/appintegrations/DataIntegrationArgs.java b/sdk/java/src/main/java/com/pulumi/aws/appintegrations/DataIntegrationArgs.java index 14335197444..d3610b41e55 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appintegrations/DataIntegrationArgs.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appintegrations/DataIntegrationArgs.java @@ -51,15 +51,15 @@ public Output kmsKey() { * Specifies the name of the Data Integration. * */ - @Import(name="name", required=true) - private Output name; + @Import(name="name") + private @Nullable Output name; /** * @return Specifies the name of the Data Integration. * */ - public Output name() { - return this.name; + public Optional> name() { + return Optional.ofNullable(this.name); } /** @@ -184,7 +184,7 @@ public Builder kmsKey(String kmsKey) { * @return builder * */ - public Builder name(Output name) { + public Builder name(@Nullable Output name) { $.name = name; return this; } @@ -264,7 +264,6 @@ public Builder tags(Map tags) { public DataIntegrationArgs build() { $.kmsKey = Objects.requireNonNull($.kmsKey, "expected parameter 'kmsKey' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); $.scheduleConfig = Objects.requireNonNull($.scheduleConfig, "expected parameter 'scheduleConfig' to be non-null"); $.sourceUri = Objects.requireNonNull($.sourceUri, "expected parameter 'sourceUri' to be non-null"); return $; diff --git a/sdk/java/src/main/java/com/pulumi/aws/auditmanager/Assessment.java b/sdk/java/src/main/java/com/pulumi/aws/auditmanager/Assessment.java index b5a00e08071..02cabd571f5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/auditmanager/Assessment.java +++ b/sdk/java/src/main/java/com/pulumi/aws/auditmanager/Assessment.java @@ -50,7 +50,6 @@ * * public static void stack(Context ctx) { * var test = new Assessment("test", AssessmentArgs.builder() - * .name("example") * .assessmentReportsDestination(AssessmentAssessmentReportsDestinationArgs.builder() * .destination(String.format("s3://%s", aws_s3_bucket.test().id())) * .destinationType("S3") diff --git a/sdk/java/src/main/java/com/pulumi/aws/auditmanager/AssessmentArgs.java b/sdk/java/src/main/java/com/pulumi/aws/auditmanager/AssessmentArgs.java index 8b9b8ae47f3..fbef1706521 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/auditmanager/AssessmentArgs.java +++ b/sdk/java/src/main/java/com/pulumi/aws/auditmanager/AssessmentArgs.java @@ -69,15 +69,15 @@ public Output frameworkId() { * Name of the assessment. * */ - @Import(name="name", required=true) - private Output name; + @Import(name="name") + private @Nullable Output name; /** * @return Name of the assessment. * */ - public Output name() { - return this.name; + public Optional> name() { + return Optional.ofNullable(this.name); } /** @@ -228,7 +228,7 @@ public Builder frameworkId(String frameworkId) { * @return builder * */ - public Builder name(Output name) { + public Builder name(@Nullable Output name) { $.name = name; return this; } @@ -322,7 +322,6 @@ public Builder tags(Map tags) { public AssessmentArgs build() { $.frameworkId = Objects.requireNonNull($.frameworkId, "expected parameter 'frameworkId' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); $.roles = Objects.requireNonNull($.roles, "expected parameter 'roles' to be non-null"); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/aws/auditmanager/AssessmentReport.java b/sdk/java/src/main/java/com/pulumi/aws/auditmanager/AssessmentReport.java index dcfc2a5ad30..7e11216ce3b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/auditmanager/AssessmentReport.java +++ b/sdk/java/src/main/java/com/pulumi/aws/auditmanager/AssessmentReport.java @@ -41,7 +41,6 @@ * * public static void stack(Context ctx) { * var test = new AssessmentReport("test", AssessmentReportArgs.builder() - * .name("example") * .assessmentId(aws_auditmanager_assessment.test().id()) * .build()); * diff --git a/sdk/java/src/main/java/com/pulumi/aws/auditmanager/AssessmentReportArgs.java b/sdk/java/src/main/java/com/pulumi/aws/auditmanager/AssessmentReportArgs.java index e5953509db8..2a705592256 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/auditmanager/AssessmentReportArgs.java +++ b/sdk/java/src/main/java/com/pulumi/aws/auditmanager/AssessmentReportArgs.java @@ -53,15 +53,15 @@ public Optional> description() { * Name of the assessment report. * */ - @Import(name="name", required=true) - private Output name; + @Import(name="name") + private @Nullable Output name; /** * @return Name of the assessment report. * */ - public Output name() { - return this.name; + public Optional> name() { + return Optional.ofNullable(this.name); } private AssessmentReportArgs() {} @@ -142,7 +142,7 @@ public Builder description(String description) { * @return builder * */ - public Builder name(Output name) { + public Builder name(@Nullable Output name) { $.name = name; return this; } @@ -159,7 +159,6 @@ public Builder name(String name) { public AssessmentReportArgs build() { $.assessmentId = Objects.requireNonNull($.assessmentId, "expected parameter 'assessmentId' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/auditmanager/AuditmanagerFunctions.java b/sdk/java/src/main/java/com/pulumi/aws/auditmanager/AuditmanagerFunctions.java index 4600b222a35..9d86ead2c82 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/auditmanager/AuditmanagerFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/aws/auditmanager/AuditmanagerFunctions.java @@ -87,7 +87,6 @@ public final class AuditmanagerFunctions { * .build()); * * var exampleFramework = new Framework("exampleFramework", FrameworkArgs.builder() - * .name("example") * .controlSets( * FrameworkControlSetArgs.builder() * .name("example") @@ -181,7 +180,6 @@ public static Output getControl(GetControlArgs args) { * .build()); * * var exampleFramework = new Framework("exampleFramework", FrameworkArgs.builder() - * .name("example") * .controlSets( * FrameworkControlSetArgs.builder() * .name("example") @@ -275,7 +273,6 @@ public static CompletableFuture getControlPlain(GetControlPlai * .build()); * * var exampleFramework = new Framework("exampleFramework", FrameworkArgs.builder() - * .name("example") * .controlSets( * FrameworkControlSetArgs.builder() * .name("example") @@ -369,7 +366,6 @@ public static Output getControl(GetControlArgs args, InvokeOpt * .build()); * * var exampleFramework = new Framework("exampleFramework", FrameworkArgs.builder() - * .name("example") * .controlSets( * FrameworkControlSetArgs.builder() * .name("example") diff --git a/sdk/java/src/main/java/com/pulumi/aws/auditmanager/Control.java b/sdk/java/src/main/java/com/pulumi/aws/auditmanager/Control.java index edce70d73a4..f6482858d10 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/auditmanager/Control.java +++ b/sdk/java/src/main/java/com/pulumi/aws/auditmanager/Control.java @@ -50,7 +50,6 @@ * .sourceSetUpOption("Procedural_Controls_Mapping") * .sourceType("MANUAL") * .build()) - * .name("example") * .build()); * * } @@ -219,7 +218,7 @@ public Control(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public Control(String name, ControlArgs args) { + public Control(String name, @Nullable ControlArgs args) { this(name, args, null); } /** @@ -228,7 +227,7 @@ public Control(String name, ControlArgs args) { * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ - public Control(String name, ControlArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public Control(String name, @Nullable ControlArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("aws:auditmanager/control:Control", name, args == null ? ControlArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); } diff --git a/sdk/java/src/main/java/com/pulumi/aws/auditmanager/ControlArgs.java b/sdk/java/src/main/java/com/pulumi/aws/auditmanager/ControlArgs.java index 6b2c8abfd8b..062ada93c13 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/auditmanager/ControlArgs.java +++ b/sdk/java/src/main/java/com/pulumi/aws/auditmanager/ControlArgs.java @@ -86,15 +86,15 @@ public Optional> description() { * Name of the control. * */ - @Import(name="name", required=true) - private Output name; + @Import(name="name") + private @Nullable Output name; /** * @return Name of the control. * */ - public Output name() { - return this.name; + public Optional> name() { + return Optional.ofNullable(this.name); } /** @@ -263,7 +263,7 @@ public Builder description(String description) { * @return builder * */ - public Builder name(Output name) { + public Builder name(@Nullable Output name) { $.name = name; return this; } @@ -321,7 +321,6 @@ public Builder testingInformation(String testingInformation) { } public ControlArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/auditmanager/Framework.java b/sdk/java/src/main/java/com/pulumi/aws/auditmanager/Framework.java index e57891ec963..7ee855ccdff 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/auditmanager/Framework.java +++ b/sdk/java/src/main/java/com/pulumi/aws/auditmanager/Framework.java @@ -45,7 +45,6 @@ * * public static void stack(Context ctx) { * var test = new Framework("test", FrameworkArgs.builder() - * .name("example") * .controlSets(FrameworkControlSetArgs.builder() * .name("example") * .controls(FrameworkControlSetControlArgs.builder() @@ -192,7 +191,7 @@ public Framework(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public Framework(String name, FrameworkArgs args) { + public Framework(String name, @Nullable FrameworkArgs args) { this(name, args, null); } /** @@ -201,7 +200,7 @@ public Framework(String name, FrameworkArgs args) { * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ - public Framework(String name, FrameworkArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public Framework(String name, @Nullable FrameworkArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("aws:auditmanager/framework:Framework", name, args == null ? FrameworkArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); } diff --git a/sdk/java/src/main/java/com/pulumi/aws/auditmanager/FrameworkArgs.java b/sdk/java/src/main/java/com/pulumi/aws/auditmanager/FrameworkArgs.java index 0ca1112cf73..de2b7dcb621 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/auditmanager/FrameworkArgs.java +++ b/sdk/java/src/main/java/com/pulumi/aws/auditmanager/FrameworkArgs.java @@ -71,15 +71,15 @@ public Optional> description() { * Name of the framework. * */ - @Import(name="name", required=true) - private Output name; + @Import(name="name") + private @Nullable Output name; /** * @return Name of the framework. * */ - public Output name() { - return this.name; + public Optional> name() { + return Optional.ofNullable(this.name); } /** @@ -210,7 +210,7 @@ public Builder description(String description) { * @return builder * */ - public Builder name(Output name) { + public Builder name(@Nullable Output name) { $.name = name; return this; } @@ -247,7 +247,6 @@ public Builder tags(Map tags) { } public FrameworkArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/chime/SdkvoiceSipMediaApplication.java b/sdk/java/src/main/java/com/pulumi/aws/chime/SdkvoiceSipMediaApplication.java index ce6116913f2..327dcaf5bc1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/chime/SdkvoiceSipMediaApplication.java +++ b/sdk/java/src/main/java/com/pulumi/aws/chime/SdkvoiceSipMediaApplication.java @@ -45,7 +45,6 @@ * public static void stack(Context ctx) { * var example = new SdkvoiceSipMediaApplication("example", SdkvoiceSipMediaApplicationArgs.builder() * .awsRegion("us-east-1") - * .name("example-sip-media-application") * .endpoints(SdkvoiceSipMediaApplicationEndpointsArgs.builder() * .lambdaArn(aws_lambda_function.test().arn()) * .build()) diff --git a/sdk/java/src/main/java/com/pulumi/aws/chime/SdkvoiceSipMediaApplicationArgs.java b/sdk/java/src/main/java/com/pulumi/aws/chime/SdkvoiceSipMediaApplicationArgs.java index 99dc20d4d62..3a580e68094 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/chime/SdkvoiceSipMediaApplicationArgs.java +++ b/sdk/java/src/main/java/com/pulumi/aws/chime/SdkvoiceSipMediaApplicationArgs.java @@ -53,8 +53,8 @@ public Output endpoints() { * The following arguments are optional: * */ - @Import(name="name", required=true) - private Output name; + @Import(name="name") + private @Nullable Output name; /** * @return The name of the AWS Chime SDK Voice Sip Media Application. @@ -62,8 +62,8 @@ public Output endpoints() { * The following arguments are optional: * */ - public Output name() { - return this.name; + public Optional> name() { + return Optional.ofNullable(this.name); } /** @@ -158,7 +158,7 @@ public Builder endpoints(SdkvoiceSipMediaApplicationEndpointsArgs endpoints) { * @return builder * */ - public Builder name(Output name) { + public Builder name(@Nullable Output name) { $.name = name; return this; } @@ -199,7 +199,6 @@ public Builder tags(Map tags) { public SdkvoiceSipMediaApplicationArgs build() { $.awsRegion = Objects.requireNonNull($.awsRegion, "expected parameter 'awsRegion' to be non-null"); $.endpoints = Objects.requireNonNull($.endpoints, "expected parameter 'endpoints' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/chime/SdkvoiceSipRule.java b/sdk/java/src/main/java/com/pulumi/aws/chime/SdkvoiceSipRule.java index b5eeef0479f..3b3fa8e3c5e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/chime/SdkvoiceSipRule.java +++ b/sdk/java/src/main/java/com/pulumi/aws/chime/SdkvoiceSipRule.java @@ -45,7 +45,6 @@ * * public static void stack(Context ctx) { * var example = new SdkvoiceSipRule("example", SdkvoiceSipRuleArgs.builder() - * .name("example-sip-rule") * .triggerType("RequestUriHostname") * .triggerValue(aws_chime_voice_connector.example-voice-connector().outbound_host_name()) * .targetApplications(SdkvoiceSipRuleTargetApplicationArgs.builder() diff --git a/sdk/java/src/main/java/com/pulumi/aws/chime/SdkvoiceSipRuleArgs.java b/sdk/java/src/main/java/com/pulumi/aws/chime/SdkvoiceSipRuleArgs.java index 266a7b33148..c10a16e82f2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/chime/SdkvoiceSipRuleArgs.java +++ b/sdk/java/src/main/java/com/pulumi/aws/chime/SdkvoiceSipRuleArgs.java @@ -37,15 +37,15 @@ public Optional> disabled() { * The name of the SIP rule. * */ - @Import(name="name", required=true) - private Output name; + @Import(name="name") + private @Nullable Output name; /** * @return The name of the SIP rule. * */ - public Output name() { - return this.name; + public Optional> name() { + return Optional.ofNullable(this.name); } /** @@ -152,7 +152,7 @@ public Builder disabled(Boolean disabled) { * @return builder * */ - public Builder name(Output name) { + public Builder name(@Nullable Output name) { $.name = name; return this; } @@ -245,7 +245,6 @@ public Builder triggerValue(String triggerValue) { } public SdkvoiceSipRuleArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); $.targetApplications = Objects.requireNonNull($.targetApplications, "expected parameter 'targetApplications' to be non-null"); $.triggerType = Objects.requireNonNull($.triggerType, "expected parameter 'triggerType' to be non-null"); $.triggerValue = Objects.requireNonNull($.triggerValue, "expected parameter 'triggerValue' to be non-null"); diff --git a/sdk/java/src/main/java/com/pulumi/aws/chime/SdkvoiceVoiceProfileDomain.java b/sdk/java/src/main/java/com/pulumi/aws/chime/SdkvoiceVoiceProfileDomain.java index b6e7db62003..2ea6b4a427d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/chime/SdkvoiceVoiceProfileDomain.java +++ b/sdk/java/src/main/java/com/pulumi/aws/chime/SdkvoiceVoiceProfileDomain.java @@ -51,7 +51,6 @@ * .build()); * * var exampleSdkvoiceVoiceProfileDomain = new SdkvoiceVoiceProfileDomain("exampleSdkvoiceVoiceProfileDomain", SdkvoiceVoiceProfileDomainArgs.builder() - * .name("ExampleVoiceProfileDomain") * .serverSideEncryptionConfiguration(SdkvoiceVoiceProfileDomainServerSideEncryptionConfigurationArgs.builder() * .kmsKeyArn(exampleKey.arn()) * .build()) diff --git a/sdk/java/src/main/java/com/pulumi/aws/chime/SdkvoiceVoiceProfileDomainArgs.java b/sdk/java/src/main/java/com/pulumi/aws/chime/SdkvoiceVoiceProfileDomainArgs.java index 8f160d5f671..38d6aab328c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/chime/SdkvoiceVoiceProfileDomainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/aws/chime/SdkvoiceVoiceProfileDomainArgs.java @@ -36,15 +36,15 @@ public Optional> description() { * Name of Voice Profile Domain. * */ - @Import(name="name", required=true) - private Output name; + @Import(name="name") + private @Nullable Output name; /** * @return Name of Voice Profile Domain. * */ - public Output name() { - return this.name; + public Optional> name() { + return Optional.ofNullable(this.name); } /** @@ -123,7 +123,7 @@ public Builder description(String description) { * @return builder * */ - public Builder name(Output name) { + public Builder name(@Nullable Output name) { $.name = name; return this; } @@ -169,7 +169,6 @@ public Builder tags(Map tags) { } public SdkvoiceVoiceProfileDomainArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); $.serverSideEncryptionConfiguration = Objects.requireNonNull($.serverSideEncryptionConfiguration, "expected parameter 'serverSideEncryptionConfiguration' to be non-null"); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cleanrooms/Collaboration.java b/sdk/java/src/main/java/com/pulumi/aws/cleanrooms/Collaboration.java index 77d95669681..e8725462dd9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cleanrooms/Collaboration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cleanrooms/Collaboration.java @@ -64,7 +64,6 @@ * .displayName("Other member") * .memberAbilities() * .build()) - * .name("pulumi-example-collaboration") * .queryLogStatus("DISABLED") * .tags(Map.of("Project", "Pulumi")) * .build()); diff --git a/sdk/java/src/main/java/com/pulumi/aws/cleanrooms/CollaborationArgs.java b/sdk/java/src/main/java/com/pulumi/aws/cleanrooms/CollaborationArgs.java index 578973152e7..e0c13d397b3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cleanrooms/CollaborationArgs.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cleanrooms/CollaborationArgs.java @@ -128,15 +128,15 @@ public Optional>> members() { * The name of the collaboration. Collaboration names do not need to be unique. * */ - @Import(name="name", required=true) - private Output name; + @Import(name="name") + private @Nullable Output name; /** * @return The name of the collaboration. Collaboration names do not need to be unique. * */ - public Output name() { - return this.name; + public Optional> name() { + return Optional.ofNullable(this.name); } /** @@ -371,7 +371,7 @@ public Builder members(CollaborationMemberArgs... members) { * @return builder * */ - public Builder name(Output name) { + public Builder name(@Nullable Output name) { $.name = name; return this; } @@ -436,7 +436,6 @@ public CollaborationArgs build() { $.creatorDisplayName = Objects.requireNonNull($.creatorDisplayName, "expected parameter 'creatorDisplayName' to be non-null"); $.creatorMemberAbilities = Objects.requireNonNull($.creatorMemberAbilities, "expected parameter 'creatorMemberAbilities' to be non-null"); $.description = Objects.requireNonNull($.description, "expected parameter 'description' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); $.queryLogStatus = Objects.requireNonNull($.queryLogStatus, "expected parameter 'queryLogStatus' to be non-null"); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/FieldLevelEncryptionProfile.java b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/FieldLevelEncryptionProfile.java index 33b7c06ca7a..5cc69361ae2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/FieldLevelEncryptionProfile.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/FieldLevelEncryptionProfile.java @@ -46,7 +46,6 @@ * var example = new PublicKey("example", PublicKeyArgs.builder() * .comment("test public key") * .encodedKey(Files.readString(Paths.get("public_key.pem"))) - * .name("test_key") * .build()); * * var test = new FieldLevelEncryptionProfile("test", FieldLevelEncryptionProfileArgs.builder() diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/KeyGroup.java b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/KeyGroup.java index edbc99aa2c0..6601c7be47d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/KeyGroup.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/KeyGroup.java @@ -45,7 +45,6 @@ * var examplePublicKey = new PublicKey("examplePublicKey", PublicKeyArgs.builder() * .comment("example public key") * .encodedKey(Files.readString(Paths.get("public_key.pem"))) - * .name("example-key") * .build()); * * var exampleKeyGroup = new KeyGroup("exampleKeyGroup", KeyGroupArgs.builder() diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/PublicKey.java b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/PublicKey.java index 30106fa11ba..8aad9748f94 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/PublicKey.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/PublicKey.java @@ -42,7 +42,6 @@ * var example = new PublicKey("example", PublicKeyArgs.builder() * .comment("test public key") * .encodedKey(Files.readString(Paths.get("public_key.pem"))) - * .name("test_key") * .build()); * * } diff --git a/sdk/java/src/main/java/com/pulumi/aws/emrcontainers/JobTemplate.java b/sdk/java/src/main/java/com/pulumi/aws/emrcontainers/JobTemplate.java index 907c58e0d4b..34215995cbb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/emrcontainers/JobTemplate.java +++ b/sdk/java/src/main/java/com/pulumi/aws/emrcontainers/JobTemplate.java @@ -55,7 +55,6 @@ * .build()) * .build()) * .build()) - * .name("example") * .build()); * * } diff --git a/sdk/java/src/main/java/com/pulumi/aws/emrcontainers/JobTemplateArgs.java b/sdk/java/src/main/java/com/pulumi/aws/emrcontainers/JobTemplateArgs.java index e1a70dbf98e..47ddc1690fc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/emrcontainers/JobTemplateArgs.java +++ b/sdk/java/src/main/java/com/pulumi/aws/emrcontainers/JobTemplateArgs.java @@ -51,15 +51,15 @@ public Optional> kmsKeyArn() { * The specified name of the job template. * */ - @Import(name="name", required=true) - private Output name; + @Import(name="name") + private @Nullable Output name; /** * @return The specified name of the job template. * */ - public Output name() { - return this.name; + public Optional> name() { + return Optional.ofNullable(this.name); } /** @@ -152,7 +152,7 @@ public Builder kmsKeyArn(String kmsKeyArn) { * @return builder * */ - public Builder name(Output name) { + public Builder name(@Nullable Output name) { $.name = name; return this; } @@ -190,7 +190,6 @@ public Builder tags(Map tags) { public JobTemplateArgs build() { $.jobTemplateData = Objects.requireNonNull($.jobTemplateData, "expected parameter 'jobTemplateData' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/finspace/KxCluster.java b/sdk/java/src/main/java/com/pulumi/aws/finspace/KxCluster.java index b0dc4740bfc..da03b8ff6cf 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/finspace/KxCluster.java +++ b/sdk/java/src/main/java/com/pulumi/aws/finspace/KxCluster.java @@ -56,7 +56,6 @@ * * public static void stack(Context ctx) { * var example = new KxCluster("example", KxClusterArgs.builder() - * .name("my-tf-kx-cluster") * .environmentId(aws_finspace_kx_environment.example().id()) * .type("HDB") * .releaseLabel("1.0") diff --git a/sdk/java/src/main/java/com/pulumi/aws/finspace/KxClusterArgs.java b/sdk/java/src/main/java/com/pulumi/aws/finspace/KxClusterArgs.java index 8415081880a..300792f3e09 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/finspace/KxClusterArgs.java +++ b/sdk/java/src/main/java/com/pulumi/aws/finspace/KxClusterArgs.java @@ -212,15 +212,15 @@ public Optional> initializationScript() { * Unique name for the cluster that you want to create. * */ - @Import(name="name", required=true) - private Output name; + @Import(name="name") + private @Nullable Output name; /** * @return Unique name for the cluster that you want to create. * */ - public Output name() { - return this.name; + public Optional> name() { + return Optional.ofNullable(this.name); } /** @@ -631,7 +631,7 @@ public Builder initializationScript(String initializationScript) { * @return builder * */ - public Builder name(Output name) { + public Builder name(@Nullable Output name) { $.name = name; return this; } @@ -765,7 +765,6 @@ public KxClusterArgs build() { $.azMode = Objects.requireNonNull($.azMode, "expected parameter 'azMode' to be non-null"); $.capacityConfiguration = Objects.requireNonNull($.capacityConfiguration, "expected parameter 'capacityConfiguration' to be non-null"); $.environmentId = Objects.requireNonNull($.environmentId, "expected parameter 'environmentId' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); $.releaseLabel = Objects.requireNonNull($.releaseLabel, "expected parameter 'releaseLabel' to be non-null"); $.type = Objects.requireNonNull($.type, "expected parameter 'type' to be non-null"); $.vpcConfiguration = Objects.requireNonNull($.vpcConfiguration, "expected parameter 'vpcConfiguration' to be non-null"); diff --git a/sdk/java/src/main/java/com/pulumi/aws/finspace/KxDatabase.java b/sdk/java/src/main/java/com/pulumi/aws/finspace/KxDatabase.java index 147e22ef223..e1b5dcd3889 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/finspace/KxDatabase.java +++ b/sdk/java/src/main/java/com/pulumi/aws/finspace/KxDatabase.java @@ -51,13 +51,11 @@ * .build()); * * var exampleKxEnvironment = new KxEnvironment("exampleKxEnvironment", KxEnvironmentArgs.builder() - * .name("my-tf-kx-environment") * .kmsKeyId(exampleKey.arn()) * .build()); * * var exampleKxDatabase = new KxDatabase("exampleKxDatabase", KxDatabaseArgs.builder() * .environmentId(exampleKxEnvironment.id()) - * .name("my-tf-kx-database") * .description("Example database description") * .build()); * diff --git a/sdk/java/src/main/java/com/pulumi/aws/finspace/KxDatabaseArgs.java b/sdk/java/src/main/java/com/pulumi/aws/finspace/KxDatabaseArgs.java index b47edd6fef0..af163e7cad2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/finspace/KxDatabaseArgs.java +++ b/sdk/java/src/main/java/com/pulumi/aws/finspace/KxDatabaseArgs.java @@ -52,8 +52,8 @@ public Output environmentId() { * The following arguments are optional: * */ - @Import(name="name", required=true) - private Output name; + @Import(name="name") + private @Nullable Output name; /** * @return Name of the KX database. @@ -61,8 +61,8 @@ public Output environmentId() { * The following arguments are optional: * */ - public Output name() { - return this.name; + public Optional> name() { + return Optional.ofNullable(this.name); } /** @@ -157,7 +157,7 @@ public Builder environmentId(String environmentId) { * @return builder * */ - public Builder name(Output name) { + public Builder name(@Nullable Output name) { $.name = name; return this; } @@ -197,7 +197,6 @@ public Builder tags(Map tags) { public KxDatabaseArgs build() { $.environmentId = Objects.requireNonNull($.environmentId, "expected parameter 'environmentId' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/finspace/KxEnvironment.java b/sdk/java/src/main/java/com/pulumi/aws/finspace/KxEnvironment.java index fdd3ec601c6..6a315390cf3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/finspace/KxEnvironment.java +++ b/sdk/java/src/main/java/com/pulumi/aws/finspace/KxEnvironment.java @@ -52,7 +52,6 @@ * .build()); * * var exampleKxEnvironment = new KxEnvironment("exampleKxEnvironment", KxEnvironmentArgs.builder() - * .name("my-tf-kx-environment") * .kmsKeyId(exampleKey.arn()) * .build()); * @@ -97,7 +96,6 @@ * .build()); * * var exampleEnv = new KxEnvironment("exampleEnv", KxEnvironmentArgs.builder() - * .name("my-tf-kx-environment") * .description("Environment description") * .kmsKeyId(exampleKey.arn()) * .transitGatewayConfiguration(KxEnvironmentTransitGatewayConfigurationArgs.builder() diff --git a/sdk/java/src/main/java/com/pulumi/aws/finspace/KxEnvironmentArgs.java b/sdk/java/src/main/java/com/pulumi/aws/finspace/KxEnvironmentArgs.java index 4a1e24517a3..3fef257242c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/finspace/KxEnvironmentArgs.java +++ b/sdk/java/src/main/java/com/pulumi/aws/finspace/KxEnvironmentArgs.java @@ -72,15 +72,15 @@ public Output kmsKeyId() { * Name of the KX environment that you want to create. * */ - @Import(name="name", required=true) - private Output name; + @Import(name="name") + private @Nullable Output name; /** * @return Name of the KX environment that you want to create. * */ - public Output name() { - return this.name; + public Optional> name() { + return Optional.ofNullable(this.name); } /** @@ -225,7 +225,7 @@ public Builder kmsKeyId(String kmsKeyId) { * @return builder * */ - public Builder name(Output name) { + public Builder name(@Nullable Output name) { $.name = name; return this; } @@ -284,7 +284,6 @@ public Builder transitGatewayConfiguration(KxEnvironmentTransitGatewayConfigurat public KxEnvironmentArgs build() { $.kmsKeyId = Objects.requireNonNull($.kmsKeyId, "expected parameter 'kmsKeyId' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/finspace/KxUser.java b/sdk/java/src/main/java/com/pulumi/aws/finspace/KxUser.java index 906528adc76..704027629f2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/finspace/KxUser.java +++ b/sdk/java/src/main/java/com/pulumi/aws/finspace/KxUser.java @@ -54,7 +54,6 @@ * .build()); * * var exampleKxEnvironment = new KxEnvironment("exampleKxEnvironment", KxEnvironmentArgs.builder() - * .name("my-tf-kx-environment") * .kmsKeyId(exampleKey.arn()) * .build()); * @@ -74,7 +73,6 @@ * .build()); * * var exampleKxUser = new KxUser("exampleKxUser", KxUserArgs.builder() - * .name("my-tf-kx-user") * .environmentId(exampleKxEnvironment.id()) * .iamRole(exampleRole.arn()) * .build()); diff --git a/sdk/java/src/main/java/com/pulumi/aws/finspace/KxUserArgs.java b/sdk/java/src/main/java/com/pulumi/aws/finspace/KxUserArgs.java index 2b28f65619c..63fc6ccd678 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/finspace/KxUserArgs.java +++ b/sdk/java/src/main/java/com/pulumi/aws/finspace/KxUserArgs.java @@ -54,15 +54,15 @@ public Output iamRole() { * A unique identifier for the user. * */ - @Import(name="name", required=true) - private Output name; + @Import(name="name") + private @Nullable Output name; /** * @return A unique identifier for the user. * */ - public Output name() { - return this.name; + public Optional> name() { + return Optional.ofNullable(this.name); } /** @@ -159,7 +159,7 @@ public Builder iamRole(String iamRole) { * @return builder * */ - public Builder name(Output name) { + public Builder name(@Nullable Output name) { $.name = name; return this; } @@ -198,7 +198,6 @@ public Builder tags(Map tags) { public KxUserArgs build() { $.environmentId = Objects.requireNonNull($.environmentId, "expected parameter 'environmentId' to be non-null"); $.iamRole = Objects.requireNonNull($.iamRole, "expected parameter 'iamRole' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/globalaccelerator/CustomRoutingAccelerator.java b/sdk/java/src/main/java/com/pulumi/aws/globalaccelerator/CustomRoutingAccelerator.java index 663230cd778..5918af0181c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/globalaccelerator/CustomRoutingAccelerator.java +++ b/sdk/java/src/main/java/com/pulumi/aws/globalaccelerator/CustomRoutingAccelerator.java @@ -54,7 +54,6 @@ * .enabled(true) * .ipAddressType("IPV4") * .ipAddresses("1.2.3.4") - * .name("Example") * .build()); * * } @@ -229,7 +228,7 @@ public CustomRoutingAccelerator(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public CustomRoutingAccelerator(String name, CustomRoutingAcceleratorArgs args) { + public CustomRoutingAccelerator(String name, @Nullable CustomRoutingAcceleratorArgs args) { this(name, args, null); } /** @@ -238,7 +237,7 @@ public CustomRoutingAccelerator(String name, CustomRoutingAcceleratorArgs args) * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ - public CustomRoutingAccelerator(String name, CustomRoutingAcceleratorArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public CustomRoutingAccelerator(String name, @Nullable CustomRoutingAcceleratorArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("aws:globalaccelerator/customRoutingAccelerator:CustomRoutingAccelerator", name, args == null ? CustomRoutingAcceleratorArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); } diff --git a/sdk/java/src/main/java/com/pulumi/aws/globalaccelerator/CustomRoutingAcceleratorArgs.java b/sdk/java/src/main/java/com/pulumi/aws/globalaccelerator/CustomRoutingAcceleratorArgs.java index 7e7ac9c1239..d6ed97a379b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/globalaccelerator/CustomRoutingAcceleratorArgs.java +++ b/sdk/java/src/main/java/com/pulumi/aws/globalaccelerator/CustomRoutingAcceleratorArgs.java @@ -83,15 +83,15 @@ public Optional>> ipAddresses() { * The name of a custom routing accelerator. * */ - @Import(name="name", required=true) - private Output name; + @Import(name="name") + private @Nullable Output name; /** * @return The name of a custom routing accelerator. * */ - public Output name() { - return this.name; + public Optional> name() { + return Optional.ofNullable(this.name); } /** @@ -238,7 +238,7 @@ public Builder ipAddresses(String... ipAddresses) { * @return builder * */ - public Builder name(Output name) { + public Builder name(@Nullable Output name) { $.name = name; return this; } @@ -275,7 +275,6 @@ public Builder tags(Map tags) { } public CustomRoutingAcceleratorArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/globalaccelerator/CustomRoutingListener.java b/sdk/java/src/main/java/com/pulumi/aws/globalaccelerator/CustomRoutingListener.java index b1526bd7586..9ac8877bce2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/globalaccelerator/CustomRoutingListener.java +++ b/sdk/java/src/main/java/com/pulumi/aws/globalaccelerator/CustomRoutingListener.java @@ -45,7 +45,6 @@ * * public static void stack(Context ctx) { * var exampleCustomRoutingAccelerator = new CustomRoutingAccelerator("exampleCustomRoutingAccelerator", CustomRoutingAcceleratorArgs.builder() - * .name("Example") * .ipAddressType("IPV4") * .enabled(true) * .attributes(CustomRoutingAcceleratorAttributesArgs.builder() diff --git a/sdk/java/src/main/java/com/pulumi/aws/glue/DataQualityRuleset.java b/sdk/java/src/main/java/com/pulumi/aws/glue/DataQualityRuleset.java index 37f1dc2b846..c6409df2668 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/glue/DataQualityRuleset.java +++ b/sdk/java/src/main/java/com/pulumi/aws/glue/DataQualityRuleset.java @@ -43,7 +43,6 @@ * * public static void stack(Context ctx) { * var example = new DataQualityRuleset("example", DataQualityRulesetArgs.builder() - * .name("example") * .ruleset("Rules = [Completeness \"colA\" between 0.4 and 0.8]") * .build()); * @@ -74,7 +73,6 @@ * public static void stack(Context ctx) { * var example = new DataQualityRuleset("example", DataQualityRulesetArgs.builder() * .description("example") - * .name("example") * .ruleset("Rules = [Completeness \"colA\" between 0.4 and 0.8]") * .build()); * @@ -104,7 +102,6 @@ * * public static void stack(Context ctx) { * var example = new DataQualityRuleset("example", DataQualityRulesetArgs.builder() - * .name("example") * .ruleset("Rules = [Completeness \"colA\" between 0.4 and 0.8]") * .tags(Map.of("hello", "world")) * .build()); @@ -136,7 +133,6 @@ * * public static void stack(Context ctx) { * var example = new DataQualityRuleset("example", DataQualityRulesetArgs.builder() - * .name("example") * .ruleset("Rules = [Completeness \"colA\" between 0.4 and 0.8]") * .targetTable(DataQualityRulesetTargetTableArgs.builder() * .databaseName(aws_glue_catalog_database.example().name()) diff --git a/sdk/java/src/main/java/com/pulumi/aws/glue/DataQualityRulesetArgs.java b/sdk/java/src/main/java/com/pulumi/aws/glue/DataQualityRulesetArgs.java index 8063da7840c..bb7f7d6cd55 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/glue/DataQualityRulesetArgs.java +++ b/sdk/java/src/main/java/com/pulumi/aws/glue/DataQualityRulesetArgs.java @@ -36,15 +36,15 @@ public Optional> description() { * Name of the data quality ruleset. * */ - @Import(name="name", required=true) - private Output name; + @Import(name="name") + private @Nullable Output name; /** * @return Name of the data quality ruleset. * */ - public Output name() { - return this.name; + public Optional> name() { + return Optional.ofNullable(this.name); } /** @@ -147,7 +147,7 @@ public Builder description(String description) { * @return builder * */ - public Builder name(Output name) { + public Builder name(@Nullable Output name) { $.name = name; return this; } @@ -226,7 +226,6 @@ public Builder targetTable(DataQualityRulesetTargetTableArgs targetTable) { } public DataQualityRulesetArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); $.ruleset = Objects.requireNonNull($.ruleset, "expected parameter 'ruleset' to be non-null"); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/aws/opensearch/ServerlessAccessPolicy.java b/sdk/java/src/main/java/com/pulumi/aws/opensearch/ServerlessAccessPolicy.java index dbad8e5c0e9..f5945b4b315 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/opensearch/ServerlessAccessPolicy.java +++ b/sdk/java/src/main/java/com/pulumi/aws/opensearch/ServerlessAccessPolicy.java @@ -49,7 +49,6 @@ * final var currentPartition = AwsFunctions.getPartition(); * * var test = new ServerlessAccessPolicy("test", ServerlessAccessPolicyArgs.builder() - * .name("example") * .type("data") * .policy(serializeJson( * jsonArray(jsonObject( diff --git a/sdk/java/src/main/java/com/pulumi/aws/opensearch/ServerlessAccessPolicyArgs.java b/sdk/java/src/main/java/com/pulumi/aws/opensearch/ServerlessAccessPolicyArgs.java index e13cbaac64b..9cf3f6723e6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/opensearch/ServerlessAccessPolicyArgs.java +++ b/sdk/java/src/main/java/com/pulumi/aws/opensearch/ServerlessAccessPolicyArgs.java @@ -34,15 +34,15 @@ public Optional> description() { * Name of the policy. * */ - @Import(name="name", required=true) - private Output name; + @Import(name="name") + private @Nullable Output name; /** * @return Name of the policy. * */ - public Output name() { - return this.name; + public Optional> name() { + return Optional.ofNullable(this.name); } /** @@ -133,7 +133,7 @@ public Builder description(String description) { * @return builder * */ - public Builder name(Output name) { + public Builder name(@Nullable Output name) { $.name = name; return this; } @@ -195,7 +195,6 @@ public Builder type(String type) { } public ServerlessAccessPolicyArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); $.policy = Objects.requireNonNull($.policy, "expected parameter 'policy' to be non-null"); $.type = Objects.requireNonNull($.type, "expected parameter 'type' to be non-null"); return $; diff --git a/sdk/java/src/main/java/com/pulumi/aws/opensearch/ServerlessCollection.java b/sdk/java/src/main/java/com/pulumi/aws/opensearch/ServerlessCollection.java index c3280e3125b..528acabc7b7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/opensearch/ServerlessCollection.java +++ b/sdk/java/src/main/java/com/pulumi/aws/opensearch/ServerlessCollection.java @@ -47,7 +47,6 @@ * * public static void stack(Context ctx) { * var exampleServerlessSecurityPolicy = new ServerlessSecurityPolicy("exampleServerlessSecurityPolicy", ServerlessSecurityPolicyArgs.builder() - * .name("example") * .type("encryption") * .policy(serializeJson( * jsonObject( @@ -59,11 +58,9 @@ * ))) * .build()); * - * var exampleServerlessCollection = new ServerlessCollection("exampleServerlessCollection", ServerlessCollectionArgs.builder() - * .name("example") - * .build(), CustomResourceOptions.builder() - * .dependsOn(exampleServerlessSecurityPolicy) - * .build()); + * var exampleServerlessCollection = new ServerlessCollection("exampleServerlessCollection", ServerlessCollectionArgs.Empty, CustomResourceOptions.builder() + * .dependsOn(exampleServerlessSecurityPolicy) + * .build()); * * } * } @@ -213,7 +210,7 @@ public ServerlessCollection(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public ServerlessCollection(String name, ServerlessCollectionArgs args) { + public ServerlessCollection(String name, @Nullable ServerlessCollectionArgs args) { this(name, args, null); } /** @@ -222,7 +219,7 @@ public ServerlessCollection(String name, ServerlessCollectionArgs args) { * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ - public ServerlessCollection(String name, ServerlessCollectionArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public ServerlessCollection(String name, @Nullable ServerlessCollectionArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("aws:opensearch/serverlessCollection:ServerlessCollection", name, args == null ? ServerlessCollectionArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); } diff --git a/sdk/java/src/main/java/com/pulumi/aws/opensearch/ServerlessCollectionArgs.java b/sdk/java/src/main/java/com/pulumi/aws/opensearch/ServerlessCollectionArgs.java index 95dfd6846a2..69880600c05 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/opensearch/ServerlessCollectionArgs.java +++ b/sdk/java/src/main/java/com/pulumi/aws/opensearch/ServerlessCollectionArgs.java @@ -38,8 +38,8 @@ public Optional> description() { * The following arguments are optional: * */ - @Import(name="name", required=true) - private Output name; + @Import(name="name") + private @Nullable Output name; /** * @return Name of the collection. @@ -47,8 +47,8 @@ public Optional> description() { * The following arguments are optional: * */ - public Output name() { - return this.name; + public Optional> name() { + return Optional.ofNullable(this.name); } /** @@ -145,7 +145,7 @@ public Builder description(String description) { * @return builder * */ - public Builder name(Output name) { + public Builder name(@Nullable Output name) { $.name = name; return this; } @@ -214,7 +214,6 @@ public Builder type(String type) { } public ServerlessCollectionArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/opensearch/ServerlessSecurityConfig.java b/sdk/java/src/main/java/com/pulumi/aws/opensearch/ServerlessSecurityConfig.java index 470013b9e1e..cc2b64f338f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/opensearch/ServerlessSecurityConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/opensearch/ServerlessSecurityConfig.java @@ -43,7 +43,6 @@ * * public static void stack(Context ctx) { * var example = new ServerlessSecurityConfig("example", ServerlessSecurityConfigArgs.builder() - * .name("example") * .type("saml") * .samlOptions(ServerlessSecurityConfigSamlOptionsArgs.builder() * .metadata(Files.readString(Paths.get(String.format("%s/idp-metadata.xml", path.module())))) diff --git a/sdk/java/src/main/java/com/pulumi/aws/opensearch/ServerlessSecurityConfigArgs.java b/sdk/java/src/main/java/com/pulumi/aws/opensearch/ServerlessSecurityConfigArgs.java index 01dcc20271f..704860be814 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/opensearch/ServerlessSecurityConfigArgs.java +++ b/sdk/java/src/main/java/com/pulumi/aws/opensearch/ServerlessSecurityConfigArgs.java @@ -35,15 +35,15 @@ public Optional> description() { * Name of the policy. * */ - @Import(name="name", required=true) - private Output name; + @Import(name="name") + private @Nullable Output name; /** * @return Name of the policy. * */ - public Output name() { - return this.name; + public Optional> name() { + return Optional.ofNullable(this.name); } /** @@ -134,7 +134,7 @@ public Builder description(String description) { * @return builder * */ - public Builder name(Output name) { + public Builder name(@Nullable Output name) { $.name = name; return this; } @@ -196,7 +196,6 @@ public Builder type(String type) { } public ServerlessSecurityConfigArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); $.type = Objects.requireNonNull($.type, "expected parameter 'type' to be non-null"); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/aws/opensearch/ServerlessSecurityPolicy.java b/sdk/java/src/main/java/com/pulumi/aws/opensearch/ServerlessSecurityPolicy.java index 9f358ad8cc6..bd275b3f811 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/opensearch/ServerlessSecurityPolicy.java +++ b/sdk/java/src/main/java/com/pulumi/aws/opensearch/ServerlessSecurityPolicy.java @@ -44,7 +44,6 @@ * * public static void stack(Context ctx) { * var example = new ServerlessSecurityPolicy("example", ServerlessSecurityPolicyArgs.builder() - * .name("example") * .type("encryption") * .description("encryption security policy for example-collection") * .policy(serializeJson( @@ -84,7 +83,6 @@ * * public static void stack(Context ctx) { * var example = new ServerlessSecurityPolicy("example", ServerlessSecurityPolicyArgs.builder() - * .name("example") * .type("encryption") * .description("encryption security policy for collections that begin with \"example\"") * .policy(serializeJson( @@ -124,7 +122,6 @@ * * public static void stack(Context ctx) { * var example = new ServerlessSecurityPolicy("example", ServerlessSecurityPolicyArgs.builder() - * .name("example") * .type("encryption") * .description("encryption security policy using customer KMS key") * .policy(serializeJson( @@ -166,7 +163,6 @@ * * public static void stack(Context ctx) { * var example = new ServerlessSecurityPolicy("example", ServerlessSecurityPolicyArgs.builder() - * .name("example") * .type("network") * .description("Public access") * .policy(serializeJson( @@ -213,7 +209,6 @@ * * public static void stack(Context ctx) { * var example = new ServerlessSecurityPolicy("example", ServerlessSecurityPolicyArgs.builder() - * .name("example") * .type("network") * .description("VPC access") * .policy(serializeJson( @@ -261,7 +256,6 @@ * * public static void stack(Context ctx) { * var example = new ServerlessSecurityPolicy("example", ServerlessSecurityPolicyArgs.builder() - * .name("example") * .type("network") * .description("Mixed access for marketing and sales") * .policy(serializeJson( diff --git a/sdk/java/src/main/java/com/pulumi/aws/opensearch/ServerlessSecurityPolicyArgs.java b/sdk/java/src/main/java/com/pulumi/aws/opensearch/ServerlessSecurityPolicyArgs.java index 9f78ac9aeef..93746b6384b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/opensearch/ServerlessSecurityPolicyArgs.java +++ b/sdk/java/src/main/java/com/pulumi/aws/opensearch/ServerlessSecurityPolicyArgs.java @@ -34,15 +34,15 @@ public Optional> description() { * Name of the policy. * */ - @Import(name="name", required=true) - private Output name; + @Import(name="name") + private @Nullable Output name; /** * @return Name of the policy. * */ - public Output name() { - return this.name; + public Optional> name() { + return Optional.ofNullable(this.name); } /** @@ -133,7 +133,7 @@ public Builder description(String description) { * @return builder * */ - public Builder name(Output name) { + public Builder name(@Nullable Output name) { $.name = name; return this; } @@ -195,7 +195,6 @@ public Builder type(String type) { } public ServerlessSecurityPolicyArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); $.policy = Objects.requireNonNull($.policy, "expected parameter 'policy' to be non-null"); $.type = Objects.requireNonNull($.type, "expected parameter 'type' to be non-null"); return $; diff --git a/sdk/java/src/main/java/com/pulumi/aws/opensearch/ServerlessVpcEndpoint.java b/sdk/java/src/main/java/com/pulumi/aws/opensearch/ServerlessVpcEndpoint.java index 22a4a11f224..281592c1f33 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/opensearch/ServerlessVpcEndpoint.java +++ b/sdk/java/src/main/java/com/pulumi/aws/opensearch/ServerlessVpcEndpoint.java @@ -43,7 +43,6 @@ * * public static void stack(Context ctx) { * var example = new ServerlessVpcEndpoint("example", ServerlessVpcEndpointArgs.builder() - * .name("myendpoint") * .subnetIds(aws_subnet.example().id()) * .vpcId(aws_vpc.example().id()) * .build()); diff --git a/sdk/java/src/main/java/com/pulumi/aws/opensearch/ServerlessVpcEndpointArgs.java b/sdk/java/src/main/java/com/pulumi/aws/opensearch/ServerlessVpcEndpointArgs.java index ded854791ed..1c31d73067d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/opensearch/ServerlessVpcEndpointArgs.java +++ b/sdk/java/src/main/java/com/pulumi/aws/opensearch/ServerlessVpcEndpointArgs.java @@ -21,15 +21,15 @@ public final class ServerlessVpcEndpointArgs extends com.pulumi.resources.Resour * Name of the interface endpoint. * */ - @Import(name="name", required=true) - private Output name; + @Import(name="name") + private @Nullable Output name; /** * @return Name of the interface endpoint. * */ - public Output name() { - return this.name; + public Optional> name() { + return Optional.ofNullable(this.name); } /** @@ -122,7 +122,7 @@ public Builder(ServerlessVpcEndpointArgs defaults) { * @return builder * */ - public Builder name(Output name) { + public Builder name(@Nullable Output name) { $.name = name; return this; } @@ -234,7 +234,6 @@ public Builder vpcId(String vpcId) { } public ServerlessVpcEndpointArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); $.subnetIds = Objects.requireNonNull($.subnetIds, "expected parameter 'subnetIds' to be non-null"); $.vpcId = Objects.requireNonNull($.vpcId, "expected parameter 'vpcId' to be non-null"); return $; diff --git a/sdk/java/src/main/java/com/pulumi/aws/quicksight/Theme.java b/sdk/java/src/main/java/com/pulumi/aws/quicksight/Theme.java index 2e95759378e..953038ad35f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/quicksight/Theme.java +++ b/sdk/java/src/main/java/com/pulumi/aws/quicksight/Theme.java @@ -69,7 +69,6 @@ * "#111111") * .build()) * .build()) - * .name("example") * .themeId("example") * .build()); * diff --git a/sdk/java/src/main/java/com/pulumi/aws/quicksight/ThemeArgs.java b/sdk/java/src/main/java/com/pulumi/aws/quicksight/ThemeArgs.java index aa92df025d4..16a834ab742 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/quicksight/ThemeArgs.java +++ b/sdk/java/src/main/java/com/pulumi/aws/quicksight/ThemeArgs.java @@ -72,15 +72,15 @@ public Optional> configuration() { * Display name of the theme. * */ - @Import(name="name", required=true) - private Output name; + @Import(name="name") + private @Nullable Output name; /** * @return Display name of the theme. * */ - public Output name() { - return this.name; + public Optional> name() { + return Optional.ofNullable(this.name); } /** @@ -247,7 +247,7 @@ public Builder configuration(ThemeConfigurationArgs configuration) { * @return builder * */ - public Builder name(Output name) { + public Builder name(@Nullable Output name) { $.name = name; return this; } @@ -358,7 +358,6 @@ public Builder versionDescription(String versionDescription) { public ThemeArgs build() { $.baseThemeId = Objects.requireNonNull($.baseThemeId, "expected parameter 'baseThemeId' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); $.themeId = Objects.requireNonNull($.themeId, "expected parameter 'themeId' to be non-null"); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/aws/quicksight/VpcConnection.java b/sdk/java/src/main/java/com/pulumi/aws/quicksight/VpcConnection.java index 8ac7ced87fc..3472b6b01b8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/quicksight/VpcConnection.java +++ b/sdk/java/src/main/java/com/pulumi/aws/quicksight/VpcConnection.java @@ -81,7 +81,6 @@ * * var example = new VpcConnection("example", VpcConnectionArgs.builder() * .vpcConnectionId("example-connection-id") - * .name("Example Connection") * .roleArn(vpcConnectionRole.arn()) * .securityGroupIds("sg-00000000000000000") * .subnetIds( diff --git a/sdk/java/src/main/java/com/pulumi/aws/quicksight/VpcConnectionArgs.java b/sdk/java/src/main/java/com/pulumi/aws/quicksight/VpcConnectionArgs.java index f4cb96b5427..d8ec723fa3a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/quicksight/VpcConnectionArgs.java +++ b/sdk/java/src/main/java/com/pulumi/aws/quicksight/VpcConnectionArgs.java @@ -52,15 +52,15 @@ public Optional>> dnsResolvers() { * The display name for the VPC connection. * */ - @Import(name="name", required=true) - private Output name; + @Import(name="name") + private @Nullable Output name; /** * @return The display name for the VPC connection. * */ - public Output name() { - return this.name; + public Optional> name() { + return Optional.ofNullable(this.name); } /** @@ -239,7 +239,7 @@ public Builder dnsResolvers(String... dnsResolvers) { * @return builder * */ - public Builder name(Output name) { + public Builder name(@Nullable Output name) { $.name = name; return this; } @@ -395,7 +395,6 @@ public Builder vpcConnectionId(String vpcConnectionId) { } public VpcConnectionArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); $.roleArn = Objects.requireNonNull($.roleArn, "expected parameter 'roleArn' to be non-null"); $.securityGroupIds = Objects.requireNonNull($.securityGroupIds, "expected parameter 'securityGroupIds' to be non-null"); $.subnetIds = Objects.requireNonNull($.subnetIds, "expected parameter 'subnetIds' to be non-null"); diff --git a/sdk/java/src/main/java/com/pulumi/aws/resourceexplorer/View.java b/sdk/java/src/main/java/com/pulumi/aws/resourceexplorer/View.java index e94b4495cf3..5aea9223d8c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/resourceexplorer/View.java +++ b/sdk/java/src/main/java/com/pulumi/aws/resourceexplorer/View.java @@ -54,7 +54,6 @@ * .build()); * * var exampleView = new View("exampleView", ViewArgs.builder() - * .name("exampleview") * .filters(ViewFiltersArgs.builder() * .filterString("resourcetype:ec2:instance") * .build()) @@ -191,7 +190,7 @@ public View(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public View(String name, ViewArgs args) { + public View(String name, @Nullable ViewArgs args) { this(name, args, null); } /** @@ -200,7 +199,7 @@ public View(String name, ViewArgs args) { * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ - public View(String name, ViewArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public View(String name, @Nullable ViewArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("aws:resourceexplorer/view:View", name, args == null ? ViewArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); } diff --git a/sdk/java/src/main/java/com/pulumi/aws/resourceexplorer/ViewArgs.java b/sdk/java/src/main/java/com/pulumi/aws/resourceexplorer/ViewArgs.java index 8d2aaee001c..f46279c2d47 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/resourceexplorer/ViewArgs.java +++ b/sdk/java/src/main/java/com/pulumi/aws/resourceexplorer/ViewArgs.java @@ -69,15 +69,15 @@ public Optional>> includedProperties() { * The name of the view. The name must be no more than 64 characters long, and can include letters, digits, and the dash (-) character. The name must be unique within its AWS Region. * */ - @Import(name="name", required=true) - private Output name; + @Import(name="name") + private @Nullable Output name; /** * @return The name of the view. The name must be no more than 64 characters long, and can include letters, digits, and the dash (-) character. The name must be unique within its AWS Region. * */ - public Output name() { - return this.name; + public Optional> name() { + return Optional.ofNullable(this.name); } /** @@ -202,7 +202,7 @@ public Builder includedProperties(ViewIncludedPropertyArgs... includedProperties * @return builder * */ - public Builder name(Output name) { + public Builder name(@Nullable Output name) { $.name = name; return this; } @@ -239,7 +239,6 @@ public Builder tags(Map tags) { } public ViewArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/route53/CidrCollection.java b/sdk/java/src/main/java/com/pulumi/aws/route53/CidrCollection.java index 923a74dc530..439c8872db8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/route53/CidrCollection.java +++ b/sdk/java/src/main/java/com/pulumi/aws/route53/CidrCollection.java @@ -25,7 +25,6 @@ * import com.pulumi.Pulumi; * import com.pulumi.core.Output; * import com.pulumi.aws.route53.CidrCollection; - * import com.pulumi.aws.route53.CidrCollectionArgs; * import java.util.List; * import java.util.ArrayList; * import java.util.Map; @@ -39,9 +38,7 @@ * } * * public static void stack(Context ctx) { - * var example = new CidrCollection("example", CidrCollectionArgs.builder() - * .name("collection-1") - * .build()); + * var example = new CidrCollection("example"); * * } * } @@ -113,7 +110,7 @@ public CidrCollection(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public CidrCollection(String name, CidrCollectionArgs args) { + public CidrCollection(String name, @Nullable CidrCollectionArgs args) { this(name, args, null); } /** @@ -122,7 +119,7 @@ public CidrCollection(String name, CidrCollectionArgs args) { * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ - public CidrCollection(String name, CidrCollectionArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public CidrCollection(String name, @Nullable CidrCollectionArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("aws:route53/cidrCollection:CidrCollection", name, args == null ? CidrCollectionArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); } diff --git a/sdk/java/src/main/java/com/pulumi/aws/route53/CidrCollectionArgs.java b/sdk/java/src/main/java/com/pulumi/aws/route53/CidrCollectionArgs.java index 1c2519e6227..1e1e5d7d171 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/route53/CidrCollectionArgs.java +++ b/sdk/java/src/main/java/com/pulumi/aws/route53/CidrCollectionArgs.java @@ -7,6 +7,8 @@ import com.pulumi.core.annotations.Import; import java.lang.String; import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; public final class CidrCollectionArgs extends com.pulumi.resources.ResourceArgs { @@ -17,15 +19,15 @@ public final class CidrCollectionArgs extends com.pulumi.resources.ResourceArgs * Unique name for the CIDR collection. * */ - @Import(name="name", required=true) - private Output name; + @Import(name="name") + private @Nullable Output name; /** * @return Unique name for the CIDR collection. * */ - public Output name() { - return this.name; + public Optional> name() { + return Optional.ofNullable(this.name); } private CidrCollectionArgs() {} @@ -58,7 +60,7 @@ public Builder(CidrCollectionArgs defaults) { * @return builder * */ - public Builder name(Output name) { + public Builder name(@Nullable Output name) { $.name = name; return this; } @@ -74,7 +76,6 @@ public Builder name(String name) { } public CidrCollectionArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/route53/CidrLocation.java b/sdk/java/src/main/java/com/pulumi/aws/route53/CidrLocation.java index 8b1e6faf0b0..7d779ea4414 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/route53/CidrLocation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/route53/CidrLocation.java @@ -25,7 +25,6 @@ * import com.pulumi.Pulumi; * import com.pulumi.core.Output; * import com.pulumi.aws.route53.CidrCollection; - * import com.pulumi.aws.route53.CidrCollectionArgs; * import com.pulumi.aws.route53.CidrLocation; * import com.pulumi.aws.route53.CidrLocationArgs; * import java.util.List; @@ -41,13 +40,10 @@ * } * * public static void stack(Context ctx) { - * var exampleCidrCollection = new CidrCollection("exampleCidrCollection", CidrCollectionArgs.builder() - * .name("collection-1") - * .build()); + * var exampleCidrCollection = new CidrCollection("exampleCidrCollection"); * * var exampleCidrLocation = new CidrLocation("exampleCidrLocation", CidrLocationArgs.builder() * .cidrCollectionId(exampleCidrCollection.id()) - * .name("office") * .cidrBlocks( * "200.5.3.0/24", * "200.6.3.0/24") diff --git a/sdk/java/src/main/java/com/pulumi/aws/route53/CidrLocationArgs.java b/sdk/java/src/main/java/com/pulumi/aws/route53/CidrLocationArgs.java index df9fa6dd6b1..37496cd0341 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/route53/CidrLocationArgs.java +++ b/sdk/java/src/main/java/com/pulumi/aws/route53/CidrLocationArgs.java @@ -8,6 +8,8 @@ import java.lang.String; import java.util.List; import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; public final class CidrLocationArgs extends com.pulumi.resources.ResourceArgs { @@ -48,15 +50,15 @@ public Output cidrCollectionId() { * Name for the CIDR location. * */ - @Import(name="name", required=true) - private Output name; + @Import(name="name") + private @Nullable Output name; /** * @return Name for the CIDR location. * */ - public Output name() { - return this.name; + public Optional> name() { + return Optional.ofNullable(this.name); } private CidrLocationArgs() {} @@ -143,7 +145,7 @@ public Builder cidrCollectionId(String cidrCollectionId) { * @return builder * */ - public Builder name(Output name) { + public Builder name(@Nullable Output name) { $.name = name; return this; } @@ -161,7 +163,6 @@ public Builder name(String name) { public CidrLocationArgs build() { $.cidrBlocks = Objects.requireNonNull($.cidrBlocks, "expected parameter 'cidrBlocks' to be non-null"); $.cidrCollectionId = Objects.requireNonNull($.cidrCollectionId, "expected parameter 'cidrCollectionId' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/sfn/Alias.java b/sdk/java/src/main/java/com/pulumi/aws/sfn/Alias.java index ecffbeae232..6f5e57816b9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/sfn/Alias.java +++ b/sdk/java/src/main/java/com/pulumi/aws/sfn/Alias.java @@ -44,7 +44,6 @@ * * public static void stack(Context ctx) { * var sfnAlias = new Alias("sfnAlias", AliasArgs.builder() - * .name("my_sfn_alias") * .routingConfigurations(AliasRoutingConfigurationArgs.builder() * .stateMachineVersionArn(aws_sfn_state_machine.sfn_test().state_machine_version_arn()) * .weight(100) @@ -52,7 +51,6 @@ * .build()); * * var mySfnAlias = new Alias("mySfnAlias", AliasArgs.builder() - * .name("my_sfn_alias") * .routingConfigurations( * AliasRoutingConfigurationArgs.builder() * .stateMachineVersionArn("arn:aws:states:us-east-1:12345:stateMachine:demo:3") diff --git a/sdk/java/src/main/java/com/pulumi/aws/sfn/AliasArgs.java b/sdk/java/src/main/java/com/pulumi/aws/sfn/AliasArgs.java index 858b8e3e6c0..e8725fd8e0c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/sfn/AliasArgs.java +++ b/sdk/java/src/main/java/com/pulumi/aws/sfn/AliasArgs.java @@ -36,15 +36,15 @@ public Optional> description() { * Name for the alias you are creating. * */ - @Import(name="name", required=true) - private Output name; + @Import(name="name") + private @Nullable Output name; /** * @return Name for the alias you are creating. * */ - public Output name() { - return this.name; + public Optional> name() { + return Optional.ofNullable(this.name); } /** @@ -115,7 +115,7 @@ public Builder description(String description) { * @return builder * */ - public Builder name(Output name) { + public Builder name(@Nullable Output name) { $.name = name; return this; } @@ -162,7 +162,6 @@ public Builder routingConfigurations(AliasRoutingConfigurationArgs... routingCon } public AliasArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); $.routingConfigurations = Objects.requireNonNull($.routingConfigurations, "expected parameter 'routingConfigurations' to be non-null"); return $; } diff --git a/sdk/nodejs/appintegrations/dataIntegration.ts b/sdk/nodejs/appintegrations/dataIntegration.ts index aeed39f8673..8862821e994 100644 --- a/sdk/nodejs/appintegrations/dataIntegration.ts +++ b/sdk/nodejs/appintegrations/dataIntegration.ts @@ -17,7 +17,6 @@ import * as utilities from "../utilities"; * import * as aws from "@pulumi/aws"; * * const example = new aws.appintegrations.DataIntegration("example", { - * name: "example", * description: "example", * kmsKey: aws_kms_key.test.arn, * sourceUri: "Salesforce://AppFlow/example", @@ -127,9 +126,6 @@ export class DataIntegration extends pulumi.CustomResource { if ((!args || args.kmsKey === undefined) && !opts.urn) { throw new Error("Missing required property 'kmsKey'"); } - if ((!args || args.name === undefined) && !opts.urn) { - throw new Error("Missing required property 'name'"); - } if ((!args || args.scheduleConfig === undefined) && !opts.urn) { throw new Error("Missing required property 'scheduleConfig'"); } @@ -203,7 +199,7 @@ export interface DataIntegrationArgs { /** * Specifies the name of the Data Integration. */ - name: pulumi.Input; + name?: pulumi.Input; /** * A block that defines the name of the data and how often it should be pulled from the source. The Schedule Config block is documented below. */ diff --git a/sdk/nodejs/auditmanager/assessment.ts b/sdk/nodejs/auditmanager/assessment.ts index b4c043935e7..3427a2c7548 100644 --- a/sdk/nodejs/auditmanager/assessment.ts +++ b/sdk/nodejs/auditmanager/assessment.ts @@ -18,7 +18,6 @@ import * as utilities from "../utilities"; * import * as aws from "@pulumi/aws"; * * const test = new aws.auditmanager.Assessment("test", { - * name: "example", * assessmentReportsDestination: { * destination: `s3://${aws_s3_bucket.test.id}`, * destinationType: "S3", @@ -148,9 +147,6 @@ export class Assessment extends pulumi.CustomResource { if ((!args || args.frameworkId === undefined) && !opts.urn) { throw new Error("Missing required property 'frameworkId'"); } - if ((!args || args.name === undefined) && !opts.urn) { - throw new Error("Missing required property 'name'"); - } if ((!args || args.roles === undefined) && !opts.urn) { throw new Error("Missing required property 'roles'"); } @@ -239,7 +235,7 @@ export interface AssessmentArgs { /** * Name of the assessment. */ - name: pulumi.Input; + name?: pulumi.Input; /** * List of roles for the assessment. See `roles` below. */ diff --git a/sdk/nodejs/auditmanager/assessmentReport.ts b/sdk/nodejs/auditmanager/assessmentReport.ts index f0382db094a..1665cadbb11 100644 --- a/sdk/nodejs/auditmanager/assessmentReport.ts +++ b/sdk/nodejs/auditmanager/assessmentReport.ts @@ -14,10 +14,7 @@ import * as utilities from "../utilities"; * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * - * const test = new aws.auditmanager.AssessmentReport("test", { - * name: "example", - * assessmentId: aws_auditmanager_assessment.test.id, - * }); + * const test = new aws.auditmanager.AssessmentReport("test", {assessmentId: aws_auditmanager_assessment.test.id}); * ``` * * ## Import @@ -102,9 +99,6 @@ export class AssessmentReport extends pulumi.CustomResource { if ((!args || args.assessmentId === undefined) && !opts.urn) { throw new Error("Missing required property 'assessmentId'"); } - if ((!args || args.name === undefined) && !opts.urn) { - throw new Error("Missing required property 'name'"); - } resourceInputs["assessmentId"] = args ? args.assessmentId : undefined; resourceInputs["description"] = args ? args.description : undefined; resourceInputs["name"] = args ? args.name : undefined; @@ -161,5 +155,5 @@ export interface AssessmentReportArgs { /** * Name of the assessment report. */ - name: pulumi.Input; + name?: pulumi.Input; } diff --git a/sdk/nodejs/auditmanager/control.ts b/sdk/nodejs/auditmanager/control.ts index a6158431ad9..abb3cba5c57 100644 --- a/sdk/nodejs/auditmanager/control.ts +++ b/sdk/nodejs/auditmanager/control.ts @@ -17,14 +17,11 @@ import * as utilities from "../utilities"; * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * - * const example = new aws.auditmanager.Control("example", { - * controlMappingSources: [{ - * sourceName: "example", - * sourceSetUpOption: "Procedural_Controls_Mapping", - * sourceType: "MANUAL", - * }], - * name: "example", - * }); + * const example = new aws.auditmanager.Control("example", {controlMappingSources: [{ + * sourceName: "example", + * sourceSetUpOption: "Procedural_Controls_Mapping", + * sourceType: "MANUAL", + * }]}); * ``` * * ## Import @@ -111,7 +108,7 @@ export class Control extends pulumi.CustomResource { * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ - constructor(name: string, args: ControlArgs, opts?: pulumi.CustomResourceOptions) + constructor(name: string, args?: ControlArgs, opts?: pulumi.CustomResourceOptions) constructor(name: string, argsOrState?: ControlArgs | ControlState, opts?: pulumi.CustomResourceOptions) { let resourceInputs: pulumi.Inputs = {}; opts = opts || {}; @@ -129,9 +126,6 @@ export class Control extends pulumi.CustomResource { resourceInputs["type"] = state ? state.type : undefined; } else { const args = argsOrState as ControlArgs | undefined; - if ((!args || args.name === undefined) && !opts.urn) { - throw new Error("Missing required property 'name'"); - } resourceInputs["actionPlanInstructions"] = args ? args.actionPlanInstructions : undefined; resourceInputs["actionPlanTitle"] = args ? args.actionPlanTitle : undefined; resourceInputs["controlMappingSources"] = args ? args.controlMappingSources : undefined; @@ -219,7 +213,7 @@ export interface ControlArgs { /** * Name of the control. */ - name: pulumi.Input; + name?: pulumi.Input; /** * A map of tags to assign to the control. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. */ diff --git a/sdk/nodejs/auditmanager/framework.ts b/sdk/nodejs/auditmanager/framework.ts index e65b8408e70..7942c49f02a 100644 --- a/sdk/nodejs/auditmanager/framework.ts +++ b/sdk/nodejs/auditmanager/framework.ts @@ -17,15 +17,12 @@ import * as utilities from "../utilities"; * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * - * const test = new aws.auditmanager.Framework("test", { + * const test = new aws.auditmanager.Framework("test", {controlSets: [{ * name: "example", - * controlSets: [{ - * name: "example", - * controls: [{ - * id: aws_auditmanager_control.test.id, - * }], + * controls: [{ + * id: aws_auditmanager_control.test.id, * }], - * }); + * }]}); * ``` * * ## Import @@ -104,7 +101,7 @@ export class Framework extends pulumi.CustomResource { * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ - constructor(name: string, args: FrameworkArgs, opts?: pulumi.CustomResourceOptions) + constructor(name: string, args?: FrameworkArgs, opts?: pulumi.CustomResourceOptions) constructor(name: string, argsOrState?: FrameworkArgs | FrameworkState, opts?: pulumi.CustomResourceOptions) { let resourceInputs: pulumi.Inputs = {}; opts = opts || {}; @@ -120,9 +117,6 @@ export class Framework extends pulumi.CustomResource { resourceInputs["tagsAll"] = state ? state.tagsAll : undefined; } else { const args = argsOrState as FrameworkArgs | undefined; - if ((!args || args.name === undefined) && !opts.urn) { - throw new Error("Missing required property 'name'"); - } resourceInputs["complianceType"] = args ? args.complianceType : undefined; resourceInputs["controlSets"] = args ? args.controlSets : undefined; resourceInputs["description"] = args ? args.description : undefined; @@ -196,7 +190,7 @@ export interface FrameworkArgs { /** * Name of the framework. */ - name: pulumi.Input; + name?: pulumi.Input; /** * A map of tags to assign to the framework. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. */ diff --git a/sdk/nodejs/auditmanager/getControl.ts b/sdk/nodejs/auditmanager/getControl.ts index f0bc2e22840..e31a6b8b1f9 100644 --- a/sdk/nodejs/auditmanager/getControl.ts +++ b/sdk/nodejs/auditmanager/getControl.ts @@ -36,23 +36,20 @@ import * as utilities from "../utilities"; * name: "2. Personnel", * type: "Standard", * }); - * const exampleFramework = new aws.auditmanager.Framework("exampleFramework", { - * name: "example", - * controlSets: [ - * { - * name: "example", - * controls: [{ - * id: exampleControl.then(exampleControl => exampleControl.id), - * }], - * }, - * { - * name: "example2", - * controls: [{ - * id: example2.then(example2 => example2.id), - * }], - * }, - * ], - * }); + * const exampleFramework = new aws.auditmanager.Framework("exampleFramework", {controlSets: [ + * { + * name: "example", + * controls: [{ + * id: exampleControl.then(exampleControl => exampleControl.id), + * }], + * }, + * { + * name: "example2", + * controls: [{ + * id: example2.then(example2 => example2.id), + * }], + * }, + * ]}); * ``` */ export function getControl(args: GetControlArgs, opts?: pulumi.InvokeOptions): Promise { @@ -124,23 +121,20 @@ export interface GetControlResult { * name: "2. Personnel", * type: "Standard", * }); - * const exampleFramework = new aws.auditmanager.Framework("exampleFramework", { - * name: "example", - * controlSets: [ - * { - * name: "example", - * controls: [{ - * id: exampleControl.then(exampleControl => exampleControl.id), - * }], - * }, - * { - * name: "example2", - * controls: [{ - * id: example2.then(example2 => example2.id), - * }], - * }, - * ], - * }); + * const exampleFramework = new aws.auditmanager.Framework("exampleFramework", {controlSets: [ + * { + * name: "example", + * controls: [{ + * id: exampleControl.then(exampleControl => exampleControl.id), + * }], + * }, + * { + * name: "example2", + * controls: [{ + * id: example2.then(example2 => example2.id), + * }], + * }, + * ]}); * ``` */ export function getControlOutput(args: GetControlOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { diff --git a/sdk/nodejs/chime/sdkvoiceSipMediaApplication.ts b/sdk/nodejs/chime/sdkvoiceSipMediaApplication.ts index 8d06c5875cf..27efb876e3b 100644 --- a/sdk/nodejs/chime/sdkvoiceSipMediaApplication.ts +++ b/sdk/nodejs/chime/sdkvoiceSipMediaApplication.ts @@ -19,7 +19,6 @@ import * as utilities from "../utilities"; * * const example = new aws.chime.SdkvoiceSipMediaApplication("example", { * awsRegion: "us-east-1", - * name: "example-sip-media-application", * endpoints: { * lambdaArn: aws_lambda_function.test.arn, * }, @@ -116,9 +115,6 @@ export class SdkvoiceSipMediaApplication extends pulumi.CustomResource { if ((!args || args.endpoints === undefined) && !opts.urn) { throw new Error("Missing required property 'endpoints'"); } - if ((!args || args.name === undefined) && !opts.urn) { - throw new Error("Missing required property 'name'"); - } resourceInputs["awsRegion"] = args ? args.awsRegion : undefined; resourceInputs["endpoints"] = args ? args.endpoints : undefined; resourceInputs["name"] = args ? args.name : undefined; @@ -180,7 +176,7 @@ export interface SdkvoiceSipMediaApplicationArgs { * * The following arguments are optional: */ - name: pulumi.Input; + name?: pulumi.Input; /** * Key-value mapping of resource tags. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. */ diff --git a/sdk/nodejs/chime/sdkvoiceSipRule.ts b/sdk/nodejs/chime/sdkvoiceSipRule.ts index b822e0f472b..5e78887439e 100644 --- a/sdk/nodejs/chime/sdkvoiceSipRule.ts +++ b/sdk/nodejs/chime/sdkvoiceSipRule.ts @@ -18,7 +18,6 @@ import * as utilities from "../utilities"; * import * as aws from "@pulumi/aws"; * * const example = new aws.chime.SdkvoiceSipRule("example", { - * name: "example-sip-rule", * triggerType: "RequestUriHostname", * triggerValue: aws_chime_voice_connector["example-voice-connector"].outbound_host_name, * targetApplications: [{ @@ -108,9 +107,6 @@ export class SdkvoiceSipRule extends pulumi.CustomResource { resourceInputs["triggerValue"] = state ? state.triggerValue : undefined; } else { const args = argsOrState as SdkvoiceSipRuleArgs | undefined; - if ((!args || args.name === undefined) && !opts.urn) { - throw new Error("Missing required property 'name'"); - } if ((!args || args.targetApplications === undefined) && !opts.urn) { throw new Error("Missing required property 'targetApplications'"); } @@ -170,7 +166,7 @@ export interface SdkvoiceSipRuleArgs { /** * The name of the SIP rule. */ - name: pulumi.Input; + name?: pulumi.Input; /** * List of SIP media applications with priority and AWS Region. Only one SIP application per AWS Region can be used. See `targetApplications`. */ diff --git a/sdk/nodejs/chime/sdkvoiceVoiceProfileDomain.ts b/sdk/nodejs/chime/sdkvoiceVoiceProfileDomain.ts index ca8da4d63b6..b939304afed 100644 --- a/sdk/nodejs/chime/sdkvoiceVoiceProfileDomain.ts +++ b/sdk/nodejs/chime/sdkvoiceVoiceProfileDomain.ts @@ -22,7 +22,6 @@ import * as utilities from "../utilities"; * deletionWindowInDays: 7, * }); * const exampleSdkvoiceVoiceProfileDomain = new aws.chime.SdkvoiceVoiceProfileDomain("exampleSdkvoiceVoiceProfileDomain", { - * name: "ExampleVoiceProfileDomain", * serverSideEncryptionConfiguration: { * kmsKeyArn: exampleKey.arn, * }, @@ -109,9 +108,6 @@ export class SdkvoiceVoiceProfileDomain extends pulumi.CustomResource { resourceInputs["tagsAll"] = state ? state.tagsAll : undefined; } else { const args = argsOrState as SdkvoiceVoiceProfileDomainArgs | undefined; - if ((!args || args.name === undefined) && !opts.urn) { - throw new Error("Missing required property 'name'"); - } if ((!args || args.serverSideEncryptionConfiguration === undefined) && !opts.urn) { throw new Error("Missing required property 'serverSideEncryptionConfiguration'"); } @@ -162,7 +158,7 @@ export interface SdkvoiceVoiceProfileDomainArgs { /** * Name of Voice Profile Domain. */ - name: pulumi.Input; + name?: pulumi.Input; /** * Configuration for server side encryption. */ diff --git a/sdk/nodejs/cleanrooms/collaboration.ts b/sdk/nodejs/cleanrooms/collaboration.ts index 8677e8ab63a..118843eba39 100644 --- a/sdk/nodejs/cleanrooms/collaboration.ts +++ b/sdk/nodejs/cleanrooms/collaboration.ts @@ -36,7 +36,6 @@ import * as utilities from "../utilities"; * displayName: "Other member", * memberAbilities: [], * }], - * name: "pulumi-example-collaboration", * queryLogStatus: "DISABLED", * tags: { * Project: "Pulumi", @@ -170,9 +169,6 @@ export class Collaboration extends pulumi.CustomResource { if ((!args || args.description === undefined) && !opts.urn) { throw new Error("Missing required property 'description'"); } - if ((!args || args.name === undefined) && !opts.urn) { - throw new Error("Missing required property 'name'"); - } if ((!args || args.queryLogStatus === undefined) && !opts.urn) { throw new Error("Missing required property 'queryLogStatus'"); } @@ -303,7 +299,7 @@ export interface CollaborationArgs { /** * The name of the collaboration. Collaboration names do not need to be unique. */ - name: pulumi.Input; + name?: pulumi.Input; /** * Determines if members of the collaboration can enable query logs within their own * emberships. Valid values [may be found here](https://docs.aws.amazon.com/clean-rooms/latest/apireference/API_CreateCollaboration.html#API-Cr diff --git a/sdk/nodejs/cloudfront/fieldLevelEncryptionProfile.ts b/sdk/nodejs/cloudfront/fieldLevelEncryptionProfile.ts index 66f7305588a..2bd51f75e72 100644 --- a/sdk/nodejs/cloudfront/fieldLevelEncryptionProfile.ts +++ b/sdk/nodejs/cloudfront/fieldLevelEncryptionProfile.ts @@ -20,7 +20,6 @@ import * as utilities from "../utilities"; * const example = new aws.cloudfront.PublicKey("example", { * comment: "test public key", * encodedKey: fs.readFileSync("public_key.pem"), - * name: "test_key", * }); * const test = new aws.cloudfront.FieldLevelEncryptionProfile("test", { * comment: "test comment", diff --git a/sdk/nodejs/cloudfront/keyGroup.ts b/sdk/nodejs/cloudfront/keyGroup.ts index 3ad0c5eac79..c8a31444577 100644 --- a/sdk/nodejs/cloudfront/keyGroup.ts +++ b/sdk/nodejs/cloudfront/keyGroup.ts @@ -17,7 +17,6 @@ import * as utilities from "../utilities"; * const examplePublicKey = new aws.cloudfront.PublicKey("examplePublicKey", { * comment: "example public key", * encodedKey: fs.readFileSync("public_key.pem"), - * name: "example-key", * }); * const exampleKeyGroup = new aws.cloudfront.KeyGroup("exampleKeyGroup", { * comment: "example key group", diff --git a/sdk/nodejs/cloudfront/publicKey.ts b/sdk/nodejs/cloudfront/publicKey.ts index 6dd6ece0a38..8424532bd8b 100644 --- a/sdk/nodejs/cloudfront/publicKey.ts +++ b/sdk/nodejs/cloudfront/publicKey.ts @@ -17,7 +17,6 @@ import * as utilities from "../utilities"; * const example = new aws.cloudfront.PublicKey("example", { * comment: "test public key", * encodedKey: fs.readFileSync("public_key.pem"), - * name: "test_key", * }); * ``` * diff --git a/sdk/nodejs/emrcontainers/jobTemplate.ts b/sdk/nodejs/emrcontainers/jobTemplate.ts index d62177b8201..1ce32bc7151 100644 --- a/sdk/nodejs/emrcontainers/jobTemplate.ts +++ b/sdk/nodejs/emrcontainers/jobTemplate.ts @@ -17,18 +17,15 @@ import * as utilities from "../utilities"; * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * - * const example = new aws.emrcontainers.JobTemplate("example", { - * jobTemplateData: { - * executionRoleArn: aws_iam_role.example.arn, - * releaseLabel: "emr-6.10.0-latest", - * jobDriver: { - * sparkSqlJobDriver: { - * entryPoint: "default", - * }, + * const example = new aws.emrcontainers.JobTemplate("example", {jobTemplateData: { + * executionRoleArn: aws_iam_role.example.arn, + * releaseLabel: "emr-6.10.0-latest", + * jobDriver: { + * sparkSqlJobDriver: { + * entryPoint: "default", * }, * }, - * name: "example", - * }); + * }}); * ``` * * ## Import @@ -116,9 +113,6 @@ export class JobTemplate extends pulumi.CustomResource { if ((!args || args.jobTemplateData === undefined) && !opts.urn) { throw new Error("Missing required property 'jobTemplateData'"); } - if ((!args || args.name === undefined) && !opts.urn) { - throw new Error("Missing required property 'name'"); - } resourceInputs["jobTemplateData"] = args ? args.jobTemplateData : undefined; resourceInputs["kmsKeyArn"] = args ? args.kmsKeyArn : undefined; resourceInputs["name"] = args ? args.name : undefined; @@ -176,7 +170,7 @@ export interface JobTemplateArgs { /** * The specified name of the job template. */ - name: pulumi.Input; + name?: pulumi.Input; /** * Key-value mapping of resource tags. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. */ diff --git a/sdk/nodejs/finspace/kxCluster.ts b/sdk/nodejs/finspace/kxCluster.ts index 46a81b5b30b..911c238a6a7 100644 --- a/sdk/nodejs/finspace/kxCluster.ts +++ b/sdk/nodejs/finspace/kxCluster.ts @@ -194,9 +194,6 @@ export class KxCluster extends pulumi.CustomResource { if ((!args || args.environmentId === undefined) && !opts.urn) { throw new Error("Missing required property 'environmentId'"); } - if ((!args || args.name === undefined) && !opts.urn) { - throw new Error("Missing required property 'name'"); - } if ((!args || args.releaseLabel === undefined) && !opts.urn) { throw new Error("Missing required property 'releaseLabel'"); } @@ -396,7 +393,7 @@ export interface KxClusterArgs { /** * Unique name for the cluster that you want to create. */ - name: pulumi.Input; + name?: pulumi.Input; /** * Version of FinSpace Managed kdb to run. */ diff --git a/sdk/nodejs/finspace/kxDatabase.ts b/sdk/nodejs/finspace/kxDatabase.ts index 3d8ea92a476..f80f85bdcfd 100644 --- a/sdk/nodejs/finspace/kxDatabase.ts +++ b/sdk/nodejs/finspace/kxDatabase.ts @@ -18,13 +18,9 @@ import * as utilities from "../utilities"; * description: "Example KMS Key", * deletionWindowInDays: 7, * }); - * const exampleKxEnvironment = new aws.finspace.KxEnvironment("exampleKxEnvironment", { - * name: "my-tf-kx-environment", - * kmsKeyId: exampleKey.arn, - * }); + * const exampleKxEnvironment = new aws.finspace.KxEnvironment("exampleKxEnvironment", {kmsKeyId: exampleKey.arn}); * const exampleKxDatabase = new aws.finspace.KxDatabase("exampleKxDatabase", { * environmentId: exampleKxEnvironment.id, - * name: "my-tf-kx-database", * description: "Example database description", * }); * ``` @@ -126,9 +122,6 @@ export class KxDatabase extends pulumi.CustomResource { if ((!args || args.environmentId === undefined) && !opts.urn) { throw new Error("Missing required property 'environmentId'"); } - if ((!args || args.name === undefined) && !opts.urn) { - throw new Error("Missing required property 'name'"); - } resourceInputs["description"] = args ? args.description : undefined; resourceInputs["environmentId"] = args ? args.environmentId : undefined; resourceInputs["name"] = args ? args.name : undefined; @@ -200,7 +193,7 @@ export interface KxDatabaseArgs { * * The following arguments are optional: */ - name: pulumi.Input; + name?: pulumi.Input; /** * Key-value mapping of resource tags. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. */ diff --git a/sdk/nodejs/finspace/kxEnvironment.ts b/sdk/nodejs/finspace/kxEnvironment.ts index ad06b559fb1..7392d9aa54c 100644 --- a/sdk/nodejs/finspace/kxEnvironment.ts +++ b/sdk/nodejs/finspace/kxEnvironment.ts @@ -21,10 +21,7 @@ import * as utilities from "../utilities"; * description: "Sample KMS Key", * deletionWindowInDays: 7, * }); - * const exampleKxEnvironment = new aws.finspace.KxEnvironment("exampleKxEnvironment", { - * name: "my-tf-kx-environment", - * kmsKeyId: exampleKey.arn, - * }); + * const exampleKxEnvironment = new aws.finspace.KxEnvironment("exampleKxEnvironment", {kmsKeyId: exampleKey.arn}); * ``` * ### With Network Setup * @@ -38,7 +35,6 @@ import * as utilities from "../utilities"; * }); * const exampleTransitGateway = new aws.ec2transitgateway.TransitGateway("exampleTransitGateway", {description: "example"}); * const exampleEnv = new aws.finspace.KxEnvironment("exampleEnv", { - * name: "my-tf-kx-environment", * description: "Environment description", * kmsKeyId: exampleKey.arn, * transitGatewayConfiguration: { @@ -174,9 +170,6 @@ export class KxEnvironment extends pulumi.CustomResource { if ((!args || args.kmsKeyId === undefined) && !opts.urn) { throw new Error("Missing required property 'kmsKeyId'"); } - if ((!args || args.name === undefined) && !opts.urn) { - throw new Error("Missing required property 'name'"); - } resourceInputs["customDnsConfigurations"] = args ? args.customDnsConfigurations : undefined; resourceInputs["description"] = args ? args.description : undefined; resourceInputs["kmsKeyId"] = args ? args.kmsKeyId : undefined; @@ -277,7 +270,7 @@ export interface KxEnvironmentArgs { /** * Name of the KX environment that you want to create. */ - name: pulumi.Input; + name?: pulumi.Input; /** * Key-value mapping of resource tags. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. */ diff --git a/sdk/nodejs/finspace/kxUser.ts b/sdk/nodejs/finspace/kxUser.ts index 1487dd1f705..b5c20469c28 100644 --- a/sdk/nodejs/finspace/kxUser.ts +++ b/sdk/nodejs/finspace/kxUser.ts @@ -18,10 +18,7 @@ import * as utilities from "../utilities"; * description: "Example KMS Key", * deletionWindowInDays: 7, * }); - * const exampleKxEnvironment = new aws.finspace.KxEnvironment("exampleKxEnvironment", { - * name: "my-tf-kx-environment", - * kmsKeyId: exampleKey.arn, - * }); + * const exampleKxEnvironment = new aws.finspace.KxEnvironment("exampleKxEnvironment", {kmsKeyId: exampleKey.arn}); * const exampleRole = new aws.iam.Role("exampleRole", {assumeRolePolicy: JSON.stringify({ * Version: "2012-10-17", * Statement: [{ @@ -34,7 +31,6 @@ import * as utilities from "../utilities"; * }], * })}); * const exampleKxUser = new aws.finspace.KxUser("exampleKxUser", { - * name: "my-tf-kx-user", * environmentId: exampleKxEnvironment.id, * iamRole: exampleRole.arn, * }); @@ -130,9 +126,6 @@ export class KxUser extends pulumi.CustomResource { if ((!args || args.iamRole === undefined) && !opts.urn) { throw new Error("Missing required property 'iamRole'"); } - if ((!args || args.name === undefined) && !opts.urn) { - throw new Error("Missing required property 'name'"); - } resourceInputs["environmentId"] = args ? args.environmentId : undefined; resourceInputs["iamRole"] = args ? args.iamRole : undefined; resourceInputs["name"] = args ? args.name : undefined; @@ -194,7 +187,7 @@ export interface KxUserArgs { /** * A unique identifier for the user. */ - name: pulumi.Input; + name?: pulumi.Input; /** * Key-value mapping of resource tags. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. */ diff --git a/sdk/nodejs/globalaccelerator/customRoutingAccelerator.ts b/sdk/nodejs/globalaccelerator/customRoutingAccelerator.ts index ff95a3e0070..19687dc8ce5 100644 --- a/sdk/nodejs/globalaccelerator/customRoutingAccelerator.ts +++ b/sdk/nodejs/globalaccelerator/customRoutingAccelerator.ts @@ -25,7 +25,6 @@ import * as utilities from "../utilities"; * enabled: true, * ipAddressType: "IPV4", * ipAddresses: ["1.2.3.4"], - * name: "Example", * }); * ``` * @@ -115,7 +114,7 @@ export class CustomRoutingAccelerator extends pulumi.CustomResource { * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ - constructor(name: string, args: CustomRoutingAcceleratorArgs, opts?: pulumi.CustomResourceOptions) + constructor(name: string, args?: CustomRoutingAcceleratorArgs, opts?: pulumi.CustomResourceOptions) constructor(name: string, argsOrState?: CustomRoutingAcceleratorArgs | CustomRoutingAcceleratorState, opts?: pulumi.CustomResourceOptions) { let resourceInputs: pulumi.Inputs = {}; opts = opts || {}; @@ -133,9 +132,6 @@ export class CustomRoutingAccelerator extends pulumi.CustomResource { resourceInputs["tagsAll"] = state ? state.tagsAll : undefined; } else { const args = argsOrState as CustomRoutingAcceleratorArgs | undefined; - if ((!args || args.name === undefined) && !opts.urn) { - throw new Error("Missing required property 'name'"); - } resourceInputs["attributes"] = args ? args.attributes : undefined; resourceInputs["enabled"] = args ? args.enabled : undefined; resourceInputs["ipAddressType"] = args ? args.ipAddressType : undefined; @@ -223,7 +219,7 @@ export interface CustomRoutingAcceleratorArgs { /** * The name of a custom routing accelerator. */ - name: pulumi.Input; + name?: pulumi.Input; /** * A map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. */ diff --git a/sdk/nodejs/globalaccelerator/customRoutingListener.ts b/sdk/nodejs/globalaccelerator/customRoutingListener.ts index 9591f988876..fbbae09780f 100644 --- a/sdk/nodejs/globalaccelerator/customRoutingListener.ts +++ b/sdk/nodejs/globalaccelerator/customRoutingListener.ts @@ -17,7 +17,6 @@ import * as utilities from "../utilities"; * import * as aws from "@pulumi/aws"; * * const exampleCustomRoutingAccelerator = new aws.globalaccelerator.CustomRoutingAccelerator("exampleCustomRoutingAccelerator", { - * name: "Example", * ipAddressType: "IPV4", * enabled: true, * attributes: { diff --git a/sdk/nodejs/glue/dataQualityRuleset.ts b/sdk/nodejs/glue/dataQualityRuleset.ts index 3db0eef2617..66f0dc52a6d 100644 --- a/sdk/nodejs/glue/dataQualityRuleset.ts +++ b/sdk/nodejs/glue/dataQualityRuleset.ts @@ -17,10 +17,7 @@ import * as utilities from "../utilities"; * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * - * const example = new aws.glue.DataQualityRuleset("example", { - * name: "example", - * ruleset: "Rules = [Completeness \"colA\" between 0.4 and 0.8]", - * }); + * const example = new aws.glue.DataQualityRuleset("example", {ruleset: "Rules = [Completeness \"colA\" between 0.4 and 0.8]"}); * ``` * ### With description * @@ -30,7 +27,6 @@ import * as utilities from "../utilities"; * * const example = new aws.glue.DataQualityRuleset("example", { * description: "example", - * name: "example", * ruleset: "Rules = [Completeness \"colA\" between 0.4 and 0.8]", * }); * ``` @@ -41,7 +37,6 @@ import * as utilities from "../utilities"; * import * as aws from "@pulumi/aws"; * * const example = new aws.glue.DataQualityRuleset("example", { - * name: "example", * ruleset: "Rules = [Completeness \"colA\" between 0.4 and 0.8]", * tags: { * hello: "world", @@ -55,7 +50,6 @@ import * as utilities from "../utilities"; * import * as aws from "@pulumi/aws"; * * const example = new aws.glue.DataQualityRuleset("example", { - * name: "example", * ruleset: "Rules = [Completeness \"colA\" between 0.4 and 0.8]", * targetTable: { * databaseName: aws_glue_catalog_database.example.name, @@ -166,9 +160,6 @@ export class DataQualityRuleset extends pulumi.CustomResource { resourceInputs["targetTable"] = state ? state.targetTable : undefined; } else { const args = argsOrState as DataQualityRulesetArgs | undefined; - if ((!args || args.name === undefined) && !opts.urn) { - throw new Error("Missing required property 'name'"); - } if ((!args || args.ruleset === undefined) && !opts.urn) { throw new Error("Missing required property 'ruleset'"); } @@ -245,7 +236,7 @@ export interface DataQualityRulesetArgs { /** * Name of the data quality ruleset. */ - name: pulumi.Input; + name?: pulumi.Input; /** * A Data Quality Definition Language (DQDL) ruleset. For more information, see the AWS Glue developer guide. */ diff --git a/sdk/nodejs/opensearch/serverlessAccessPolicy.ts b/sdk/nodejs/opensearch/serverlessAccessPolicy.ts index d57d893802d..928118c29d8 100644 --- a/sdk/nodejs/opensearch/serverlessAccessPolicy.ts +++ b/sdk/nodejs/opensearch/serverlessAccessPolicy.ts @@ -17,7 +17,6 @@ import * as utilities from "../utilities"; * const currentCallerIdentity = aws.getCallerIdentity({}); * const currentPartition = aws.getPartition({}); * const test = new aws.opensearch.ServerlessAccessPolicy("test", { - * name: "example", * type: "data", * policy: Promise.all([currentPartition, currentCallerIdentity]).then(([currentPartition, currentCallerIdentity]) => JSON.stringify([{ * Rules: [{ @@ -115,9 +114,6 @@ export class ServerlessAccessPolicy extends pulumi.CustomResource { resourceInputs["type"] = state ? state.type : undefined; } else { const args = argsOrState as ServerlessAccessPolicyArgs | undefined; - if ((!args || args.name === undefined) && !opts.urn) { - throw new Error("Missing required property 'name'"); - } if ((!args || args.policy === undefined) && !opts.urn) { throw new Error("Missing required property 'policy'"); } @@ -174,7 +170,7 @@ export interface ServerlessAccessPolicyArgs { /** * Name of the policy. */ - name: pulumi.Input; + name?: pulumi.Input; /** * JSON policy document to use as the content for the new policy */ diff --git a/sdk/nodejs/opensearch/serverlessCollection.ts b/sdk/nodejs/opensearch/serverlessCollection.ts index ad45d1d4fe3..1d3798dc57c 100644 --- a/sdk/nodejs/opensearch/serverlessCollection.ts +++ b/sdk/nodejs/opensearch/serverlessCollection.ts @@ -18,7 +18,6 @@ import * as utilities from "../utilities"; * import * as aws from "@pulumi/aws"; * * const exampleServerlessSecurityPolicy = new aws.opensearch.ServerlessSecurityPolicy("exampleServerlessSecurityPolicy", { - * name: "example", * type: "encryption", * policy: JSON.stringify({ * Rules: [{ @@ -28,7 +27,7 @@ import * as utilities from "../utilities"; * AWSOwnedKey: true, * }), * }); - * const exampleServerlessCollection = new aws.opensearch.ServerlessCollection("exampleServerlessCollection", {name: "example"}, { + * const exampleServerlessCollection = new aws.opensearch.ServerlessCollection("exampleServerlessCollection", {}, { * dependsOn: [exampleServerlessSecurityPolicy], * }); * ``` @@ -110,7 +109,7 @@ export class ServerlessCollection extends pulumi.CustomResource { * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ - constructor(name: string, args: ServerlessCollectionArgs, opts?: pulumi.CustomResourceOptions) + constructor(name: string, args?: ServerlessCollectionArgs, opts?: pulumi.CustomResourceOptions) constructor(name: string, argsOrState?: ServerlessCollectionArgs | ServerlessCollectionState, opts?: pulumi.CustomResourceOptions) { let resourceInputs: pulumi.Inputs = {}; opts = opts || {}; @@ -128,9 +127,6 @@ export class ServerlessCollection extends pulumi.CustomResource { resourceInputs["type"] = state ? state.type : undefined; } else { const args = argsOrState as ServerlessCollectionArgs | undefined; - if ((!args || args.name === undefined) && !opts.urn) { - throw new Error("Missing required property 'name'"); - } resourceInputs["description"] = args ? args.description : undefined; resourceInputs["name"] = args ? args.name : undefined; resourceInputs["tags"] = args ? args.tags : undefined; @@ -199,7 +195,7 @@ export interface ServerlessCollectionArgs { * * The following arguments are optional: */ - name: pulumi.Input; + name?: pulumi.Input; /** * A map of tags to assign to the collection. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. */ diff --git a/sdk/nodejs/opensearch/serverlessSecurityConfig.ts b/sdk/nodejs/opensearch/serverlessSecurityConfig.ts index 152851ea2cd..4e653801c16 100644 --- a/sdk/nodejs/opensearch/serverlessSecurityConfig.ts +++ b/sdk/nodejs/opensearch/serverlessSecurityConfig.ts @@ -91,9 +91,6 @@ export class ServerlessSecurityConfig extends pulumi.CustomResource { resourceInputs["type"] = state ? state.type : undefined; } else { const args = argsOrState as ServerlessSecurityConfigArgs | undefined; - if ((!args || args.name === undefined) && !opts.urn) { - throw new Error("Missing required property 'name'"); - } if ((!args || args.type === undefined) && !opts.urn) { throw new Error("Missing required property 'type'"); } @@ -147,7 +144,7 @@ export interface ServerlessSecurityConfigArgs { /** * Name of the policy. */ - name: pulumi.Input; + name?: pulumi.Input; /** * Configuration block for SAML options. */ diff --git a/sdk/nodejs/opensearch/serverlessSecurityPolicy.ts b/sdk/nodejs/opensearch/serverlessSecurityPolicy.ts index 3e7f7a494f7..b1359d05f44 100644 --- a/sdk/nodejs/opensearch/serverlessSecurityPolicy.ts +++ b/sdk/nodejs/opensearch/serverlessSecurityPolicy.ts @@ -17,7 +17,6 @@ import * as utilities from "../utilities"; * import * as aws from "@pulumi/aws"; * * const example = new aws.opensearch.ServerlessSecurityPolicy("example", { - * name: "example", * type: "encryption", * description: "encryption security policy for example-collection", * policy: JSON.stringify({ @@ -36,7 +35,6 @@ import * as utilities from "../utilities"; * import * as aws from "@pulumi/aws"; * * const example = new aws.opensearch.ServerlessSecurityPolicy("example", { - * name: "example", * type: "encryption", * description: "encryption security policy for collections that begin with \"example\"", * policy: JSON.stringify({ @@ -55,7 +53,6 @@ import * as utilities from "../utilities"; * import * as aws from "@pulumi/aws"; * * const example = new aws.opensearch.ServerlessSecurityPolicy("example", { - * name: "example", * type: "encryption", * description: "encryption security policy using customer KMS key", * policy: JSON.stringify({ @@ -76,7 +73,6 @@ import * as utilities from "../utilities"; * import * as aws from "@pulumi/aws"; * * const example = new aws.opensearch.ServerlessSecurityPolicy("example", { - * name: "example", * type: "network", * description: "Public access", * policy: JSON.stringify([{ @@ -102,7 +98,6 @@ import * as utilities from "../utilities"; * import * as aws from "@pulumi/aws"; * * const example = new aws.opensearch.ServerlessSecurityPolicy("example", { - * name: "example", * type: "network", * description: "VPC access", * policy: JSON.stringify([{ @@ -129,7 +124,6 @@ import * as utilities from "../utilities"; * import * as aws from "@pulumi/aws"; * * const example = new aws.opensearch.ServerlessSecurityPolicy("example", { - * name: "example", * type: "network", * description: "Mixed access for marketing and sales", * policy: JSON.stringify([ @@ -239,9 +233,6 @@ export class ServerlessSecurityPolicy extends pulumi.CustomResource { resourceInputs["type"] = state ? state.type : undefined; } else { const args = argsOrState as ServerlessSecurityPolicyArgs | undefined; - if ((!args || args.name === undefined) && !opts.urn) { - throw new Error("Missing required property 'name'"); - } if ((!args || args.policy === undefined) && !opts.urn) { throw new Error("Missing required property 'policy'"); } @@ -298,7 +289,7 @@ export interface ServerlessSecurityPolicyArgs { /** * Name of the policy. */ - name: pulumi.Input; + name?: pulumi.Input; /** * JSON policy document to use as the content for the new policy */ diff --git a/sdk/nodejs/opensearch/serverlessVpcEndpoint.ts b/sdk/nodejs/opensearch/serverlessVpcEndpoint.ts index f0105a72f90..e3e37f285e5 100644 --- a/sdk/nodejs/opensearch/serverlessVpcEndpoint.ts +++ b/sdk/nodejs/opensearch/serverlessVpcEndpoint.ts @@ -18,7 +18,6 @@ import * as utilities from "../utilities"; * import * as aws from "@pulumi/aws"; * * const example = new aws.opensearch.ServerlessVpcEndpoint("example", { - * name: "myendpoint", * subnetIds: [aws_subnet.example.id], * vpcId: aws_vpc.example.id, * }); @@ -100,9 +99,6 @@ export class ServerlessVpcEndpoint extends pulumi.CustomResource { resourceInputs["vpcId"] = state ? state.vpcId : undefined; } else { const args = argsOrState as ServerlessVpcEndpointArgs | undefined; - if ((!args || args.name === undefined) && !opts.urn) { - throw new Error("Missing required property 'name'"); - } if ((!args || args.subnetIds === undefined) && !opts.urn) { throw new Error("Missing required property 'subnetIds'"); } @@ -152,7 +148,7 @@ export interface ServerlessVpcEndpointArgs { /** * Name of the interface endpoint. */ - name: pulumi.Input; + name?: pulumi.Input; /** * One or more security groups that define the ports, protocols, and sources for inbound traffic that you are authorizing into your endpoint. Up to 5 security groups can be provided. */ diff --git a/sdk/nodejs/quicksight/theme.ts b/sdk/nodejs/quicksight/theme.ts index b22fdd451d7..345e0214d0e 100644 --- a/sdk/nodejs/quicksight/theme.ts +++ b/sdk/nodejs/quicksight/theme.ts @@ -139,9 +139,6 @@ export class Theme extends pulumi.CustomResource { if ((!args || args.baseThemeId === undefined) && !opts.urn) { throw new Error("Missing required property 'baseThemeId'"); } - if ((!args || args.name === undefined) && !opts.urn) { - throw new Error("Missing required property 'name'"); - } if ((!args || args.themeId === undefined) && !opts.urn) { throw new Error("Missing required property 'themeId'"); } @@ -250,7 +247,7 @@ export interface ThemeArgs { /** * Display name of the theme. */ - name: pulumi.Input; + name?: pulumi.Input; /** * A set of resource permissions on the theme. Maximum of 64 items. See permissions. */ diff --git a/sdk/nodejs/quicksight/vpcConnection.ts b/sdk/nodejs/quicksight/vpcConnection.ts index 638f50ebd34..2a34770f02c 100644 --- a/sdk/nodejs/quicksight/vpcConnection.ts +++ b/sdk/nodejs/quicksight/vpcConnection.ts @@ -48,7 +48,6 @@ import * as utilities from "../utilities"; * }); * const example = new aws.quicksight.VpcConnection("example", { * vpcConnectionId: "example-connection-id", - * name: "Example Connection", * roleArn: vpcConnectionRole.arn, * securityGroupIds: ["sg-00000000000000000"], * subnetIds: [ @@ -169,9 +168,6 @@ export class VpcConnection extends pulumi.CustomResource { resourceInputs["vpcConnectionId"] = state ? state.vpcConnectionId : undefined; } else { const args = argsOrState as VpcConnectionArgs | undefined; - if ((!args || args.name === undefined) && !opts.urn) { - throw new Error("Missing required property 'name'"); - } if ((!args || args.roleArn === undefined) && !opts.urn) { throw new Error("Missing required property 'roleArn'"); } @@ -270,7 +266,7 @@ export interface VpcConnectionArgs { /** * The display name for the VPC connection. */ - name: pulumi.Input; + name?: pulumi.Input; /** * The IAM role to associate with the VPC connection. */ diff --git a/sdk/nodejs/resourceexplorer/view.ts b/sdk/nodejs/resourceexplorer/view.ts index 9d1e1b0695a..20958abdae0 100644 --- a/sdk/nodejs/resourceexplorer/view.ts +++ b/sdk/nodejs/resourceexplorer/view.ts @@ -18,7 +18,6 @@ import * as utilities from "../utilities"; * * const exampleIndex = new aws.resourceexplorer.Index("exampleIndex", {type: "LOCAL"}); * const exampleView = new aws.resourceexplorer.View("exampleView", { - * name: "exampleview", * filters: { * filterString: "resourcetype:ec2:instance", * }, @@ -102,7 +101,7 @@ export class View extends pulumi.CustomResource { * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ - constructor(name: string, args: ViewArgs, opts?: pulumi.CustomResourceOptions) + constructor(name: string, args?: ViewArgs, opts?: pulumi.CustomResourceOptions) constructor(name: string, argsOrState?: ViewArgs | ViewState, opts?: pulumi.CustomResourceOptions) { let resourceInputs: pulumi.Inputs = {}; opts = opts || {}; @@ -117,9 +116,6 @@ export class View extends pulumi.CustomResource { resourceInputs["tagsAll"] = state ? state.tagsAll : undefined; } else { const args = argsOrState as ViewArgs | undefined; - if ((!args || args.name === undefined) && !opts.urn) { - throw new Error("Missing required property 'name'"); - } resourceInputs["defaultView"] = args ? args.defaultView : undefined; resourceInputs["filters"] = args ? args.filters : undefined; resourceInputs["includedProperties"] = args ? args.includedProperties : undefined; @@ -186,7 +182,7 @@ export interface ViewArgs { /** * The name of the view. The name must be no more than 64 characters long, and can include letters, digits, and the dash (-) character. The name must be unique within its AWS Region. */ - name: pulumi.Input; + name?: pulumi.Input; /** * Key-value map of resource tags. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. */ diff --git a/sdk/nodejs/route53/cidrCollection.ts b/sdk/nodejs/route53/cidrCollection.ts index a90a96c4639..02576c91241 100644 --- a/sdk/nodejs/route53/cidrCollection.ts +++ b/sdk/nodejs/route53/cidrCollection.ts @@ -13,7 +13,7 @@ import * as utilities from "../utilities"; * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * - * const example = new aws.route53.CidrCollection("example", {name: "collection-1"}); + * const example = new aws.route53.CidrCollection("example", {}); * ``` * * ## Import @@ -72,7 +72,7 @@ export class CidrCollection extends pulumi.CustomResource { * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ - constructor(name: string, args: CidrCollectionArgs, opts?: pulumi.CustomResourceOptions) + constructor(name: string, args?: CidrCollectionArgs, opts?: pulumi.CustomResourceOptions) constructor(name: string, argsOrState?: CidrCollectionArgs | CidrCollectionState, opts?: pulumi.CustomResourceOptions) { let resourceInputs: pulumi.Inputs = {}; opts = opts || {}; @@ -83,9 +83,6 @@ export class CidrCollection extends pulumi.CustomResource { resourceInputs["version"] = state ? state.version : undefined; } else { const args = argsOrState as CidrCollectionArgs | undefined; - if ((!args || args.name === undefined) && !opts.urn) { - throw new Error("Missing required property 'name'"); - } resourceInputs["name"] = args ? args.name : undefined; resourceInputs["arn"] = undefined /*out*/; resourceInputs["version"] = undefined /*out*/; @@ -120,5 +117,5 @@ export interface CidrCollectionArgs { /** * Unique name for the CIDR collection. */ - name: pulumi.Input; + name?: pulumi.Input; } diff --git a/sdk/nodejs/route53/cidrLocation.ts b/sdk/nodejs/route53/cidrLocation.ts index 23b98939481..d1b509055e1 100644 --- a/sdk/nodejs/route53/cidrLocation.ts +++ b/sdk/nodejs/route53/cidrLocation.ts @@ -13,10 +13,9 @@ import * as utilities from "../utilities"; * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * - * const exampleCidrCollection = new aws.route53.CidrCollection("exampleCidrCollection", {name: "collection-1"}); + * const exampleCidrCollection = new aws.route53.CidrCollection("exampleCidrCollection", {}); * const exampleCidrLocation = new aws.route53.CidrLocation("exampleCidrLocation", { * cidrCollectionId: exampleCidrCollection.id, - * name: "office", * cidrBlocks: [ * "200.5.3.0/24", * "200.6.3.0/24", @@ -97,9 +96,6 @@ export class CidrLocation extends pulumi.CustomResource { if ((!args || args.cidrCollectionId === undefined) && !opts.urn) { throw new Error("Missing required property 'cidrCollectionId'"); } - if ((!args || args.name === undefined) && !opts.urn) { - throw new Error("Missing required property 'name'"); - } resourceInputs["cidrBlocks"] = args ? args.cidrBlocks : undefined; resourceInputs["cidrCollectionId"] = args ? args.cidrCollectionId : undefined; resourceInputs["name"] = args ? args.name : undefined; @@ -142,5 +138,5 @@ export interface CidrLocationArgs { /** * Name for the CIDR location. */ - name: pulumi.Input; + name?: pulumi.Input; } diff --git a/sdk/nodejs/sfn/alias.ts b/sdk/nodejs/sfn/alias.ts index b05ea773c10..926c728cb87 100644 --- a/sdk/nodejs/sfn/alias.ts +++ b/sdk/nodejs/sfn/alias.ts @@ -17,26 +17,20 @@ import * as utilities from "../utilities"; * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * - * const sfnAlias = new aws.sfn.Alias("sfnAlias", { - * name: "my_sfn_alias", - * routingConfigurations: [{ - * stateMachineVersionArn: aws_sfn_state_machine.sfn_test.state_machine_version_arn, - * weight: 100, - * }], - * }); - * const mySfnAlias = new aws.sfn.Alias("mySfnAlias", { - * name: "my_sfn_alias", - * routingConfigurations: [ - * { - * stateMachineVersionArn: "arn:aws:states:us-east-1:12345:stateMachine:demo:3", - * weight: 50, - * }, - * { - * stateMachineVersionArn: "arn:aws:states:us-east-1:12345:stateMachine:demo:2", - * weight: 50, - * }, - * ], - * }); + * const sfnAlias = new aws.sfn.Alias("sfnAlias", {routingConfigurations: [{ + * stateMachineVersionArn: aws_sfn_state_machine.sfn_test.state_machine_version_arn, + * weight: 100, + * }]}); + * const mySfnAlias = new aws.sfn.Alias("mySfnAlias", {routingConfigurations: [ + * { + * stateMachineVersionArn: "arn:aws:states:us-east-1:12345:stateMachine:demo:3", + * weight: 50, + * }, + * { + * stateMachineVersionArn: "arn:aws:states:us-east-1:12345:stateMachine:demo:2", + * weight: 50, + * }, + * ]}); * ``` * * ## Import @@ -116,9 +110,6 @@ export class Alias extends pulumi.CustomResource { resourceInputs["routingConfigurations"] = state ? state.routingConfigurations : undefined; } else { const args = argsOrState as AliasArgs | undefined; - if ((!args || args.name === undefined) && !opts.urn) { - throw new Error("Missing required property 'name'"); - } if ((!args || args.routingConfigurations === undefined) && !opts.urn) { throw new Error("Missing required property 'routingConfigurations'"); } @@ -170,7 +161,7 @@ export interface AliasArgs { /** * Name for the alias you are creating. */ - name: pulumi.Input; + name?: pulumi.Input; /** * The StateMachine alias' route configuration settings. Fields documented below */ diff --git a/sdk/python/pulumi_aws/appintegrations/data_integration.py b/sdk/python/pulumi_aws/appintegrations/data_integration.py index 3790902b251..f66c253f1d3 100644 --- a/sdk/python/pulumi_aws/appintegrations/data_integration.py +++ b/sdk/python/pulumi_aws/appintegrations/data_integration.py @@ -17,26 +17,27 @@ class DataIntegrationArgs: def __init__(__self__, *, kms_key: pulumi.Input[str], - name: pulumi.Input[str], schedule_config: pulumi.Input['DataIntegrationScheduleConfigArgs'], source_uri: pulumi.Input[str], description: Optional[pulumi.Input[str]] = None, + name: Optional[pulumi.Input[str]] = None, tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None): """ The set of arguments for constructing a DataIntegration resource. :param pulumi.Input[str] kms_key: Specifies the KMS key Amazon Resource Name (ARN) for the Data Integration. - :param pulumi.Input[str] name: Specifies the name of the Data Integration. :param pulumi.Input['DataIntegrationScheduleConfigArgs'] schedule_config: A block that defines the name of the data and how often it should be pulled from the source. The Schedule Config block is documented below. :param pulumi.Input[str] source_uri: Specifies the URI of the data source. Create an AppFlow Connector Profile and reference the name of the profile in the URL. An example of this value for Salesforce is `Salesforce://AppFlow/example` where `example` is the name of the AppFlow Connector Profile. :param pulumi.Input[str] description: Specifies the description of the Data Integration. + :param pulumi.Input[str] name: Specifies the name of the Data Integration. :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: Tags to apply to the Data Integration. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. """ pulumi.set(__self__, "kms_key", kms_key) - pulumi.set(__self__, "name", name) pulumi.set(__self__, "schedule_config", schedule_config) pulumi.set(__self__, "source_uri", source_uri) if description is not None: pulumi.set(__self__, "description", description) + if name is not None: + pulumi.set(__self__, "name", name) if tags is not None: pulumi.set(__self__, "tags", tags) @@ -52,18 +53,6 @@ def kms_key(self) -> pulumi.Input[str]: def kms_key(self, value: pulumi.Input[str]): pulumi.set(self, "kms_key", value) - @property - @pulumi.getter - def name(self) -> pulumi.Input[str]: - """ - Specifies the name of the Data Integration. - """ - return pulumi.get(self, "name") - - @name.setter - def name(self, value: pulumi.Input[str]): - pulumi.set(self, "name", value) - @property @pulumi.getter(name="scheduleConfig") def schedule_config(self) -> pulumi.Input['DataIntegrationScheduleConfigArgs']: @@ -100,6 +89,18 @@ def description(self) -> Optional[pulumi.Input[str]]: def description(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "description", value) + @property + @pulumi.getter + def name(self) -> Optional[pulumi.Input[str]]: + """ + Specifies the name of the Data Integration. + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "name", value) + @property @pulumi.getter def tags(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]: @@ -271,7 +272,6 @@ def __init__(__self__, import pulumi_aws as aws example = aws.appintegrations.DataIntegration("example", - name="example", description="example", kms_key=aws_kms_key["test"]["arn"], source_uri="Salesforce://AppFlow/example", @@ -318,7 +318,6 @@ def __init__(__self__, import pulumi_aws as aws example = aws.appintegrations.DataIntegration("example", - name="example", description="example", kms_key=aws_kms_key["test"]["arn"], source_uri="Salesforce://AppFlow/example", @@ -374,8 +373,6 @@ def _internal_init(__self__, if kms_key is None and not opts.urn: raise TypeError("Missing required property 'kms_key'") __props__.__dict__["kms_key"] = kms_key - if name is None and not opts.urn: - raise TypeError("Missing required property 'name'") __props__.__dict__["name"] = name if schedule_config is None and not opts.urn: raise TypeError("Missing required property 'schedule_config'") diff --git a/sdk/python/pulumi_aws/auditmanager/assessment.py b/sdk/python/pulumi_aws/auditmanager/assessment.py index 3884d1500aa..30d51b7e947 100644 --- a/sdk/python/pulumi_aws/auditmanager/assessment.py +++ b/sdk/python/pulumi_aws/auditmanager/assessment.py @@ -17,31 +17,32 @@ class AssessmentArgs: def __init__(__self__, *, framework_id: pulumi.Input[str], - name: pulumi.Input[str], roles: pulumi.Input[Sequence[pulumi.Input['AssessmentRoleArgs']]], assessment_reports_destination: Optional[pulumi.Input['AssessmentAssessmentReportsDestinationArgs']] = None, description: Optional[pulumi.Input[str]] = None, + name: Optional[pulumi.Input[str]] = None, scope: Optional[pulumi.Input['AssessmentScopeArgs']] = None, tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None): """ The set of arguments for constructing a Assessment resource. :param pulumi.Input[str] framework_id: Unique identifier of the framework the assessment will be created from. - :param pulumi.Input[str] name: Name of the assessment. :param pulumi.Input[Sequence[pulumi.Input['AssessmentRoleArgs']]] roles: List of roles for the assessment. See `roles` below. :param pulumi.Input['AssessmentAssessmentReportsDestinationArgs'] assessment_reports_destination: Assessment report storage destination configuration. See `assessment_reports_destination` below. :param pulumi.Input[str] description: Description of the assessment. + :param pulumi.Input[str] name: Name of the assessment. :param pulumi.Input['AssessmentScopeArgs'] scope: Amazon Web Services accounts and services that are in scope for the assessment. See `scope` below. The following arguments are optional: :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: A map of tags to assign to the assessment. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. """ pulumi.set(__self__, "framework_id", framework_id) - pulumi.set(__self__, "name", name) pulumi.set(__self__, "roles", roles) if assessment_reports_destination is not None: pulumi.set(__self__, "assessment_reports_destination", assessment_reports_destination) if description is not None: pulumi.set(__self__, "description", description) + if name is not None: + pulumi.set(__self__, "name", name) if scope is not None: pulumi.set(__self__, "scope", scope) if tags is not None: @@ -59,18 +60,6 @@ def framework_id(self) -> pulumi.Input[str]: def framework_id(self, value: pulumi.Input[str]): pulumi.set(self, "framework_id", value) - @property - @pulumi.getter - def name(self) -> pulumi.Input[str]: - """ - Name of the assessment. - """ - return pulumi.get(self, "name") - - @name.setter - def name(self, value: pulumi.Input[str]): - pulumi.set(self, "name", value) - @property @pulumi.getter def roles(self) -> pulumi.Input[Sequence[pulumi.Input['AssessmentRoleArgs']]]: @@ -107,6 +96,18 @@ def description(self) -> Optional[pulumi.Input[str]]: def description(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "description", value) + @property + @pulumi.getter + def name(self) -> Optional[pulumi.Input[str]]: + """ + Name of the assessment. + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "name", value) + @property @pulumi.getter def scope(self) -> Optional[pulumi.Input['AssessmentScopeArgs']]: @@ -342,7 +343,6 @@ def __init__(__self__, import pulumi_aws as aws test = aws.auditmanager.Assessment("test", - name="example", assessment_reports_destination=aws.auditmanager.AssessmentAssessmentReportsDestinationArgs( destination=f"s3://{aws_s3_bucket['test']['id']}", destination_type="S3", @@ -399,7 +399,6 @@ def __init__(__self__, import pulumi_aws as aws test = aws.auditmanager.Assessment("test", - name="example", assessment_reports_destination=aws.auditmanager.AssessmentAssessmentReportsDestinationArgs( destination=f"s3://{aws_s3_bucket['test']['id']}", destination_type="S3", @@ -463,8 +462,6 @@ def _internal_init(__self__, if framework_id is None and not opts.urn: raise TypeError("Missing required property 'framework_id'") __props__.__dict__["framework_id"] = framework_id - if name is None and not opts.urn: - raise TypeError("Missing required property 'name'") __props__.__dict__["name"] = name if roles is None and not opts.urn: raise TypeError("Missing required property 'roles'") diff --git a/sdk/python/pulumi_aws/auditmanager/assessment_report.py b/sdk/python/pulumi_aws/auditmanager/assessment_report.py index 0478bd6dd68..2882322b4d7 100644 --- a/sdk/python/pulumi_aws/auditmanager/assessment_report.py +++ b/sdk/python/pulumi_aws/auditmanager/assessment_report.py @@ -15,20 +15,21 @@ class AssessmentReportArgs: def __init__(__self__, *, assessment_id: pulumi.Input[str], - name: pulumi.Input[str], - description: Optional[pulumi.Input[str]] = None): + description: Optional[pulumi.Input[str]] = None, + name: Optional[pulumi.Input[str]] = None): """ The set of arguments for constructing a AssessmentReport resource. :param pulumi.Input[str] assessment_id: Unique identifier of the assessment to create the report from. The following arguments are optional: - :param pulumi.Input[str] name: Name of the assessment report. :param pulumi.Input[str] description: Description of the assessment report. + :param pulumi.Input[str] name: Name of the assessment report. """ pulumi.set(__self__, "assessment_id", assessment_id) - pulumi.set(__self__, "name", name) if description is not None: pulumi.set(__self__, "description", description) + if name is not None: + pulumi.set(__self__, "name", name) @property @pulumi.getter(name="assessmentId") @@ -44,18 +45,6 @@ def assessment_id(self) -> pulumi.Input[str]: def assessment_id(self, value: pulumi.Input[str]): pulumi.set(self, "assessment_id", value) - @property - @pulumi.getter - def name(self) -> pulumi.Input[str]: - """ - Name of the assessment report. - """ - return pulumi.get(self, "name") - - @name.setter - def name(self, value: pulumi.Input[str]): - pulumi.set(self, "name", value) - @property @pulumi.getter def description(self) -> Optional[pulumi.Input[str]]: @@ -68,6 +57,18 @@ def description(self) -> Optional[pulumi.Input[str]]: def description(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "description", value) + @property + @pulumi.getter + def name(self) -> Optional[pulumi.Input[str]]: + """ + Name of the assessment report. + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "name", value) + @pulumi.input_type class _AssessmentReportState: @@ -180,9 +181,7 @@ def __init__(__self__, import pulumi import pulumi_aws as aws - test = aws.auditmanager.AssessmentReport("test", - name="example", - assessment_id=aws_auditmanager_assessment["test"]["id"]) + test = aws.auditmanager.AssessmentReport("test", assessment_id=aws_auditmanager_assessment["test"]["id"]) ``` ## Import @@ -217,9 +216,7 @@ def __init__(__self__, import pulumi import pulumi_aws as aws - test = aws.auditmanager.AssessmentReport("test", - name="example", - assessment_id=aws_auditmanager_assessment["test"]["id"]) + test = aws.auditmanager.AssessmentReport("test", assessment_id=aws_auditmanager_assessment["test"]["id"]) ``` ## Import @@ -261,8 +258,6 @@ def _internal_init(__self__, raise TypeError("Missing required property 'assessment_id'") __props__.__dict__["assessment_id"] = assessment_id __props__.__dict__["description"] = description - if name is None and not opts.urn: - raise TypeError("Missing required property 'name'") __props__.__dict__["name"] = name __props__.__dict__["author"] = None __props__.__dict__["status"] = None diff --git a/sdk/python/pulumi_aws/auditmanager/control.py b/sdk/python/pulumi_aws/auditmanager/control.py index 73425c5421c..ba4970de457 100644 --- a/sdk/python/pulumi_aws/auditmanager/control.py +++ b/sdk/python/pulumi_aws/auditmanager/control.py @@ -16,26 +16,25 @@ @pulumi.input_type class ControlArgs: def __init__(__self__, *, - name: pulumi.Input[str], action_plan_instructions: Optional[pulumi.Input[str]] = None, action_plan_title: Optional[pulumi.Input[str]] = None, control_mapping_sources: Optional[pulumi.Input[Sequence[pulumi.Input['ControlControlMappingSourceArgs']]]] = None, description: Optional[pulumi.Input[str]] = None, + name: Optional[pulumi.Input[str]] = None, tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, testing_information: Optional[pulumi.Input[str]] = None): """ The set of arguments for constructing a Control resource. - :param pulumi.Input[str] name: Name of the control. :param pulumi.Input[str] action_plan_instructions: Recommended actions to carry out if the control isn't fulfilled. :param pulumi.Input[str] action_plan_title: Title of the action plan for remediating the control. :param pulumi.Input[Sequence[pulumi.Input['ControlControlMappingSourceArgs']]] control_mapping_sources: Data mapping sources. See `control_mapping_sources` below. The following arguments are optional: :param pulumi.Input[str] description: Description of the control. + :param pulumi.Input[str] name: Name of the control. :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: A map of tags to assign to the control. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. :param pulumi.Input[str] testing_information: Steps to follow to determine if the control is satisfied. """ - pulumi.set(__self__, "name", name) if action_plan_instructions is not None: pulumi.set(__self__, "action_plan_instructions", action_plan_instructions) if action_plan_title is not None: @@ -44,23 +43,13 @@ def __init__(__self__, *, pulumi.set(__self__, "control_mapping_sources", control_mapping_sources) if description is not None: pulumi.set(__self__, "description", description) + if name is not None: + pulumi.set(__self__, "name", name) if tags is not None: pulumi.set(__self__, "tags", tags) if testing_information is not None: pulumi.set(__self__, "testing_information", testing_information) - @property - @pulumi.getter - def name(self) -> pulumi.Input[str]: - """ - Name of the control. - """ - return pulumi.get(self, "name") - - @name.setter - def name(self, value: pulumi.Input[str]): - pulumi.set(self, "name", value) - @property @pulumi.getter(name="actionPlanInstructions") def action_plan_instructions(self) -> Optional[pulumi.Input[str]]: @@ -111,6 +100,18 @@ def description(self) -> Optional[pulumi.Input[str]]: def description(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "description", value) + @property + @pulumi.getter + def name(self) -> Optional[pulumi.Input[str]]: + """ + Name of the control. + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "name", value) + @property @pulumi.getter def tags(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]: @@ -329,13 +330,11 @@ def __init__(__self__, import pulumi import pulumi_aws as aws - example = aws.auditmanager.Control("example", - control_mapping_sources=[aws.auditmanager.ControlControlMappingSourceArgs( - source_name="example", - source_set_up_option="Procedural_Controls_Mapping", - source_type="MANUAL", - )], - name="example") + example = aws.auditmanager.Control("example", control_mapping_sources=[aws.auditmanager.ControlControlMappingSourceArgs( + source_name="example", + source_set_up_option="Procedural_Controls_Mapping", + source_type="MANUAL", + )]) ``` ## Import @@ -362,7 +361,7 @@ def __init__(__self__, @overload def __init__(__self__, resource_name: str, - args: ControlArgs, + args: Optional[ControlArgs] = None, opts: Optional[pulumi.ResourceOptions] = None): """ Resource for managing an AWS Audit Manager Control. @@ -374,13 +373,11 @@ def __init__(__self__, import pulumi import pulumi_aws as aws - example = aws.auditmanager.Control("example", - control_mapping_sources=[aws.auditmanager.ControlControlMappingSourceArgs( - source_name="example", - source_set_up_option="Procedural_Controls_Mapping", - source_type="MANUAL", - )], - name="example") + example = aws.auditmanager.Control("example", control_mapping_sources=[aws.auditmanager.ControlControlMappingSourceArgs( + source_name="example", + source_set_up_option="Procedural_Controls_Mapping", + source_type="MANUAL", + )]) ``` ## Import @@ -426,8 +423,6 @@ def _internal_init(__self__, __props__.__dict__["action_plan_title"] = action_plan_title __props__.__dict__["control_mapping_sources"] = control_mapping_sources __props__.__dict__["description"] = description - if name is None and not opts.urn: - raise TypeError("Missing required property 'name'") __props__.__dict__["name"] = name __props__.__dict__["tags"] = tags __props__.__dict__["testing_information"] = testing_information diff --git a/sdk/python/pulumi_aws/auditmanager/framework.py b/sdk/python/pulumi_aws/auditmanager/framework.py index 3adaba7b52a..6708e6a2fe7 100644 --- a/sdk/python/pulumi_aws/auditmanager/framework.py +++ b/sdk/python/pulumi_aws/auditmanager/framework.py @@ -16,43 +16,32 @@ @pulumi.input_type class FrameworkArgs: def __init__(__self__, *, - name: pulumi.Input[str], compliance_type: Optional[pulumi.Input[str]] = None, control_sets: Optional[pulumi.Input[Sequence[pulumi.Input['FrameworkControlSetArgs']]]] = None, description: Optional[pulumi.Input[str]] = None, + name: Optional[pulumi.Input[str]] = None, tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None): """ The set of arguments for constructing a Framework resource. - :param pulumi.Input[str] name: Name of the framework. :param pulumi.Input[str] compliance_type: Compliance type that the new custom framework supports, such as `CIS` or `HIPAA`. :param pulumi.Input[Sequence[pulumi.Input['FrameworkControlSetArgs']]] control_sets: Control sets that are associated with the framework. See `control_sets` below. The following arguments are optional: :param pulumi.Input[str] description: Description of the framework. + :param pulumi.Input[str] name: Name of the framework. :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: A map of tags to assign to the framework. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. """ - pulumi.set(__self__, "name", name) if compliance_type is not None: pulumi.set(__self__, "compliance_type", compliance_type) if control_sets is not None: pulumi.set(__self__, "control_sets", control_sets) if description is not None: pulumi.set(__self__, "description", description) + if name is not None: + pulumi.set(__self__, "name", name) if tags is not None: pulumi.set(__self__, "tags", tags) - @property - @pulumi.getter - def name(self) -> pulumi.Input[str]: - """ - Name of the framework. - """ - return pulumi.get(self, "name") - - @name.setter - def name(self, value: pulumi.Input[str]): - pulumi.set(self, "name", value) - @property @pulumi.getter(name="complianceType") def compliance_type(self) -> Optional[pulumi.Input[str]]: @@ -91,6 +80,18 @@ def description(self) -> Optional[pulumi.Input[str]]: def description(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "description", value) + @property + @pulumi.getter + def name(self) -> Optional[pulumi.Input[str]]: + """ + Name of the framework. + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "name", value) + @property @pulumi.getter def tags(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]: @@ -263,14 +264,12 @@ def __init__(__self__, import pulumi import pulumi_aws as aws - test = aws.auditmanager.Framework("test", + test = aws.auditmanager.Framework("test", control_sets=[aws.auditmanager.FrameworkControlSetArgs( name="example", - control_sets=[aws.auditmanager.FrameworkControlSetArgs( - name="example", - controls=[aws.auditmanager.FrameworkControlSetControlArgs( - id=aws_auditmanager_control["test"]["id"], - )], - )]) + controls=[aws.auditmanager.FrameworkControlSetControlArgs( + id=aws_auditmanager_control["test"]["id"], + )], + )]) ``` ## Import @@ -295,7 +294,7 @@ def __init__(__self__, @overload def __init__(__self__, resource_name: str, - args: FrameworkArgs, + args: Optional[FrameworkArgs] = None, opts: Optional[pulumi.ResourceOptions] = None): """ Resource for managing an AWS Audit Manager Framework. @@ -307,14 +306,12 @@ def __init__(__self__, import pulumi import pulumi_aws as aws - test = aws.auditmanager.Framework("test", + test = aws.auditmanager.Framework("test", control_sets=[aws.auditmanager.FrameworkControlSetArgs( name="example", - control_sets=[aws.auditmanager.FrameworkControlSetArgs( - name="example", - controls=[aws.auditmanager.FrameworkControlSetControlArgs( - id=aws_auditmanager_control["test"]["id"], - )], - )]) + controls=[aws.auditmanager.FrameworkControlSetControlArgs( + id=aws_auditmanager_control["test"]["id"], + )], + )]) ``` ## Import @@ -357,8 +354,6 @@ def _internal_init(__self__, __props__.__dict__["compliance_type"] = compliance_type __props__.__dict__["control_sets"] = control_sets __props__.__dict__["description"] = description - if name is None and not opts.urn: - raise TypeError("Missing required property 'name'") __props__.__dict__["name"] = name __props__.__dict__["tags"] = tags __props__.__dict__["arn"] = None diff --git a/sdk/python/pulumi_aws/auditmanager/get_control.py b/sdk/python/pulumi_aws/auditmanager/get_control.py index 1631ce65132..3fee63a37ef 100644 --- a/sdk/python/pulumi_aws/auditmanager/get_control.py +++ b/sdk/python/pulumi_aws/auditmanager/get_control.py @@ -151,22 +151,20 @@ def get_control(control_mapping_sources: Optional[Sequence[pulumi.InputType['Get type="Standard") example2 = aws.auditmanager.get_control(name="2. Personnel", type="Standard") - example_framework = aws.auditmanager.Framework("exampleFramework", - name="example", - control_sets=[ - aws.auditmanager.FrameworkControlSetArgs( - name="example", - controls=[aws.auditmanager.FrameworkControlSetControlArgs( - id=example_control.id, - )], - ), - aws.auditmanager.FrameworkControlSetArgs( - name="example2", - controls=[aws.auditmanager.FrameworkControlSetControlArgs( - id=example2.id, - )], - ), - ]) + example_framework = aws.auditmanager.Framework("exampleFramework", control_sets=[ + aws.auditmanager.FrameworkControlSetArgs( + name="example", + controls=[aws.auditmanager.FrameworkControlSetControlArgs( + id=example_control.id, + )], + ), + aws.auditmanager.FrameworkControlSetArgs( + name="example2", + controls=[aws.auditmanager.FrameworkControlSetControlArgs( + id=example2.id, + )], + ), + ]) ``` @@ -221,22 +219,20 @@ def get_control_output(control_mapping_sources: Optional[pulumi.Input[Optional[S type="Standard") example2 = aws.auditmanager.get_control(name="2. Personnel", type="Standard") - example_framework = aws.auditmanager.Framework("exampleFramework", - name="example", - control_sets=[ - aws.auditmanager.FrameworkControlSetArgs( - name="example", - controls=[aws.auditmanager.FrameworkControlSetControlArgs( - id=example_control.id, - )], - ), - aws.auditmanager.FrameworkControlSetArgs( - name="example2", - controls=[aws.auditmanager.FrameworkControlSetControlArgs( - id=example2.id, - )], - ), - ]) + example_framework = aws.auditmanager.Framework("exampleFramework", control_sets=[ + aws.auditmanager.FrameworkControlSetArgs( + name="example", + controls=[aws.auditmanager.FrameworkControlSetControlArgs( + id=example_control.id, + )], + ), + aws.auditmanager.FrameworkControlSetArgs( + name="example2", + controls=[aws.auditmanager.FrameworkControlSetControlArgs( + id=example2.id, + )], + ), + ]) ``` diff --git a/sdk/python/pulumi_aws/chime/sdkvoice_sip_media_application.py b/sdk/python/pulumi_aws/chime/sdkvoice_sip_media_application.py index b6644d6cc3a..b6537cb3f36 100644 --- a/sdk/python/pulumi_aws/chime/sdkvoice_sip_media_application.py +++ b/sdk/python/pulumi_aws/chime/sdkvoice_sip_media_application.py @@ -18,7 +18,7 @@ class SdkvoiceSipMediaApplicationArgs: def __init__(__self__, *, aws_region: pulumi.Input[str], endpoints: pulumi.Input['SdkvoiceSipMediaApplicationEndpointsArgs'], - name: pulumi.Input[str], + name: Optional[pulumi.Input[str]] = None, tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None): """ The set of arguments for constructing a SdkvoiceSipMediaApplication resource. @@ -31,7 +31,8 @@ def __init__(__self__, *, """ pulumi.set(__self__, "aws_region", aws_region) pulumi.set(__self__, "endpoints", endpoints) - pulumi.set(__self__, "name", name) + if name is not None: + pulumi.set(__self__, "name", name) if tags is not None: pulumi.set(__self__, "tags", tags) @@ -61,7 +62,7 @@ def endpoints(self, value: pulumi.Input['SdkvoiceSipMediaApplicationEndpointsArg @property @pulumi.getter - def name(self) -> pulumi.Input[str]: + def name(self) -> Optional[pulumi.Input[str]]: """ The name of the AWS Chime SDK Voice Sip Media Application. @@ -70,7 +71,7 @@ def name(self) -> pulumi.Input[str]: return pulumi.get(self, "name") @name.setter - def name(self, value: pulumi.Input[str]): + def name(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "name", value) @property @@ -216,7 +217,6 @@ def __init__(__self__, example = aws.chime.SdkvoiceSipMediaApplication("example", aws_region="us-east-1", - name="example-sip-media-application", endpoints=aws.chime.SdkvoiceSipMediaApplicationEndpointsArgs( lambda_arn=aws_lambda_function["test"]["arn"], )) @@ -257,7 +257,6 @@ def __init__(__self__, example = aws.chime.SdkvoiceSipMediaApplication("example", aws_region="us-east-1", - name="example-sip-media-application", endpoints=aws.chime.SdkvoiceSipMediaApplicationEndpointsArgs( lambda_arn=aws_lambda_function["test"]["arn"], )) @@ -305,8 +304,6 @@ def _internal_init(__self__, if endpoints is None and not opts.urn: raise TypeError("Missing required property 'endpoints'") __props__.__dict__["endpoints"] = endpoints - if name is None and not opts.urn: - raise TypeError("Missing required property 'name'") __props__.__dict__["name"] = name __props__.__dict__["tags"] = tags __props__.__dict__["arn"] = None diff --git a/sdk/python/pulumi_aws/chime/sdkvoice_sip_rule.py b/sdk/python/pulumi_aws/chime/sdkvoice_sip_rule.py index 524a7e792c4..6c4db2d56fc 100644 --- a/sdk/python/pulumi_aws/chime/sdkvoice_sip_rule.py +++ b/sdk/python/pulumi_aws/chime/sdkvoice_sip_rule.py @@ -16,39 +16,28 @@ @pulumi.input_type class SdkvoiceSipRuleArgs: def __init__(__self__, *, - name: pulumi.Input[str], target_applications: pulumi.Input[Sequence[pulumi.Input['SdkvoiceSipRuleTargetApplicationArgs']]], trigger_type: pulumi.Input[str], trigger_value: pulumi.Input[str], - disabled: Optional[pulumi.Input[bool]] = None): + disabled: Optional[pulumi.Input[bool]] = None, + name: Optional[pulumi.Input[str]] = None): """ The set of arguments for constructing a SdkvoiceSipRule resource. - :param pulumi.Input[str] name: The name of the SIP rule. :param pulumi.Input[Sequence[pulumi.Input['SdkvoiceSipRuleTargetApplicationArgs']]] target_applications: List of SIP media applications with priority and AWS Region. Only one SIP application per AWS Region can be used. See `target_applications`. :param pulumi.Input[str] trigger_type: The type of trigger assigned to the SIP rule in `trigger_value`. Valid values are `RequestUriHostname` or `ToPhoneNumber`. :param pulumi.Input[str] trigger_value: If `trigger_type` is `RequestUriHostname`, the value can be the outbound host name of an Amazon Chime Voice Connector. If `trigger_type` is `ToPhoneNumber`, the value can be a customer-owned phone number in the E164 format. The Sip Media Application specified in the Sip Rule is triggered if the request URI in an incoming SIP request matches the `RequestUriHostname`, or if the "To" header in the incoming SIP request matches the `ToPhoneNumber` value. The following arguments are optional: :param pulumi.Input[bool] disabled: Enables or disables a rule. You must disable rules before you can delete them. + :param pulumi.Input[str] name: The name of the SIP rule. """ - pulumi.set(__self__, "name", name) pulumi.set(__self__, "target_applications", target_applications) pulumi.set(__self__, "trigger_type", trigger_type) pulumi.set(__self__, "trigger_value", trigger_value) if disabled is not None: pulumi.set(__self__, "disabled", disabled) - - @property - @pulumi.getter - def name(self) -> pulumi.Input[str]: - """ - The name of the SIP rule. - """ - return pulumi.get(self, "name") - - @name.setter - def name(self, value: pulumi.Input[str]): - pulumi.set(self, "name", value) + if name is not None: + pulumi.set(__self__, "name", name) @property @pulumi.getter(name="targetApplications") @@ -100,6 +89,18 @@ def disabled(self) -> Optional[pulumi.Input[bool]]: def disabled(self, value: Optional[pulumi.Input[bool]]): pulumi.set(self, "disabled", value) + @property + @pulumi.getter + def name(self) -> Optional[pulumi.Input[str]]: + """ + The name of the SIP rule. + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "name", value) + @pulumi.input_type class _SdkvoiceSipRuleState: @@ -215,7 +216,6 @@ def __init__(__self__, import pulumi_aws as aws example = aws.chime.SdkvoiceSipRule("example", - name="example-sip-rule", trigger_type="RequestUriHostname", trigger_value=aws_chime_voice_connector["example-voice-connector"]["outbound_host_name"], target_applications=[aws.chime.SdkvoiceSipRuleTargetApplicationArgs( @@ -260,7 +260,6 @@ def __init__(__self__, import pulumi_aws as aws example = aws.chime.SdkvoiceSipRule("example", - name="example-sip-rule", trigger_type="RequestUriHostname", trigger_value=aws_chime_voice_connector["example-voice-connector"]["outbound_host_name"], target_applications=[aws.chime.SdkvoiceSipRuleTargetApplicationArgs( @@ -308,8 +307,6 @@ def _internal_init(__self__, __props__ = SdkvoiceSipRuleArgs.__new__(SdkvoiceSipRuleArgs) __props__.__dict__["disabled"] = disabled - if name is None and not opts.urn: - raise TypeError("Missing required property 'name'") __props__.__dict__["name"] = name if target_applications is None and not opts.urn: raise TypeError("Missing required property 'target_applications'") diff --git a/sdk/python/pulumi_aws/chime/sdkvoice_voice_profile_domain.py b/sdk/python/pulumi_aws/chime/sdkvoice_voice_profile_domain.py index ae1d7ed1e7d..04534bdace8 100644 --- a/sdk/python/pulumi_aws/chime/sdkvoice_voice_profile_domain.py +++ b/sdk/python/pulumi_aws/chime/sdkvoice_voice_profile_domain.py @@ -16,35 +16,24 @@ @pulumi.input_type class SdkvoiceVoiceProfileDomainArgs: def __init__(__self__, *, - name: pulumi.Input[str], server_side_encryption_configuration: pulumi.Input['SdkvoiceVoiceProfileDomainServerSideEncryptionConfigurationArgs'], description: Optional[pulumi.Input[str]] = None, + name: Optional[pulumi.Input[str]] = None, tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None): """ The set of arguments for constructing a SdkvoiceVoiceProfileDomain resource. - :param pulumi.Input[str] name: Name of Voice Profile Domain. :param pulumi.Input['SdkvoiceVoiceProfileDomainServerSideEncryptionConfigurationArgs'] server_side_encryption_configuration: Configuration for server side encryption. :param pulumi.Input[str] description: Description of Voice Profile Domain. + :param pulumi.Input[str] name: Name of Voice Profile Domain. """ - pulumi.set(__self__, "name", name) pulumi.set(__self__, "server_side_encryption_configuration", server_side_encryption_configuration) if description is not None: pulumi.set(__self__, "description", description) + if name is not None: + pulumi.set(__self__, "name", name) if tags is not None: pulumi.set(__self__, "tags", tags) - @property - @pulumi.getter - def name(self) -> pulumi.Input[str]: - """ - Name of Voice Profile Domain. - """ - return pulumi.get(self, "name") - - @name.setter - def name(self, value: pulumi.Input[str]): - pulumi.set(self, "name", value) - @property @pulumi.getter(name="serverSideEncryptionConfiguration") def server_side_encryption_configuration(self) -> pulumi.Input['SdkvoiceVoiceProfileDomainServerSideEncryptionConfigurationArgs']: @@ -69,6 +58,18 @@ def description(self) -> Optional[pulumi.Input[str]]: def description(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "description", value) + @property + @pulumi.getter + def name(self) -> Optional[pulumi.Input[str]]: + """ + Name of Voice Profile Domain. + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "name", value) + @property @pulumi.getter def tags(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]: @@ -199,7 +200,6 @@ def __init__(__self__, description="KMS Key for Voice Profile Domain", deletion_window_in_days=7) example_sdkvoice_voice_profile_domain = aws.chime.SdkvoiceVoiceProfileDomain("exampleSdkvoiceVoiceProfileDomain", - name="ExampleVoiceProfileDomain", server_side_encryption_configuration=aws.chime.SdkvoiceVoiceProfileDomainServerSideEncryptionConfigurationArgs( kms_key_arn=example_key.arn, ), @@ -243,7 +243,6 @@ def __init__(__self__, description="KMS Key for Voice Profile Domain", deletion_window_in_days=7) example_sdkvoice_voice_profile_domain = aws.chime.SdkvoiceVoiceProfileDomain("exampleSdkvoiceVoiceProfileDomain", - name="ExampleVoiceProfileDomain", server_side_encryption_configuration=aws.chime.SdkvoiceVoiceProfileDomainServerSideEncryptionConfigurationArgs( kms_key_arn=example_key.arn, ), @@ -290,8 +289,6 @@ def _internal_init(__self__, __props__ = SdkvoiceVoiceProfileDomainArgs.__new__(SdkvoiceVoiceProfileDomainArgs) __props__.__dict__["description"] = description - if name is None and not opts.urn: - raise TypeError("Missing required property 'name'") __props__.__dict__["name"] = name if server_side_encryption_configuration is None and not opts.urn: raise TypeError("Missing required property 'server_side_encryption_configuration'") diff --git a/sdk/python/pulumi_aws/cleanrooms/collaboration.py b/sdk/python/pulumi_aws/cleanrooms/collaboration.py index 74673b27fe2..88f441b2be6 100644 --- a/sdk/python/pulumi_aws/cleanrooms/collaboration.py +++ b/sdk/python/pulumi_aws/cleanrooms/collaboration.py @@ -19,10 +19,10 @@ def __init__(__self__, *, creator_display_name: pulumi.Input[str], creator_member_abilities: pulumi.Input[Sequence[pulumi.Input[str]]], description: pulumi.Input[str], - name: pulumi.Input[str], query_log_status: pulumi.Input[str], data_encryption_metadata: Optional[pulumi.Input['CollaborationDataEncryptionMetadataArgs']] = None, members: Optional[pulumi.Input[Sequence[pulumi.Input['CollaborationMemberArgs']]]] = None, + name: Optional[pulumi.Input[str]] = None, tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None): """ The set of arguments for constructing a Collaboration resource. @@ -31,7 +31,6 @@ def __init__(__self__, *, lues [may be found here](https://docs.aws.amazon.com/clean-rooms/latest/apireference/API_CreateCollaboration.html#API-CreateCollaboration-re uest-creatorMemberAbilities) :param pulumi.Input[str] description: A description for a collaboration. - :param pulumi.Input[str] name: The name of the collaboration. Collaboration names do not need to be unique. :param pulumi.Input[str] query_log_status: Determines if members of the collaboration can enable query logs within their own emberships. Valid values [may be found here](https://docs.aws.amazon.com/clean-rooms/latest/apireference/API_CreateCollaboration.html#API-Cr ateCollaboration-request-queryLogStatus). @@ -50,17 +49,19 @@ def __init__(__self__, *, * `member.display_name` - (Required - Forces new resource) - The display name for the invited member * `member.member_abilities` - (Required - Forces new resource) - The list of abilities for the invited member. Valid values [may be found here](https://docs.aws.amazon.com/clean-rooms/latest/apireference/API_CreateCollaboration.html#API-CreateCollaboration-request-creatorMemberAbiliti s + :param pulumi.Input[str] name: The name of the collaboration. Collaboration names do not need to be unique. :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: Key value pairs which tag the collaboration. """ pulumi.set(__self__, "creator_display_name", creator_display_name) pulumi.set(__self__, "creator_member_abilities", creator_member_abilities) pulumi.set(__self__, "description", description) - pulumi.set(__self__, "name", name) pulumi.set(__self__, "query_log_status", query_log_status) if data_encryption_metadata is not None: pulumi.set(__self__, "data_encryption_metadata", data_encryption_metadata) if members is not None: pulumi.set(__self__, "members", members) + if name is not None: + pulumi.set(__self__, "name", name) if tags is not None: pulumi.set(__self__, "tags", tags) @@ -102,18 +103,6 @@ def description(self) -> pulumi.Input[str]: def description(self, value: pulumi.Input[str]): pulumi.set(self, "description", value) - @property - @pulumi.getter - def name(self) -> pulumi.Input[str]: - """ - The name of the collaboration. Collaboration names do not need to be unique. - """ - return pulumi.get(self, "name") - - @name.setter - def name(self, value: pulumi.Input[str]): - pulumi.set(self, "name", value) - @property @pulumi.getter(name="queryLogStatus") def query_log_status(self) -> pulumi.Input[str]: @@ -165,6 +154,18 @@ def members(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['CollaborationM def members(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['CollaborationMemberArgs']]]]): pulumi.set(self, "members", value) + @property + @pulumi.getter + def name(self) -> Optional[pulumi.Input[str]]: + """ + The name of the collaboration. Collaboration names do not need to be unique. + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "name", value) + @property @pulumi.getter def tags(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]: @@ -451,7 +452,6 @@ def __init__(__self__, display_name="Other member", member_abilities=[], )], - name="pulumi-example-collaboration", query_log_status="DISABLED", tags={ "Project": "Pulumi", @@ -521,7 +521,6 @@ def __init__(__self__, display_name="Other member", member_abilities=[], )], - name="pulumi-example-collaboration", query_log_status="DISABLED", tags={ "Project": "Pulumi", @@ -571,8 +570,6 @@ def _internal_init(__self__, raise TypeError("Missing required property 'description'") __props__.__dict__["description"] = description __props__.__dict__["members"] = members - if name is None and not opts.urn: - raise TypeError("Missing required property 'name'") __props__.__dict__["name"] = name if query_log_status is None and not opts.urn: raise TypeError("Missing required property 'query_log_status'") diff --git a/sdk/python/pulumi_aws/cloudfront/field_level_encryption_profile.py b/sdk/python/pulumi_aws/cloudfront/field_level_encryption_profile.py index cd8321989bd..adb1b3f8063 100644 --- a/sdk/python/pulumi_aws/cloudfront/field_level_encryption_profile.py +++ b/sdk/python/pulumi_aws/cloudfront/field_level_encryption_profile.py @@ -176,8 +176,7 @@ def __init__(__self__, example = aws.cloudfront.PublicKey("example", comment="test public key", - encoded_key=(lambda path: open(path).read())("public_key.pem"), - name="test_key") + encoded_key=(lambda path: open(path).read())("public_key.pem")) test = aws.cloudfront.FieldLevelEncryptionProfile("test", comment="test comment", encryption_entities=aws.cloudfront.FieldLevelEncryptionProfileEncryptionEntitiesArgs( @@ -222,8 +221,7 @@ def __init__(__self__, example = aws.cloudfront.PublicKey("example", comment="test public key", - encoded_key=(lambda path: open(path).read())("public_key.pem"), - name="test_key") + encoded_key=(lambda path: open(path).read())("public_key.pem")) test = aws.cloudfront.FieldLevelEncryptionProfile("test", comment="test comment", encryption_entities=aws.cloudfront.FieldLevelEncryptionProfileEncryptionEntitiesArgs( diff --git a/sdk/python/pulumi_aws/cloudfront/key_group.py b/sdk/python/pulumi_aws/cloudfront/key_group.py index af12f98d18a..d49c84162ab 100644 --- a/sdk/python/pulumi_aws/cloudfront/key_group.py +++ b/sdk/python/pulumi_aws/cloudfront/key_group.py @@ -158,8 +158,7 @@ def __init__(__self__, example_public_key = aws.cloudfront.PublicKey("examplePublicKey", comment="example public key", - encoded_key=(lambda path: open(path).read())("public_key.pem"), - name="example-key") + encoded_key=(lambda path: open(path).read())("public_key.pem")) example_key_group = aws.cloudfront.KeyGroup("exampleKeyGroup", comment="example key group", items=[example_public_key.id]) @@ -196,8 +195,7 @@ def __init__(__self__, example_public_key = aws.cloudfront.PublicKey("examplePublicKey", comment="example public key", - encoded_key=(lambda path: open(path).read())("public_key.pem"), - name="example-key") + encoded_key=(lambda path: open(path).read())("public_key.pem")) example_key_group = aws.cloudfront.KeyGroup("exampleKeyGroup", comment="example key group", items=[example_public_key.id]) diff --git a/sdk/python/pulumi_aws/cloudfront/public_key.py b/sdk/python/pulumi_aws/cloudfront/public_key.py index 3434a43f687..073a454961d 100644 --- a/sdk/python/pulumi_aws/cloudfront/public_key.py +++ b/sdk/python/pulumi_aws/cloudfront/public_key.py @@ -215,8 +215,7 @@ def __init__(__self__, example = aws.cloudfront.PublicKey("example", comment="test public key", - encoded_key=(lambda path: open(path).read())("public_key.pem"), - name="test_key") + encoded_key=(lambda path: open(path).read())("public_key.pem")) ``` ## Import @@ -253,8 +252,7 @@ def __init__(__self__, example = aws.cloudfront.PublicKey("example", comment="test public key", - encoded_key=(lambda path: open(path).read())("public_key.pem"), - name="test_key") + encoded_key=(lambda path: open(path).read())("public_key.pem")) ``` ## Import diff --git a/sdk/python/pulumi_aws/emrcontainers/job_template.py b/sdk/python/pulumi_aws/emrcontainers/job_template.py index a02edd1ef8f..a3a0ffcc718 100644 --- a/sdk/python/pulumi_aws/emrcontainers/job_template.py +++ b/sdk/python/pulumi_aws/emrcontainers/job_template.py @@ -17,20 +17,21 @@ class JobTemplateArgs: def __init__(__self__, *, job_template_data: pulumi.Input['JobTemplateJobTemplateDataArgs'], - name: pulumi.Input[str], kms_key_arn: Optional[pulumi.Input[str]] = None, + name: Optional[pulumi.Input[str]] = None, tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None): """ The set of arguments for constructing a JobTemplate resource. :param pulumi.Input['JobTemplateJobTemplateDataArgs'] job_template_data: The job template data which holds values of StartJobRun API request. - :param pulumi.Input[str] name: The specified name of the job template. :param pulumi.Input[str] kms_key_arn: The KMS key ARN used to encrypt the job template. + :param pulumi.Input[str] name: The specified name of the job template. :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: Key-value mapping of resource tags. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. """ pulumi.set(__self__, "job_template_data", job_template_data) - pulumi.set(__self__, "name", name) if kms_key_arn is not None: pulumi.set(__self__, "kms_key_arn", kms_key_arn) + if name is not None: + pulumi.set(__self__, "name", name) if tags is not None: pulumi.set(__self__, "tags", tags) @@ -46,18 +47,6 @@ def job_template_data(self) -> pulumi.Input['JobTemplateJobTemplateDataArgs']: def job_template_data(self, value: pulumi.Input['JobTemplateJobTemplateDataArgs']): pulumi.set(self, "job_template_data", value) - @property - @pulumi.getter - def name(self) -> pulumi.Input[str]: - """ - The specified name of the job template. - """ - return pulumi.get(self, "name") - - @name.setter - def name(self, value: pulumi.Input[str]): - pulumi.set(self, "name", value) - @property @pulumi.getter(name="kmsKeyArn") def kms_key_arn(self) -> Optional[pulumi.Input[str]]: @@ -70,6 +59,18 @@ def kms_key_arn(self) -> Optional[pulumi.Input[str]]: def kms_key_arn(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "kms_key_arn", value) + @property + @pulumi.getter + def name(self) -> Optional[pulumi.Input[str]]: + """ + The specified name of the job template. + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "name", value) + @property @pulumi.getter def tags(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]: @@ -207,17 +208,15 @@ def __init__(__self__, import pulumi import pulumi_aws as aws - example = aws.emrcontainers.JobTemplate("example", - job_template_data=aws.emrcontainers.JobTemplateJobTemplateDataArgs( - execution_role_arn=aws_iam_role["example"]["arn"], - release_label="emr-6.10.0-latest", - job_driver=aws.emrcontainers.JobTemplateJobTemplateDataJobDriverArgs( - spark_sql_job_driver=aws.emrcontainers.JobTemplateJobTemplateDataJobDriverSparkSqlJobDriverArgs( - entry_point="default", - ), + example = aws.emrcontainers.JobTemplate("example", job_template_data=aws.emrcontainers.JobTemplateJobTemplateDataArgs( + execution_role_arn=aws_iam_role["example"]["arn"], + release_label="emr-6.10.0-latest", + job_driver=aws.emrcontainers.JobTemplateJobTemplateDataJobDriverArgs( + spark_sql_job_driver=aws.emrcontainers.JobTemplateJobTemplateDataJobDriverSparkSqlJobDriverArgs( + entry_point="default", ), ), - name="example") + )) ``` ## Import @@ -251,17 +250,15 @@ def __init__(__self__, import pulumi import pulumi_aws as aws - example = aws.emrcontainers.JobTemplate("example", - job_template_data=aws.emrcontainers.JobTemplateJobTemplateDataArgs( - execution_role_arn=aws_iam_role["example"]["arn"], - release_label="emr-6.10.0-latest", - job_driver=aws.emrcontainers.JobTemplateJobTemplateDataJobDriverArgs( - spark_sql_job_driver=aws.emrcontainers.JobTemplateJobTemplateDataJobDriverSparkSqlJobDriverArgs( - entry_point="default", - ), + example = aws.emrcontainers.JobTemplate("example", job_template_data=aws.emrcontainers.JobTemplateJobTemplateDataArgs( + execution_role_arn=aws_iam_role["example"]["arn"], + release_label="emr-6.10.0-latest", + job_driver=aws.emrcontainers.JobTemplateJobTemplateDataJobDriverArgs( + spark_sql_job_driver=aws.emrcontainers.JobTemplateJobTemplateDataJobDriverSparkSqlJobDriverArgs( + entry_point="default", ), ), - name="example") + )) ``` ## Import @@ -304,8 +301,6 @@ def _internal_init(__self__, raise TypeError("Missing required property 'job_template_data'") __props__.__dict__["job_template_data"] = job_template_data __props__.__dict__["kms_key_arn"] = kms_key_arn - if name is None and not opts.urn: - raise TypeError("Missing required property 'name'") __props__.__dict__["name"] = name __props__.__dict__["tags"] = tags __props__.__dict__["arn"] = None diff --git a/sdk/python/pulumi_aws/finspace/kx_cluster.py b/sdk/python/pulumi_aws/finspace/kx_cluster.py index bb5a439d73a..073a1433030 100644 --- a/sdk/python/pulumi_aws/finspace/kx_cluster.py +++ b/sdk/python/pulumi_aws/finspace/kx_cluster.py @@ -19,7 +19,6 @@ def __init__(__self__, *, az_mode: pulumi.Input[str], capacity_configuration: pulumi.Input['KxClusterCapacityConfigurationArgs'], environment_id: pulumi.Input[str], - name: pulumi.Input[str], release_label: pulumi.Input[str], type: pulumi.Input[str], vpc_configuration: pulumi.Input['KxClusterVpcConfigurationArgs'], @@ -32,6 +31,7 @@ def __init__(__self__, *, description: Optional[pulumi.Input[str]] = None, execution_role: Optional[pulumi.Input[str]] = None, initialization_script: Optional[pulumi.Input[str]] = None, + name: Optional[pulumi.Input[str]] = None, savedown_storage_configuration: Optional[pulumi.Input['KxClusterSavedownStorageConfigurationArgs']] = None, tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None): """ @@ -41,7 +41,6 @@ def __init__(__self__, *, * MULTI - Assigns all the availability zones per cluster. :param pulumi.Input['KxClusterCapacityConfigurationArgs'] capacity_configuration: Structure for the metadata of a cluster. Includes information like the CPUs needed, memory of instances, and number of instances. See capacity_configuration. :param pulumi.Input[str] environment_id: Unique identifier for the KX environment. - :param pulumi.Input[str] name: Unique name for the cluster that you want to create. :param pulumi.Input[str] release_label: Version of FinSpace Managed kdb to run. :param pulumi.Input[str] type: Type of KDB database. The following types are available: * HDB - Historical Database. The data is only accessible with read-only permissions from one of the FinSpace managed KX databases mounted to the cluster. @@ -59,13 +58,13 @@ def __init__(__self__, *, :param pulumi.Input[str] description: Description of the cluster. :param pulumi.Input[str] execution_role: An IAM role that defines a set of permissions associated with a cluster. These permissions are assumed when a cluster attempts to access another cluster. :param pulumi.Input[str] initialization_script: Path to Q program that will be run at launch of a cluster. This is a relative path within .zip file that contains the custom code, which will be loaded on the cluster. It must include the file name itself. For example, somedir/init.q. + :param pulumi.Input[str] name: Unique name for the cluster that you want to create. :param pulumi.Input['KxClusterSavedownStorageConfigurationArgs'] savedown_storage_configuration: Size and type of the temporary storage that is used to hold data during the savedown process. This parameter is required when you choose `type` as RDB. All the data written to this storage space is lost when the cluster node is restarted. See savedown_storage_configuration. :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: Key-value mapping of resource tags. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. """ pulumi.set(__self__, "az_mode", az_mode) pulumi.set(__self__, "capacity_configuration", capacity_configuration) pulumi.set(__self__, "environment_id", environment_id) - pulumi.set(__self__, "name", name) pulumi.set(__self__, "release_label", release_label) pulumi.set(__self__, "type", type) pulumi.set(__self__, "vpc_configuration", vpc_configuration) @@ -87,6 +86,8 @@ def __init__(__self__, *, pulumi.set(__self__, "execution_role", execution_role) if initialization_script is not None: pulumi.set(__self__, "initialization_script", initialization_script) + if name is not None: + pulumi.set(__self__, "name", name) if savedown_storage_configuration is not None: pulumi.set(__self__, "savedown_storage_configuration", savedown_storage_configuration) if tags is not None: @@ -130,18 +131,6 @@ def environment_id(self) -> pulumi.Input[str]: def environment_id(self, value: pulumi.Input[str]): pulumi.set(self, "environment_id", value) - @property - @pulumi.getter - def name(self) -> pulumi.Input[str]: - """ - Unique name for the cluster that you want to create. - """ - return pulumi.get(self, "name") - - @name.setter - def name(self, value: pulumi.Input[str]): - pulumi.set(self, "name", value) - @property @pulumi.getter(name="releaseLabel") def release_label(self) -> pulumi.Input[str]: @@ -291,6 +280,18 @@ def initialization_script(self) -> Optional[pulumi.Input[str]]: def initialization_script(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "initialization_script", value) + @property + @pulumi.getter + def name(self) -> Optional[pulumi.Input[str]]: + """ + Unique name for the cluster that you want to create. + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "name", value) + @property @pulumi.getter(name="savedownStorageConfiguration") def savedown_storage_configuration(self) -> Optional[pulumi.Input['KxClusterSavedownStorageConfigurationArgs']]: @@ -858,8 +859,6 @@ def _internal_init(__self__, __props__.__dict__["environment_id"] = environment_id __props__.__dict__["execution_role"] = execution_role __props__.__dict__["initialization_script"] = initialization_script - if name is None and not opts.urn: - raise TypeError("Missing required property 'name'") __props__.__dict__["name"] = name if release_label is None and not opts.urn: raise TypeError("Missing required property 'release_label'") diff --git a/sdk/python/pulumi_aws/finspace/kx_database.py b/sdk/python/pulumi_aws/finspace/kx_database.py index 02895e934f3..7f6e2cc498a 100644 --- a/sdk/python/pulumi_aws/finspace/kx_database.py +++ b/sdk/python/pulumi_aws/finspace/kx_database.py @@ -15,22 +15,23 @@ class KxDatabaseArgs: def __init__(__self__, *, environment_id: pulumi.Input[str], - name: pulumi.Input[str], description: Optional[pulumi.Input[str]] = None, + name: Optional[pulumi.Input[str]] = None, tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None): """ The set of arguments for constructing a KxDatabase resource. :param pulumi.Input[str] environment_id: Unique identifier for the KX environment. + :param pulumi.Input[str] description: Description of the KX database. :param pulumi.Input[str] name: Name of the KX database. The following arguments are optional: - :param pulumi.Input[str] description: Description of the KX database. :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: Key-value mapping of resource tags. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. """ pulumi.set(__self__, "environment_id", environment_id) - pulumi.set(__self__, "name", name) if description is not None: pulumi.set(__self__, "description", description) + if name is not None: + pulumi.set(__self__, "name", name) if tags is not None: pulumi.set(__self__, "tags", tags) @@ -46,20 +47,6 @@ def environment_id(self) -> pulumi.Input[str]: def environment_id(self, value: pulumi.Input[str]): pulumi.set(self, "environment_id", value) - @property - @pulumi.getter - def name(self) -> pulumi.Input[str]: - """ - Name of the KX database. - - The following arguments are optional: - """ - return pulumi.get(self, "name") - - @name.setter - def name(self, value: pulumi.Input[str]): - pulumi.set(self, "name", value) - @property @pulumi.getter def description(self) -> Optional[pulumi.Input[str]]: @@ -72,6 +59,20 @@ def description(self) -> Optional[pulumi.Input[str]]: def description(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "description", value) + @property + @pulumi.getter + def name(self) -> Optional[pulumi.Input[str]]: + """ + Name of the KX database. + + The following arguments are optional: + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "name", value) + @property @pulumi.getter def tags(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]: @@ -248,12 +249,9 @@ def __init__(__self__, example_key = aws.kms.Key("exampleKey", description="Example KMS Key", deletion_window_in_days=7) - example_kx_environment = aws.finspace.KxEnvironment("exampleKxEnvironment", - name="my-tf-kx-environment", - kms_key_id=example_key.arn) + example_kx_environment = aws.finspace.KxEnvironment("exampleKxEnvironment", kms_key_id=example_key.arn) example_kx_database = aws.finspace.KxDatabase("exampleKxDatabase", environment_id=example_kx_environment.id, - name="my-tf-kx-database", description="Example database description") ``` @@ -293,12 +291,9 @@ def __init__(__self__, example_key = aws.kms.Key("exampleKey", description="Example KMS Key", deletion_window_in_days=7) - example_kx_environment = aws.finspace.KxEnvironment("exampleKxEnvironment", - name="my-tf-kx-environment", - kms_key_id=example_key.arn) + example_kx_environment = aws.finspace.KxEnvironment("exampleKxEnvironment", kms_key_id=example_key.arn) example_kx_database = aws.finspace.KxDatabase("exampleKxDatabase", environment_id=example_kx_environment.id, - name="my-tf-kx-database", description="Example database description") ``` @@ -342,8 +337,6 @@ def _internal_init(__self__, if environment_id is None and not opts.urn: raise TypeError("Missing required property 'environment_id'") __props__.__dict__["environment_id"] = environment_id - if name is None and not opts.urn: - raise TypeError("Missing required property 'name'") __props__.__dict__["name"] = name __props__.__dict__["tags"] = tags __props__.__dict__["arn"] = None diff --git a/sdk/python/pulumi_aws/finspace/kx_environment.py b/sdk/python/pulumi_aws/finspace/kx_environment.py index cd22ea70d32..93f5002c7da 100644 --- a/sdk/python/pulumi_aws/finspace/kx_environment.py +++ b/sdk/python/pulumi_aws/finspace/kx_environment.py @@ -17,9 +17,9 @@ class KxEnvironmentArgs: def __init__(__self__, *, kms_key_id: pulumi.Input[str], - name: pulumi.Input[str], custom_dns_configurations: Optional[pulumi.Input[Sequence[pulumi.Input['KxEnvironmentCustomDnsConfigurationArgs']]]] = None, description: Optional[pulumi.Input[str]] = None, + name: Optional[pulumi.Input[str]] = None, tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, transit_gateway_configuration: Optional[pulumi.Input['KxEnvironmentTransitGatewayConfigurationArgs']] = None): """ @@ -27,18 +27,19 @@ def __init__(__self__, *, :param pulumi.Input[str] kms_key_id: KMS key ID to encrypt your data in the FinSpace environment. The following arguments are optional: - :param pulumi.Input[str] name: Name of the KX environment that you want to create. :param pulumi.Input[Sequence[pulumi.Input['KxEnvironmentCustomDnsConfigurationArgs']]] custom_dns_configurations: List of DNS server name and server IP. This is used to set up Route-53 outbound resolvers. Defined below. :param pulumi.Input[str] description: Description for the KX environment. + :param pulumi.Input[str] name: Name of the KX environment that you want to create. :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: Key-value mapping of resource tags. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. :param pulumi.Input['KxEnvironmentTransitGatewayConfigurationArgs'] transit_gateway_configuration: Transit gateway and network configuration that is used to connect the KX environment to an internal network. Defined below. """ pulumi.set(__self__, "kms_key_id", kms_key_id) - pulumi.set(__self__, "name", name) if custom_dns_configurations is not None: pulumi.set(__self__, "custom_dns_configurations", custom_dns_configurations) if description is not None: pulumi.set(__self__, "description", description) + if name is not None: + pulumi.set(__self__, "name", name) if tags is not None: pulumi.set(__self__, "tags", tags) if transit_gateway_configuration is not None: @@ -58,18 +59,6 @@ def kms_key_id(self) -> pulumi.Input[str]: def kms_key_id(self, value: pulumi.Input[str]): pulumi.set(self, "kms_key_id", value) - @property - @pulumi.getter - def name(self) -> pulumi.Input[str]: - """ - Name of the KX environment that you want to create. - """ - return pulumi.get(self, "name") - - @name.setter - def name(self, value: pulumi.Input[str]): - pulumi.set(self, "name", value) - @property @pulumi.getter(name="customDnsConfigurations") def custom_dns_configurations(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['KxEnvironmentCustomDnsConfigurationArgs']]]]: @@ -94,6 +83,18 @@ def description(self) -> Optional[pulumi.Input[str]]: def description(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "description", value) + @property + @pulumi.getter + def name(self) -> Optional[pulumi.Input[str]]: + """ + Name of the KX environment that you want to create. + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "name", value) + @property @pulumi.getter def tags(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]: @@ -364,9 +365,7 @@ def __init__(__self__, example_key = aws.kms.Key("exampleKey", description="Sample KMS Key", deletion_window_in_days=7) - example_kx_environment = aws.finspace.KxEnvironment("exampleKxEnvironment", - name="my-tf-kx-environment", - kms_key_id=example_key.arn) + example_kx_environment = aws.finspace.KxEnvironment("exampleKxEnvironment", kms_key_id=example_key.arn) ``` ### With Network Setup @@ -379,7 +378,6 @@ def __init__(__self__, deletion_window_in_days=7) example_transit_gateway = aws.ec2transitgateway.TransitGateway("exampleTransitGateway", description="example") example_env = aws.finspace.KxEnvironment("exampleEnv", - name="my-tf-kx-environment", description="Environment description", kms_key_id=example_key.arn, transit_gateway_configuration=aws.finspace.KxEnvironmentTransitGatewayConfigurationArgs( @@ -430,9 +428,7 @@ def __init__(__self__, example_key = aws.kms.Key("exampleKey", description="Sample KMS Key", deletion_window_in_days=7) - example_kx_environment = aws.finspace.KxEnvironment("exampleKxEnvironment", - name="my-tf-kx-environment", - kms_key_id=example_key.arn) + example_kx_environment = aws.finspace.KxEnvironment("exampleKxEnvironment", kms_key_id=example_key.arn) ``` ### With Network Setup @@ -445,7 +441,6 @@ def __init__(__self__, deletion_window_in_days=7) example_transit_gateway = aws.ec2transitgateway.TransitGateway("exampleTransitGateway", description="example") example_env = aws.finspace.KxEnvironment("exampleEnv", - name="my-tf-kx-environment", description="Environment description", kms_key_id=example_key.arn, transit_gateway_configuration=aws.finspace.KxEnvironmentTransitGatewayConfigurationArgs( @@ -501,8 +496,6 @@ def _internal_init(__self__, if kms_key_id is None and not opts.urn: raise TypeError("Missing required property 'kms_key_id'") __props__.__dict__["kms_key_id"] = kms_key_id - if name is None and not opts.urn: - raise TypeError("Missing required property 'name'") __props__.__dict__["name"] = name __props__.__dict__["tags"] = tags __props__.__dict__["transit_gateway_configuration"] = transit_gateway_configuration diff --git a/sdk/python/pulumi_aws/finspace/kx_user.py b/sdk/python/pulumi_aws/finspace/kx_user.py index 7110bdd22df..67a4854fe58 100644 --- a/sdk/python/pulumi_aws/finspace/kx_user.py +++ b/sdk/python/pulumi_aws/finspace/kx_user.py @@ -16,7 +16,7 @@ class KxUserArgs: def __init__(__self__, *, environment_id: pulumi.Input[str], iam_role: pulumi.Input[str], - name: pulumi.Input[str], + name: Optional[pulumi.Input[str]] = None, tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None): """ The set of arguments for constructing a KxUser resource. @@ -29,7 +29,8 @@ def __init__(__self__, *, """ pulumi.set(__self__, "environment_id", environment_id) pulumi.set(__self__, "iam_role", iam_role) - pulumi.set(__self__, "name", name) + if name is not None: + pulumi.set(__self__, "name", name) if tags is not None: pulumi.set(__self__, "tags", tags) @@ -61,14 +62,14 @@ def iam_role(self, value: pulumi.Input[str]): @property @pulumi.getter - def name(self) -> pulumi.Input[str]: + def name(self) -> Optional[pulumi.Input[str]]: """ A unique identifier for the user. """ return pulumi.get(self, "name") @name.setter - def name(self, value: pulumi.Input[str]): + def name(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "name", value) @property @@ -216,9 +217,7 @@ def __init__(__self__, example_key = aws.kms.Key("exampleKey", description="Example KMS Key", deletion_window_in_days=7) - example_kx_environment = aws.finspace.KxEnvironment("exampleKxEnvironment", - name="my-tf-kx-environment", - kms_key_id=example_key.arn) + example_kx_environment = aws.finspace.KxEnvironment("exampleKxEnvironment", kms_key_id=example_key.arn) example_role = aws.iam.Role("exampleRole", assume_role_policy=json.dumps({ "Version": "2012-10-17", "Statement": [{ @@ -231,7 +230,6 @@ def __init__(__self__, }], })) example_kx_user = aws.finspace.KxUser("exampleKxUser", - name="my-tf-kx-user", environment_id=example_kx_environment.id, iam_role=example_role.arn) ``` @@ -273,9 +271,7 @@ def __init__(__self__, example_key = aws.kms.Key("exampleKey", description="Example KMS Key", deletion_window_in_days=7) - example_kx_environment = aws.finspace.KxEnvironment("exampleKxEnvironment", - name="my-tf-kx-environment", - kms_key_id=example_key.arn) + example_kx_environment = aws.finspace.KxEnvironment("exampleKxEnvironment", kms_key_id=example_key.arn) example_role = aws.iam.Role("exampleRole", assume_role_policy=json.dumps({ "Version": "2012-10-17", "Statement": [{ @@ -288,7 +284,6 @@ def __init__(__self__, }], })) example_kx_user = aws.finspace.KxUser("exampleKxUser", - name="my-tf-kx-user", environment_id=example_kx_environment.id, iam_role=example_role.arn) ``` @@ -335,8 +330,6 @@ def _internal_init(__self__, if iam_role is None and not opts.urn: raise TypeError("Missing required property 'iam_role'") __props__.__dict__["iam_role"] = iam_role - if name is None and not opts.urn: - raise TypeError("Missing required property 'name'") __props__.__dict__["name"] = name __props__.__dict__["tags"] = tags __props__.__dict__["arn"] = None diff --git a/sdk/python/pulumi_aws/globalaccelerator/custom_routing_accelerator.py b/sdk/python/pulumi_aws/globalaccelerator/custom_routing_accelerator.py index 81565189609..86ce7af1215 100644 --- a/sdk/python/pulumi_aws/globalaccelerator/custom_routing_accelerator.py +++ b/sdk/python/pulumi_aws/globalaccelerator/custom_routing_accelerator.py @@ -16,22 +16,21 @@ @pulumi.input_type class CustomRoutingAcceleratorArgs: def __init__(__self__, *, - name: pulumi.Input[str], attributes: Optional[pulumi.Input['CustomRoutingAcceleratorAttributesArgs']] = None, enabled: Optional[pulumi.Input[bool]] = None, ip_address_type: Optional[pulumi.Input[str]] = None, ip_addresses: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, + name: Optional[pulumi.Input[str]] = None, tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None): """ The set of arguments for constructing a CustomRoutingAccelerator resource. - :param pulumi.Input[str] name: The name of a custom routing accelerator. :param pulumi.Input['CustomRoutingAcceleratorAttributesArgs'] attributes: The attributes of the accelerator. Fields documented below. :param pulumi.Input[bool] enabled: Indicates whether the accelerator is enabled. Defaults to `true`. Valid values: `true`, `false`. :param pulumi.Input[str] ip_address_type: The IP address type that an accelerator supports. For a custom routing accelerator, the value must be `"IPV4"`. :param pulumi.Input[Sequence[pulumi.Input[str]]] ip_addresses: The IP addresses to use for BYOIP accelerators. If not specified, the service assigns IP addresses. Valid values: 1 or 2 IPv4 addresses. + :param pulumi.Input[str] name: The name of a custom routing accelerator. :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: A map of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. """ - pulumi.set(__self__, "name", name) if attributes is not None: pulumi.set(__self__, "attributes", attributes) if enabled is not None: @@ -40,21 +39,11 @@ def __init__(__self__, *, pulumi.set(__self__, "ip_address_type", ip_address_type) if ip_addresses is not None: pulumi.set(__self__, "ip_addresses", ip_addresses) + if name is not None: + pulumi.set(__self__, "name", name) if tags is not None: pulumi.set(__self__, "tags", tags) - @property - @pulumi.getter - def name(self) -> pulumi.Input[str]: - """ - The name of a custom routing accelerator. - """ - return pulumi.get(self, "name") - - @name.setter - def name(self, value: pulumi.Input[str]): - pulumi.set(self, "name", value) - @property @pulumi.getter def attributes(self) -> Optional[pulumi.Input['CustomRoutingAcceleratorAttributesArgs']]: @@ -103,6 +92,18 @@ def ip_addresses(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: def ip_addresses(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): pulumi.set(self, "ip_addresses", value) + @property + @pulumi.getter + def name(self) -> Optional[pulumi.Input[str]]: + """ + The name of a custom routing accelerator. + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "name", value) + @property @pulumi.getter def tags(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]: @@ -317,8 +318,7 @@ def __init__(__self__, ), enabled=True, ip_address_type="IPV4", - ip_addresses=["1.2.3.4"], - name="Example") + ip_addresses=["1.2.3.4"]) ``` ## Import @@ -342,7 +342,7 @@ def __init__(__self__, @overload def __init__(__self__, resource_name: str, - args: CustomRoutingAcceleratorArgs, + args: Optional[CustomRoutingAcceleratorArgs] = None, opts: Optional[pulumi.ResourceOptions] = None): """ Creates a Global Accelerator custom routing accelerator. @@ -361,8 +361,7 @@ def __init__(__self__, ), enabled=True, ip_address_type="IPV4", - ip_addresses=["1.2.3.4"], - name="Example") + ip_addresses=["1.2.3.4"]) ``` ## Import @@ -407,8 +406,6 @@ def _internal_init(__self__, __props__.__dict__["enabled"] = enabled __props__.__dict__["ip_address_type"] = ip_address_type __props__.__dict__["ip_addresses"] = ip_addresses - if name is None and not opts.urn: - raise TypeError("Missing required property 'name'") __props__.__dict__["name"] = name __props__.__dict__["tags"] = tags __props__.__dict__["dns_name"] = None diff --git a/sdk/python/pulumi_aws/globalaccelerator/custom_routing_listener.py b/sdk/python/pulumi_aws/globalaccelerator/custom_routing_listener.py index c8a8bd13e87..e9fd7a2f7c7 100644 --- a/sdk/python/pulumi_aws/globalaccelerator/custom_routing_listener.py +++ b/sdk/python/pulumi_aws/globalaccelerator/custom_routing_listener.py @@ -109,7 +109,6 @@ def __init__(__self__, import pulumi_aws as aws example_custom_routing_accelerator = aws.globalaccelerator.CustomRoutingAccelerator("exampleCustomRoutingAccelerator", - name="Example", ip_address_type="IPV4", enabled=True, attributes=aws.globalaccelerator.CustomRoutingAcceleratorAttributesArgs( @@ -154,7 +153,6 @@ def __init__(__self__, import pulumi_aws as aws example_custom_routing_accelerator = aws.globalaccelerator.CustomRoutingAccelerator("exampleCustomRoutingAccelerator", - name="Example", ip_address_type="IPV4", enabled=True, attributes=aws.globalaccelerator.CustomRoutingAcceleratorAttributesArgs( diff --git a/sdk/python/pulumi_aws/glue/data_quality_ruleset.py b/sdk/python/pulumi_aws/glue/data_quality_ruleset.py index e79e4c7ad53..e7c27949d67 100644 --- a/sdk/python/pulumi_aws/glue/data_quality_ruleset.py +++ b/sdk/python/pulumi_aws/glue/data_quality_ruleset.py @@ -16,40 +16,29 @@ @pulumi.input_type class DataQualityRulesetArgs: def __init__(__self__, *, - name: pulumi.Input[str], ruleset: pulumi.Input[str], description: Optional[pulumi.Input[str]] = None, + name: Optional[pulumi.Input[str]] = None, tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, target_table: Optional[pulumi.Input['DataQualityRulesetTargetTableArgs']] = None): """ The set of arguments for constructing a DataQualityRuleset resource. - :param pulumi.Input[str] name: Name of the data quality ruleset. :param pulumi.Input[str] ruleset: A Data Quality Definition Language (DQDL) ruleset. For more information, see the AWS Glue developer guide. :param pulumi.Input[str] description: Description of the data quality ruleset. + :param pulumi.Input[str] name: Name of the data quality ruleset. :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: Key-value map of resource tags. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. :param pulumi.Input['DataQualityRulesetTargetTableArgs'] target_table: A Configuration block specifying a target table associated with the data quality ruleset. See `target_table` below. """ - pulumi.set(__self__, "name", name) pulumi.set(__self__, "ruleset", ruleset) if description is not None: pulumi.set(__self__, "description", description) + if name is not None: + pulumi.set(__self__, "name", name) if tags is not None: pulumi.set(__self__, "tags", tags) if target_table is not None: pulumi.set(__self__, "target_table", target_table) - @property - @pulumi.getter - def name(self) -> pulumi.Input[str]: - """ - Name of the data quality ruleset. - """ - return pulumi.get(self, "name") - - @name.setter - def name(self, value: pulumi.Input[str]): - pulumi.set(self, "name", value) - @property @pulumi.getter def ruleset(self) -> pulumi.Input[str]: @@ -74,6 +63,18 @@ def description(self) -> Optional[pulumi.Input[str]]: def description(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "description", value) + @property + @pulumi.getter + def name(self) -> Optional[pulumi.Input[str]]: + """ + Name of the data quality ruleset. + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "name", value) + @property @pulumi.getter def tags(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]: @@ -288,9 +289,7 @@ def __init__(__self__, import pulumi import pulumi_aws as aws - example = aws.glue.DataQualityRuleset("example", - name="example", - ruleset="Rules = [Completeness \\"colA\\" between 0.4 and 0.8]") + example = aws.glue.DataQualityRuleset("example", ruleset="Rules = [Completeness \\"colA\\" between 0.4 and 0.8]") ``` ### With description @@ -300,7 +299,6 @@ def __init__(__self__, example = aws.glue.DataQualityRuleset("example", description="example", - name="example", ruleset="Rules = [Completeness \\"colA\\" between 0.4 and 0.8]") ``` ### With tags @@ -310,7 +308,6 @@ def __init__(__self__, import pulumi_aws as aws example = aws.glue.DataQualityRuleset("example", - name="example", ruleset="Rules = [Completeness \\"colA\\" between 0.4 and 0.8]", tags={ "hello": "world", @@ -323,7 +320,6 @@ def __init__(__self__, import pulumi_aws as aws example = aws.glue.DataQualityRuleset("example", - name="example", ruleset="Rules = [Completeness \\"colA\\" between 0.4 and 0.8]", target_table=aws.glue.DataQualityRulesetTargetTableArgs( database_name=aws_glue_catalog_database["example"]["name"], @@ -363,9 +359,7 @@ def __init__(__self__, import pulumi import pulumi_aws as aws - example = aws.glue.DataQualityRuleset("example", - name="example", - ruleset="Rules = [Completeness \\"colA\\" between 0.4 and 0.8]") + example = aws.glue.DataQualityRuleset("example", ruleset="Rules = [Completeness \\"colA\\" between 0.4 and 0.8]") ``` ### With description @@ -375,7 +369,6 @@ def __init__(__self__, example = aws.glue.DataQualityRuleset("example", description="example", - name="example", ruleset="Rules = [Completeness \\"colA\\" between 0.4 and 0.8]") ``` ### With tags @@ -385,7 +378,6 @@ def __init__(__self__, import pulumi_aws as aws example = aws.glue.DataQualityRuleset("example", - name="example", ruleset="Rules = [Completeness \\"colA\\" between 0.4 and 0.8]", tags={ "hello": "world", @@ -398,7 +390,6 @@ def __init__(__self__, import pulumi_aws as aws example = aws.glue.DataQualityRuleset("example", - name="example", ruleset="Rules = [Completeness \\"colA\\" between 0.4 and 0.8]", target_table=aws.glue.DataQualityRulesetTargetTableArgs( database_name=aws_glue_catalog_database["example"]["name"], @@ -444,8 +435,6 @@ def _internal_init(__self__, __props__ = DataQualityRulesetArgs.__new__(DataQualityRulesetArgs) __props__.__dict__["description"] = description - if name is None and not opts.urn: - raise TypeError("Missing required property 'name'") __props__.__dict__["name"] = name if ruleset is None and not opts.urn: raise TypeError("Missing required property 'ruleset'") diff --git a/sdk/python/pulumi_aws/opensearch/serverless_access_policy.py b/sdk/python/pulumi_aws/opensearch/serverless_access_policy.py index d677d049c1d..55a7a0185aa 100644 --- a/sdk/python/pulumi_aws/opensearch/serverless_access_policy.py +++ b/sdk/python/pulumi_aws/opensearch/serverless_access_policy.py @@ -14,36 +14,25 @@ @pulumi.input_type class ServerlessAccessPolicyArgs: def __init__(__self__, *, - name: pulumi.Input[str], policy: pulumi.Input[str], type: pulumi.Input[str], - description: Optional[pulumi.Input[str]] = None): + description: Optional[pulumi.Input[str]] = None, + name: Optional[pulumi.Input[str]] = None): """ The set of arguments for constructing a ServerlessAccessPolicy resource. - :param pulumi.Input[str] name: Name of the policy. :param pulumi.Input[str] policy: JSON policy document to use as the content for the new policy :param pulumi.Input[str] type: Type of access policy. Must be `data`. The following arguments are optional: :param pulumi.Input[str] description: Description of the policy. Typically used to store information about the permissions defined in the policy. + :param pulumi.Input[str] name: Name of the policy. """ - pulumi.set(__self__, "name", name) pulumi.set(__self__, "policy", policy) pulumi.set(__self__, "type", type) if description is not None: pulumi.set(__self__, "description", description) - - @property - @pulumi.getter - def name(self) -> pulumi.Input[str]: - """ - Name of the policy. - """ - return pulumi.get(self, "name") - - @name.setter - def name(self, value: pulumi.Input[str]): - pulumi.set(self, "name", value) + if name is not None: + pulumi.set(__self__, "name", name) @property @pulumi.getter @@ -83,6 +72,18 @@ def description(self) -> Optional[pulumi.Input[str]]: def description(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "description", value) + @property + @pulumi.getter + def name(self) -> Optional[pulumi.Input[str]]: + """ + Name of the policy. + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "name", value) + @pulumi.input_type class _ServerlessAccessPolicyState: @@ -200,7 +201,6 @@ def __init__(__self__, current_caller_identity = aws.get_caller_identity() current_partition = aws.get_partition() test = aws.opensearch.ServerlessAccessPolicy("test", - name="example", type="data", policy=json.dumps([{ "Rules": [{ @@ -255,7 +255,6 @@ def __init__(__self__, current_caller_identity = aws.get_caller_identity() current_partition = aws.get_partition() test = aws.opensearch.ServerlessAccessPolicy("test", - name="example", type="data", policy=json.dumps([{ "Rules": [{ @@ -310,8 +309,6 @@ def _internal_init(__self__, __props__ = ServerlessAccessPolicyArgs.__new__(ServerlessAccessPolicyArgs) __props__.__dict__["description"] = description - if name is None and not opts.urn: - raise TypeError("Missing required property 'name'") __props__.__dict__["name"] = name if policy is None and not opts.urn: raise TypeError("Missing required property 'policy'") diff --git a/sdk/python/pulumi_aws/opensearch/serverless_collection.py b/sdk/python/pulumi_aws/opensearch/serverless_collection.py index 5d528528bf8..33f9adc5958 100644 --- a/sdk/python/pulumi_aws/opensearch/serverless_collection.py +++ b/sdk/python/pulumi_aws/opensearch/serverless_collection.py @@ -16,23 +16,24 @@ @pulumi.input_type class ServerlessCollectionArgs: def __init__(__self__, *, - name: pulumi.Input[str], description: Optional[pulumi.Input[str]] = None, + name: Optional[pulumi.Input[str]] = None, tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, timeouts: Optional[pulumi.Input['ServerlessCollectionTimeoutsArgs']] = None, type: Optional[pulumi.Input[str]] = None): """ The set of arguments for constructing a ServerlessCollection resource. + :param pulumi.Input[str] description: Description of the collection. :param pulumi.Input[str] name: Name of the collection. The following arguments are optional: - :param pulumi.Input[str] description: Description of the collection. :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: A map of tags to assign to the collection. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. :param pulumi.Input[str] type: Type of collection. One of `SEARCH` or `TIMESERIES`. """ - pulumi.set(__self__, "name", name) if description is not None: pulumi.set(__self__, "description", description) + if name is not None: + pulumi.set(__self__, "name", name) if tags is not None: pulumi.set(__self__, "tags", tags) if timeouts is not None: @@ -40,20 +41,6 @@ def __init__(__self__, *, if type is not None: pulumi.set(__self__, "type", type) - @property - @pulumi.getter - def name(self) -> pulumi.Input[str]: - """ - Name of the collection. - - The following arguments are optional: - """ - return pulumi.get(self, "name") - - @name.setter - def name(self, value: pulumi.Input[str]): - pulumi.set(self, "name", value) - @property @pulumi.getter def description(self) -> Optional[pulumi.Input[str]]: @@ -66,6 +53,20 @@ def description(self) -> Optional[pulumi.Input[str]]: def description(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "description", value) + @property + @pulumi.getter + def name(self) -> Optional[pulumi.Input[str]]: + """ + Name of the collection. + + The following arguments are optional: + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "name", value) + @property @pulumi.getter def tags(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]: @@ -283,7 +284,6 @@ def __init__(__self__, import pulumi_aws as aws example_serverless_security_policy = aws.opensearch.ServerlessSecurityPolicy("exampleServerlessSecurityPolicy", - name="example", type="encryption", policy=json.dumps({ "Rules": [{ @@ -292,8 +292,7 @@ def __init__(__self__, }], "AWSOwnedKey": True, })) - example_serverless_collection = aws.opensearch.ServerlessCollection("exampleServerlessCollection", name="example", - opts=pulumi.ResourceOptions(depends_on=[example_serverless_security_policy])) + example_serverless_collection = aws.opensearch.ServerlessCollection("exampleServerlessCollection", opts=pulumi.ResourceOptions(depends_on=[example_serverless_security_policy])) ``` ## Import @@ -317,7 +316,7 @@ def __init__(__self__, @overload def __init__(__self__, resource_name: str, - args: ServerlessCollectionArgs, + args: Optional[ServerlessCollectionArgs] = None, opts: Optional[pulumi.ResourceOptions] = None): """ Resource for managing an AWS OpenSearch Serverless Collection. @@ -331,7 +330,6 @@ def __init__(__self__, import pulumi_aws as aws example_serverless_security_policy = aws.opensearch.ServerlessSecurityPolicy("exampleServerlessSecurityPolicy", - name="example", type="encryption", policy=json.dumps({ "Rules": [{ @@ -340,8 +338,7 @@ def __init__(__self__, }], "AWSOwnedKey": True, })) - example_serverless_collection = aws.opensearch.ServerlessCollection("exampleServerlessCollection", name="example", - opts=pulumi.ResourceOptions(depends_on=[example_serverless_security_policy])) + example_serverless_collection = aws.opensearch.ServerlessCollection("exampleServerlessCollection", opts=pulumi.ResourceOptions(depends_on=[example_serverless_security_policy])) ``` ## Import @@ -382,8 +379,6 @@ def _internal_init(__self__, __props__ = ServerlessCollectionArgs.__new__(ServerlessCollectionArgs) __props__.__dict__["description"] = description - if name is None and not opts.urn: - raise TypeError("Missing required property 'name'") __props__.__dict__["name"] = name __props__.__dict__["tags"] = tags __props__.__dict__["timeouts"] = timeouts diff --git a/sdk/python/pulumi_aws/opensearch/serverless_security_config.py b/sdk/python/pulumi_aws/opensearch/serverless_security_config.py index 9ecbcdfa11b..e1c122cc7d6 100644 --- a/sdk/python/pulumi_aws/opensearch/serverless_security_config.py +++ b/sdk/python/pulumi_aws/opensearch/serverless_security_config.py @@ -16,38 +16,27 @@ @pulumi.input_type class ServerlessSecurityConfigArgs: def __init__(__self__, *, - name: pulumi.Input[str], type: pulumi.Input[str], description: Optional[pulumi.Input[str]] = None, + name: Optional[pulumi.Input[str]] = None, saml_options: Optional[pulumi.Input['ServerlessSecurityConfigSamlOptionsArgs']] = None): """ The set of arguments for constructing a ServerlessSecurityConfig resource. - :param pulumi.Input[str] name: Name of the policy. :param pulumi.Input[str] type: Type of configuration. Must be `saml`. The following arguments are optional: :param pulumi.Input[str] description: Description of the security configuration. + :param pulumi.Input[str] name: Name of the policy. :param pulumi.Input['ServerlessSecurityConfigSamlOptionsArgs'] saml_options: Configuration block for SAML options. """ - pulumi.set(__self__, "name", name) pulumi.set(__self__, "type", type) if description is not None: pulumi.set(__self__, "description", description) + if name is not None: + pulumi.set(__self__, "name", name) if saml_options is not None: pulumi.set(__self__, "saml_options", saml_options) - @property - @pulumi.getter - def name(self) -> pulumi.Input[str]: - """ - Name of the policy. - """ - return pulumi.get(self, "name") - - @name.setter - def name(self, value: pulumi.Input[str]): - pulumi.set(self, "name", value) - @property @pulumi.getter def type(self) -> pulumi.Input[str]: @@ -74,6 +63,18 @@ def description(self) -> Optional[pulumi.Input[str]]: def description(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "description", value) + @property + @pulumi.getter + def name(self) -> Optional[pulumi.Input[str]]: + """ + Name of the policy. + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "name", value) + @property @pulumi.getter(name="samlOptions") def saml_options(self) -> Optional[pulumi.Input['ServerlessSecurityConfigSamlOptionsArgs']]: @@ -259,8 +260,6 @@ def _internal_init(__self__, __props__ = ServerlessSecurityConfigArgs.__new__(ServerlessSecurityConfigArgs) __props__.__dict__["description"] = description - if name is None and not opts.urn: - raise TypeError("Missing required property 'name'") __props__.__dict__["name"] = name __props__.__dict__["saml_options"] = saml_options if type is None and not opts.urn: diff --git a/sdk/python/pulumi_aws/opensearch/serverless_security_policy.py b/sdk/python/pulumi_aws/opensearch/serverless_security_policy.py index e476085e1ab..362e5e85dc1 100644 --- a/sdk/python/pulumi_aws/opensearch/serverless_security_policy.py +++ b/sdk/python/pulumi_aws/opensearch/serverless_security_policy.py @@ -14,36 +14,25 @@ @pulumi.input_type class ServerlessSecurityPolicyArgs: def __init__(__self__, *, - name: pulumi.Input[str], policy: pulumi.Input[str], type: pulumi.Input[str], - description: Optional[pulumi.Input[str]] = None): + description: Optional[pulumi.Input[str]] = None, + name: Optional[pulumi.Input[str]] = None): """ The set of arguments for constructing a ServerlessSecurityPolicy resource. - :param pulumi.Input[str] name: Name of the policy. :param pulumi.Input[str] policy: JSON policy document to use as the content for the new policy :param pulumi.Input[str] type: Type of security policy. One of `encryption` or `network`. The following arguments are optional: :param pulumi.Input[str] description: Description of the policy. Typically used to store information about the permissions defined in the policy. + :param pulumi.Input[str] name: Name of the policy. """ - pulumi.set(__self__, "name", name) pulumi.set(__self__, "policy", policy) pulumi.set(__self__, "type", type) if description is not None: pulumi.set(__self__, "description", description) - - @property - @pulumi.getter - def name(self) -> pulumi.Input[str]: - """ - Name of the policy. - """ - return pulumi.get(self, "name") - - @name.setter - def name(self, value: pulumi.Input[str]): - pulumi.set(self, "name", value) + if name is not None: + pulumi.set(__self__, "name", name) @property @pulumi.getter @@ -83,6 +72,18 @@ def description(self) -> Optional[pulumi.Input[str]]: def description(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "description", value) + @property + @pulumi.getter + def name(self) -> Optional[pulumi.Input[str]]: + """ + Name of the policy. + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "name", value) + @pulumi.input_type class _ServerlessSecurityPolicyState: @@ -200,7 +201,6 @@ def __init__(__self__, import pulumi_aws as aws example = aws.opensearch.ServerlessSecurityPolicy("example", - name="example", type="encryption", description="encryption security policy for example-collection", policy=json.dumps({ @@ -219,7 +219,6 @@ def __init__(__self__, import pulumi_aws as aws example = aws.opensearch.ServerlessSecurityPolicy("example", - name="example", type="encryption", description="encryption security policy for collections that begin with \\"example\\"", policy=json.dumps({ @@ -238,7 +237,6 @@ def __init__(__self__, import pulumi_aws as aws example = aws.opensearch.ServerlessSecurityPolicy("example", - name="example", type="encryption", description="encryption security policy using customer KMS key", policy=json.dumps({ @@ -259,7 +257,6 @@ def __init__(__self__, import pulumi_aws as aws example = aws.opensearch.ServerlessSecurityPolicy("example", - name="example", type="network", description="Public access", policy=json.dumps([{ @@ -285,7 +282,6 @@ def __init__(__self__, import pulumi_aws as aws example = aws.opensearch.ServerlessSecurityPolicy("example", - name="example", type="network", description="VPC access", policy=json.dumps([{ @@ -312,7 +308,6 @@ def __init__(__self__, import pulumi_aws as aws example = aws.opensearch.ServerlessSecurityPolicy("example", - name="example", type="network", description="Mixed access for marketing and sales", policy=json.dumps([ @@ -379,7 +374,6 @@ def __init__(__self__, import pulumi_aws as aws example = aws.opensearch.ServerlessSecurityPolicy("example", - name="example", type="encryption", description="encryption security policy for example-collection", policy=json.dumps({ @@ -398,7 +392,6 @@ def __init__(__self__, import pulumi_aws as aws example = aws.opensearch.ServerlessSecurityPolicy("example", - name="example", type="encryption", description="encryption security policy for collections that begin with \\"example\\"", policy=json.dumps({ @@ -417,7 +410,6 @@ def __init__(__self__, import pulumi_aws as aws example = aws.opensearch.ServerlessSecurityPolicy("example", - name="example", type="encryption", description="encryption security policy using customer KMS key", policy=json.dumps({ @@ -438,7 +430,6 @@ def __init__(__self__, import pulumi_aws as aws example = aws.opensearch.ServerlessSecurityPolicy("example", - name="example", type="network", description="Public access", policy=json.dumps([{ @@ -464,7 +455,6 @@ def __init__(__self__, import pulumi_aws as aws example = aws.opensearch.ServerlessSecurityPolicy("example", - name="example", type="network", description="VPC access", policy=json.dumps([{ @@ -491,7 +481,6 @@ def __init__(__self__, import pulumi_aws as aws example = aws.opensearch.ServerlessSecurityPolicy("example", - name="example", type="network", description="Mixed access for marketing and sales", policy=json.dumps([ @@ -558,8 +547,6 @@ def _internal_init(__self__, __props__ = ServerlessSecurityPolicyArgs.__new__(ServerlessSecurityPolicyArgs) __props__.__dict__["description"] = description - if name is None and not opts.urn: - raise TypeError("Missing required property 'name'") __props__.__dict__["name"] = name if policy is None and not opts.urn: raise TypeError("Missing required property 'policy'") diff --git a/sdk/python/pulumi_aws/opensearch/serverless_vpc_endpoint.py b/sdk/python/pulumi_aws/opensearch/serverless_vpc_endpoint.py index efe1020e3a1..068e3c13c86 100644 --- a/sdk/python/pulumi_aws/opensearch/serverless_vpc_endpoint.py +++ b/sdk/python/pulumi_aws/opensearch/serverless_vpc_endpoint.py @@ -16,40 +16,29 @@ @pulumi.input_type class ServerlessVpcEndpointArgs: def __init__(__self__, *, - name: pulumi.Input[str], subnet_ids: pulumi.Input[Sequence[pulumi.Input[str]]], vpc_id: pulumi.Input[str], + name: Optional[pulumi.Input[str]] = None, security_group_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, timeouts: Optional[pulumi.Input['ServerlessVpcEndpointTimeoutsArgs']] = None): """ The set of arguments for constructing a ServerlessVpcEndpoint resource. - :param pulumi.Input[str] name: Name of the interface endpoint. :param pulumi.Input[Sequence[pulumi.Input[str]]] subnet_ids: One or more subnet IDs from which you'll access OpenSearch Serverless. Up to 6 subnets can be provided. :param pulumi.Input[str] vpc_id: ID of the VPC from which you'll access OpenSearch Serverless. The following arguments are optional: + :param pulumi.Input[str] name: Name of the interface endpoint. :param pulumi.Input[Sequence[pulumi.Input[str]]] security_group_ids: One or more security groups that define the ports, protocols, and sources for inbound traffic that you are authorizing into your endpoint. Up to 5 security groups can be provided. """ - pulumi.set(__self__, "name", name) pulumi.set(__self__, "subnet_ids", subnet_ids) pulumi.set(__self__, "vpc_id", vpc_id) + if name is not None: + pulumi.set(__self__, "name", name) if security_group_ids is not None: pulumi.set(__self__, "security_group_ids", security_group_ids) if timeouts is not None: pulumi.set(__self__, "timeouts", timeouts) - @property - @pulumi.getter - def name(self) -> pulumi.Input[str]: - """ - Name of the interface endpoint. - """ - return pulumi.get(self, "name") - - @name.setter - def name(self, value: pulumi.Input[str]): - pulumi.set(self, "name", value) - @property @pulumi.getter(name="subnetIds") def subnet_ids(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]: @@ -76,6 +65,18 @@ def vpc_id(self) -> pulumi.Input[str]: def vpc_id(self, value: pulumi.Input[str]): pulumi.set(self, "vpc_id", value) + @property + @pulumi.getter + def name(self) -> Optional[pulumi.Input[str]]: + """ + Name of the interface endpoint. + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "name", value) + @property @pulumi.getter(name="securityGroupIds") def security_group_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: @@ -208,7 +209,6 @@ def __init__(__self__, import pulumi_aws as aws example = aws.opensearch.ServerlessVpcEndpoint("example", - name="myendpoint", subnet_ids=[aws_subnet["example"]["id"]], vpc_id=aws_vpc["example"]["id"]) ``` @@ -247,7 +247,6 @@ def __init__(__self__, import pulumi_aws as aws example = aws.opensearch.ServerlessVpcEndpoint("example", - name="myendpoint", subnet_ids=[aws_subnet["example"]["id"]], vpc_id=aws_vpc["example"]["id"]) ``` @@ -289,8 +288,6 @@ def _internal_init(__self__, raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = ServerlessVpcEndpointArgs.__new__(ServerlessVpcEndpointArgs) - if name is None and not opts.urn: - raise TypeError("Missing required property 'name'") __props__.__dict__["name"] = name __props__.__dict__["security_group_ids"] = security_group_ids if subnet_ids is None and not opts.urn: diff --git a/sdk/python/pulumi_aws/quicksight/theme.py b/sdk/python/pulumi_aws/quicksight/theme.py index f75eb405fbb..d5dd64e5178 100644 --- a/sdk/python/pulumi_aws/quicksight/theme.py +++ b/sdk/python/pulumi_aws/quicksight/theme.py @@ -17,33 +17,34 @@ class ThemeArgs: def __init__(__self__, *, base_theme_id: pulumi.Input[str], - name: pulumi.Input[str], theme_id: pulumi.Input[str], aws_account_id: Optional[pulumi.Input[str]] = None, configuration: Optional[pulumi.Input['ThemeConfigurationArgs']] = None, + name: Optional[pulumi.Input[str]] = None, permissions: Optional[pulumi.Input[Sequence[pulumi.Input['ThemePermissionArgs']]]] = None, tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, version_description: Optional[pulumi.Input[str]] = None): """ The set of arguments for constructing a Theme resource. :param pulumi.Input[str] base_theme_id: The ID of the theme that a custom theme will inherit from. All themes inherit from one of the starting themes defined by Amazon QuickSight. For a list of the starting themes, use ListThemes or choose Themes from within an analysis. - :param pulumi.Input[str] name: Display name of the theme. :param pulumi.Input[str] theme_id: Identifier of the theme. :param pulumi.Input[str] aws_account_id: AWS account ID. :param pulumi.Input['ThemeConfigurationArgs'] configuration: The theme configuration, which contains the theme display properties. See configuration. The following arguments are optional: + :param pulumi.Input[str] name: Display name of the theme. :param pulumi.Input[Sequence[pulumi.Input['ThemePermissionArgs']]] permissions: A set of resource permissions on the theme. Maximum of 64 items. See permissions. :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: Key-value map of resource tags. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. :param pulumi.Input[str] version_description: A description of the current theme version being created/updated. """ pulumi.set(__self__, "base_theme_id", base_theme_id) - pulumi.set(__self__, "name", name) pulumi.set(__self__, "theme_id", theme_id) if aws_account_id is not None: pulumi.set(__self__, "aws_account_id", aws_account_id) if configuration is not None: pulumi.set(__self__, "configuration", configuration) + if name is not None: + pulumi.set(__self__, "name", name) if permissions is not None: pulumi.set(__self__, "permissions", permissions) if tags is not None: @@ -63,18 +64,6 @@ def base_theme_id(self) -> pulumi.Input[str]: def base_theme_id(self, value: pulumi.Input[str]): pulumi.set(self, "base_theme_id", value) - @property - @pulumi.getter - def name(self) -> pulumi.Input[str]: - """ - Display name of the theme. - """ - return pulumi.get(self, "name") - - @name.setter - def name(self, value: pulumi.Input[str]): - pulumi.set(self, "name", value) - @property @pulumi.getter(name="themeId") def theme_id(self) -> pulumi.Input[str]: @@ -113,6 +102,18 @@ def configuration(self) -> Optional[pulumi.Input['ThemeConfigurationArgs']]: def configuration(self, value: Optional[pulumi.Input['ThemeConfigurationArgs']]): pulumi.set(self, "configuration", value) + @property + @pulumi.getter + def name(self) -> Optional[pulumi.Input[str]]: + """ + Display name of the theme. + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "name", value) + @property @pulumi.getter def permissions(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ThemePermissionArgs']]]]: @@ -482,8 +483,6 @@ def _internal_init(__self__, raise TypeError("Missing required property 'base_theme_id'") __props__.__dict__["base_theme_id"] = base_theme_id __props__.__dict__["configuration"] = configuration - if name is None and not opts.urn: - raise TypeError("Missing required property 'name'") __props__.__dict__["name"] = name __props__.__dict__["permissions"] = permissions __props__.__dict__["tags"] = tags diff --git a/sdk/python/pulumi_aws/quicksight/vpc_connection.py b/sdk/python/pulumi_aws/quicksight/vpc_connection.py index 96b772748c1..5d7a20c0a6d 100644 --- a/sdk/python/pulumi_aws/quicksight/vpc_connection.py +++ b/sdk/python/pulumi_aws/quicksight/vpc_connection.py @@ -16,18 +16,17 @@ @pulumi.input_type class VpcConnectionArgs: def __init__(__self__, *, - name: pulumi.Input[str], role_arn: pulumi.Input[str], security_group_ids: pulumi.Input[Sequence[pulumi.Input[str]]], subnet_ids: pulumi.Input[Sequence[pulumi.Input[str]]], vpc_connection_id: pulumi.Input[str], aws_account_id: Optional[pulumi.Input[str]] = None, dns_resolvers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, + name: Optional[pulumi.Input[str]] = None, tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, timeouts: Optional[pulumi.Input['VpcConnectionTimeoutsArgs']] = None): """ The set of arguments for constructing a VpcConnection resource. - :param pulumi.Input[str] name: The display name for the VPC connection. :param pulumi.Input[str] role_arn: The IAM role to associate with the VPC connection. :param pulumi.Input[Sequence[pulumi.Input[str]]] security_group_ids: A list of security group IDs for the VPC connection. :param pulumi.Input[Sequence[pulumi.Input[str]]] subnet_ids: A list of subnet IDs for the VPC connection. @@ -36,9 +35,9 @@ def __init__(__self__, *, :param pulumi.Input[str] vpc_connection_id: The ID of the VPC connection. :param pulumi.Input[str] aws_account_id: AWS account ID. :param pulumi.Input[Sequence[pulumi.Input[str]]] dns_resolvers: A list of IP addresses of DNS resolver endpoints for the VPC connection. + :param pulumi.Input[str] name: The display name for the VPC connection. :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: Key-value map of resource tags. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. """ - pulumi.set(__self__, "name", name) pulumi.set(__self__, "role_arn", role_arn) pulumi.set(__self__, "security_group_ids", security_group_ids) pulumi.set(__self__, "subnet_ids", subnet_ids) @@ -47,23 +46,13 @@ def __init__(__self__, *, pulumi.set(__self__, "aws_account_id", aws_account_id) if dns_resolvers is not None: pulumi.set(__self__, "dns_resolvers", dns_resolvers) + if name is not None: + pulumi.set(__self__, "name", name) if tags is not None: pulumi.set(__self__, "tags", tags) if timeouts is not None: pulumi.set(__self__, "timeouts", timeouts) - @property - @pulumi.getter - def name(self) -> pulumi.Input[str]: - """ - The display name for the VPC connection. - """ - return pulumi.get(self, "name") - - @name.setter - def name(self, value: pulumi.Input[str]): - pulumi.set(self, "name", value) - @property @pulumi.getter(name="roleArn") def role_arn(self) -> pulumi.Input[str]: @@ -138,6 +127,18 @@ def dns_resolvers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: def dns_resolvers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): pulumi.set(self, "dns_resolvers", value) + @property + @pulumi.getter + def name(self) -> Optional[pulumi.Input[str]]: + """ + The display name for the VPC connection. + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "name", value) + @property @pulumi.getter def tags(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]: @@ -416,7 +417,6 @@ def __init__(__self__, )]) example = aws.quicksight.VpcConnection("example", vpc_connection_id="example-connection-id", - name="Example Connection", role_arn=vpc_connection_role.arn, security_group_ids=["sg-00000000000000000"], subnet_ids=[ @@ -493,7 +493,6 @@ def __init__(__self__, )]) example = aws.quicksight.VpcConnection("example", vpc_connection_id="example-connection-id", - name="Example Connection", role_arn=vpc_connection_role.arn, security_group_ids=["sg-00000000000000000"], subnet_ids=[ @@ -545,8 +544,6 @@ def _internal_init(__self__, __props__.__dict__["aws_account_id"] = aws_account_id __props__.__dict__["dns_resolvers"] = dns_resolvers - if name is None and not opts.urn: - raise TypeError("Missing required property 'name'") __props__.__dict__["name"] = name if role_arn is None and not opts.urn: raise TypeError("Missing required property 'role_arn'") diff --git a/sdk/python/pulumi_aws/resourceexplorer/view.py b/sdk/python/pulumi_aws/resourceexplorer/view.py index 2c37b55e746..7db9d920725 100644 --- a/sdk/python/pulumi_aws/resourceexplorer/view.py +++ b/sdk/python/pulumi_aws/resourceexplorer/view.py @@ -16,41 +16,30 @@ @pulumi.input_type class ViewArgs: def __init__(__self__, *, - name: pulumi.Input[str], default_view: Optional[pulumi.Input[bool]] = None, filters: Optional[pulumi.Input['ViewFiltersArgs']] = None, included_properties: Optional[pulumi.Input[Sequence[pulumi.Input['ViewIncludedPropertyArgs']]]] = None, + name: Optional[pulumi.Input[str]] = None, tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None): """ The set of arguments for constructing a View resource. - :param pulumi.Input[str] name: The name of the view. The name must be no more than 64 characters long, and can include letters, digits, and the dash (-) character. The name must be unique within its AWS Region. :param pulumi.Input[bool] default_view: Specifies whether the view is the [_default view_](https://docs.aws.amazon.com/resource-explorer/latest/userguide/manage-views-about.html#manage-views-about-default) for the AWS Region. Default: `false`. :param pulumi.Input['ViewFiltersArgs'] filters: Specifies which resources are included in the results of queries made using this view. See Filters below for more details. :param pulumi.Input[Sequence[pulumi.Input['ViewIncludedPropertyArgs']]] included_properties: Optional fields to be included in search results from this view. See Included Properties below for more details. + :param pulumi.Input[str] name: The name of the view. The name must be no more than 64 characters long, and can include letters, digits, and the dash (-) character. The name must be unique within its AWS Region. :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: Key-value map of resource tags. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. """ - pulumi.set(__self__, "name", name) if default_view is not None: pulumi.set(__self__, "default_view", default_view) if filters is not None: pulumi.set(__self__, "filters", filters) if included_properties is not None: pulumi.set(__self__, "included_properties", included_properties) + if name is not None: + pulumi.set(__self__, "name", name) if tags is not None: pulumi.set(__self__, "tags", tags) - @property - @pulumi.getter - def name(self) -> pulumi.Input[str]: - """ - The name of the view. The name must be no more than 64 characters long, and can include letters, digits, and the dash (-) character. The name must be unique within its AWS Region. - """ - return pulumi.get(self, "name") - - @name.setter - def name(self, value: pulumi.Input[str]): - pulumi.set(self, "name", value) - @property @pulumi.getter(name="defaultView") def default_view(self) -> Optional[pulumi.Input[bool]]: @@ -87,6 +76,18 @@ def included_properties(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['Vi def included_properties(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ViewIncludedPropertyArgs']]]]): pulumi.set(self, "included_properties", value) + @property + @pulumi.getter + def name(self) -> Optional[pulumi.Input[str]]: + """ + The name of the view. The name must be no more than 64 characters long, and can include letters, digits, and the dash (-) character. The name must be unique within its AWS Region. + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "name", value) + @property @pulumi.getter def tags(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]: @@ -242,7 +243,6 @@ def __init__(__self__, example_index = aws.resourceexplorer.Index("exampleIndex", type="LOCAL") example_view = aws.resourceexplorer.View("exampleView", - name="exampleview", filters=aws.resourceexplorer.ViewFiltersArgs( filter_string="resourcetype:ec2:instance", ), @@ -272,7 +272,7 @@ def __init__(__self__, @overload def __init__(__self__, resource_name: str, - args: ViewArgs, + args: Optional[ViewArgs] = None, opts: Optional[pulumi.ResourceOptions] = None): """ Provides a resource to manage a Resource Explorer view. @@ -285,7 +285,6 @@ def __init__(__self__, example_index = aws.resourceexplorer.Index("exampleIndex", type="LOCAL") example_view = aws.resourceexplorer.View("exampleView", - name="exampleview", filters=aws.resourceexplorer.ViewFiltersArgs( filter_string="resourcetype:ec2:instance", ), @@ -335,8 +334,6 @@ def _internal_init(__self__, __props__.__dict__["default_view"] = default_view __props__.__dict__["filters"] = filters __props__.__dict__["included_properties"] = included_properties - if name is None and not opts.urn: - raise TypeError("Missing required property 'name'") __props__.__dict__["name"] = name __props__.__dict__["tags"] = tags __props__.__dict__["arn"] = None diff --git a/sdk/python/pulumi_aws/route53/cidr_collection.py b/sdk/python/pulumi_aws/route53/cidr_collection.py index db9a8f5dfef..91fa1fd3ca8 100644 --- a/sdk/python/pulumi_aws/route53/cidr_collection.py +++ b/sdk/python/pulumi_aws/route53/cidr_collection.py @@ -14,23 +14,24 @@ @pulumi.input_type class CidrCollectionArgs: def __init__(__self__, *, - name: pulumi.Input[str]): + name: Optional[pulumi.Input[str]] = None): """ The set of arguments for constructing a CidrCollection resource. :param pulumi.Input[str] name: Unique name for the CIDR collection. """ - pulumi.set(__self__, "name", name) + if name is not None: + pulumi.set(__self__, "name", name) @property @pulumi.getter - def name(self) -> pulumi.Input[str]: + def name(self) -> Optional[pulumi.Input[str]]: """ Unique name for the CIDR collection. """ return pulumi.get(self, "name") @name.setter - def name(self, value: pulumi.Input[str]): + def name(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "name", value) @@ -106,7 +107,7 @@ def __init__(__self__, import pulumi import pulumi_aws as aws - example = aws.route53.CidrCollection("example", name="collection-1") + example = aws.route53.CidrCollection("example") ``` ## Import @@ -125,7 +126,7 @@ def __init__(__self__, @overload def __init__(__self__, resource_name: str, - args: CidrCollectionArgs, + args: Optional[CidrCollectionArgs] = None, opts: Optional[pulumi.ResourceOptions] = None): """ Provides a Route53 CIDR collection resource. @@ -136,7 +137,7 @@ def __init__(__self__, import pulumi import pulumi_aws as aws - example = aws.route53.CidrCollection("example", name="collection-1") + example = aws.route53.CidrCollection("example") ``` ## Import @@ -172,8 +173,6 @@ def _internal_init(__self__, raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = CidrCollectionArgs.__new__(CidrCollectionArgs) - if name is None and not opts.urn: - raise TypeError("Missing required property 'name'") __props__.__dict__["name"] = name __props__.__dict__["arn"] = None __props__.__dict__["version"] = None diff --git a/sdk/python/pulumi_aws/route53/cidr_location.py b/sdk/python/pulumi_aws/route53/cidr_location.py index 60c7b3b4e6b..89db9810206 100644 --- a/sdk/python/pulumi_aws/route53/cidr_location.py +++ b/sdk/python/pulumi_aws/route53/cidr_location.py @@ -16,7 +16,7 @@ class CidrLocationArgs: def __init__(__self__, *, cidr_blocks: pulumi.Input[Sequence[pulumi.Input[str]]], cidr_collection_id: pulumi.Input[str], - name: pulumi.Input[str]): + name: Optional[pulumi.Input[str]] = None): """ The set of arguments for constructing a CidrLocation resource. :param pulumi.Input[Sequence[pulumi.Input[str]]] cidr_blocks: CIDR blocks for the location. @@ -25,7 +25,8 @@ def __init__(__self__, *, """ pulumi.set(__self__, "cidr_blocks", cidr_blocks) pulumi.set(__self__, "cidr_collection_id", cidr_collection_id) - pulumi.set(__self__, "name", name) + if name is not None: + pulumi.set(__self__, "name", name) @property @pulumi.getter(name="cidrBlocks") @@ -53,14 +54,14 @@ def cidr_collection_id(self, value: pulumi.Input[str]): @property @pulumi.getter - def name(self) -> pulumi.Input[str]: + def name(self) -> Optional[pulumi.Input[str]]: """ Name for the CIDR location. """ return pulumi.get(self, "name") @name.setter - def name(self, value: pulumi.Input[str]): + def name(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "name", value) @@ -138,10 +139,9 @@ def __init__(__self__, import pulumi import pulumi_aws as aws - example_cidr_collection = aws.route53.CidrCollection("exampleCidrCollection", name="collection-1") + example_cidr_collection = aws.route53.CidrCollection("exampleCidrCollection") example_cidr_location = aws.route53.CidrLocation("exampleCidrLocation", cidr_collection_id=example_cidr_collection.id, - name="office", cidr_blocks=[ "200.5.3.0/24", "200.6.3.0/24", @@ -177,10 +177,9 @@ def __init__(__self__, import pulumi import pulumi_aws as aws - example_cidr_collection = aws.route53.CidrCollection("exampleCidrCollection", name="collection-1") + example_cidr_collection = aws.route53.CidrCollection("exampleCidrCollection") example_cidr_location = aws.route53.CidrLocation("exampleCidrLocation", cidr_collection_id=example_cidr_collection.id, - name="office", cidr_blocks=[ "200.5.3.0/24", "200.6.3.0/24", @@ -228,8 +227,6 @@ def _internal_init(__self__, if cidr_collection_id is None and not opts.urn: raise TypeError("Missing required property 'cidr_collection_id'") __props__.__dict__["cidr_collection_id"] = cidr_collection_id - if name is None and not opts.urn: - raise TypeError("Missing required property 'name'") __props__.__dict__["name"] = name super(CidrLocation, __self__).__init__( 'aws:route53/cidrLocation:CidrLocation', diff --git a/sdk/python/pulumi_aws/sfn/alias.py b/sdk/python/pulumi_aws/sfn/alias.py index 72e538c66a4..49e7aebbadd 100644 --- a/sdk/python/pulumi_aws/sfn/alias.py +++ b/sdk/python/pulumi_aws/sfn/alias.py @@ -16,31 +16,20 @@ @pulumi.input_type class AliasArgs: def __init__(__self__, *, - name: pulumi.Input[str], routing_configurations: pulumi.Input[Sequence[pulumi.Input['AliasRoutingConfigurationArgs']]], - description: Optional[pulumi.Input[str]] = None): + description: Optional[pulumi.Input[str]] = None, + name: Optional[pulumi.Input[str]] = None): """ The set of arguments for constructing a Alias resource. - :param pulumi.Input[str] name: Name for the alias you are creating. :param pulumi.Input[Sequence[pulumi.Input['AliasRoutingConfigurationArgs']]] routing_configurations: The StateMachine alias' route configuration settings. Fields documented below :param pulumi.Input[str] description: Description of the alias. + :param pulumi.Input[str] name: Name for the alias you are creating. """ - pulumi.set(__self__, "name", name) pulumi.set(__self__, "routing_configurations", routing_configurations) if description is not None: pulumi.set(__self__, "description", description) - - @property - @pulumi.getter - def name(self) -> pulumi.Input[str]: - """ - Name for the alias you are creating. - """ - return pulumi.get(self, "name") - - @name.setter - def name(self, value: pulumi.Input[str]): - pulumi.set(self, "name", value) + if name is not None: + pulumi.set(__self__, "name", name) @property @pulumi.getter(name="routingConfigurations") @@ -66,6 +55,18 @@ def description(self) -> Optional[pulumi.Input[str]]: def description(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "description", value) + @property + @pulumi.getter + def name(self) -> Optional[pulumi.Input[str]]: + """ + Name for the alias you are creating. + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "name", value) + @pulumi.input_type class _AliasState: @@ -174,24 +175,20 @@ def __init__(__self__, import pulumi import pulumi_aws as aws - sfn_alias = aws.sfn.Alias("sfnAlias", - name="my_sfn_alias", - routing_configurations=[aws.sfn.AliasRoutingConfigurationArgs( - state_machine_version_arn=aws_sfn_state_machine["sfn_test"]["state_machine_version_arn"], - weight=100, - )]) - my_sfn_alias = aws.sfn.Alias("mySfnAlias", - name="my_sfn_alias", - routing_configurations=[ - aws.sfn.AliasRoutingConfigurationArgs( - state_machine_version_arn="arn:aws:states:us-east-1:12345:stateMachine:demo:3", - weight=50, - ), - aws.sfn.AliasRoutingConfigurationArgs( - state_machine_version_arn="arn:aws:states:us-east-1:12345:stateMachine:demo:2", - weight=50, - ), - ]) + sfn_alias = aws.sfn.Alias("sfnAlias", routing_configurations=[aws.sfn.AliasRoutingConfigurationArgs( + state_machine_version_arn=aws_sfn_state_machine["sfn_test"]["state_machine_version_arn"], + weight=100, + )]) + my_sfn_alias = aws.sfn.Alias("mySfnAlias", routing_configurations=[ + aws.sfn.AliasRoutingConfigurationArgs( + state_machine_version_arn="arn:aws:states:us-east-1:12345:stateMachine:demo:3", + weight=50, + ), + aws.sfn.AliasRoutingConfigurationArgs( + state_machine_version_arn="arn:aws:states:us-east-1:12345:stateMachine:demo:2", + weight=50, + ), + ]) ``` ## Import @@ -224,24 +221,20 @@ def __init__(__self__, import pulumi import pulumi_aws as aws - sfn_alias = aws.sfn.Alias("sfnAlias", - name="my_sfn_alias", - routing_configurations=[aws.sfn.AliasRoutingConfigurationArgs( - state_machine_version_arn=aws_sfn_state_machine["sfn_test"]["state_machine_version_arn"], - weight=100, - )]) - my_sfn_alias = aws.sfn.Alias("mySfnAlias", - name="my_sfn_alias", - routing_configurations=[ - aws.sfn.AliasRoutingConfigurationArgs( - state_machine_version_arn="arn:aws:states:us-east-1:12345:stateMachine:demo:3", - weight=50, - ), - aws.sfn.AliasRoutingConfigurationArgs( - state_machine_version_arn="arn:aws:states:us-east-1:12345:stateMachine:demo:2", - weight=50, - ), - ]) + sfn_alias = aws.sfn.Alias("sfnAlias", routing_configurations=[aws.sfn.AliasRoutingConfigurationArgs( + state_machine_version_arn=aws_sfn_state_machine["sfn_test"]["state_machine_version_arn"], + weight=100, + )]) + my_sfn_alias = aws.sfn.Alias("mySfnAlias", routing_configurations=[ + aws.sfn.AliasRoutingConfigurationArgs( + state_machine_version_arn="arn:aws:states:us-east-1:12345:stateMachine:demo:3", + weight=50, + ), + aws.sfn.AliasRoutingConfigurationArgs( + state_machine_version_arn="arn:aws:states:us-east-1:12345:stateMachine:demo:2", + weight=50, + ), + ]) ``` ## Import @@ -280,8 +273,6 @@ def _internal_init(__self__, __props__ = AliasArgs.__new__(AliasArgs) __props__.__dict__["description"] = description - if name is None and not opts.urn: - raise TypeError("Missing required property 'name'") __props__.__dict__["name"] = name if routing_configurations is None and not opts.urn: raise TypeError("Missing required property 'routing_configurations'") From f2a4e05efde3c2e2f11a1e9dd2d538c2e4ee5c03 Mon Sep 17 00:00:00 2001 From: Anton Tayanovskyy Date: Wed, 2 Aug 2023 13:28:22 -0400 Subject: [PATCH 5/8] Fix PF test to cover autonaming --- examples/plugin-framework/Pulumi.yaml | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/examples/plugin-framework/Pulumi.yaml b/examples/plugin-framework/Pulumi.yaml index 6912d1a8e0c..912e6a858e9 100644 --- a/examples/plugin-framework/Pulumi.yaml +++ b/examples/plugin-framework/Pulumi.yaml @@ -5,12 +5,18 @@ outputs: {} resources: bucket-example: type: aws:s3:Bucket - resourceexplorer-example: - type: aws:resourceexplorer/index:Index - properties: - type: LOCAL + + # It turns out that resourceexplorer can only be provisioned once per region, creating conflicts if this test run in + # parallel. Perhaps not a great example. + # + # resourceexplorer-example: + # type: aws:resourceexplorer/index:Index + # properties: + # type: LOCAL + + # cidrcollection also tests auto-naming, it should get a random-suffixed name such as below, without specifying one: + # "name": "cidrcollection-example-8eb4b3b" + cidrcollection-example: type: aws:route53/cidrCollection:CidrCollection - properties: - name: collection-example variables: {} From 8562fe4e40d11ce5448ce0da40cf1f36b34a6938 Mon Sep 17 00:00:00 2001 From: Anton Tayanovskyy Date: Thu, 3 Aug 2023 16:50:16 -0400 Subject: [PATCH 6/8] Do not use go mod replace --- provider/go.mod | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/provider/go.mod b/provider/go.mod index 94e5c460c6a..f0a68d7f9c4 100644 --- a/provider/go.mod +++ b/provider/go.mod @@ -7,8 +7,8 @@ require ( github.com/hashicorp/aws-sdk-go-base/v2 v2.0.0-beta.32 github.com/hashicorp/terraform-provider-aws/shim v0.0.0 github.com/mitchellh/go-homedir v1.1.0 - github.com/pulumi/pulumi-terraform-bridge/pf v0.14.1 - github.com/pulumi/pulumi-terraform-bridge/v3 v3.55.0 + github.com/pulumi/pulumi-terraform-bridge/pf v0.14.2-0.20230802145745-14057592edb9 + github.com/pulumi/pulumi-terraform-bridge/v3 v3.55.1-0.20230802145745-14057592edb9 github.com/pulumi/pulumi/pkg/v3 v3.76.1 github.com/pulumi/pulumi/sdk/v3 v3.76.1 github.com/stretchr/testify v1.8.4 @@ -19,9 +19,6 @@ replace ( github.com/hashicorp/terraform-provider-aws => ../upstream github.com/hashicorp/terraform-provider-aws/shim => ./shim github.com/hashicorp/vault => github.com/hashicorp/vault v1.2.0 - - github.com/pulumi/pulumi-terraform-bridge/pf => github.com/pulumi/pulumi-terraform-bridge/pf v0.14.2-0.20230802145745-14057592edb9 - github.com/pulumi/pulumi-terraform-bridge/v3 => github.com/pulumi/pulumi-terraform-bridge/v3 v3.55.1-0.20230802145745-14057592edb9 ) require ( From d48dd9beddb830c77771ce5c2ad308c1a1358b7c Mon Sep 17 00:00:00 2001 From: Anton Tayanovskyy Date: Thu, 3 Aug 2023 16:50:48 -0400 Subject: [PATCH 7/8] Clean up examples --- examples/plugin-framework/Pulumi.yaml | 8 -------- 1 file changed, 8 deletions(-) diff --git a/examples/plugin-framework/Pulumi.yaml b/examples/plugin-framework/Pulumi.yaml index 912e6a858e9..db44264f677 100644 --- a/examples/plugin-framework/Pulumi.yaml +++ b/examples/plugin-framework/Pulumi.yaml @@ -6,14 +6,6 @@ resources: bucket-example: type: aws:s3:Bucket - # It turns out that resourceexplorer can only be provisioned once per region, creating conflicts if this test run in - # parallel. Perhaps not a great example. - # - # resourceexplorer-example: - # type: aws:resourceexplorer/index:Index - # properties: - # type: LOCAL - # cidrcollection also tests auto-naming, it should get a random-suffixed name such as below, without specifying one: # "name": "cidrcollection-example-8eb4b3b" From 9617ae2f6bbce4f49e6db999dae8d8ba576ba482 Mon Sep 17 00:00:00 2001 From: Anton Tayanovskyy Date: Thu, 3 Aug 2023 17:01:36 -0400 Subject: [PATCH 8/8] Update to released versions --- provider/go.mod | 4 ++-- provider/go.sum | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/provider/go.mod b/provider/go.mod index f0a68d7f9c4..4ad90bdf2f7 100644 --- a/provider/go.mod +++ b/provider/go.mod @@ -7,8 +7,8 @@ require ( github.com/hashicorp/aws-sdk-go-base/v2 v2.0.0-beta.32 github.com/hashicorp/terraform-provider-aws/shim v0.0.0 github.com/mitchellh/go-homedir v1.1.0 - github.com/pulumi/pulumi-terraform-bridge/pf v0.14.2-0.20230802145745-14057592edb9 - github.com/pulumi/pulumi-terraform-bridge/v3 v3.55.1-0.20230802145745-14057592edb9 + github.com/pulumi/pulumi-terraform-bridge/pf v0.15.0 + github.com/pulumi/pulumi-terraform-bridge/v3 v3.56.0 github.com/pulumi/pulumi/pkg/v3 v3.76.1 github.com/pulumi/pulumi/sdk/v3 v3.76.1 github.com/stretchr/testify v1.8.4 diff --git a/provider/go.sum b/provider/go.sum index 156646eb453..1714b8692f7 100644 --- a/provider/go.sum +++ b/provider/go.sum @@ -2278,11 +2278,11 @@ github.com/prometheus/prometheus v0.37.0/go.mod h1:egARUgz+K93zwqsVIAneFlLZefyGO github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU= github.com/pulumi/pulumi-java/pkg v0.9.4 h1:gIQZmlUI1o9ye8CL2XFqtmAX6Lwr9uj/+HzjboiSmK4= github.com/pulumi/pulumi-java/pkg v0.9.4/go.mod h1:c6rSw/+q4O0IImgJ9axxoC6QesbPYWBaG5gimbHouUQ= -github.com/pulumi/pulumi-terraform-bridge/pf v0.14.2-0.20230802145745-14057592edb9 h1:XkoBYTSqCB/Bw85YbdshejgTlJajez3mYYDFadO9mCU= -github.com/pulumi/pulumi-terraform-bridge/pf v0.14.2-0.20230802145745-14057592edb9/go.mod h1:ziHnwUPOiiZsNA2vuoSJhZCvI4LfKRLqS4tKlcIBSCg= +github.com/pulumi/pulumi-terraform-bridge/pf v0.15.0 h1:9ODws24rjbjCUezcBqGeq0Zv4MnE5fsD9MOExHdQbE4= +github.com/pulumi/pulumi-terraform-bridge/pf v0.15.0/go.mod h1:78zmO88vcJDcWoCJZfaHAQReHTEhuNx6BxlE5MUlLJc= github.com/pulumi/pulumi-terraform-bridge/testing v0.0.1 h1:SCg1gjfY9N4yn8U8peIUYATifjoDABkyR7H9lmefsfc= -github.com/pulumi/pulumi-terraform-bridge/v3 v3.55.1-0.20230802145745-14057592edb9 h1:ST/aNf4LC06b61ldNInUq+7A211BLohVMfOk1dTTPjk= -github.com/pulumi/pulumi-terraform-bridge/v3 v3.55.1-0.20230802145745-14057592edb9/go.mod h1:ykaml8e6XS/yI9JOcNZ+6gLirs6EWTB0FmjbT+JyEdU= +github.com/pulumi/pulumi-terraform-bridge/v3 v3.56.0 h1:3ga+bvWnGH9+Ukxn24prZovhpIXcU7QRhu8iWzs905o= +github.com/pulumi/pulumi-terraform-bridge/v3 v3.56.0/go.mod h1:ykaml8e6XS/yI9JOcNZ+6gLirs6EWTB0FmjbT+JyEdU= github.com/pulumi/pulumi-terraform-bridge/x/muxer v0.0.6 h1:uy8P3aaAbrOrGvytvCb2KsYqZMA9TJiY8IKeVQgNAJo= github.com/pulumi/pulumi-terraform-bridge/x/muxer v0.0.6/go.mod h1:uw1IN0Mlvi5SL0cmWzmKqZ+ZDNueRIXkr9aE+XQkrug= github.com/pulumi/pulumi-yaml v1.1.1 h1:8pyBNIU8+ym0wYpjhsCqN+cutygfK1XbhY2YEeNfyXY=