@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.
Files changed (207) hide show
  1. package/alb/listenerRule.d.ts +45 -0
  2. package/alb/listenerRule.js +35 -0
  3. package/alb/listenerRule.js.map +1 -1
  4. package/amplify/app.d.ts +1 -1
  5. package/amplify/app.js +1 -1
  6. package/apigateway/integration.d.ts +1 -1
  7. package/apigateway/integration.js +1 -1
  8. package/apigateway/integrationResponse.d.ts +1 -1
  9. package/apigateway/integrationResponse.js +1 -1
  10. package/appstream/getImage.d.ts +10 -10
  11. package/appsync/function.d.ts +5 -5
  12. package/appsync/function.js +5 -5
  13. package/appsync/graphQLApi.d.ts +1 -1
  14. package/appsync/graphQLApi.js +1 -1
  15. package/appsync/resolver.d.ts +11 -11
  16. package/appsync/resolver.js +11 -11
  17. package/autoscaling/tag.d.ts +30 -0
  18. package/autoscaling/tag.js +30 -0
  19. package/autoscaling/tag.js.map +1 -1
  20. package/autoscalingplans/scalingPlan.d.ts +100 -0
  21. package/autoscalingplans/scalingPlan.js +100 -0
  22. package/autoscalingplans/scalingPlan.js.map +1 -1
  23. package/bcmdata/export.d.ts +9 -0
  24. package/bcmdata/export.js.map +1 -1
  25. package/bedrock/agentcoreAgentRuntimeEndpoint.d.ts +6 -0
  26. package/bedrock/agentcoreAgentRuntimeEndpoint.js.map +1 -1
  27. package/bedrock/agentcoreGateway.d.ts +6 -6
  28. package/bedrockmodel/invocationLoggingConfiguration.d.ts +14 -14
  29. package/bedrockmodel/invocationLoggingConfiguration.js +14 -14
  30. package/cfg/organizationCustomPolicyRule.d.ts +3 -3
  31. package/cfg/organizationCustomPolicyRule.js +3 -3
  32. package/cfg/rule.d.ts +10 -10
  33. package/cfg/rule.js +10 -10
  34. package/cloudwatch/eventTarget.d.ts +3 -3
  35. package/cloudwatch/eventTarget.js +3 -3
  36. package/cloudwatch/metricAlarm.d.ts +1 -1
  37. package/cloudwatch/metricAlarm.js +1 -1
  38. package/codebuild/webhook.d.ts +20 -0
  39. package/codebuild/webhook.js +20 -0
  40. package/codebuild/webhook.js.map +1 -1
  41. package/codepipeline/webhook.d.ts +77 -0
  42. package/codepipeline/webhook.js +77 -0
  43. package/codepipeline/webhook.js.map +1 -1
  44. package/cognito/identityPoolProviderPrincipalTag.d.ts +37 -0
  45. package/cognito/identityPoolProviderPrincipalTag.js +37 -0
  46. package/cognito/identityPoolProviderPrincipalTag.js.map +1 -1
  47. package/datazone/formType.d.ts +9 -9
  48. package/datazone/formType.js +9 -9
  49. package/dms/replicationConfig.d.ts +1 -1
  50. package/dms/replicationConfig.js +1 -1
  51. package/dynamodb/getTableItem.d.ts +2 -2
  52. package/dynamodb/getTableItem.js +2 -2
  53. package/dynamodb/tableItem.d.ts +5 -5
  54. package/dynamodb/tableItem.js +5 -5
  55. package/ec2/getSubnets.d.ts +110 -0
  56. package/ec2/getSubnets.js +110 -0
  57. package/ec2/getSubnets.js.map +1 -1
  58. package/ec2/securityGroup.d.ts +4 -4
  59. package/ec2/securityGroup.js +4 -4
  60. package/ec2/vpcIpam.d.ts +28 -0
  61. package/ec2/vpcIpam.js +28 -0
  62. package/ec2/vpcIpam.js.map +1 -1
  63. package/ecr/lifecyclePolicy.d.ts +20 -20
  64. package/ecr/lifecyclePolicy.js +20 -20
  65. package/ecr/repositoryCreationTemplate.d.ts +10 -10
  66. package/ecr/repositoryCreationTemplate.js +10 -10
  67. package/ecrpublic/getImages.d.ts +76 -0
  68. package/ecrpublic/getImages.js +34 -0
  69. package/ecrpublic/getImages.js.map +1 -0
  70. package/ecrpublic/index.d.ts +3 -0
  71. package/ecrpublic/index.js +4 -1
  72. package/ecrpublic/index.js.map +1 -1
  73. package/ecs/getTaskDefinition.d.ts +18 -18
  74. package/ecs/getTaskDefinition.js +18 -18
  75. package/eks/getClusters.d.ts +30 -0
  76. package/eks/getClusters.js +30 -0
  77. package/eks/getClusters.js.map +1 -1
  78. package/elasticsearch/domain.d.ts +17 -17
  79. package/elasticsearch/domain.js +17 -17
  80. package/elasticsearch/domainPolicy.d.ts +8 -8
  81. package/elasticsearch/domainPolicy.js +8 -8
  82. package/emr/cluster.d.ts +54 -54
  83. package/emr/cluster.js +36 -36
  84. package/emr/instanceGroup.d.ts +18 -18
  85. package/emr/securityConfiguration.d.ts +9 -9
  86. package/emr/securityConfiguration.js +9 -9
  87. package/emrserverless/application.d.ts +94 -1
  88. package/emrserverless/application.js +74 -1
  89. package/emrserverless/application.js.map +1 -1
  90. package/evidently/segment.d.ts +2 -2
  91. package/evidently/segment.js +2 -2
  92. package/glue/connection.d.ts +13 -11
  93. package/glue/connection.js +13 -11
  94. package/glue/connection.js.map +1 -1
  95. package/glue/crawler.d.ts +3 -3
  96. package/glue/crawler.js +3 -3
  97. package/identitystore/group.d.ts +8 -0
  98. package/identitystore/group.js +2 -0
  99. package/identitystore/group.js.map +1 -1
  100. package/imagebuilder/getImageRecipe.d.ts +6 -0
  101. package/imagebuilder/getImageRecipe.js.map +1 -1
  102. package/imagebuilder/imageRecipe.d.ts +18 -0
  103. package/imagebuilder/imageRecipe.js +2 -0
  104. package/imagebuilder/imageRecipe.js.map +1 -1
  105. package/imagebuilder/workflow.d.ts +3 -3
  106. package/imagebuilder/workflow.js +3 -3
  107. package/iot/getEndpoint.d.ts +46 -0
  108. package/iot/getEndpoint.js +46 -0
  109. package/iot/getEndpoint.js.map +1 -1
  110. package/kinesis/firehoseDeliveryStream.d.ts +20 -20
  111. package/kinesis/firehoseDeliveryStream.js +20 -20
  112. package/kinesis/resourcePolicy.d.ts +13 -13
  113. package/kinesis/resourcePolicy.js +13 -13
  114. package/kms/ciphertext.d.ts +2 -2
  115. package/kms/ciphertext.js +2 -2
  116. package/kms/getCipherText.d.ts +4 -4
  117. package/kms/getCipherText.js +4 -4
  118. package/lakeformation/identityCenterConfiguration.d.ts +121 -0
  119. package/lakeformation/identityCenterConfiguration.js +84 -0
  120. package/lakeformation/identityCenterConfiguration.js.map +1 -0
  121. package/lakeformation/index.d.ts +3 -0
  122. package/lakeformation/index.js +6 -1
  123. package/lakeformation/index.js.map +1 -1
  124. package/lambda/getCodeSigningConfig.d.ts +78 -0
  125. package/lambda/getCodeSigningConfig.js +78 -0
  126. package/lambda/getCodeSigningConfig.js.map +1 -1
  127. package/lambda/getInvocation.d.ts +100 -0
  128. package/lambda/getInvocation.js +100 -0
  129. package/lambda/getInvocation.js.map +1 -1
  130. package/lambda/invocation.d.ts +31 -0
  131. package/lambda/invocation.js +31 -0
  132. package/lambda/invocation.js.map +1 -1
  133. package/lb/getListenerRule.d.ts +12 -0
  134. package/lb/getListenerRule.js +2 -0
  135. package/lb/getListenerRule.js.map +1 -1
  136. package/lb/listenerRule.d.ts +45 -0
  137. package/lb/listenerRule.js +35 -0
  138. package/lb/listenerRule.js.map +1 -1
  139. package/m2/application.d.ts +13 -13
  140. package/m2/application.js +13 -13
  141. package/mq/configuration.d.ts +4 -4
  142. package/mq/configuration.js +4 -4
  143. package/networkmanager/siteToSiteVpnAttachment.d.ts +77 -0
  144. package/networkmanager/siteToSiteVpnAttachment.js +77 -0
  145. package/networkmanager/siteToSiteVpnAttachment.js.map +1 -1
  146. package/opensearchingest/pipeline.d.ts +6 -6
  147. package/opensearchingest/pipeline.js +6 -6
  148. package/organizations/getPolicies.d.ts +34 -0
  149. package/organizations/getPolicies.js +34 -0
  150. package/organizations/getPolicies.js.map +1 -1
  151. package/organizations/getPoliciesForTarget.d.ts +38 -0
  152. package/organizations/getPoliciesForTarget.js +38 -0
  153. package/organizations/getPoliciesForTarget.js.map +1 -1
  154. package/organizations/resourcePolicy.d.ts +23 -23
  155. package/organizations/resourcePolicy.js +23 -23
  156. package/package.json +2 -2
  157. package/rds/customDbEngineVersion.d.ts +1 -1
  158. package/rds/customDbEngineVersion.js +1 -1
  159. package/resourcegroups/group.d.ts +5 -5
  160. package/resourcegroups/group.js +5 -5
  161. package/route53/trafficPolicy.d.ts +7 -7
  162. package/route53/trafficPolicy.js +7 -7
  163. package/s3/bucketWebsiteConfiguration.d.ts +4 -4
  164. package/s3/bucketWebsiteConfiguration.js +4 -4
  165. package/s3/bucketWebsiteConfigurationV2.d.ts +4 -4
  166. package/s3/bucketWebsiteConfigurationV2.js +4 -4
  167. package/s3control/accessGrantsInstanceResourcePolicy.d.ts +12 -12
  168. package/s3control/accessGrantsInstanceResourcePolicy.js +12 -12
  169. package/sagemaker/flowDefinition.d.ts +9 -9
  170. package/sagemaker/flowDefinition.js +9 -9
  171. package/sagemaker/model.d.ts +11 -6
  172. package/sagemaker/model.js +5 -0
  173. package/sagemaker/model.js.map +1 -1
  174. package/sagemaker/modelPackageGroupPolicy.d.ts +31 -0
  175. package/sagemaker/modelPackageGroupPolicy.js +31 -0
  176. package/sagemaker/modelPackageGroupPolicy.js.map +1 -1
  177. package/sagemaker/notebookInstance.d.ts +3 -3
  178. package/secretsmanager/getSecretVersion.d.ts +26 -0
  179. package/secretsmanager/getSecretVersion.js +26 -0
  180. package/secretsmanager/getSecretVersion.js.map +1 -1
  181. package/secretsmanager/secretVersion.d.ts +31 -0
  182. package/secretsmanager/secretVersion.js +31 -0
  183. package/secretsmanager/secretVersion.js.map +1 -1
  184. package/securityhub/standardsControlAssociation.d.ts +26 -0
  185. package/securityhub/standardsControlAssociation.js +26 -0
  186. package/securityhub/standardsControlAssociation.js.map +1 -1
  187. package/sesv2/emailIdentityPolicy.d.ts +13 -13
  188. package/sesv2/emailIdentityPolicy.js +13 -13
  189. package/sfn/stateMachine.d.ts +35 -35
  190. package/sfn/stateMachine.js +35 -35
  191. package/sns/topic.d.ts +12 -12
  192. package/sns/topic.js +12 -12
  193. package/sns/topicSubscription.d.ts +13 -13
  194. package/sns/topicSubscription.js +13 -13
  195. package/sqs/queue.d.ts +0 -6
  196. package/sqs/queue.js +0 -6
  197. package/sqs/queue.js.map +1 -1
  198. package/ssm/association.d.ts +1 -1
  199. package/ssm/association.js +1 -1
  200. package/ssm/document.d.ts +8 -8
  201. package/ssm/document.js +8 -8
  202. package/timestreamquery/scheduledQuery.d.ts +8 -8
  203. package/timestreamquery/scheduledQuery.js +8 -8
  204. package/types/input.d.ts +377 -21
  205. package/types/input.js.map +1 -1
  206. package/types/output.d.ts +331 -20
  207. package/types/output.js.map +1 -1
