@pulumi/aws 7.11.0-alpha.1762176749 → 7.11.0-alpha.1762351717
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/alb/listenerRule.d.ts +45 -0
- package/alb/listenerRule.js +35 -0
- package/alb/listenerRule.js.map +1 -1
- package/amplify/app.d.ts +1 -1
- package/amplify/app.js +1 -1
- package/apigateway/integration.d.ts +1 -1
- package/apigateway/integration.js +1 -1
- package/apigateway/integrationResponse.d.ts +1 -1
- package/apigateway/integrationResponse.js +1 -1
- package/appstream/getImage.d.ts +10 -10
- package/appsync/function.d.ts +5 -5
- package/appsync/function.js +5 -5
- package/appsync/graphQLApi.d.ts +1 -1
- package/appsync/graphQLApi.js +1 -1
- package/appsync/resolver.d.ts +11 -11
- package/appsync/resolver.js +11 -11
- package/autoscaling/tag.d.ts +30 -0
- package/autoscaling/tag.js +30 -0
- package/autoscaling/tag.js.map +1 -1
- package/autoscalingplans/scalingPlan.d.ts +100 -0
- package/autoscalingplans/scalingPlan.js +100 -0
- package/autoscalingplans/scalingPlan.js.map +1 -1
- package/bcmdata/export.d.ts +9 -0
- package/bcmdata/export.js.map +1 -1
- package/bedrock/agentcoreAgentRuntimeEndpoint.d.ts +6 -0
- package/bedrock/agentcoreAgentRuntimeEndpoint.js.map +1 -1
- package/bedrock/agentcoreGateway.d.ts +6 -6
- package/bedrockmodel/invocationLoggingConfiguration.d.ts +14 -14
- package/bedrockmodel/invocationLoggingConfiguration.js +14 -14
- package/cfg/organizationCustomPolicyRule.d.ts +3 -3
- package/cfg/organizationCustomPolicyRule.js +3 -3
- package/cfg/rule.d.ts +10 -10
- package/cfg/rule.js +10 -10
- package/cloudwatch/eventTarget.d.ts +3 -3
- package/cloudwatch/eventTarget.js +3 -3
- package/cloudwatch/metricAlarm.d.ts +1 -1
- package/cloudwatch/metricAlarm.js +1 -1
- package/codebuild/webhook.d.ts +20 -0
- package/codebuild/webhook.js +20 -0
- package/codebuild/webhook.js.map +1 -1
- package/codepipeline/webhook.d.ts +77 -0
- package/codepipeline/webhook.js +77 -0
- package/codepipeline/webhook.js.map +1 -1
- package/cognito/identityPoolProviderPrincipalTag.d.ts +37 -0
- package/cognito/identityPoolProviderPrincipalTag.js +37 -0
- package/cognito/identityPoolProviderPrincipalTag.js.map +1 -1
- package/datazone/formType.d.ts +9 -9
- package/datazone/formType.js +9 -9
- package/dms/replicationConfig.d.ts +1 -1
- package/dms/replicationConfig.js +1 -1
- package/dynamodb/getTableItem.d.ts +2 -2
- package/dynamodb/getTableItem.js +2 -2
- package/dynamodb/tableItem.d.ts +5 -5
- package/dynamodb/tableItem.js +5 -5
- package/ec2/getSubnets.d.ts +110 -0
- package/ec2/getSubnets.js +110 -0
- package/ec2/getSubnets.js.map +1 -1
- package/ec2/securityGroup.d.ts +4 -4
- package/ec2/securityGroup.js +4 -4
- package/ec2/vpcIpam.d.ts +28 -0
- package/ec2/vpcIpam.js +28 -0
- package/ec2/vpcIpam.js.map +1 -1
- package/ecr/lifecyclePolicy.d.ts +20 -20
- package/ecr/lifecyclePolicy.js +20 -20
- package/ecr/repositoryCreationTemplate.d.ts +10 -10
- package/ecr/repositoryCreationTemplate.js +10 -10
- package/ecrpublic/getImages.d.ts +76 -0
- package/ecrpublic/getImages.js +34 -0
- package/ecrpublic/getImages.js.map +1 -0
- package/ecrpublic/index.d.ts +3 -0
- package/ecrpublic/index.js +4 -1
- package/ecrpublic/index.js.map +1 -1
- package/ecs/getTaskDefinition.d.ts +18 -18
- package/ecs/getTaskDefinition.js +18 -18
- package/eks/getClusters.d.ts +30 -0
- package/eks/getClusters.js +30 -0
- package/eks/getClusters.js.map +1 -1
- package/elasticsearch/domain.d.ts +17 -17
- package/elasticsearch/domain.js +17 -17
- package/elasticsearch/domainPolicy.d.ts +8 -8
- package/elasticsearch/domainPolicy.js +8 -8
- package/emr/cluster.d.ts +54 -54
- package/emr/cluster.js +36 -36
- package/emr/instanceGroup.d.ts +18 -18
- package/emr/securityConfiguration.d.ts +9 -9
- package/emr/securityConfiguration.js +9 -9
- package/emrserverless/application.d.ts +94 -1
- package/emrserverless/application.js +74 -1
- package/emrserverless/application.js.map +1 -1
- package/evidently/segment.d.ts +2 -2
- package/evidently/segment.js +2 -2
- package/glue/connection.d.ts +13 -11
- package/glue/connection.js +13 -11
- package/glue/connection.js.map +1 -1
- package/glue/crawler.d.ts +3 -3
- package/glue/crawler.js +3 -3
- package/identitystore/group.d.ts +8 -0
- package/identitystore/group.js +2 -0
- package/identitystore/group.js.map +1 -1
- package/imagebuilder/getImageRecipe.d.ts +6 -0
- package/imagebuilder/getImageRecipe.js.map +1 -1
- package/imagebuilder/imageRecipe.d.ts +18 -0
- package/imagebuilder/imageRecipe.js +2 -0
- package/imagebuilder/imageRecipe.js.map +1 -1
- package/imagebuilder/workflow.d.ts +3 -3
- package/imagebuilder/workflow.js +3 -3
- package/iot/getEndpoint.d.ts +46 -0
- package/iot/getEndpoint.js +46 -0
- package/iot/getEndpoint.js.map +1 -1
- package/kinesis/firehoseDeliveryStream.d.ts +20 -20
- package/kinesis/firehoseDeliveryStream.js +20 -20
- package/kinesis/resourcePolicy.d.ts +13 -13
- package/kinesis/resourcePolicy.js +13 -13
- package/kms/ciphertext.d.ts +2 -2
- package/kms/ciphertext.js +2 -2
- package/kms/getCipherText.d.ts +4 -4
- package/kms/getCipherText.js +4 -4
- package/lakeformation/identityCenterConfiguration.d.ts +121 -0
- package/lakeformation/identityCenterConfiguration.js +84 -0
- package/lakeformation/identityCenterConfiguration.js.map +1 -0
- package/lakeformation/index.d.ts +3 -0
- package/lakeformation/index.js +6 -1
- package/lakeformation/index.js.map +1 -1
- package/lambda/getCodeSigningConfig.d.ts +78 -0
- package/lambda/getCodeSigningConfig.js +78 -0
- package/lambda/getCodeSigningConfig.js.map +1 -1
- package/lambda/getInvocation.d.ts +100 -0
- package/lambda/getInvocation.js +100 -0
- package/lambda/getInvocation.js.map +1 -1
- package/lambda/invocation.d.ts +31 -0
- package/lambda/invocation.js +31 -0
- package/lambda/invocation.js.map +1 -1
- package/lb/getListenerRule.d.ts +12 -0
- package/lb/getListenerRule.js +2 -0
- package/lb/getListenerRule.js.map +1 -1
- package/lb/listenerRule.d.ts +45 -0
- package/lb/listenerRule.js +35 -0
- package/lb/listenerRule.js.map +1 -1
- package/m2/application.d.ts +13 -13
- package/m2/application.js +13 -13
- package/mq/configuration.d.ts +4 -4
- package/mq/configuration.js +4 -4
- package/networkmanager/siteToSiteVpnAttachment.d.ts +77 -0
- package/networkmanager/siteToSiteVpnAttachment.js +77 -0
- package/networkmanager/siteToSiteVpnAttachment.js.map +1 -1
- package/opensearchingest/pipeline.d.ts +6 -6
- package/opensearchingest/pipeline.js +6 -6
- package/organizations/getPolicies.d.ts +34 -0
- package/organizations/getPolicies.js +34 -0
- package/organizations/getPolicies.js.map +1 -1
- package/organizations/getPoliciesForTarget.d.ts +38 -0
- package/organizations/getPoliciesForTarget.js +38 -0
- package/organizations/getPoliciesForTarget.js.map +1 -1
- package/organizations/resourcePolicy.d.ts +23 -23
- package/organizations/resourcePolicy.js +23 -23
- package/package.json +2 -2
- package/rds/customDbEngineVersion.d.ts +1 -1
- package/rds/customDbEngineVersion.js +1 -1
- package/resourcegroups/group.d.ts +5 -5
- package/resourcegroups/group.js +5 -5
- package/route53/trafficPolicy.d.ts +7 -7
- package/route53/trafficPolicy.js +7 -7
- package/s3/bucketWebsiteConfiguration.d.ts +4 -4
- package/s3/bucketWebsiteConfiguration.js +4 -4
- package/s3/bucketWebsiteConfigurationV2.d.ts +4 -4
- package/s3/bucketWebsiteConfigurationV2.js +4 -4
- package/s3control/accessGrantsInstanceResourcePolicy.d.ts +12 -12
- package/s3control/accessGrantsInstanceResourcePolicy.js +12 -12
- package/sagemaker/flowDefinition.d.ts +9 -9
- package/sagemaker/flowDefinition.js +9 -9
- package/sagemaker/model.d.ts +11 -6
- package/sagemaker/model.js +5 -0
- package/sagemaker/model.js.map +1 -1
- package/sagemaker/modelPackageGroupPolicy.d.ts +31 -0
- package/sagemaker/modelPackageGroupPolicy.js +31 -0
- package/sagemaker/modelPackageGroupPolicy.js.map +1 -1
- package/sagemaker/notebookInstance.d.ts +3 -3
- package/secretsmanager/getSecretVersion.d.ts +26 -0
- package/secretsmanager/getSecretVersion.js +26 -0
- package/secretsmanager/getSecretVersion.js.map +1 -1
- package/secretsmanager/secretVersion.d.ts +31 -0
- package/secretsmanager/secretVersion.js +31 -0
- package/secretsmanager/secretVersion.js.map +1 -1
- package/securityhub/standardsControlAssociation.d.ts +26 -0
- package/securityhub/standardsControlAssociation.js +26 -0
- package/securityhub/standardsControlAssociation.js.map +1 -1
- package/sesv2/emailIdentityPolicy.d.ts +13 -13
- package/sesv2/emailIdentityPolicy.js +13 -13
- package/sfn/stateMachine.d.ts +35 -35
- package/sfn/stateMachine.js +35 -35
- package/sns/topic.d.ts +12 -12
- package/sns/topic.js +12 -12
- package/sns/topicSubscription.d.ts +13 -13
- package/sns/topicSubscription.js +13 -13
- package/sqs/queue.d.ts +0 -6
- package/sqs/queue.js +0 -6
- package/sqs/queue.js.map +1 -1
- package/ssm/association.d.ts +1 -1
- package/ssm/association.js +1 -1
- package/ssm/document.d.ts +8 -8
- package/ssm/document.js +8 -8
- package/timestreamquery/scheduledQuery.d.ts +8 -8
- package/timestreamquery/scheduledQuery.js +8 -8
- package/types/input.d.ts +377 -21
- package/types/input.js.map +1 -1
- package/types/output.d.ts +331 -20
- package/types/output.js.map +1 -1
package/codepipeline/webhook.js
CHANGED
|
@@ -10,6 +10,83 @@ const utilities = require("../utilities");
|
|
|
10
10
|
*
|
|
11
11
|
* ## Example Usage
|
|
12
12
|
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as aws from "@pulumi/aws";
|
|
16
|
+
* import * as github from "@pulumi/github";
|
|
17
|
+
*
|
|
18
|
+
* const bar = new aws.codepipeline.Pipeline("bar", {
|
|
19
|
+
* name: "tf-test-pipeline",
|
|
20
|
+
* roleArn: barAwsIamRole.arn,
|
|
21
|
+
* artifactStores: [{
|
|
22
|
+
* location: barAwsS3Bucket.bucket,
|
|
23
|
+
* type: "S3",
|
|
24
|
+
* encryptionKey: {
|
|
25
|
+
* id: s3kmskey.arn,
|
|
26
|
+
* type: "KMS",
|
|
27
|
+
* },
|
|
28
|
+
* }],
|
|
29
|
+
* stages: [
|
|
30
|
+
* {
|
|
31
|
+
* name: "Source",
|
|
32
|
+
* actions: [{
|
|
33
|
+
* name: "Source",
|
|
34
|
+
* category: "Source",
|
|
35
|
+
* owner: "ThirdParty",
|
|
36
|
+
* provider: "GitHub",
|
|
37
|
+
* version: "1",
|
|
38
|
+
* outputArtifacts: ["test"],
|
|
39
|
+
* configuration: {
|
|
40
|
+
* Owner: "my-organization",
|
|
41
|
+
* Repo: "test",
|
|
42
|
+
* Branch: "master",
|
|
43
|
+
* },
|
|
44
|
+
* }],
|
|
45
|
+
* },
|
|
46
|
+
* {
|
|
47
|
+
* name: "Build",
|
|
48
|
+
* actions: [{
|
|
49
|
+
* name: "Build",
|
|
50
|
+
* category: "Build",
|
|
51
|
+
* owner: "AWS",
|
|
52
|
+
* provider: "CodeBuild",
|
|
53
|
+
* inputArtifacts: ["test"],
|
|
54
|
+
* version: "1",
|
|
55
|
+
* configuration: {
|
|
56
|
+
* ProjectName: "test",
|
|
57
|
+
* },
|
|
58
|
+
* }],
|
|
59
|
+
* },
|
|
60
|
+
* ],
|
|
61
|
+
* });
|
|
62
|
+
* const webhookSecret = "super-secret";
|
|
63
|
+
* const barWebhook = new aws.codepipeline.Webhook("bar", {
|
|
64
|
+
* name: "test-webhook-github-bar",
|
|
65
|
+
* authentication: "GITHUB_HMAC",
|
|
66
|
+
* targetAction: "Source",
|
|
67
|
+
* targetPipeline: bar.name,
|
|
68
|
+
* authenticationConfiguration: {
|
|
69
|
+
* secretToken: webhookSecret,
|
|
70
|
+
* },
|
|
71
|
+
* filters: [{
|
|
72
|
+
* jsonPath: "$.ref",
|
|
73
|
+
* matchEquals: "refs/heads/{Branch}",
|
|
74
|
+
* }],
|
|
75
|
+
* });
|
|
76
|
+
* // Wire the CodePipeline webhook into a GitHub repository.
|
|
77
|
+
* const barRepositoryWebhook = new github.index.RepositoryWebhook("bar", {
|
|
78
|
+
* repository: repo.name,
|
|
79
|
+
* name: "web",
|
|
80
|
+
* configuration: [{
|
|
81
|
+
* url: barWebhook.url,
|
|
82
|
+
* contentType: "json",
|
|
83
|
+
* insecureSsl: true,
|
|
84
|
+
* secret: webhookSecret,
|
|
85
|
+
* }],
|
|
86
|
+
* events: ["push"],
|
|
87
|
+
* });
|
|
88
|
+
* ```
|
|
89
|
+
*
|
|
13
90
|
* ## Import
|
|
14
91
|
*
|
|
15
92
|
* ### Identity Schema
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhook.js","sourceRoot":"","sources":["../../codepipeline/webhook.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAIzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"webhook.js","sourceRoot":"","sources":["../../codepipeline/webhook.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAIzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+FG;AACH,MAAa,OAAQ,SAAQ,MAAM,CAAC,cAAc;IAC9C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAoB,EAAE,IAAmC;QAClH,OAAO,IAAI,OAAO,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC9D,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CA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I,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC5D,CAAC;;AA7HL,0BA8HC;AAhHG,gBAAgB;AACO,oBAAY,GAAG,kCAAkC,CAAC"}
|
|
@@ -2,6 +2,43 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
2
2
|
/**
|
|
3
3
|
* Provides an AWS Cognito Identity Principal Mapping.
|
|
4
4
|
*
|
|
5
|
+
* ## Example Usage
|
|
6
|
+
*
|
|
7
|
+
* ```typescript
|
|
8
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
9
|
+
* import * as aws from "@pulumi/aws";
|
|
10
|
+
* import * as std from "@pulumi/std";
|
|
11
|
+
*
|
|
12
|
+
* const example = new aws.cognito.UserPool("example", {
|
|
13
|
+
* name: "user pool",
|
|
14
|
+
* autoVerifiedAttributes: ["email"],
|
|
15
|
+
* });
|
|
16
|
+
* const exampleUserPoolClient = new aws.cognito.UserPoolClient("example", {
|
|
17
|
+
* name: "client",
|
|
18
|
+
* userPoolId: example.id,
|
|
19
|
+
* supportedIdentityProviders: std.compact({
|
|
20
|
+
* input: ["COGNITO"],
|
|
21
|
+
* }).then(invoke => invoke.result),
|
|
22
|
+
* });
|
|
23
|
+
* const exampleIdentityPool = new aws.cognito.IdentityPool("example", {
|
|
24
|
+
* identityPoolName: "identity pool",
|
|
25
|
+
* allowUnauthenticatedIdentities: false,
|
|
26
|
+
* cognitoIdentityProviders: [{
|
|
27
|
+
* clientId: exampleUserPoolClient.id,
|
|
28
|
+
* providerName: example.endpoint,
|
|
29
|
+
* serverSideTokenCheck: false,
|
|
30
|
+
* }],
|
|
31
|
+
* });
|
|
32
|
+
* const exampleIdentityPoolProviderPrincipalTag = new aws.cognito.IdentityPoolProviderPrincipalTag("example", {
|
|
33
|
+
* identityPoolId: exampleIdentityPool.id,
|
|
34
|
+
* identityProviderName: example.endpoint,
|
|
35
|
+
* useDefaults: false,
|
|
36
|
+
* principalTags: {
|
|
37
|
+
* test: "value",
|
|
38
|
+
* },
|
|
39
|
+
* });
|
|
40
|
+
* ```
|
|
41
|
+
*
|
|
5
42
|
* ## Import
|
|
6
43
|
*
|
|
7
44
|
* Using `pulumi import`, import Cognito Identity Pool Roles Attachment using the Identity Pool ID and provider name. For example:
|
|
@@ -8,6 +8,43 @@ const utilities = require("../utilities");
|
|
|
8
8
|
/**
|
|
9
9
|
* Provides an AWS Cognito Identity Principal Mapping.
|
|
10
10
|
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as aws from "@pulumi/aws";
|
|
16
|
+
* import * as std from "@pulumi/std";
|
|
17
|
+
*
|
|
18
|
+
* const example = new aws.cognito.UserPool("example", {
|
|
19
|
+
* name: "user pool",
|
|
20
|
+
* autoVerifiedAttributes: ["email"],
|
|
21
|
+
* });
|
|
22
|
+
* const exampleUserPoolClient = new aws.cognito.UserPoolClient("example", {
|
|
23
|
+
* name: "client",
|
|
24
|
+
* userPoolId: example.id,
|
|
25
|
+
* supportedIdentityProviders: std.compact({
|
|
26
|
+
* input: ["COGNITO"],
|
|
27
|
+
* }).then(invoke => invoke.result),
|
|
28
|
+
* });
|
|
29
|
+
* const exampleIdentityPool = new aws.cognito.IdentityPool("example", {
|
|
30
|
+
* identityPoolName: "identity pool",
|
|
31
|
+
* allowUnauthenticatedIdentities: false,
|
|
32
|
+
* cognitoIdentityProviders: [{
|
|
33
|
+
* clientId: exampleUserPoolClient.id,
|
|
34
|
+
* providerName: example.endpoint,
|
|
35
|
+
* serverSideTokenCheck: false,
|
|
36
|
+
* }],
|
|
37
|
+
* });
|
|
38
|
+
* const exampleIdentityPoolProviderPrincipalTag = new aws.cognito.IdentityPoolProviderPrincipalTag("example", {
|
|
39
|
+
* identityPoolId: exampleIdentityPool.id,
|
|
40
|
+
* identityProviderName: example.endpoint,
|
|
41
|
+
* useDefaults: false,
|
|
42
|
+
* principalTags: {
|
|
43
|
+
* test: "value",
|
|
44
|
+
* },
|
|
45
|
+
* });
|
|
46
|
+
* ```
|
|
47
|
+
*
|
|
11
48
|
* ## Import
|
|
12
49
|
*
|
|
13
50
|
* Using `pulumi import`, import Cognito Identity Pool Roles Attachment using the Identity Pool ID and provider name. For example:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"identityPoolProviderPrincipalTag.js","sourceRoot":"","sources":["../../cognito/identityPoolProviderPrincipalTag.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"identityPoolProviderPrincipalTag.js","sourceRoot":"","sources":["../../cognito/identityPoolProviderPrincipalTag.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AACH,MAAa,gCAAiC,SAAQ,MAAM,CAAC,cAAc;IACvE;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA6C,EAAE,IAAmC;QAC3I,OAAO,IAAI,gCAAgC,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACvF,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,gCAAgC,CAAC,YAAY,CAAC;IACjF,CAAC;IA+BD,YAAY,IAAY,EAAE,WAA0F,EAAE,IAAmC;QACrJ,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAA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AACO,6CAAY,GAAG,+EAA+E,CAAC"}
|
package/datazone/formType.d.ts
CHANGED
|
@@ -75,17 +75,17 @@ import * as outputs from "../types/output";
|
|
|
75
75
|
* owningProjectIdentifier: testProject.id,
|
|
76
76
|
* status: "DISABLED",
|
|
77
77
|
* model: {
|
|
78
|
-
* smithy:
|
|
79
|
-
*
|
|
80
|
-
*
|
|
81
|
-
*
|
|
78
|
+
* smithy: `\\tstructure SageMakerModelFormType {
|
|
79
|
+
* \\t\\t\\t@required
|
|
80
|
+
* \\t\\t\\t@amazon.datazone#searchable
|
|
81
|
+
* \\t\\t\\tmodelName: String
|
|
82
82
|
*
|
|
83
|
-
*
|
|
84
|
-
*
|
|
83
|
+
* \\t\\t\\t@required
|
|
84
|
+
* \\t\\t\\tmodelArn: String
|
|
85
85
|
*
|
|
86
|
-
*
|
|
87
|
-
*
|
|
88
|
-
*
|
|
86
|
+
* \\t\\t\\t@required
|
|
87
|
+
* \\t\\t\\tcreationTime: String
|
|
88
|
+
* \\t\\t\\t}
|
|
89
89
|
* `,
|
|
90
90
|
* },
|
|
91
91
|
* });
|
package/datazone/formType.js
CHANGED
|
@@ -79,17 +79,17 @@ const utilities = require("../utilities");
|
|
|
79
79
|
* owningProjectIdentifier: testProject.id,
|
|
80
80
|
* status: "DISABLED",
|
|
81
81
|
* model: {
|
|
82
|
-
* smithy:
|
|
83
|
-
*
|
|
84
|
-
*
|
|
85
|
-
*
|
|
82
|
+
* smithy: `\\tstructure SageMakerModelFormType {
|
|
83
|
+
* \\t\\t\\t@required
|
|
84
|
+
* \\t\\t\\t@amazon.datazone#searchable
|
|
85
|
+
* \\t\\t\\tmodelName: String
|
|
86
86
|
*
|
|
87
|
-
*
|
|
88
|
-
*
|
|
87
|
+
* \\t\\t\\t@required
|
|
88
|
+
* \\t\\t\\tmodelArn: String
|
|
89
89
|
*
|
|
90
|
-
*
|
|
91
|
-
*
|
|
92
|
-
*
|
|
90
|
+
* \\t\\t\\t@required
|
|
91
|
+
* \\t\\t\\tcreationTime: String
|
|
92
|
+
* \\t\\t\\t}
|
|
93
93
|
* `,
|
|
94
94
|
* },
|
|
95
95
|
* });
|
|
@@ -19,7 +19,7 @@ import * as outputs from "../types/output";
|
|
|
19
19
|
* sourceEndpointArn: source.endpointArn,
|
|
20
20
|
* targetEndpointArn: target.endpointArn,
|
|
21
21
|
* tableMappings: ` {
|
|
22
|
-
* "rules":[{"rule-type"
|
|
22
|
+
* \\"rules\\":[{\\"rule-type\\":\\"selection\\",\\"rule-id\\":\\"1\\",\\"rule-name\\":\\"1\\",\\"rule-action\\":\\"include\\",\\"object-locator\\":{\\"schema-name\\":\\"%%\\",\\"table-name\\":\\"%%\\"}}]
|
|
23
23
|
* }
|
|
24
24
|
* `,
|
|
25
25
|
* startReplication: true,
|
package/dms/replicationConfig.js
CHANGED
|
@@ -23,7 +23,7 @@ const utilities = require("../utilities");
|
|
|
23
23
|
* sourceEndpointArn: source.endpointArn,
|
|
24
24
|
* targetEndpointArn: target.endpointArn,
|
|
25
25
|
* tableMappings: ` {
|
|
26
|
-
* "rules":[{"rule-type"
|
|
26
|
+
* \\"rules\\":[{\\"rule-type\\":\\"selection\\",\\"rule-id\\":\\"1\\",\\"rule-name\\":\\"1\\",\\"rule-action\\":\\"include\\",\\"object-locator\\":{\\"schema-name\\":\\"%%\\",\\"table-name\\":\\"%%\\"}}]
|
|
27
27
|
* }
|
|
28
28
|
* `,
|
|
29
29
|
* startReplication: true,
|
|
@@ -17,7 +17,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
17
17
|
* },
|
|
18
18
|
* projectionExpression: "#P",
|
|
19
19
|
* key: `{
|
|
20
|
-
*
|
|
20
|
+
* \\t\\"hashKey\\": {\\"S\\": \\"example\\"}
|
|
21
21
|
* }
|
|
22
22
|
* `,
|
|
23
23
|
* });
|
|
@@ -90,7 +90,7 @@ export interface GetTableItemResult {
|
|
|
90
90
|
* },
|
|
91
91
|
* projectionExpression: "#P",
|
|
92
92
|
* key: `{
|
|
93
|
-
*
|
|
93
|
+
* \\t\\"hashKey\\": {\\"S\\": \\"example\\"}
|
|
94
94
|
* }
|
|
95
95
|
* `,
|
|
96
96
|
* });
|
package/dynamodb/getTableItem.js
CHANGED
|
@@ -23,7 +23,7 @@ const utilities = require("../utilities");
|
|
|
23
23
|
* },
|
|
24
24
|
* projectionExpression: "#P",
|
|
25
25
|
* key: `{
|
|
26
|
-
*
|
|
26
|
+
* \\t\\"hashKey\\": {\\"S\\": \\"example\\"}
|
|
27
27
|
* }
|
|
28
28
|
* `,
|
|
29
29
|
* });
|
|
@@ -58,7 +58,7 @@ exports.getTableItem = getTableItem;
|
|
|
58
58
|
* },
|
|
59
59
|
* projectionExpression: "#P",
|
|
60
60
|
* key: `{
|
|
61
|
-
*
|
|
61
|
+
* \\t\\"hashKey\\": {\\"S\\": \\"example\\"}
|
|
62
62
|
* }
|
|
63
63
|
* `,
|
|
64
64
|
* });
|
package/dynamodb/tableItem.d.ts
CHANGED
|
@@ -25,11 +25,11 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
25
25
|
* tableName: exampleTable.name,
|
|
26
26
|
* hashKey: exampleTable.hashKey,
|
|
27
27
|
* item: `{
|
|
28
|
-
* "exampleHashKey": {"S": "something"},
|
|
29
|
-
* "one": {"N": "11111"},
|
|
30
|
-
* "two": {"N": "22222"},
|
|
31
|
-
* "three": {"N": "33333"},
|
|
32
|
-
* "four": {"N": "44444"}
|
|
28
|
+
* \\"exampleHashKey\\": {\\"S\\": \\"something\\"},
|
|
29
|
+
* \\"one\\": {\\"N\\": \\"11111\\"},
|
|
30
|
+
* \\"two\\": {\\"N\\": \\"22222\\"},
|
|
31
|
+
* \\"three\\": {\\"N\\": \\"33333\\"},
|
|
32
|
+
* \\"four\\": {\\"N\\": \\"44444\\"}
|
|
33
33
|
* }
|
|
34
34
|
* `,
|
|
35
35
|
* });
|
package/dynamodb/tableItem.js
CHANGED
|
@@ -31,11 +31,11 @@ const utilities = require("../utilities");
|
|
|
31
31
|
* tableName: exampleTable.name,
|
|
32
32
|
* hashKey: exampleTable.hashKey,
|
|
33
33
|
* item: `{
|
|
34
|
-
* "exampleHashKey": {"S": "something"},
|
|
35
|
-
* "one": {"N": "11111"},
|
|
36
|
-
* "two": {"N": "22222"},
|
|
37
|
-
* "three": {"N": "33333"},
|
|
38
|
-
* "four": {"N": "44444"}
|
|
34
|
+
* \\"exampleHashKey\\": {\\"S\\": \\"something\\"},
|
|
35
|
+
* \\"one\\": {\\"N\\": \\"11111\\"},
|
|
36
|
+
* \\"two\\": {\\"N\\": \\"22222\\"},
|
|
37
|
+
* \\"three\\": {\\"N\\": \\"33333\\"},
|
|
38
|
+
* \\"four\\": {\\"N\\": \\"44444\\"}
|
|
39
39
|
* }
|
|
40
40
|
* `,
|
|
41
41
|
* });
|
package/ec2/getSubnets.d.ts
CHANGED
|
@@ -3,6 +3,61 @@ import * as inputs from "../types/input";
|
|
|
3
3
|
import * as outputs from "../types/output";
|
|
4
4
|
/**
|
|
5
5
|
* This resource can be useful for getting back a set of subnet IDs.
|
|
6
|
+
*
|
|
7
|
+
* ## Example Usage
|
|
8
|
+
*
|
|
9
|
+
* The following shows outputting all CIDR blocks for every subnet ID in a VPC.
|
|
10
|
+
*
|
|
11
|
+
* ```typescript
|
|
12
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
13
|
+
* import * as aws from "@pulumi/aws";
|
|
14
|
+
* import * as std from "@pulumi/std";
|
|
15
|
+
*
|
|
16
|
+
* const example = aws.ec2.getSubnets({
|
|
17
|
+
* filters: [{
|
|
18
|
+
* name: "vpc-id",
|
|
19
|
+
* values: [vpcId],
|
|
20
|
+
* }],
|
|
21
|
+
* });
|
|
22
|
+
* const exampleGetSubnet = example.then(example => std.toset({
|
|
23
|
+
* input: example.ids,
|
|
24
|
+
* })).then(invoke => .reduce((__obj, [__key, __value]) => ({ ...__obj, [__key]: aws.ec2.getSubnet({
|
|
25
|
+
* id: __value,
|
|
26
|
+
* }) })));
|
|
27
|
+
* export const subnetCidrBlocks = exampleGetSubnet.apply(exampleGetSubnet => Object.values(exampleGetSubnet).map(s => (s.cidrBlock)));
|
|
28
|
+
* ```
|
|
29
|
+
*
|
|
30
|
+
* The following example retrieves a set of all subnets in a VPC with a custom
|
|
31
|
+
* tag of `Tier` set to a value of "Private" so that the `aws.ec2.Instance` resource
|
|
32
|
+
* can loop through the subnets, putting instances across availability zones.
|
|
33
|
+
*
|
|
34
|
+
* ```typescript
|
|
35
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
36
|
+
* import * as aws from "@pulumi/aws";
|
|
37
|
+
* import * as std from "@pulumi/std";
|
|
38
|
+
*
|
|
39
|
+
* export = async () => {
|
|
40
|
+
* const _private = await aws.ec2.getSubnets({
|
|
41
|
+
* filters: [{
|
|
42
|
+
* name: "vpc-id",
|
|
43
|
+
* values: [vpcId],
|
|
44
|
+
* }],
|
|
45
|
+
* tags: {
|
|
46
|
+
* Tier: "Private",
|
|
47
|
+
* },
|
|
48
|
+
* });
|
|
49
|
+
* const app: aws.ec2.Instance[] = [];
|
|
50
|
+
* for (const range of std.toset({
|
|
51
|
+
* input: _private.ids,
|
|
52
|
+
* }).result.map((v, k) => ({key: k, value: v}))) {
|
|
53
|
+
* app.push(new aws.ec2.Instance(`app-${range.key}`, {
|
|
54
|
+
* ami: ami,
|
|
55
|
+
* instanceType: aws.ec2.InstanceType.T2_Micro,
|
|
56
|
+
* subnetId: range.value,
|
|
57
|
+
* }));
|
|
58
|
+
* }
|
|
59
|
+
* }
|
|
60
|
+
* ```
|
|
6
61
|
*/
|
|
7
62
|
export declare function getSubnets(args?: GetSubnetsArgs, opts?: pulumi.InvokeOptions): Promise<GetSubnetsResult>;
|
|
8
63
|
/**
|
|
@@ -45,6 +100,61 @@ export interface GetSubnetsResult {
|
|
|
45
100
|
}
|
|
46
101
|
/**
|
|
47
102
|
* This resource can be useful for getting back a set of subnet IDs.
|
|
103
|
+
*
|
|
104
|
+
* ## Example Usage
|
|
105
|
+
*
|
|
106
|
+
* The following shows outputting all CIDR blocks for every subnet ID in a VPC.
|
|
107
|
+
*
|
|
108
|
+
* ```typescript
|
|
109
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
110
|
+
* import * as aws from "@pulumi/aws";
|
|
111
|
+
* import * as std from "@pulumi/std";
|
|
112
|
+
*
|
|
113
|
+
* const example = aws.ec2.getSubnets({
|
|
114
|
+
* filters: [{
|
|
115
|
+
* name: "vpc-id",
|
|
116
|
+
* values: [vpcId],
|
|
117
|
+
* }],
|
|
118
|
+
* });
|
|
119
|
+
* const exampleGetSubnet = example.then(example => std.toset({
|
|
120
|
+
* input: example.ids,
|
|
121
|
+
* })).then(invoke => .reduce((__obj, [__key, __value]) => ({ ...__obj, [__key]: aws.ec2.getSubnet({
|
|
122
|
+
* id: __value,
|
|
123
|
+
* }) })));
|
|
124
|
+
* export const subnetCidrBlocks = exampleGetSubnet.apply(exampleGetSubnet => Object.values(exampleGetSubnet).map(s => (s.cidrBlock)));
|
|
125
|
+
* ```
|
|
126
|
+
*
|
|
127
|
+
* The following example retrieves a set of all subnets in a VPC with a custom
|
|
128
|
+
* tag of `Tier` set to a value of "Private" so that the `aws.ec2.Instance` resource
|
|
129
|
+
* can loop through the subnets, putting instances across availability zones.
|
|
130
|
+
*
|
|
131
|
+
* ```typescript
|
|
132
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
133
|
+
* import * as aws from "@pulumi/aws";
|
|
134
|
+
* import * as std from "@pulumi/std";
|
|
135
|
+
*
|
|
136
|
+
* export = async () => {
|
|
137
|
+
* const _private = await aws.ec2.getSubnets({
|
|
138
|
+
* filters: [{
|
|
139
|
+
* name: "vpc-id",
|
|
140
|
+
* values: [vpcId],
|
|
141
|
+
* }],
|
|
142
|
+
* tags: {
|
|
143
|
+
* Tier: "Private",
|
|
144
|
+
* },
|
|
145
|
+
* });
|
|
146
|
+
* const app: aws.ec2.Instance[] = [];
|
|
147
|
+
* for (const range of std.toset({
|
|
148
|
+
* input: _private.ids,
|
|
149
|
+
* }).result.map((v, k) => ({key: k, value: v}))) {
|
|
150
|
+
* app.push(new aws.ec2.Instance(`app-${range.key}`, {
|
|
151
|
+
* ami: ami,
|
|
152
|
+
* instanceType: aws.ec2.InstanceType.T2_Micro,
|
|
153
|
+
* subnetId: range.value,
|
|
154
|
+
* }));
|
|
155
|
+
* }
|
|
156
|
+
* }
|
|
157
|
+
* ```
|
|
48
158
|
*/
|
|
49
159
|
export declare function getSubnetsOutput(args?: GetSubnetsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetSubnetsResult>;
|
|
50
160
|
/**
|
package/ec2/getSubnets.js
CHANGED
|
@@ -7,6 +7,61 @@ const pulumi = require("@pulumi/pulumi");
|
|
|
7
7
|
const utilities = require("../utilities");
|
|
8
8
|
/**
|
|
9
9
|
* This resource can be useful for getting back a set of subnet IDs.
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* The following shows outputting all CIDR blocks for every subnet ID in a VPC.
|
|
14
|
+
*
|
|
15
|
+
* ```typescript
|
|
16
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
17
|
+
* import * as aws from "@pulumi/aws";
|
|
18
|
+
* import * as std from "@pulumi/std";
|
|
19
|
+
*
|
|
20
|
+
* const example = aws.ec2.getSubnets({
|
|
21
|
+
* filters: [{
|
|
22
|
+
* name: "vpc-id",
|
|
23
|
+
* values: [vpcId],
|
|
24
|
+
* }],
|
|
25
|
+
* });
|
|
26
|
+
* const exampleGetSubnet = example.then(example => std.toset({
|
|
27
|
+
* input: example.ids,
|
|
28
|
+
* })).then(invoke => .reduce((__obj, [__key, __value]) => ({ ...__obj, [__key]: aws.ec2.getSubnet({
|
|
29
|
+
* id: __value,
|
|
30
|
+
* }) })));
|
|
31
|
+
* export const subnetCidrBlocks = exampleGetSubnet.apply(exampleGetSubnet => Object.values(exampleGetSubnet).map(s => (s.cidrBlock)));
|
|
32
|
+
* ```
|
|
33
|
+
*
|
|
34
|
+
* The following example retrieves a set of all subnets in a VPC with a custom
|
|
35
|
+
* tag of `Tier` set to a value of "Private" so that the `aws.ec2.Instance` resource
|
|
36
|
+
* can loop through the subnets, putting instances across availability zones.
|
|
37
|
+
*
|
|
38
|
+
* ```typescript
|
|
39
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
40
|
+
* import * as aws from "@pulumi/aws";
|
|
41
|
+
* import * as std from "@pulumi/std";
|
|
42
|
+
*
|
|
43
|
+
* export = async () => {
|
|
44
|
+
* const _private = await aws.ec2.getSubnets({
|
|
45
|
+
* filters: [{
|
|
46
|
+
* name: "vpc-id",
|
|
47
|
+
* values: [vpcId],
|
|
48
|
+
* }],
|
|
49
|
+
* tags: {
|
|
50
|
+
* Tier: "Private",
|
|
51
|
+
* },
|
|
52
|
+
* });
|
|
53
|
+
* const app: aws.ec2.Instance[] = [];
|
|
54
|
+
* for (const range of std.toset({
|
|
55
|
+
* input: _private.ids,
|
|
56
|
+
* }).result.map((v, k) => ({key: k, value: v}))) {
|
|
57
|
+
* app.push(new aws.ec2.Instance(`app-${range.key}`, {
|
|
58
|
+
* ami: ami,
|
|
59
|
+
* instanceType: aws.ec2.InstanceType.T2_Micro,
|
|
60
|
+
* subnetId: range.value,
|
|
61
|
+
* }));
|
|
62
|
+
* }
|
|
63
|
+
* }
|
|
64
|
+
* ```
|
|
10
65
|
*/
|
|
11
66
|
function getSubnets(args, opts) {
|
|
12
67
|
args = args || {};
|
|
@@ -20,6 +75,61 @@ function getSubnets(args, opts) {
|
|
|
20
75
|
exports.getSubnets = getSubnets;
|
|
21
76
|
/**
|
|
22
77
|
* This resource can be useful for getting back a set of subnet IDs.
|
|
78
|
+
*
|
|
79
|
+
* ## Example Usage
|
|
80
|
+
*
|
|
81
|
+
* The following shows outputting all CIDR blocks for every subnet ID in a VPC.
|
|
82
|
+
*
|
|
83
|
+
* ```typescript
|
|
84
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
85
|
+
* import * as aws from "@pulumi/aws";
|
|
86
|
+
* import * as std from "@pulumi/std";
|
|
87
|
+
*
|
|
88
|
+
* const example = aws.ec2.getSubnets({
|
|
89
|
+
* filters: [{
|
|
90
|
+
* name: "vpc-id",
|
|
91
|
+
* values: [vpcId],
|
|
92
|
+
* }],
|
|
93
|
+
* });
|
|
94
|
+
* const exampleGetSubnet = example.then(example => std.toset({
|
|
95
|
+
* input: example.ids,
|
|
96
|
+
* })).then(invoke => .reduce((__obj, [__key, __value]) => ({ ...__obj, [__key]: aws.ec2.getSubnet({
|
|
97
|
+
* id: __value,
|
|
98
|
+
* }) })));
|
|
99
|
+
* export const subnetCidrBlocks = exampleGetSubnet.apply(exampleGetSubnet => Object.values(exampleGetSubnet).map(s => (s.cidrBlock)));
|
|
100
|
+
* ```
|
|
101
|
+
*
|
|
102
|
+
* The following example retrieves a set of all subnets in a VPC with a custom
|
|
103
|
+
* tag of `Tier` set to a value of "Private" so that the `aws.ec2.Instance` resource
|
|
104
|
+
* can loop through the subnets, putting instances across availability zones.
|
|
105
|
+
*
|
|
106
|
+
* ```typescript
|
|
107
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
108
|
+
* import * as aws from "@pulumi/aws";
|
|
109
|
+
* import * as std from "@pulumi/std";
|
|
110
|
+
*
|
|
111
|
+
* export = async () => {
|
|
112
|
+
* const _private = await aws.ec2.getSubnets({
|
|
113
|
+
* filters: [{
|
|
114
|
+
* name: "vpc-id",
|
|
115
|
+
* values: [vpcId],
|
|
116
|
+
* }],
|
|
117
|
+
* tags: {
|
|
118
|
+
* Tier: "Private",
|
|
119
|
+
* },
|
|
120
|
+
* });
|
|
121
|
+
* const app: aws.ec2.Instance[] = [];
|
|
122
|
+
* for (const range of std.toset({
|
|
123
|
+
* input: _private.ids,
|
|
124
|
+
* }).result.map((v, k) => ({key: k, value: v}))) {
|
|
125
|
+
* app.push(new aws.ec2.Instance(`app-${range.key}`, {
|
|
126
|
+
* ami: ami,
|
|
127
|
+
* instanceType: aws.ec2.InstanceType.T2_Micro,
|
|
128
|
+
* subnetId: range.value,
|
|
129
|
+
* }));
|
|
130
|
+
* }
|
|
131
|
+
* }
|
|
132
|
+
* ```
|
|
23
133
|
*/
|
|
24
134
|
function getSubnetsOutput(args, opts) {
|
|
25
135
|
args = args || {};
|
package/ec2/getSubnets.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getSubnets.js","sourceRoot":"","sources":["../../ec2/getSubnets.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAIzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"getSubnets.js","sourceRoot":"","sources":["../../ec2/getSubnets.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAIzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyDG;AACH,SAAgB,UAAU,CAAC,IAAqB,EAAE,IAA2B;IACzE,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,+BAA+B,EAAE;QAC1D,SAAS,EAAE,IAAI,CAAC,OAAO;QACvB,QAAQ,EAAE,IAAI,CAAC,MAAM;QACrB,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,gCAQC;AAqCD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyDG;AACH,SAAgB,gBAAgB,CAAC,IAA2B,EAAE,IAAiC;IAC3F,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,+BAA+B,EAAE;QAChE,SAAS,EAAE,IAAI,CAAC,OAAO;QACvB,QAAQ,EAAE,IAAI,CAAC,MAAM;QACrB,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,4CAQC"}
|
package/ec2/securityGroup.d.ts
CHANGED
|
@@ -160,17 +160,17 @@ import * as outputs from "../types/output";
|
|
|
160
160
|
* const exampleProvisioner0 = new command.local.Command("exampleProvisioner0", {
|
|
161
161
|
* create: "true",
|
|
162
162
|
* update: "true",
|
|
163
|
-
* "delete": ` ENDPOINT_ID=`aws ec2 describe-vpc-endpoints --filters "Name=tag:Name,Values=${tags.workaround1}" --query "VpcEndpoints[0].VpcEndpointId" --output text` &&
|
|
163
|
+
* "delete": ` ENDPOINT_ID=`aws ec2 describe-vpc-endpoints --filters \"Name=tag:Name,Values=${tags.workaround1}\" --query \"VpcEndpoints[0].VpcEndpointId\" --output text` &&
|
|
164
164
|
* aws ec2 modify-vpc-endpoint --vpc-endpoint-id ${ENDPOINT_ID} --add-security-group-ids ${tags.workaround2} --remove-security-group-ids ${id}
|
|
165
165
|
* `,
|
|
166
166
|
* }, {
|
|
167
167
|
* dependsOn: [example],
|
|
168
168
|
* });
|
|
169
|
-
* const exampleResource = new _null.Resource("example", {triggers: {
|
|
170
|
-
*
|
|
169
|
+
* const exampleResource = new _null.index.Resource("example", {triggers: {
|
|
170
|
+
* rerunUponChangeOf: std.join({
|
|
171
171
|
* separator: ",",
|
|
172
172
|
* input: exampleAwsVpcEndpoint.securityGroupIds,
|
|
173
|
-
* }).
|
|
173
|
+
* }).result,
|
|
174
174
|
* }});
|
|
175
175
|
* const exampleResourceProvisioner0 = new command.local.Command("exampleResourceProvisioner0", {create: ` aws ec2 modify-vpc-endpoint --vpc-endpoint-id ${exampleAwsVpcEndpoint.id} --remove-security-group-ids ${_default.id}
|
|
176
176
|
* `}, {
|
package/ec2/securityGroup.js
CHANGED
|
@@ -164,17 +164,17 @@ const utilities = require("../utilities");
|
|
|
164
164
|
* const exampleProvisioner0 = new command.local.Command("exampleProvisioner0", {
|
|
165
165
|
* create: "true",
|
|
166
166
|
* update: "true",
|
|
167
|
-
* "delete": ` ENDPOINT_ID=`aws ec2 describe-vpc-endpoints --filters "Name=tag:Name,Values=${tags.workaround1}" --query "VpcEndpoints[0].VpcEndpointId" --output text` &&
|
|
167
|
+
* "delete": ` ENDPOINT_ID=`aws ec2 describe-vpc-endpoints --filters \"Name=tag:Name,Values=${tags.workaround1}\" --query \"VpcEndpoints[0].VpcEndpointId\" --output text` &&
|
|
168
168
|
* aws ec2 modify-vpc-endpoint --vpc-endpoint-id ${ENDPOINT_ID} --add-security-group-ids ${tags.workaround2} --remove-security-group-ids ${id}
|
|
169
169
|
* `,
|
|
170
170
|
* }, {
|
|
171
171
|
* dependsOn: [example],
|
|
172
172
|
* });
|
|
173
|
-
* const exampleResource = new _null.Resource("example", {triggers: {
|
|
174
|
-
*
|
|
173
|
+
* const exampleResource = new _null.index.Resource("example", {triggers: {
|
|
174
|
+
* rerunUponChangeOf: std.join({
|
|
175
175
|
* separator: ",",
|
|
176
176
|
* input: exampleAwsVpcEndpoint.securityGroupIds,
|
|
177
|
-
* }).
|
|
177
|
+
* }).result,
|
|
178
178
|
* }});
|
|
179
179
|
* const exampleResourceProvisioner0 = new command.local.Command("exampleResourceProvisioner0", {create: ` aws ec2 modify-vpc-endpoint --vpc-endpoint-id ${exampleAwsVpcEndpoint.id} --remove-security-group-ids ${_default.id}
|
|
180
180
|
* `}, {
|