@pulumi/aws 7.11.0-alpha.1761834890 → 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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../lakeformation/index.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAK7B,QAAA,eAAe,GAAuD,IAAW,CAAC;AAC/F,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,iBAAiB,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,mBAAmB,CAAC,CAAC,CAAC;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E,8BAA8B,EAAE,OAAO,CAAC,CAAA"}
|
|
@@ -48,6 +48,45 @@ import * as outputs from "../types/output";
|
|
|
48
48
|
* });
|
|
49
49
|
* ```
|
|
50
50
|
*
|
|
51
|
+
* ### Validate Signing Profiles
|
|
52
|
+
*
|
|
53
|
+
* ```typescript
|
|
54
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
55
|
+
* import * as aws from "@pulumi/aws";
|
|
56
|
+
* import * as std from "@pulumi/std";
|
|
57
|
+
*
|
|
58
|
+
* export = async () => {
|
|
59
|
+
* const example = await aws.lambda.getCodeSigningConfig({
|
|
60
|
+
* arn: codeSigningConfigArn,
|
|
61
|
+
* });
|
|
62
|
+
* const allowedProfiles = example.allowedPublishers?.[0]?.signingProfileVersionArns;
|
|
63
|
+
* const requiredProfile = "arn:aws:signer:us-west-2:123456789012:/signing-profiles/MyProfile";
|
|
64
|
+
* const profileAllowed = (await std.contains({
|
|
65
|
+
* input: allowedProfiles,
|
|
66
|
+
* element: requiredProfile,
|
|
67
|
+
* })).result;
|
|
68
|
+
* // Conditional resource creation based on signing profile validation
|
|
69
|
+
* const conditional: aws.lambda.Function[] = [];
|
|
70
|
+
* for (const range = {value: 0}; range.value < (profileAllowed ? 1 : 0); range.value++) {
|
|
71
|
+
* conditional.push(new aws.lambda.Function(`conditional-${range.value}`, {
|
|
72
|
+
* code: new pulumi.asset.FileArchive("function.zip"),
|
|
73
|
+
* name: "conditional-function",
|
|
74
|
+
* role: lambdaRole.arn,
|
|
75
|
+
* handler: "index.handler",
|
|
76
|
+
* runtime: aws.lambda.Runtime.Python3d12,
|
|
77
|
+
* codeSigningConfigArn: example.arn,
|
|
78
|
+
* }));
|
|
79
|
+
* }
|
|
80
|
+
* return {
|
|
81
|
+
* deploymentStatus: {
|
|
82
|
+
* profileAllowed: profileAllowed,
|
|
83
|
+
* functionCreated: profileAllowed,
|
|
84
|
+
* message: profileAllowed ? "Function deployed with valid signing profile" : "Deployment blocked - signing profile not allowed",
|
|
85
|
+
* },
|
|
86
|
+
* };
|
|
87
|
+
* }
|
|
88
|
+
* ```
|
|
89
|
+
*
|
|
51
90
|
* ### Multi-Environment Configuration
|
|
52
91
|
*
|
|
53
92
|
* ```typescript
|
|
@@ -167,6 +206,45 @@ export interface GetCodeSigningConfigResult {
|
|
|
167
206
|
* });
|
|
168
207
|
* ```
|
|
169
208
|
*
|
|
209
|
+
* ### Validate Signing Profiles
|
|
210
|
+
*
|
|
211
|
+
* ```typescript
|
|
212
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
213
|
+
* import * as aws from "@pulumi/aws";
|
|
214
|
+
* import * as std from "@pulumi/std";
|
|
215
|
+
*
|
|
216
|
+
* export = async () => {
|
|
217
|
+
* const example = await aws.lambda.getCodeSigningConfig({
|
|
218
|
+
* arn: codeSigningConfigArn,
|
|
219
|
+
* });
|
|
220
|
+
* const allowedProfiles = example.allowedPublishers?.[0]?.signingProfileVersionArns;
|
|
221
|
+
* const requiredProfile = "arn:aws:signer:us-west-2:123456789012:/signing-profiles/MyProfile";
|
|
222
|
+
* const profileAllowed = (await std.contains({
|
|
223
|
+
* input: allowedProfiles,
|
|
224
|
+
* element: requiredProfile,
|
|
225
|
+
* })).result;
|
|
226
|
+
* // Conditional resource creation based on signing profile validation
|
|
227
|
+
* const conditional: aws.lambda.Function[] = [];
|
|
228
|
+
* for (const range = {value: 0}; range.value < (profileAllowed ? 1 : 0); range.value++) {
|
|
229
|
+
* conditional.push(new aws.lambda.Function(`conditional-${range.value}`, {
|
|
230
|
+
* code: new pulumi.asset.FileArchive("function.zip"),
|
|
231
|
+
* name: "conditional-function",
|
|
232
|
+
* role: lambdaRole.arn,
|
|
233
|
+
* handler: "index.handler",
|
|
234
|
+
* runtime: aws.lambda.Runtime.Python3d12,
|
|
235
|
+
* codeSigningConfigArn: example.arn,
|
|
236
|
+
* }));
|
|
237
|
+
* }
|
|
238
|
+
* return {
|
|
239
|
+
* deploymentStatus: {
|
|
240
|
+
* profileAllowed: profileAllowed,
|
|
241
|
+
* functionCreated: profileAllowed,
|
|
242
|
+
* message: profileAllowed ? "Function deployed with valid signing profile" : "Deployment blocked - signing profile not allowed",
|
|
243
|
+
* },
|
|
244
|
+
* };
|
|
245
|
+
* }
|
|
246
|
+
* ```
|
|
247
|
+
*
|
|
170
248
|
* ### Multi-Environment Configuration
|
|
171
249
|
*
|
|
172
250
|
* ```typescript
|
|
@@ -53,6 +53,45 @@ const utilities = require("../utilities");
|
|
|
53
53
|
* });
|
|
54
54
|
* ```
|
|
55
55
|
*
|
|
56
|
+
* ### Validate Signing Profiles
|
|
57
|
+
*
|
|
58
|
+
* ```typescript
|
|
59
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
60
|
+
* import * as aws from "@pulumi/aws";
|
|
61
|
+
* import * as std from "@pulumi/std";
|
|
62
|
+
*
|
|
63
|
+
* export = async () => {
|
|
64
|
+
* const example = await aws.lambda.getCodeSigningConfig({
|
|
65
|
+
* arn: codeSigningConfigArn,
|
|
66
|
+
* });
|
|
67
|
+
* const allowedProfiles = example.allowedPublishers?.[0]?.signingProfileVersionArns;
|
|
68
|
+
* const requiredProfile = "arn:aws:signer:us-west-2:123456789012:/signing-profiles/MyProfile";
|
|
69
|
+
* const profileAllowed = (await std.contains({
|
|
70
|
+
* input: allowedProfiles,
|
|
71
|
+
* element: requiredProfile,
|
|
72
|
+
* })).result;
|
|
73
|
+
* // Conditional resource creation based on signing profile validation
|
|
74
|
+
* const conditional: aws.lambda.Function[] = [];
|
|
75
|
+
* for (const range = {value: 0}; range.value < (profileAllowed ? 1 : 0); range.value++) {
|
|
76
|
+
* conditional.push(new aws.lambda.Function(`conditional-${range.value}`, {
|
|
77
|
+
* code: new pulumi.asset.FileArchive("function.zip"),
|
|
78
|
+
* name: "conditional-function",
|
|
79
|
+
* role: lambdaRole.arn,
|
|
80
|
+
* handler: "index.handler",
|
|
81
|
+
* runtime: aws.lambda.Runtime.Python3d12,
|
|
82
|
+
* codeSigningConfigArn: example.arn,
|
|
83
|
+
* }));
|
|
84
|
+
* }
|
|
85
|
+
* return {
|
|
86
|
+
* deploymentStatus: {
|
|
87
|
+
* profileAllowed: profileAllowed,
|
|
88
|
+
* functionCreated: profileAllowed,
|
|
89
|
+
* message: profileAllowed ? "Function deployed with valid signing profile" : "Deployment blocked - signing profile not allowed",
|
|
90
|
+
* },
|
|
91
|
+
* };
|
|
92
|
+
* }
|
|
93
|
+
* ```
|
|
94
|
+
*
|
|
56
95
|
* ### Multi-Environment Configuration
|
|
57
96
|
*
|
|
58
97
|
* ```typescript
|
|
@@ -133,6 +172,45 @@ exports.getCodeSigningConfig = getCodeSigningConfig;
|
|
|
133
172
|
* });
|
|
134
173
|
* ```
|
|
135
174
|
*
|
|
175
|
+
* ### Validate Signing Profiles
|
|
176
|
+
*
|
|
177
|
+
* ```typescript
|
|
178
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
179
|
+
* import * as aws from "@pulumi/aws";
|
|
180
|
+
* import * as std from "@pulumi/std";
|
|
181
|
+
*
|
|
182
|
+
* export = async () => {
|
|
183
|
+
* const example = await aws.lambda.getCodeSigningConfig({
|
|
184
|
+
* arn: codeSigningConfigArn,
|
|
185
|
+
* });
|
|
186
|
+
* const allowedProfiles = example.allowedPublishers?.[0]?.signingProfileVersionArns;
|
|
187
|
+
* const requiredProfile = "arn:aws:signer:us-west-2:123456789012:/signing-profiles/MyProfile";
|
|
188
|
+
* const profileAllowed = (await std.contains({
|
|
189
|
+
* input: allowedProfiles,
|
|
190
|
+
* element: requiredProfile,
|
|
191
|
+
* })).result;
|
|
192
|
+
* // Conditional resource creation based on signing profile validation
|
|
193
|
+
* const conditional: aws.lambda.Function[] = [];
|
|
194
|
+
* for (const range = {value: 0}; range.value < (profileAllowed ? 1 : 0); range.value++) {
|
|
195
|
+
* conditional.push(new aws.lambda.Function(`conditional-${range.value}`, {
|
|
196
|
+
* code: new pulumi.asset.FileArchive("function.zip"),
|
|
197
|
+
* name: "conditional-function",
|
|
198
|
+
* role: lambdaRole.arn,
|
|
199
|
+
* handler: "index.handler",
|
|
200
|
+
* runtime: aws.lambda.Runtime.Python3d12,
|
|
201
|
+
* codeSigningConfigArn: example.arn,
|
|
202
|
+
* }));
|
|
203
|
+
* }
|
|
204
|
+
* return {
|
|
205
|
+
* deploymentStatus: {
|
|
206
|
+
* profileAllowed: profileAllowed,
|
|
207
|
+
* functionCreated: profileAllowed,
|
|
208
|
+
* message: profileAllowed ? "Function deployed with valid signing profile" : "Deployment blocked - signing profile not allowed",
|
|
209
|
+
* },
|
|
210
|
+
* };
|
|
211
|
+
* }
|
|
212
|
+
* ```
|
|
213
|
+
*
|
|
136
214
|
* ### Multi-Environment Configuration
|
|
137
215
|
*
|
|
138
216
|
* ```typescript
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getCodeSigningConfig.js","sourceRoot":"","sources":["../../lambda/getCodeSigningConfig.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAIzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"getCodeSigningConfig.js","sourceRoot":"","sources":["../../lambda/getCodeSigningConfig.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAIzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8GG;AACH,SAAgB,oBAAoB,CAAC,IAA8B,EAAE,IAA2B;IAC5F,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,sDAAsD,EAAE;QACjF,KAAK,EAAE,IAAI,CAAC,GAAG;QACf,QAAQ,EAAE,IAAI,CAAC,MAAM;KACxB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,oDAMC;AAiDD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8GG;AACH,SAAgB,0BAA0B,CAAC,IAAoC,EAAE,IAAiC;IAC9G,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,sDAAsD,EAAE;QACvF,KAAK,EAAE,IAAI,CAAC,GAAG;QACf,QAAQ,EAAE,IAAI,CAAC,MAAM;KACxB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,gEAMC"}
|
|
@@ -9,6 +9,56 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
9
9
|
* > **Note:** If you get a `KMSAccessDeniedException: Lambda was unable to decrypt the environment variables because KMS access was denied` error when invoking a Lambda function with environment variables, the IAM role associated with the function may have been deleted and recreated after the function was created. You can fix the problem two ways: 1) updating the function's role to another role and then updating it back again to the recreated role. (When you create a function, Lambda grants permissions on the KMS key to the function's IAM role. If the IAM role is recreated, the grant is no longer valid. Changing the function's role or recreating the function causes Lambda to update the grant.)
|
|
10
10
|
*
|
|
11
11
|
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ### Basic Invocation
|
|
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.lambda.getInvocation({
|
|
21
|
+
* functionName: exampleAwsLambdaFunction.functionName,
|
|
22
|
+
* input: JSON.stringify({
|
|
23
|
+
* operation: "getStatus",
|
|
24
|
+
* id: "123456",
|
|
25
|
+
* }),
|
|
26
|
+
* });
|
|
27
|
+
* export const result = example.then(example => std.jsondecode({
|
|
28
|
+
* input: example.result,
|
|
29
|
+
* })).then(invoke => invoke.result);
|
|
30
|
+
* ```
|
|
31
|
+
*
|
|
32
|
+
* ### Dynamic Resource Configuration
|
|
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
|
+
* // Get resource configuration from Lambda
|
|
40
|
+
* const resourceConfig = aws.lambda.getInvocation({
|
|
41
|
+
* functionName: "resource-config-generator",
|
|
42
|
+
* qualifier: "production",
|
|
43
|
+
* input: JSON.stringify({
|
|
44
|
+
* environment: environment,
|
|
45
|
+
* region: current.region,
|
|
46
|
+
* service: "api",
|
|
47
|
+
* }),
|
|
48
|
+
* });
|
|
49
|
+
* const config = resourceConfig.then(resourceConfig => std.jsondecode({
|
|
50
|
+
* input: resourceConfig.result,
|
|
51
|
+
* })).then(invoke => invoke.result);
|
|
52
|
+
* // Use dynamic configuration
|
|
53
|
+
* const example = new aws.elasticache.Cluster("example", {
|
|
54
|
+
* clusterId: config?.cache?.clusterId,
|
|
55
|
+
* engine: config?.cache?.engine,
|
|
56
|
+
* nodeType: config?.cache?.nodeType,
|
|
57
|
+
* numCacheNodes: config?.cache?.nodes,
|
|
58
|
+
* parameterGroupName: config?.cache?.parameterGroup,
|
|
59
|
+
* tags: config?.tags,
|
|
60
|
+
* });
|
|
61
|
+
* ```
|
|
12
62
|
*/
|
|
13
63
|
export declare function getInvocation(args: GetInvocationArgs, opts?: pulumi.InvokeOptions): Promise<GetInvocationResult>;
|
|
14
64
|
/**
|
|
@@ -61,6 +111,56 @@ export interface GetInvocationResult {
|
|
|
61
111
|
* > **Note:** If you get a `KMSAccessDeniedException: Lambda was unable to decrypt the environment variables because KMS access was denied` error when invoking a Lambda function with environment variables, the IAM role associated with the function may have been deleted and recreated after the function was created. You can fix the problem two ways: 1) updating the function's role to another role and then updating it back again to the recreated role. (When you create a function, Lambda grants permissions on the KMS key to the function's IAM role. If the IAM role is recreated, the grant is no longer valid. Changing the function's role or recreating the function causes Lambda to update the grant.)
|
|
62
112
|
*
|
|
63
113
|
* ## Example Usage
|
|
114
|
+
*
|
|
115
|
+
* ### Basic Invocation
|
|
116
|
+
*
|
|
117
|
+
* ```typescript
|
|
118
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
119
|
+
* import * as aws from "@pulumi/aws";
|
|
120
|
+
* import * as std from "@pulumi/std";
|
|
121
|
+
*
|
|
122
|
+
* const example = aws.lambda.getInvocation({
|
|
123
|
+
* functionName: exampleAwsLambdaFunction.functionName,
|
|
124
|
+
* input: JSON.stringify({
|
|
125
|
+
* operation: "getStatus",
|
|
126
|
+
* id: "123456",
|
|
127
|
+
* }),
|
|
128
|
+
* });
|
|
129
|
+
* export const result = example.then(example => std.jsondecode({
|
|
130
|
+
* input: example.result,
|
|
131
|
+
* })).then(invoke => invoke.result);
|
|
132
|
+
* ```
|
|
133
|
+
*
|
|
134
|
+
* ### Dynamic Resource Configuration
|
|
135
|
+
*
|
|
136
|
+
* ```typescript
|
|
137
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
138
|
+
* import * as aws from "@pulumi/aws";
|
|
139
|
+
* import * as std from "@pulumi/std";
|
|
140
|
+
*
|
|
141
|
+
* // Get resource configuration from Lambda
|
|
142
|
+
* const resourceConfig = aws.lambda.getInvocation({
|
|
143
|
+
* functionName: "resource-config-generator",
|
|
144
|
+
* qualifier: "production",
|
|
145
|
+
* input: JSON.stringify({
|
|
146
|
+
* environment: environment,
|
|
147
|
+
* region: current.region,
|
|
148
|
+
* service: "api",
|
|
149
|
+
* }),
|
|
150
|
+
* });
|
|
151
|
+
* const config = resourceConfig.then(resourceConfig => std.jsondecode({
|
|
152
|
+
* input: resourceConfig.result,
|
|
153
|
+
* })).then(invoke => invoke.result);
|
|
154
|
+
* // Use dynamic configuration
|
|
155
|
+
* const example = new aws.elasticache.Cluster("example", {
|
|
156
|
+
* clusterId: config?.cache?.clusterId,
|
|
157
|
+
* engine: config?.cache?.engine,
|
|
158
|
+
* nodeType: config?.cache?.nodeType,
|
|
159
|
+
* numCacheNodes: config?.cache?.nodes,
|
|
160
|
+
* parameterGroupName: config?.cache?.parameterGroup,
|
|
161
|
+
* tags: config?.tags,
|
|
162
|
+
* });
|
|
163
|
+
* ```
|
|
64
164
|
*/
|
|
65
165
|
export declare function getInvocationOutput(args: GetInvocationOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetInvocationResult>;
|
|
66
166
|
/**
|
package/lambda/getInvocation.js
CHANGED
|
@@ -15,6 +15,56 @@ const utilities = require("../utilities");
|
|
|
15
15
|
* > **Note:** If you get a `KMSAccessDeniedException: Lambda was unable to decrypt the environment variables because KMS access was denied` error when invoking a Lambda function with environment variables, the IAM role associated with the function may have been deleted and recreated after the function was created. You can fix the problem two ways: 1) updating the function's role to another role and then updating it back again to the recreated role. (When you create a function, Lambda grants permissions on the KMS key to the function's IAM role. If the IAM role is recreated, the grant is no longer valid. Changing the function's role or recreating the function causes Lambda to update the grant.)
|
|
16
16
|
*
|
|
17
17
|
* ## Example Usage
|
|
18
|
+
*
|
|
19
|
+
* ### Basic Invocation
|
|
20
|
+
*
|
|
21
|
+
* ```typescript
|
|
22
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
23
|
+
* import * as aws from "@pulumi/aws";
|
|
24
|
+
* import * as std from "@pulumi/std";
|
|
25
|
+
*
|
|
26
|
+
* const example = aws.lambda.getInvocation({
|
|
27
|
+
* functionName: exampleAwsLambdaFunction.functionName,
|
|
28
|
+
* input: JSON.stringify({
|
|
29
|
+
* operation: "getStatus",
|
|
30
|
+
* id: "123456",
|
|
31
|
+
* }),
|
|
32
|
+
* });
|
|
33
|
+
* export const result = example.then(example => std.jsondecode({
|
|
34
|
+
* input: example.result,
|
|
35
|
+
* })).then(invoke => invoke.result);
|
|
36
|
+
* ```
|
|
37
|
+
*
|
|
38
|
+
* ### Dynamic Resource Configuration
|
|
39
|
+
*
|
|
40
|
+
* ```typescript
|
|
41
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
42
|
+
* import * as aws from "@pulumi/aws";
|
|
43
|
+
* import * as std from "@pulumi/std";
|
|
44
|
+
*
|
|
45
|
+
* // Get resource configuration from Lambda
|
|
46
|
+
* const resourceConfig = aws.lambda.getInvocation({
|
|
47
|
+
* functionName: "resource-config-generator",
|
|
48
|
+
* qualifier: "production",
|
|
49
|
+
* input: JSON.stringify({
|
|
50
|
+
* environment: environment,
|
|
51
|
+
* region: current.region,
|
|
52
|
+
* service: "api",
|
|
53
|
+
* }),
|
|
54
|
+
* });
|
|
55
|
+
* const config = resourceConfig.then(resourceConfig => std.jsondecode({
|
|
56
|
+
* input: resourceConfig.result,
|
|
57
|
+
* })).then(invoke => invoke.result);
|
|
58
|
+
* // Use dynamic configuration
|
|
59
|
+
* const example = new aws.elasticache.Cluster("example", {
|
|
60
|
+
* clusterId: config?.cache?.clusterId,
|
|
61
|
+
* engine: config?.cache?.engine,
|
|
62
|
+
* nodeType: config?.cache?.nodeType,
|
|
63
|
+
* numCacheNodes: config?.cache?.nodes,
|
|
64
|
+
* parameterGroupName: config?.cache?.parameterGroup,
|
|
65
|
+
* tags: config?.tags,
|
|
66
|
+
* });
|
|
67
|
+
* ```
|
|
18
68
|
*/
|
|
19
69
|
function getInvocation(args, opts) {
|
|
20
70
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
@@ -36,6 +86,56 @@ exports.getInvocation = getInvocation;
|
|
|
36
86
|
* > **Note:** If you get a `KMSAccessDeniedException: Lambda was unable to decrypt the environment variables because KMS access was denied` error when invoking a Lambda function with environment variables, the IAM role associated with the function may have been deleted and recreated after the function was created. You can fix the problem two ways: 1) updating the function's role to another role and then updating it back again to the recreated role. (When you create a function, Lambda grants permissions on the KMS key to the function's IAM role. If the IAM role is recreated, the grant is no longer valid. Changing the function's role or recreating the function causes Lambda to update the grant.)
|
|
37
87
|
*
|
|
38
88
|
* ## Example Usage
|
|
89
|
+
*
|
|
90
|
+
* ### Basic Invocation
|
|
91
|
+
*
|
|
92
|
+
* ```typescript
|
|
93
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
94
|
+
* import * as aws from "@pulumi/aws";
|
|
95
|
+
* import * as std from "@pulumi/std";
|
|
96
|
+
*
|
|
97
|
+
* const example = aws.lambda.getInvocation({
|
|
98
|
+
* functionName: exampleAwsLambdaFunction.functionName,
|
|
99
|
+
* input: JSON.stringify({
|
|
100
|
+
* operation: "getStatus",
|
|
101
|
+
* id: "123456",
|
|
102
|
+
* }),
|
|
103
|
+
* });
|
|
104
|
+
* export const result = example.then(example => std.jsondecode({
|
|
105
|
+
* input: example.result,
|
|
106
|
+
* })).then(invoke => invoke.result);
|
|
107
|
+
* ```
|
|
108
|
+
*
|
|
109
|
+
* ### Dynamic Resource Configuration
|
|
110
|
+
*
|
|
111
|
+
* ```typescript
|
|
112
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
113
|
+
* import * as aws from "@pulumi/aws";
|
|
114
|
+
* import * as std from "@pulumi/std";
|
|
115
|
+
*
|
|
116
|
+
* // Get resource configuration from Lambda
|
|
117
|
+
* const resourceConfig = aws.lambda.getInvocation({
|
|
118
|
+
* functionName: "resource-config-generator",
|
|
119
|
+
* qualifier: "production",
|
|
120
|
+
* input: JSON.stringify({
|
|
121
|
+
* environment: environment,
|
|
122
|
+
* region: current.region,
|
|
123
|
+
* service: "api",
|
|
124
|
+
* }),
|
|
125
|
+
* });
|
|
126
|
+
* const config = resourceConfig.then(resourceConfig => std.jsondecode({
|
|
127
|
+
* input: resourceConfig.result,
|
|
128
|
+
* })).then(invoke => invoke.result);
|
|
129
|
+
* // Use dynamic configuration
|
|
130
|
+
* const example = new aws.elasticache.Cluster("example", {
|
|
131
|
+
* clusterId: config?.cache?.clusterId,
|
|
132
|
+
* engine: config?.cache?.engine,
|
|
133
|
+
* nodeType: config?.cache?.nodeType,
|
|
134
|
+
* numCacheNodes: config?.cache?.nodes,
|
|
135
|
+
* parameterGroupName: config?.cache?.parameterGroup,
|
|
136
|
+
* tags: config?.tags,
|
|
137
|
+
* });
|
|
138
|
+
* ```
|
|
39
139
|
*/
|
|
40
140
|
function getInvocationOutput(args, opts) {
|
|
41
141
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getInvocation.js","sourceRoot":"","sources":["../../lambda/getInvocation.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"getInvocation.js","sourceRoot":"","sources":["../../lambda/getInvocation.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4DG;AACH,SAAgB,aAAa,CAAC,IAAuB,EAAE,IAA2B;IAC9E,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,wCAAwC,EAAE;QACnE,cAAc,EAAE,IAAI,CAAC,YAAY;QACjC,OAAO,EAAE,IAAI,CAAC,KAAK;QACnB,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,QAAQ,EAAE,IAAI,CAAC,MAAM;KACxB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,sCAQC;AA2CD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4DG;AACH,SAAgB,mBAAmB,CAAC,IAA6B,EAAE,IAAiC;IAChG,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,wCAAwC,EAAE;QACzE,cAAc,EAAE,IAAI,CAAC,YAAY;QACjC,OAAO,EAAE,IAAI,CAAC,KAAK;QACnB,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,QAAQ,EAAE,IAAI,CAAC,MAAM;KACxB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,kDAQC"}
|
package/lambda/invocation.d.ts
CHANGED
|
@@ -8,6 +8,37 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
8
8
|
*
|
|
9
9
|
* ## Example Usage
|
|
10
10
|
*
|
|
11
|
+
* ### Basic Invocation
|
|
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
|
+
* // Lambda function to invoke
|
|
19
|
+
* const example = new aws.lambda.Function("example", {
|
|
20
|
+
* code: new pulumi.asset.FileArchive("function.zip"),
|
|
21
|
+
* name: "data_processor",
|
|
22
|
+
* role: lambdaRole.arn,
|
|
23
|
+
* handler: "index.handler",
|
|
24
|
+
* runtime: aws.lambda.Runtime.Python3d12,
|
|
25
|
+
* });
|
|
26
|
+
* // Invoke the function once during resource creation
|
|
27
|
+
* const exampleInvocation = new aws.lambda.Invocation("example", {
|
|
28
|
+
* functionName: example.name,
|
|
29
|
+
* input: JSON.stringify({
|
|
30
|
+
* operation: "initialize",
|
|
31
|
+
* config: {
|
|
32
|
+
* environment: "production",
|
|
33
|
+
* debug: false,
|
|
34
|
+
* },
|
|
35
|
+
* }),
|
|
36
|
+
* });
|
|
37
|
+
* export const initializationResult = std.jsondecodeOutput({
|
|
38
|
+
* input: exampleInvocation.result,
|
|
39
|
+
* }).apply(invoke => invoke.result?.status);
|
|
40
|
+
* ```
|
|
41
|
+
*
|
|
11
42
|
* ### Dynamic Invocation with Triggers
|
|
12
43
|
*
|
|
13
44
|
* ```typescript
|
package/lambda/invocation.js
CHANGED
|
@@ -14,6 +14,37 @@ const utilities = require("../utilities");
|
|
|
14
14
|
*
|
|
15
15
|
* ## Example Usage
|
|
16
16
|
*
|
|
17
|
+
* ### Basic Invocation
|
|
18
|
+
*
|
|
19
|
+
* ```typescript
|
|
20
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
21
|
+
* import * as aws from "@pulumi/aws";
|
|
22
|
+
* import * as std from "@pulumi/std";
|
|
23
|
+
*
|
|
24
|
+
* // Lambda function to invoke
|
|
25
|
+
* const example = new aws.lambda.Function("example", {
|
|
26
|
+
* code: new pulumi.asset.FileArchive("function.zip"),
|
|
27
|
+
* name: "data_processor",
|
|
28
|
+
* role: lambdaRole.arn,
|
|
29
|
+
* handler: "index.handler",
|
|
30
|
+
* runtime: aws.lambda.Runtime.Python3d12,
|
|
31
|
+
* });
|
|
32
|
+
* // Invoke the function once during resource creation
|
|
33
|
+
* const exampleInvocation = new aws.lambda.Invocation("example", {
|
|
34
|
+
* functionName: example.name,
|
|
35
|
+
* input: JSON.stringify({
|
|
36
|
+
* operation: "initialize",
|
|
37
|
+
* config: {
|
|
38
|
+
* environment: "production",
|
|
39
|
+
* debug: false,
|
|
40
|
+
* },
|
|
41
|
+
* }),
|
|
42
|
+
* });
|
|
43
|
+
* export const initializationResult = std.jsondecodeOutput({
|
|
44
|
+
* input: exampleInvocation.result,
|
|
45
|
+
* }).apply(invoke => invoke.result?.status);
|
|
46
|
+
* ```
|
|
47
|
+
*
|
|
17
48
|
* ### Dynamic Invocation with Triggers
|
|
18
49
|
*
|
|
19
50
|
* ```typescript
|
package/lambda/invocation.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"invocation.js","sourceRoot":"","sources":["../../lambda/invocation.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"invocation.js","sourceRoot":"","sources":["../../lambda/invocation.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkGG;AACH,MAAa,UAAW,SAAQ,MAAM,CAAC,cAAc;IACjD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAuB,EAAE,IAAmC;QACrH,OAAO,IAAI,UAAU,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACjE,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,UAAU,CAAC,YAAY,CAAC;IAC3D,CAAC;IA0CD,YAAY,IAAY,EAAE,WAA8C,EAAE,IAAmC;QACzG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA0C,CAAC;YACzD,cAAc,CAAC,cAAc,CAAC,GAAG,KAAK,EAAE,YAAY,CAAC;YACrD,cAAc,CAAC,OAAO,CAAC,GAAG,KAAK,EAAE,KAAK,CAAC;YACvC,cAAc,CAAC,gBAAgB,CAAC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CAAC,CAAC;QACnE,KAAK,CAAC,UAAU,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC/D,CAAC;;AApGL,gCAqGC;AAvFG,gBAAgB;AACO,uBAAY,GAAG,kCAAkC,CAAC"}
|
package/lb/getListenerRule.d.ts
CHANGED
|
@@ -68,6 +68,10 @@ export interface GetListenerRuleArgs {
|
|
|
68
68
|
* Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
|
|
69
69
|
*/
|
|
70
70
|
region?: string;
|
|
71
|
+
/**
|
|
72
|
+
* Block for transform to apply to requests that match this rule. Detailed below.
|
|
73
|
+
*/
|
|
74
|
+
transforms?: inputs.lb.GetListenerRuleTransform[];
|
|
71
75
|
}
|
|
72
76
|
/**
|
|
73
77
|
* A collection of values returned by getListenerRule.
|
|
@@ -100,6 +104,10 @@ export interface GetListenerRuleResult {
|
|
|
100
104
|
readonly tags: {
|
|
101
105
|
[key: string]: string;
|
|
102
106
|
};
|
|
107
|
+
/**
|
|
108
|
+
* Block for transform to apply to requests that match this rule. Detailed below.
|
|
109
|
+
*/
|
|
110
|
+
readonly transforms?: outputs.lb.GetListenerRuleTransform[];
|
|
103
111
|
}
|
|
104
112
|
/**
|
|
105
113
|
* Provides information about an AWS Elastic Load Balancing Listener Rule.
|
|
@@ -168,4 +176,8 @@ export interface GetListenerRuleOutputArgs {
|
|
|
168
176
|
* Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
|
|
169
177
|
*/
|
|
170
178
|
region?: pulumi.Input<string>;
|
|
179
|
+
/**
|
|
180
|
+
* Block for transform to apply to requests that match this rule. Detailed below.
|
|
181
|
+
*/
|
|
182
|
+
transforms?: pulumi.Input<pulumi.Input<inputs.lb.GetListenerRuleTransformArgs>[]>;
|
|
171
183
|
}
|
package/lb/getListenerRule.js
CHANGED
|
@@ -48,6 +48,7 @@ function getListenerRule(args, opts) {
|
|
|
48
48
|
"listenerArn": args.listenerArn,
|
|
49
49
|
"priority": args.priority,
|
|
50
50
|
"region": args.region,
|
|
51
|
+
"transforms": args.transforms,
|
|
51
52
|
}, opts);
|
|
52
53
|
}
|
|
53
54
|
exports.getListenerRule = getListenerRule;
|
|
@@ -94,6 +95,7 @@ function getListenerRuleOutput(args, opts) {
|
|
|
94
95
|
"listenerArn": args.listenerArn,
|
|
95
96
|
"priority": args.priority,
|
|
96
97
|
"region": args.region,
|
|
98
|
+
"transforms": args.transforms,
|
|
97
99
|
}, opts);
|
|
98
100
|
}
|
|
99
101
|
exports.getListenerRuleOutput = getListenerRuleOutput;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getListenerRule.js","sourceRoot":"","sources":["../../lb/getListenerRule.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAIzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,SAAgB,eAAe,CAAC,IAA0B,EAAE,IAA2B;IACnF,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,wCAAwC,EAAE;QACnE,SAAS,EAAE,IAAI,CAAC,OAAO;QACvB,KAAK,EAAE,IAAI,CAAC,GAAG;QACf,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,aAAa,EAAE,IAAI,CAAC,WAAW;QAC/B,UAAU,EAAE,IAAI,CAAC,QAAQ;QACzB,QAAQ,EAAE,IAAI,CAAC,MAAM;
|
|
1
|
+
{"version":3,"file":"getListenerRule.js","sourceRoot":"","sources":["../../lb/getListenerRule.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE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AE,IAAI,CAAC,CAAC;AACb,CAAC;AAZD,sDAYC"}
|
package/lb/listenerRule.d.ts
CHANGED
|
@@ -160,6 +160,39 @@ import * as outputs from "../types/output";
|
|
|
160
160
|
* },
|
|
161
161
|
* ],
|
|
162
162
|
* });
|
|
163
|
+
* // With transform
|
|
164
|
+
* const transform = new aws.lb.ListenerRule("transform", {
|
|
165
|
+
* listenerArn: frontEndListener.arn,
|
|
166
|
+
* actions: [{
|
|
167
|
+
* type: "forward",
|
|
168
|
+
* targetGroupArn: staticAwsLbTargetGroup.arn,
|
|
169
|
+
* }],
|
|
170
|
+
* conditions: [{
|
|
171
|
+
* pathPattern: {
|
|
172
|
+
* values: ["*"],
|
|
173
|
+
* },
|
|
174
|
+
* }],
|
|
175
|
+
* transforms: [
|
|
176
|
+
* {
|
|
177
|
+
* type: "host-header-rewrite",
|
|
178
|
+
* hostHeaderRewriteConfig: {
|
|
179
|
+
* rewrite: {
|
|
180
|
+
* regex: "^mywebsite-(.+).com$",
|
|
181
|
+
* replace: "internal.dev.$1.myweb.com",
|
|
182
|
+
* },
|
|
183
|
+
* },
|
|
184
|
+
* },
|
|
185
|
+
* {
|
|
186
|
+
* type: "url-rewrite",
|
|
187
|
+
* urlRewriteConfig: {
|
|
188
|
+
* rewrite: {
|
|
189
|
+
* regex: "^/dp/([A-Za-z0-9]+)/?$",
|
|
190
|
+
* replace: "/product.php?id=$1",
|
|
191
|
+
* },
|
|
192
|
+
* },
|
|
193
|
+
* },
|
|
194
|
+
* ],
|
|
195
|
+
* });
|
|
163
196
|
* ```
|
|
164
197
|
*
|
|
165
198
|
* ## Import
|
|
@@ -228,6 +261,10 @@ export declare class ListenerRule extends pulumi.CustomResource {
|
|
|
228
261
|
readonly tagsAll: pulumi.Output<{
|
|
229
262
|
[key: string]: string;
|
|
230
263
|
}>;
|
|
264
|
+
/**
|
|
265
|
+
* Configuration block that defines the transform to apply to requests matching this rule. See Transform Blocks below for more details. Once specified, to remove the transform from the rule, remove the `transform` block from the configuration.
|
|
266
|
+
*/
|
|
267
|
+
readonly transforms: pulumi.Output<outputs.lb.ListenerRuleTransform[] | undefined>;
|
|
231
268
|
/**
|
|
232
269
|
* Create a ListenerRule resource with the given unique name, arguments, and options.
|
|
233
270
|
*
|
|
@@ -277,6 +314,10 @@ export interface ListenerRuleState {
|
|
|
277
314
|
tagsAll?: pulumi.Input<{
|
|
278
315
|
[key: string]: pulumi.Input<string>;
|
|
279
316
|
}>;
|
|
317
|
+
/**
|
|
318
|
+
* Configuration block that defines the transform to apply to requests matching this rule. See Transform Blocks below for more details. Once specified, to remove the transform from the rule, remove the `transform` block from the configuration.
|
|
319
|
+
*/
|
|
320
|
+
transforms?: pulumi.Input<pulumi.Input<inputs.lb.ListenerRuleTransform>[]>;
|
|
280
321
|
}
|
|
281
322
|
/**
|
|
282
323
|
* The set of arguments for constructing a ListenerRule resource.
|
|
@@ -308,4 +349,8 @@ export interface ListenerRuleArgs {
|
|
|
308
349
|
tags?: pulumi.Input<{
|
|
309
350
|
[key: string]: pulumi.Input<string>;
|
|
310
351
|
}>;
|
|
352
|
+
/**
|
|
353
|
+
* Configuration block that defines the transform to apply to requests matching this rule. See Transform Blocks below for more details. Once specified, to remove the transform from the rule, remove the `transform` block from the configuration.
|
|
354
|
+
*/
|
|
355
|
+
transforms?: pulumi.Input<pulumi.Input<inputs.lb.ListenerRuleTransform>[]>;
|
|
311
356
|
}
|