@@ -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
  }
@@ -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
  }
@@ -1 +1 @@
1
- {"version":3,"file":"listenerRule.js","sourceRoot":"","sources":["../../alb/listenerRule.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAIzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8KG;AACH,MAAa,YAAa,SAAQ,MAAM,CAAC,cAAc;IACnD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAyB,EAAE,IAAmC;QACvH,OAAO,IAAI,YAAY,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACnE,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,YAAY,CAAC,YAAY,CAAC;IAC7D,CAAC;IA2CD,YAAY,IAAY,EAAE,WAA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S,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
@@ -152,7 +152,7 @@ import * as outputs from "../types/output";
152
152
  * - key: 'X-Content-Type-Options'
153
153
  * value: 'nosniff'
154
154
  * - key: 'Content-Security-Policy'
155
- * value: "default-src 'self'"
155
+ * value: \\"default-src 'self'\\"
156
156
  * `,
157
157
  * });
158
158
  * ```
package/amplify/app.js CHANGED
@@ -156,7 +156,7 @@ const utilities = require("../utilities");
156
156
  * - key: 'X-Content-Type-Options'
157
157
  * value: 'nosniff'
158
158
  * - key: 'Content-Security-Policy'
159
- * value: "default-src 'self'"
159
+ * value: \\"default-src 'self'\\"
160
160
  * `,
161
161
  * });
162
162
  * ```
@@ -39,7 +39,7 @@ import { RestApi } from "./index";
39
39
  * },
40
40
  * requestTemplates: {
41
41
  * "application/xml": `{
42
- * "body" : input.json('')
42
+ * \\"body\\" : input.json('')
43
43
  * }
44
44
  * `,
45
45
  * },
@@ -42,7 +42,7 @@ const utilities = require("../utilities");
42
42
  * },
