@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
package/alb/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.alb.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.alb.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.alb.ListenerRuleTransform>[]>;
|
|
311
356
|
}
|
package/alb/listenerRule.js
CHANGED
|
@@ -164,6 +164,39 @@ const utilities = require("../utilities");
|
|
|
164
164
|
* },
|
|
165
165
|
* ],
|
|
166
166
|
* });
|
|
167
|
+
* // With transform
|
|
168
|
+
* const transform = new aws.lb.ListenerRule("transform", {
|
|
169
|
+
* listenerArn: frontEndListener.arn,
|
|
170
|
+
* actions: [{
|
|
171
|
+
* type: "forward",
|
|
172
|
+
* targetGroupArn: staticAwsLbTargetGroup.arn,
|
|
173
|
+
* }],
|
|
174
|
+
* conditions: [{
|
|
175
|
+
* pathPattern: {
|
|
176
|
+
* values: ["*"],
|
|
177
|
+
* },
|
|
178
|
+
* }],
|
|
179
|
+
* transforms: [
|
|
180
|
+
* {
|
|
181
|
+
* type: "host-header-rewrite",
|
|
182
|
+
* hostHeaderRewriteConfig: {
|
|
183
|
+
* rewrite: {
|
|
184
|
+
* regex: "^mywebsite-(.+).com$",
|
|
185
|
+
* replace: "internal.dev.$1.myweb.com",
|
|
186
|
+
* },
|
|
187
|
+
* },
|
|
188
|
+
* },
|
|
189
|
+
* {
|
|
190
|
+
* type: "url-rewrite",
|
|
191
|
+
* urlRewriteConfig: {
|
|
192
|
+
* rewrite: {
|
|
193
|
+
* regex: "^/dp/([A-Za-z0-9]+)/?$",
|
|
194
|
+
* replace: "/product.php?id=$1",
|
|
195
|
+
* },
|
|
196
|
+
* },
|
|
197
|
+
* },
|
|
198
|
+
* ],
|
|
199
|
+
* });
|
|
167
200
|
* ```
|
|
168
201
|
*
|
|
169
202
|
* ## Import
|
|
@@ -216,6 +249,7 @@ class ListenerRule extends pulumi.CustomResource {
|
|
|
216
249
|
resourceInputs["region"] = state?.region;
|
|
217
250
|
resourceInputs["tags"] = state?.tags;
|
|
218
251
|
resourceInputs["tagsAll"] = state?.tagsAll;
|
|
252
|
+
resourceInputs["transforms"] = state?.transforms;
|
|
219
253
|
}
|
|
220
254
|
else {
|
|
221
255
|
const args = argsOrState;
|
|
@@ -234,6 +268,7 @@ class ListenerRule extends pulumi.CustomResource {
|
|
|
234
268
|
resourceInputs["priority"] = args?.priority;
|
|
235
269
|
resourceInputs["region"] = args?.region;
|
|
236
270
|
resourceInputs["tags"] = args?.tags;
|
|
271
|
+
resourceInputs["transforms"] = args?.transforms;
|
|
237
272
|
resourceInputs["arn"] = undefined /*out*/;
|
|
238
273
|
resourceInputs["tagsAll"] = undefined /*out*/;
|
|
239
274
|
}
|
package/alb/listenerRule.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"listenerRule.js","sourceRoot":"","sources":["../../alb/listenerRule.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAIzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"listenerRule.js","sourceRoot":"","sources":["../../alb/listenerRule.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAIzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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nE,MAAM,SAAS,GAAG,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,wDAAwD,EAAE,CAAC,EAAE,CAAC;QACpG,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;QAC5C,KAAK,CAAC,YAAY,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACjE,CAAC;;AAhHL,oCAiHC;AAnGG,gBAAgB;AACO,yBAAY,GAAG,mCAAmC,CAAC"}
|
package/amplify/app.d.ts
CHANGED
package/amplify/app.js
CHANGED
|
@@ -46,7 +46,7 @@ import { RestApi } from "./index";
|
|
|
46
46
|
* statusCode: response200.statusCode,
|
|
47
47
|
* responseTemplates: {
|
|
48
48
|
* "application/xml": `#set(inputRoot = input.path(''))
|
|
49
|
-
* <?xml version
|
|
49
|
+
* <?xml version=\\"1.0\\" encoding=\\"UTF-8\\"?>
|
|
50
50
|
* <message>
|
|
51
51
|
* inputRoot.body
|
|
52
52
|
* </message>
|
|
@@ -51,7 +51,7 @@ const utilities = require("../utilities");
|
|
|
51
51
|
* statusCode: response200.statusCode,
|
|
52
52
|
* responseTemplates: {
|
|
53
53
|
* "application/xml": `#set(inputRoot = input.path(''))
|
|
54
|
-
* <?xml version
|
|
54
|
+
* <?xml version=\\"1.0\\" encoding=\\"UTF-8\\"?>
|
|
55
55
|
* <message>
|
|
56
56
|
* inputRoot.body
|
|
57
57
|
* </message>
|
package/appstream/getImage.d.ts
CHANGED
|
@@ -22,19 +22,19 @@ export declare function getImage(args?: GetImageArgs, opts?: pulumi.InvokeOption
|
|
|
22
22
|
*/
|
|
23
23
|
export interface GetImageArgs {
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* ARN of the image being searched for. Cannot be used with `nameRegex` or `name`.
|
|
26
26
|
*/
|
|
27
27
|
arn?: string;
|
|
28
28
|
/**
|
|
29
|
-
* Boolean that if it is set to true and there are multiple images returned the most recent will be returned. If it is set to false and there are multiple images return the datasource will error.
|
|
29
|
+
* Boolean that if it is set to `true` and there are multiple images returned the most recent will be returned. If it is set to `false` and there are multiple images return the datasource will error.
|
|
30
30
|
*/
|
|
31
31
|
mostRecent?: boolean;
|
|
32
32
|
/**
|
|
33
|
-
* Name of the image being searched for. Cannot be used with nameRegex or arn
|
|
33
|
+
* Name of the image being searched for. Cannot be used with `nameRegex` or `arn`.
|
|
34
34
|
*/
|
|
35
35
|
name?: string;
|
|
36
36
|
/**
|
|
37
|
-
* Regular expression name of the image being searched for. Cannot be used with arn or name
|
|
37
|
+
* Regular expression name of the image being searched for. Cannot be used with `arn` or `name`.
|
|
38
38
|
*/
|
|
39
39
|
nameRegex?: string;
|
|
40
40
|
/**
|
|
@@ -42,7 +42,7 @@ export interface GetImageArgs {
|
|
|
42
42
|
*/
|
|
43
43
|
region?: string;
|
|
44
44
|
/**
|
|
45
|
-
* The type of image which must be (PUBLIC
|
|
45
|
+
* The type of image which must be (`PUBLIC`, `PRIVATE`, or `SHARED`).
|
|
46
46
|
*/
|
|
47
47
|
type?: string;
|
|
48
48
|
}
|
|
@@ -130,19 +130,19 @@ export declare function getImageOutput(args?: GetImageOutputArgs, opts?: pulumi.
|
|
|
130
130
|
*/
|
|
131
131
|
export interface GetImageOutputArgs {
|
|
132
132
|
/**
|
|
133
|
-
*
|
|
133
|
+
* ARN of the image being searched for. Cannot be used with `nameRegex` or `name`.
|
|
134
134
|
*/
|
|
135
135
|
arn?: pulumi.Input<string>;
|
|
136
136
|
/**
|
|
137
|
-
* Boolean that if it is set to true and there are multiple images returned the most recent will be returned. If it is set to false and there are multiple images return the datasource will error.
|
|
137
|
+
* Boolean that if it is set to `true` and there are multiple images returned the most recent will be returned. If it is set to `false` and there are multiple images return the datasource will error.
|
|
138
138
|
*/
|
|
139
139
|
mostRecent?: pulumi.Input<boolean>;
|
|
140
140
|
/**
|
|
141
|
-
* Name of the image being searched for. Cannot be used with nameRegex or arn
|
|
141
|
+
* Name of the image being searched for. Cannot be used with `nameRegex` or `arn`.
|
|
142
142
|
*/
|
|
143
143
|
name?: pulumi.Input<string>;
|
|
144
144
|
/**
|
|
145
|
-
* Regular expression name of the image being searched for. Cannot be used with arn or name
|
|
145
|
+
* Regular expression name of the image being searched for. Cannot be used with `arn` or `name`.
|
|
146
146
|
*/
|
|
147
147
|
nameRegex?: pulumi.Input<string>;
|
|
148
148
|
/**
|
|
@@ -150,7 +150,7 @@ export interface GetImageOutputArgs {
|
|
|
150
150
|
*/
|
|
151
151
|
region?: pulumi.Input<string>;
|
|
152
152
|
/**
|
|
153
|
-
* The type of image which must be (PUBLIC
|
|
153
|
+
* The type of image which must be (`PUBLIC`, `PRIVATE`, or `SHARED`).
|
|
154
154
|
*/
|
|
155
155
|
type?: pulumi.Input<string>;
|
|
156
156
|
}
|
package/appsync/function.d.ts
CHANGED
|
@@ -45,11 +45,11 @@ import * as outputs from "../types/output";
|
|
|
45
45
|
* dataSource: exampleDataSource.name,
|
|
46
46
|
* name: "example",
|
|
47
47
|
* requestMappingTemplate: `{
|
|
48
|
-
* "version": "2018-05-29",
|
|
49
|
-
* "method": "GET",
|
|
50
|
-
* "resourcePath": "
|
|
51
|
-
* "params":{
|
|
52
|
-
* "headers": utils.http.copyheaders(ctx.request.headers)
|
|
48
|
+
* \\"version\\": \\"2018-05-29\\",
|
|
49
|
+
* \\"method\\": \\"GET\\",
|
|
50
|
+
* \\"resourcePath\\": \\"/\\",
|
|
51
|
+
* \\"params\\":{
|
|
52
|
+
* \\"headers\\": utils.http.copyheaders(ctx.request.headers)
|
|
53
53
|
* }
|
|
54
54
|
* }
|
|
55
55
|
* `,
|
package/appsync/function.js
CHANGED
|
@@ -49,11 +49,11 @@ const utilities = require("../utilities");
|
|
|
49
49
|
* dataSource: exampleDataSource.name,
|
|
50
50
|
* name: "example",
|
|
51
51
|
* requestMappingTemplate: `{
|
|
52
|
-
* "version": "2018-05-29",
|
|
53
|
-
* "method": "GET",
|
|
54
|
-
* "resourcePath": "
|
|
55
|
-
* "params":{
|
|
56
|
-
* "headers": utils.http.copyheaders(ctx.request.headers)
|
|
52
|
+
* \\"version\\": \\"2018-05-29\\",
|
|
53
|
+
* \\"method\\": \\"GET\\",
|
|
54
|
+
* \\"resourcePath\\": \\"/\\",
|
|
55
|
+
* \\"params\\":{
|
|
56
|
+
* \\"headers\\": utils.http.copyheaders(ctx.request.headers)
|
|
57
57
|
* }
|
|
58
58
|
* }
|
|
59
59
|
* `,
|
package/appsync/graphQLApi.d.ts
CHANGED
package/appsync/graphQLApi.js
CHANGED
package/appsync/resolver.d.ts
CHANGED
|
@@ -14,21 +14,21 @@ import * as outputs from "../types/output";
|
|
|
14
14
|
* authenticationType: "API_KEY",
|
|
15
15
|
* name: "tf-example",
|
|
16
16
|
* schema: `type Mutation {
|
|
17
|
-
*
|
|
17
|
+
* \\tputPost(id: ID!, title: String!): Post
|
|
18
18
|
* }
|
|
19
19
|
*
|
|
20
20
|
* type Post {
|
|
21
|
-
*
|
|
22
|
-
*
|
|
21
|
+
* \\tid: ID!
|
|
22
|
+
* \\ttitle: String!
|
|
23
23
|
* }
|
|
24
24
|
*
|
|
25
25
|
* type Query {
|
|
26
|
-
*
|
|
26
|
+
* \\tsinglePost(id: ID!): Post
|
|
27
27
|
* }
|
|
28
28
|
*
|
|
29
29
|
* schema {
|
|
30
|
-
*
|
|
31
|
-
*
|
|
30
|
+
* \\tquery: Query
|
|
31
|
+
* \\tmutation: Mutation
|
|
32
32
|
* }
|
|
33
33
|
* `,
|
|
34
34
|
* });
|
|
@@ -47,11 +47,11 @@ import * as outputs from "../types/output";
|
|
|
47
47
|
* type: "Query",
|
|
48
48
|
* dataSource: testDataSource.name,
|
|
49
49
|
* requestTemplate: `{
|
|
50
|
-
* "version": "2018-05-29",
|
|
51
|
-
* "method": "GET",
|
|
52
|
-
* "resourcePath": "
|
|
53
|
-
* "params":{
|
|
54
|
-
* "headers": utils.http.copyheaders(ctx.request.headers)
|
|
50
|
+
* \\"version\\": \\"2018-05-29\\",
|
|
51
|
+
* \\"method\\": \\"GET\\",
|
|
52
|
+
* \\"resourcePath\\": \\"/\\",
|
|
53
|
+
* \\"params\\":{
|
|
54
|
+
* \\"headers\\": utils.http.copyheaders(ctx.request.headers)
|
|
55
55
|
* }
|
|
56
56
|
* }
|
|
57
57
|
* `,
|
package/appsync/resolver.js
CHANGED
|
@@ -18,21 +18,21 @@ const utilities = require("../utilities");
|
|
|
18
18
|
* authenticationType: "API_KEY",
|
|
19
19
|
* name: "tf-example",
|
|
20
20
|
* schema: `type Mutation {
|
|
21
|
-
*
|
|
21
|
+
* \\tputPost(id: ID!, title: String!): Post
|
|
22
22
|
* }
|
|
23
23
|
*
|
|
24
24
|
* type Post {
|
|
25
|
-
*
|
|
26
|
-
*
|
|
25
|
+
* \\tid: ID!
|
|
26
|
+
* \\ttitle: String!
|
|
27
27
|
* }
|
|
28
28
|
*
|
|
29
29
|
* type Query {
|
|
30
|
-
*
|
|
30
|
+
* \\tsinglePost(id: ID!): Post
|
|
31
31
|
* }
|
|
32
32
|
*
|
|
33
33
|
* schema {
|
|
34
|
-
*
|
|
35
|
-
*
|
|
34
|
+
* \\tquery: Query
|
|
35
|
+
* \\tmutation: Mutation
|
|
36
36
|
* }
|
|
37
37
|
* `,
|
|
38
38
|
* });
|
|
@@ -51,11 +51,11 @@ const utilities = require("../utilities");
|
|
|
51
51
|
* type: "Query",
|
|
52
52
|
* dataSource: testDataSource.name,
|
|
53
53
|
* requestTemplate: `{
|
|
54
|
-
* "version": "2018-05-29",
|
|
55
|
-
* "method": "GET",
|
|
56
|
-
* "resourcePath": "
|
|
57
|
-
* "params":{
|
|
58
|
-
* "headers": utils.http.copyheaders(ctx.request.headers)
|
|
54
|
+
* \\"version\\": \\"2018-05-29\\",
|
|
55
|
+
* \\"method\\": \\"GET\\",
|
|
56
|
+
* \\"resourcePath\\": \\"/\\",
|
|
57
|
+
* \\"params\\":{
|
|
58
|
+
* \\"headers\\": utils.http.copyheaders(ctx.request.headers)
|
|
59
59
|
* }
|
|
60
60
|
* }
|
|
61
61
|
* `,
|
package/autoscaling/tag.d.ts
CHANGED
|
@@ -8,6 +8,36 @@ import * as outputs from "../types/output";
|
|
|
8
8
|
*
|
|
9
9
|
* > **NOTE:** This tagging resource does not use the provider `ignoreTags` configuration.
|
|
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.eks.NodeGroup("example", {
|
|
19
|
+
* clusterName: "example",
|
|
20
|
+
* nodeGroupName: "example",
|
|
21
|
+
* });
|
|
22
|
+
* const exampleTag: aws.autoscaling.Tag[] = [];
|
|
23
|
+
* std.tosetOutput({
|
|
24
|
+
* input: std.flattenOutput({
|
|
25
|
+
* input: example.resources.apply(resources => resources.map(resources => (resources.autoscalingGroups))),
|
|
26
|
+
* }).apply(invoke => .map(asg => (asg.name))),
|
|
27
|
+
* }).apply(invoke => {
|
|
28
|
+
* for (const range of invoke.result.map((v, k) => ({key: k, value: v}))) {
|
|
29
|
+
* exampleTag.push(new aws.autoscaling.Tag(`example-${range.key}`, {
|
|
30
|
+
* autoscalingGroupName: range.value,
|
|
31
|
+
* tag: {
|
|
32
|
+
* key: "k8s.io/cluster-autoscaler/node-template/label/eks.amazonaws.com/capacityType",
|
|
33
|
+
* value: "SPOT",
|
|
34
|
+
* propagateAtLaunch: false,
|
|
35
|
+
* },
|
|
36
|
+
* }));
|
|
37
|
+
* }
|
|
38
|
+
* });
|
|
39
|
+
* ```
|
|
40
|
+
*
|
|
11
41
|
* ## Import
|
|
12
42
|
*
|
|
13
43
|
* Using `pulumi import`, import `aws_autoscaling_group_tag` using the ASG name and key, separated by a comma (`,`). For example:
|
package/autoscaling/tag.js
CHANGED
|
@@ -12,6 +12,36 @@ const utilities = require("../utilities");
|
|
|
12
12
|
*
|
|
13
13
|
* > **NOTE:** This tagging resource does not use the provider `ignoreTags` configuration.
|
|
14
14
|
*
|
|
15
|
+
* ## Example Usage
|
|
16
|
+
*
|
|
17
|
+
* ```typescript
|
|
18
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
19
|
+
* import * as aws from "@pulumi/aws";
|
|
20
|
+
* import * as std from "@pulumi/std";
|
|
21
|
+
*
|
|
22
|
+
* const example = new aws.eks.NodeGroup("example", {
|
|
23
|
+
* clusterName: "example",
|
|
24
|
+
* nodeGroupName: "example",
|
|
25
|
+
* });
|
|
26
|
+
* const exampleTag: aws.autoscaling.Tag[] = [];
|
|
27
|
+
* std.tosetOutput({
|
|
28
|
+
* input: std.flattenOutput({
|
|
29
|
+
* input: example.resources.apply(resources => resources.map(resources => (resources.autoscalingGroups))),
|
|
30
|
+
* }).apply(invoke => .map(asg => (asg.name))),
|
|
31
|
+
* }).apply(invoke => {
|
|
32
|
+
* for (const range of invoke.result.map((v, k) => ({key: k, value: v}))) {
|
|
33
|
+
* exampleTag.push(new aws.autoscaling.Tag(`example-${range.key}`, {
|
|
34
|
+
* autoscalingGroupName: range.value,
|
|
35
|
+
* tag: {
|
|
36
|
+
* key: "k8s.io/cluster-autoscaler/node-template/label/eks.amazonaws.com/capacityType",
|
|
37
|
+
* value: "SPOT",
|
|
38
|
+
* propagateAtLaunch: false,
|
|
39
|
+
* },
|
|
40
|
+
* }));
|
|
41
|
+
* }
|
|
42
|
+
* });
|
|
43
|
+
* ```
|
|
44
|
+
*
|
|
15
45
|
* ## Import
|
|
16
46
|
*
|
|
17
47
|
* Using `pulumi import`, import `aws_autoscaling_group_tag` using the ASG name and key, separated by a comma (`,`). For example:
|
package/autoscaling/tag.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tag.js","sourceRoot":"","sources":["../../autoscaling/tag.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEj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,EAAE;gBACvD,MAAM,IAAI,KAAK,CAAC,kDAAkD,CAAC,CAAC;aACvE;YACD,IAAI,IAAI,EAAE,GAAG,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACtC,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;aACtD;YACD,cAAc,CAAC,sBAAsB,CAAC,GAAG,IAAI,EAAE,oBAAoB,CAAC;YACpE,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC;YACxC,cAAc,CAAC,KAAK,CAAC,GAAG,IAAI,EAAE,GAAG,CAAC;SACrC;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,GAAG,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACxD,CAAC;;AAvEL,kBAwEC;AA1DG,gBAAgB;AACO,gBAAY,GAAG,yBAAyB,CAAC"}
|
|
@@ -11,6 +11,106 @@ import * as outputs from "../types/output";
|
|
|
11
11
|
*
|
|
12
12
|
* ## Example Usage
|
|
13
13
|
*
|
|
14
|
+
* ### Basic Dynamic Scaling
|
|
15
|
+
*
|
|
16
|
+
* ```typescript
|
|
17
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
18
|
+
* import * as aws from "@pulumi/aws";
|
|
19
|
+
* import * as std from "@pulumi/std";
|
|
20
|
+
*
|
|
21
|
+
* const available = aws.getAvailabilityZones({});
|
|
22
|
+
* const example = new aws.autoscaling.Group("example", {
|
|
23
|
+
* namePrefix: "example",
|
|
24
|
+
* launchConfiguration: exampleAwsLaunchConfiguration.name,
|
|
25
|
+
* availabilityZones: [available.then(available => available.names?.[0])],
|
|
26
|
+
* minSize: 0,
|
|
27
|
+
* maxSize: 3,
|
|
28
|
+
* tags: [{
|
|
29
|
+
* key: "application",
|
|
30
|
+
* value: "example",
|
|
31
|
+
* propagateAtLaunch: true,
|
|
32
|
+
* }],
|
|
33
|
+
* });
|
|
34
|
+
* const exampleScalingPlan = new aws.autoscalingplans.ScalingPlan("example", {
|
|
35
|
+
* name: "example-dynamic-cost-optimization",
|
|
36
|
+
* applicationSource: {
|
|
37
|
+
* tagFilters: [{
|
|
38
|
+
* key: "application",
|
|
39
|
+
* values: ["example"],
|
|
40
|
+
* }],
|
|
41
|
+
* },
|
|
42
|
+
* scalingInstructions: [{
|
|
43
|
+
* maxCapacity: 3,
|
|
44
|
+
* minCapacity: 0,
|
|
45
|
+
* resourceId: std.format({
|
|
46
|
+
* input: "autoScalingGroup/%s",
|
|
47
|
+
* args: [example.name],
|
|
48
|
+
* }).then(invoke => invoke.result),
|
|
49
|
+
* scalableDimension: "autoscaling:autoScalingGroup:DesiredCapacity",
|
|
50
|
+
* serviceNamespace: "autoscaling",
|
|
51
|
+
* targetTrackingConfigurations: [{
|
|
52
|
+
* predefinedScalingMetricSpecification: {
|
|
53
|
+
* predefinedScalingMetricType: "ASGAverageCPUUtilization",
|
|
54
|
+
* },
|
|
55
|
+
* targetValue: 70,
|
|
56
|
+
* }],
|
|
57
|
+
* }],
|
|
58
|
+
* });
|
|
59
|
+
* ```
|
|
60
|
+
*
|
|
61
|
+
* ### Basic Predictive Scaling
|
|
62
|
+
*
|
|
63
|
+
* ```typescript
|
|
64
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
65
|
+
* import * as aws from "@pulumi/aws";
|
|
66
|
+
* import * as std from "@pulumi/std";
|
|
67
|
+
*
|
|
68
|
+
* const available = aws.getAvailabilityZones({});
|
|
69
|
+
* const example = new aws.autoscaling.Group("example", {
|
|
70
|
+
* namePrefix: "example",
|
|
71
|
+
* launchConfiguration: exampleAwsLaunchConfiguration.name,
|
|
72
|
+
* availabilityZones: [available.then(available => available.names?.[0])],
|
|
73
|
+
* minSize: 0,
|
|
74
|
+
* maxSize: 3,
|
|
75
|
+
* tags: [{
|
|
76
|
+
* key: "application",
|
|
77
|
+
* value: "example",
|
|
78
|
+
* propagateAtLaunch: true,
|
|
79
|
+
* }],
|
|
80
|
+
* });
|
|
81
|
+
* const exampleScalingPlan = new aws.autoscalingplans.ScalingPlan("example", {
|
|
82
|
+
* name: "example-predictive-cost-optimization",
|
|
83
|
+
* applicationSource: {
|
|
84
|
+
* tagFilters: [{
|
|
85
|
+
* key: "application",
|
|
86
|
+
* values: ["example"],
|
|
87
|
+
* }],
|
|
88
|
+
* },
|
|
89
|
+
* scalingInstructions: [{
|
|
90
|
+
* disableDynamicScaling: true,
|
|
91
|
+
* maxCapacity: 3,
|
|
92
|
+
* minCapacity: 0,
|
|
93
|
+
* resourceId: std.format({
|
|
94
|
+
* input: "autoScalingGroup/%s",
|
|
95
|
+
* args: [example.name],
|
|
96
|
+
* }).then(invoke => invoke.result),
|
|
97
|
+
* scalableDimension: "autoscaling:autoScalingGroup:DesiredCapacity",
|
|
98
|
+
* serviceNamespace: "autoscaling",
|
|
99
|
+
* targetTrackingConfigurations: [{
|
|
100
|
+
* predefinedScalingMetricSpecification: {
|
|
101
|
+
* predefinedScalingMetricType: "ASGAverageCPUUtilization",
|
|
102
|
+
* },
|
|
103
|
+
* targetValue: 70,
|
|
104
|
+
* }],
|
|
105
|
+
* predictiveScalingMaxCapacityBehavior: "SetForecastCapacityToMaxCapacity",
|
|
106
|
+
* predictiveScalingMode: "ForecastAndScale",
|
|
107
|
+
* predefinedLoadMetricSpecification: {
|
|
108
|
+
* predefinedLoadMetricType: "ASGTotalCPUUtilization",
|
|
109
|
+
* },
|
|
110
|
+
* }],
|
|
111
|
+
* });
|
|
112
|
+
* ```
|
|
113
|
+
*
|
|
14
114
|
* ## Import
|
|
15
115
|
*
|
|
16
116
|
* Using `pulumi import`, import Auto Scaling scaling plans using the `name`. For example:
|