43
43
  * requestTemplates: {
44
44
  * "application/xml": `{
45
- * "body" : input.json('')
45
+ * \\"body\\" : input.json('')
46
46
  * }
47
47
  * `,
48
48
  * },
@@ -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="1.0" encoding="UTF-8"?>
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="1.0" encoding="UTF-8"?>
54
+ * <?xml version=\\"1.0\\" encoding=\\"UTF-8\\"?>
55
55
  * <message>
56
56
  * inputRoot.body
57
57
  * </message>
@@ -22,19 +22,19 @@ export declare function getImage(args?: GetImageArgs, opts?: pulumi.InvokeOption
22
22
  */
23
23
  export interface GetImageArgs {
24
24
  /**
25
- * Arn of the image being searched for. Cannot be used with nameRegex or name.
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, PRIVATE, or SHARED).
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
- * Arn of the image being searched for. Cannot be used with nameRegex or name.
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, PRIVATE, or SHARED).
153
+ * The type of image which must be (`PUBLIC`, `PRIVATE`, or `SHARED`).
154
154
  */
155
155
  type?: pulumi.Input<string>;
156
156
  }
@@ -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
  * `,
@@ -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
  * `,
@@ -109,7 +109,7 @@ import * as outputs from "../types/output";
109
109
  * authenticationType: "AWS_IAM",
110
110
  * name: "example",
111
111
  * schema: `schema {
112
- * \x09query: Query
112
+ * \\tquery: Query
113
113
  * }
114
114
  * type Query {
115
115
  * test: Int
@@ -113,7 +113,7 @@ const utilities = require("../utilities");
113
113
  * authenticationType: "AWS_IAM",
114
114
  * name: "example",
115
115
  * schema: `schema {
116
- * \x09query: Query
116
+ * \\tquery: Query
117
117
  * }
118
118
  * type Query {
119
119
  * test: Int
@@ -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
- * \x09putPost(id: ID!, title: String!): Post
17
+ * \\tputPost(id: ID!, title: String!): Post
18
18
  * }
19
19
  *
20
20
  * type Post {
21
- * \x09id: ID!
22
- * \x09title: String!
21
+ * \\tid: ID!
22
+ * \\ttitle: String!
23
23
  * }
24
24
  *
25
25
  * type Query {
26
- * \x09singlePost(id: ID!): Post
26
+ * \\tsinglePost(id: ID!): Post
27
27
  * }
28
28
  *
29
29
  * schema {
30
- * \x09query: Query
31
- * \x09mutation: Mutation
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
  * `,
@@ -18,21 +18,21 @@ const utilities = require("../utilities");
18
18
  * authenticationType: "API_KEY",
19
19
  * name: "tf-example",
20
20
  * schema: `type Mutation {
21
- * \x09putPost(id: ID!, title: String!): Post
21
+ * \\tputPost(id: ID!, title: String!): Post
22
22
  * }
23
23
  *
24
24
  * type Post {
25
- * \x09id: ID!
26
- * \x09title: String!
25
+ * \\tid: ID!
26
+ * \\ttitle: String!
27
27
  * }
28
28
  *
29
29
  * type Query {
30
- * \x09singlePost(id: ID!): Post
30
+ * \\tsinglePost(id: ID!): Post
31
31
  * }
32
32
  *
33
33
  * schema {
34
- * \x09query: Query
35
- * \x09mutation: Mutation
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
  * `,
@@ -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:
@@ -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:
@@ -1 +1 @@
1
- {"version":3,"file":"tag.js","sourceRoot":"","sources":["../../autoscaling/tag.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAIzC,0CAA0C;AAE1C;;;;;;;;;;;;;;GAcG;AACH,MAAa,GAAI,SAAQ,MAAM,CAAC,cAAc;IAC1C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAgB,EAAE,IAAmC;QAC9G,OAAO,IAAI,GAAG,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC1D,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,GAAG,CAAC,YAAY,CAAC;IACpD,CAAC;IAuBD,YAAY,IAAY,EAAE,WAAgC,EAAE,IAAmC;QAC3F,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAmC,CAAC;YAClD,cAAc,CAAC,sBAAsB,CAAC,GAAG,KAAK,EAAE,oBAAoB,CAAC;YACrE,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,EAAE,MAAM,CAAC;YACzC,cAAc,CAAC,KAAK,CAAC,GAAG,KAAK,EAAE,GAAG,CAAC;SACtC;aAAM;YACH,MAAM,IAAI,GAAG,WAAkC,CAAC;YAChD,IAAI,IAAI,EAAE,oBAAoB,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACvD,MAAM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@@ -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: