@pulumi/aws 7.0.0-alpha.2 → 7.0.0-rc.1

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 (179) hide show
  1. package/accessanalyzer/analyzer.d.ts +54 -7
  2. package/accessanalyzer/analyzer.js +48 -1
  3. package/accessanalyzer/analyzer.js.map +1 -1
  4. package/amp/index.d.ts +3 -0
  5. package/amp/index.js +6 -1
  6. package/amp/index.js.map +1 -1
  7. package/amp/queryLoggingConfiguration.d.ts +107 -0
  8. package/amp/queryLoggingConfiguration.js +82 -0
  9. package/amp/queryLoggingConfiguration.js.map +1 -0
  10. package/amplify/app.d.ts +26 -0
  11. package/amplify/app.js +16 -0
  12. package/amplify/app.js.map +1 -1
  13. package/amplify/branch.d.ts +12 -0
  14. package/amplify/branch.js +2 -0
  15. package/amplify/branch.js.map +1 -1
  16. package/bedrock/agentAgent.d.ts +2 -2
  17. package/bedrock/agentAgent.js +2 -2
  18. package/bedrock/agentAgentCollaborator.d.ts +4 -4
  19. package/bedrock/agentAgentCollaborator.js +4 -4
  20. package/cloudfront/distribution.d.ts +12 -0
  21. package/cloudfront/distribution.js +2 -0
  22. package/cloudfront/distribution.js.map +1 -1
  23. package/cloudfront/getDistribution.d.ts +4 -0
  24. package/cloudfront/getDistribution.js.map +1 -1
  25. package/cloudtrail/trail.d.ts +2 -2
  26. package/cloudtrail/trail.js +2 -2
  27. package/cloudwatch/eventArchive.d.ts +91 -15
  28. package/cloudwatch/eventArchive.js +67 -1
  29. package/cloudwatch/eventArchive.js.map +1 -1
  30. package/cloudwatch/logGroup.d.ts +6 -6
  31. package/codeartifact/domainPermissions.d.ts +1 -1
  32. package/codeartifact/domainPermissions.js +0 -3
  33. package/codeartifact/domainPermissions.js.map +1 -1
  34. package/connect/botAssociation.d.ts +1 -1
  35. package/connect/botAssociation.js +1 -1
  36. package/controltower/controlTowerControl.d.ts +1 -1
  37. package/controltower/controlTowerControl.js +1 -1
  38. package/cur/reportDefinition.d.ts +3 -3
  39. package/datasync/agent.d.ts +1 -1
  40. package/datasync/agent.js +1 -1
  41. package/dynamodb/table.d.ts +36 -1
  42. package/dynamodb/table.js +36 -1
  43. package/dynamodb/table.js.map +1 -1
  44. package/dynamodb/tag.d.ts +1 -1
  45. package/dynamodb/tag.js +1 -1
  46. package/ec2/getManagedPrefixList.d.ts +2 -2
  47. package/ec2/getManagedPrefixList.js +2 -2
  48. package/ec2/securityGroupRule.d.ts +1 -1
  49. package/ec2/securityGroupRule.js +1 -1
  50. package/ec2/vpc.d.ts +2 -2
  51. package/ec2/vpc.js +2 -2
  52. package/ec2/vpcIpam.d.ts +1 -1
  53. package/ec2/vpcIpam.js +1 -1
  54. package/ec2/vpcIpamPool.d.ts +4 -4
  55. package/ec2/vpcIpamPool.js +4 -4
  56. package/ec2/vpcIpamPoolCidr.d.ts +3 -3
  57. package/ec2/vpcIpamPoolCidr.js +3 -3
  58. package/ec2/vpcIpamPoolCidrAllocation.d.ts +4 -4
  59. package/ec2/vpcIpamPoolCidrAllocation.js +4 -4
  60. package/ec2/vpcIpamPreviewNextCidr.d.ts +2 -2
  61. package/ec2/vpcIpamPreviewNextCidr.js +2 -2
  62. package/ec2/vpcIpamResourceDiscovery.d.ts +1 -1
  63. package/ec2/vpcIpamResourceDiscovery.js +1 -1
  64. package/ec2/vpcIpamScope.d.ts +1 -1
  65. package/ec2/vpcIpamScope.js +1 -1
  66. package/ecr/registryPolicy.d.ts +1 -1
  67. package/ecr/registryPolicy.js +1 -1
  68. package/eks/cluster.d.ts +2 -4
  69. package/eks/cluster.js +0 -2
  70. package/eks/cluster.js.map +1 -1
  71. package/eks/podIdentityAssociation.d.ts +32 -0
  72. package/eks/podIdentityAssociation.js +6 -0
  73. package/eks/podIdentityAssociation.js.map +1 -1
  74. package/elasticsearch/domain.d.ts +2 -2
  75. package/elasticsearch/domain.js +2 -2
  76. package/emr/cluster.d.ts +12 -0
  77. package/emr/cluster.js +2 -0
  78. package/emr/cluster.js.map +1 -1
  79. package/fms/policy.d.ts +12 -0
  80. package/fms/policy.js +2 -0
  81. package/fms/policy.js.map +1 -1
  82. package/getRegion.d.ts +2 -2
  83. package/getService.d.ts +2 -2
  84. package/getService.js +2 -2
  85. package/glue/job.d.ts +12 -0
  86. package/glue/job.js +2 -0
  87. package/glue/job.js.map +1 -1
  88. package/glue/resourcePolicy.d.ts +1 -1
  89. package/glue/resourcePolicy.js +1 -1
  90. package/guardduty/detectorFeature.d.ts +21 -0
  91. package/guardduty/detectorFeature.js +21 -0
  92. package/guardduty/detectorFeature.js.map +1 -1
  93. package/guardduty/memberDetectorFeature.d.ts +1 -11
  94. package/guardduty/memberDetectorFeature.js +1 -11
  95. package/guardduty/memberDetectorFeature.js.map +1 -1
  96. package/guardduty/publishingDestination.d.ts +2 -2
  97. package/guardduty/publishingDestination.js +2 -2
  98. package/iam/rolePolicy.d.ts +21 -15
  99. package/iam/rolePolicy.js.map +1 -1
  100. package/imagebuilder/imageRecipe.d.ts +1 -1
  101. package/imagebuilder/imageRecipe.js +1 -1
  102. package/kinesis/firehoseDeliveryStream.d.ts +1 -1
  103. package/kinesis/firehoseDeliveryStream.js +1 -1
  104. package/kinesis/getStreamConsumer.d.ts +9 -0
  105. package/kinesis/getStreamConsumer.js +2 -0
  106. package/kinesis/getStreamConsumer.js.map +1 -1
  107. package/kinesis/streamConsumer.d.ts +15 -0
  108. package/kinesis/streamConsumer.js +4 -0
  109. package/kinesis/streamConsumer.js.map +1 -1
  110. package/kms/getKey.d.ts +1 -1
  111. package/kms/key.d.ts +3 -3
  112. package/lightsail/instancePublicPorts.d.ts +6 -6
  113. package/macie/findingsFilter.d.ts +1 -1
  114. package/macie/findingsFilter.js +1 -1
  115. package/mediastore/containerPolicy.d.ts +1 -1
  116. package/mediastore/containerPolicy.js +1 -1
  117. package/networkfirewall/firewallPolicy.d.ts +51 -2
  118. package/networkfirewall/firewallPolicy.js +51 -2
  119. package/networkfirewall/firewallPolicy.js.map +1 -1
  120. package/networkmanager/dxGatewayAttachment.d.ts +1 -1
  121. package/networkmanager/dxGatewayAttachment.js +1 -1
  122. package/opensearch/domain.d.ts +2 -2
  123. package/opensearch/domain.js +2 -2
  124. package/opensearch/inboundConnectionAccepter.d.ts +2 -2
  125. package/opensearch/inboundConnectionAccepter.js +2 -2
  126. package/opensearch/outboundConnection.d.ts +2 -2
  127. package/opensearch/outboundConnection.js +2 -2
  128. package/opensearchingest/pipeline.d.ts +1 -1
  129. package/opensearchingest/pipeline.js +1 -1
  130. package/package.json +2 -2
  131. package/quicksight/dataSource.d.ts +1 -1
  132. package/quicksight/dataSource.js +1 -1
  133. package/rbin/rule.d.ts +52 -17
  134. package/rbin/rule.js +26 -1
  135. package/rbin/rule.js.map +1 -1
  136. package/route53/getTrafficPolicyDocument.d.ts +4 -4
  137. package/route53/getTrafficPolicyDocument.js +4 -4
  138. package/route53/profilesResourceAssociation.d.ts +1 -1
  139. package/s3/bucket.d.ts +5 -4
  140. package/s3/bucketPolicy.d.ts +2 -0
  141. package/s3/bucketPolicy.js +2 -0
  142. package/s3/bucketPolicy.js.map +1 -1
  143. package/s3/directoryBucket.d.ts +30 -0
  144. package/s3/directoryBucket.js +4 -0
  145. package/s3/directoryBucket.js.map +1 -1
  146. package/s3tables/table.d.ts +62 -0
  147. package/s3tables/table.js +49 -0
  148. package/s3tables/table.js.map +1 -1
  149. package/sagemaker/flowDefinition.d.ts +1 -1
  150. package/sagemaker/flowDefinition.js +1 -1
  151. package/securityhub/productSubscription.d.ts +1 -1
  152. package/securityhub/productSubscription.js +1 -1
  153. package/securityhub/standardsSubscription.d.ts +1 -1
  154. package/securityhub/standardsSubscription.js +1 -1
  155. package/serverlessrepository/cloudFormationStack.d.ts +1 -1
  156. package/serverlessrepository/cloudFormationStack.js +1 -1
  157. package/shield/drtAccessLogBucketAssociation.d.ts +1 -1
  158. package/shield/drtAccessLogBucketAssociation.js +1 -1
  159. package/shield/protection.d.ts +1 -1
  160. package/shield/protection.js +1 -1
  161. package/shield/protectionGroup.d.ts +2 -2
  162. package/shield/protectionGroup.js +2 -2
  163. package/shield/protectionHealthCheckAssociation.d.ts +1 -1
  164. package/shield/protectionHealthCheckAssociation.js +1 -1
  165. package/ssm/parameter.d.ts +1 -1
  166. package/ssm/quicksetupConfigurationManager.d.ts +2 -2
  167. package/ssm/quicksetupConfigurationManager.js +2 -2
  168. package/ssoadmin/applicationAccessScope.d.ts +1 -1
  169. package/ssoadmin/applicationAccessScope.js +1 -1
  170. package/ssoadmin/applicationAssignment.d.ts +2 -2
  171. package/ssoadmin/applicationAssignment.js +2 -2
  172. package/ssoadmin/applicationAssignmentConfiguration.d.ts +1 -1
  173. package/ssoadmin/applicationAssignmentConfiguration.js +1 -1
  174. package/ssoadmin/getApplicationAssignments.d.ts +2 -2
  175. package/ssoadmin/getApplicationAssignments.js +2 -2
  176. package/types/input.d.ts +217 -26
  177. package/types/input.js.map +1 -1
  178. package/types/output.d.ts +209 -25
  179. package/types/output.js.map +1 -1
@@ -14,6 +14,9 @@ const utilities = require("../utilities");
14
14
  * import * as pulumi from "@pulumi/pulumi";
15
15
  * import * as aws from "@pulumi/aws";
16
16
  *
17
+ * const current = aws.getRegion({});
18
+ * const currentGetPartition = aws.getPartition({});
19
+ * const currentGetCallerIdentity = aws.getCallerIdentity({});
17
20
  * const example = new aws.networkfirewall.FirewallPolicy("example", {
18
21
  * name: "example",
19
22
  * firewallPolicy: {
@@ -23,7 +26,7 @@ const utilities = require("../utilities");
23
26
  * priority: 1,
24
27
  * resourceArn: exampleAwsNetworkfirewallRuleGroup.arn,
25
28
  * }],
26
- * tlsInspectionConfigurationArn: "arn:aws:network-firewall:REGION:ACCT:tls-configuration/example",
29
+ * tlsInspectionConfigurationArn: Promise.all([currentGetPartition, current, currentGetCallerIdentity]).then(([currentGetPartition, current, currentGetCallerIdentity]) => `arn:${currentGetPartition.partition}:network-firewall:${current.region}:${currentGetCallerIdentity.accountId}:tls-configuration/example`),
27
30
  * },
28
31
  * tags: {
29
32
  * Tag1: "Value1",
@@ -72,7 +75,7 @@ const utilities = require("../utilities");
72
75
  * import * as pulumi from "@pulumi/pulumi";
73
76
  * import * as aws from "@pulumi/aws";
74
77
  *
75
- * const test = new aws.networkfirewall.FirewallPolicy("test", {
78
+ * const example = new aws.networkfirewall.FirewallPolicy("example", {
76
79
  * name: "example",
77
80
  * firewallPolicy: {
78
81
  * statelessDefaultActions: [
@@ -94,6 +97,52 @@ const utilities = require("../utilities");
94
97
  * });
95
98
  * ```
96
99
  *
100
+ * ## Policy with Active Threat Defense in Action Order
101
+ *
102
+ * ```typescript
103
+ * import * as pulumi from "@pulumi/pulumi";
104
+ * import * as aws from "@pulumi/aws";
105
+ *
106
+ * const current = aws.getRegion({});
107
+ * const currentGetPartition = aws.getPartition({});
108
+ * const example = new aws.networkfirewall.FirewallPolicy("example", {
109
+ * name: "example",
110
+ * firewallPolicy: {
111
+ * statelessFragmentDefaultActions: ["aws:drop"],
112
+ * statelessDefaultActions: ["aws:pass"],
113
+ * statefulRuleGroupReferences: [{
114
+ * deepThreatInspection: "true",
115
+ * resourceArn: Promise.all([currentGetPartition, current]).then(([currentGetPartition, current]) => `arn:${currentGetPartition.partition}:network-firewall:${current.region}:aws-managed:stateful-rulegroup/AttackInfrastructureActionOrder`),
116
+ * }],
117
+ * },
118
+ * });
119
+ * ```
120
+ *
121
+ * ## Policy with Active Threat Defense in Strict Order
122
+ *
123
+ * ```typescript
124
+ * import * as pulumi from "@pulumi/pulumi";
125
+ * import * as aws from "@pulumi/aws";
126
+ *
127
+ * const current = aws.getRegion({});
128
+ * const currentGetPartition = aws.getPartition({});
129
+ * const example = new aws.networkfirewall.FirewallPolicy("example", {
130
+ * name: "example",
131
+ * firewallPolicy: {
132
+ * statelessFragmentDefaultActions: ["aws:drop"],
133
+ * statelessDefaultActions: ["aws:pass"],
134
+ * statefulEngineOptions: {
135
+ * ruleOrder: "STRICT_ORDER",
136
+ * },
137
+ * statefulRuleGroupReferences: [{
138
+ * deepThreatInspection: "false",
139
+ * priority: 1,
140
+ * resourceArn: Promise.all([currentGetPartition, current]).then(([currentGetPartition, current]) => `arn:${currentGetPartition.partition}:network-firewall:${current.region}:aws-managed:stateful-rulegroup/AttackInfrastructureStrictOrder`),
141
+ * }],
142
+ * },
143
+ * });
144
+ * ```
145
+ *
97
146
  * ## Import
98
147
  *
99
148
  * Using `pulumi import`, import Network Firewall Policies using their `arn`. For example:
@@ -1 +1 @@
1
- {"version":3,"file":"firewallPolicy.js","sourceRoot":"","sources":["../../networkfirewall/firewallPolicy.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAIzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgGG;AACH,MAAa,cAAe,SAAQ,MAAM,CAAC,cAAc;IACrD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA2B,EAAE,IAAmC;QACzH,OAAO,IAAI,cAAc,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACrE,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,cAAc,CAAC,YAAY,CAAC;IAC/D,CAAC;IA+CD,YAAY,IAAY,EAAE,WAAsD,EAAE,IAAmC;QACjH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA8C,CAAC;YAC7D,cAAc,CA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AAS,CAAC;YACtD,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,KAAK,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC1C,cAAc,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC9C,cAAc,CAAC,aAAa,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACrD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,cAAc,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACnE,CAAC;;AAxGL,wCAyGC;AA3FG,gBAAgB;AACO,2BAAY,GAAG,mDAAmD,CAAC"}
@@ -17,7 +17,7 @@ import * as outputs from "../types/output";
17
17
  * const test = new aws.networkmanager.DxGatewayAttachment("test", {
18
18
  * coreNetworkId: testAwsNetworkmanagerCoreNetworkPolicyAttachment.coreNetworkId,
19
19
  * directConnectGatewayArn: `arn:aws:directconnect::${current.accountId}:dx-gateway/${testAwsDxGateway.id}`,
20
- * edgeLocations: [currentAwsRegion.name],
20
+ * edgeLocations: [currentAwsRegion.region],
21
21
  * });
22
22
  * ```
23
23
  *
@@ -21,7 +21,7 @@ const utilities = require("../utilities");
21
21
  * const test = new aws.networkmanager.DxGatewayAttachment("test", {
22
22
  * coreNetworkId: testAwsNetworkmanagerCoreNetworkPolicyAttachment.coreNetworkId,
23
23
  * directConnectGatewayArn: `arn:aws:directconnect::${current.accountId}:dx-gateway/${testAwsDxGateway.id}`,
24
- * edgeLocations: [currentAwsRegion.name],
24
+ * edgeLocations: [currentAwsRegion.region],
25
25
  * });
26
26
  * ```
27
27
  *
@@ -61,7 +61,7 @@ import * as outputs from "../types/output";
61
61
  * identifiers: ["*"],
62
62
  * }],
63
63
  * actions: ["es:*"],
64
- * resources: [`arn:aws:es:${current.name}:${currentGetCallerIdentity.accountId}:domain/${domain}/*`],
64
+ * resources: [`arn:aws:es:${current.region}:${currentGetCallerIdentity.accountId}:domain/${domain}/*`],
65
65
  * conditions: [{
66
66
  * test: "IpAddress",
67
67
  * variable: "aws:SourceIp",
@@ -152,7 +152,7 @@ import * as outputs from "../types/output";
152
152
  * identifiers: ["*"],
153
153
  * }],
154
154
  * actions: ["es:*"],
155
- * resources: [`arn:aws:es:${current.name}:${currentGetCallerIdentity.accountId}:domain/${domain}/*`],
155
+ * resources: [`arn:aws:es:${current.region}:${currentGetCallerIdentity.accountId}:domain/${domain}/*`],
156
156
  * }],
157
157
  * }));
158
158
  * const exampleDomain = new aws.opensearch.Domain("example", {
@@ -65,7 +65,7 @@ const utilities = require("../utilities");
65
65
  * identifiers: ["*"],
66
66
  * }],
67
67
  * actions: ["es:*"],
68
- * resources: [`arn:aws:es:${current.name}:${currentGetCallerIdentity.accountId}:domain/${domain}/*`],
68
+ * resources: [`arn:aws:es:${current.region}:${currentGetCallerIdentity.accountId}:domain/${domain}/*`],
69
69
  * conditions: [{
70
70
  * test: "IpAddress",
71
71
  * variable: "aws:SourceIp",
@@ -156,7 +156,7 @@ const utilities = require("../utilities");
156
156
  * identifiers: ["*"],
157
157
  * }],
158
158
  * actions: ["es:*"],
159
- * resources: [`arn:aws:es:${current.name}:${currentGetCallerIdentity.accountId}:domain/${domain}/*`],
159
+ * resources: [`arn:aws:es:${current.region}:${currentGetCallerIdentity.accountId}:domain/${domain}/*`],
160
160
  * }],
161
161
  * }));
162
162
  * const exampleDomain = new aws.opensearch.Domain("example", {
@@ -16,12 +16,12 @@ import * as pulumi from "@pulumi/pulumi";
16
16
  * connectionAlias: "outbound_connection",
17
17
  * localDomainInfo: {
18
18
  * ownerId: current.then(current => current.accountId),
19
- * region: currentGetRegion.then(currentGetRegion => currentGetRegion.name),
19
+ * region: currentGetRegion.then(currentGetRegion => currentGetRegion.region),
20
20
  * domainName: localDomain.domainName,
21
21
  * },
22
22
  * remoteDomainInfo: {
23
23
  * ownerId: current.then(current => current.accountId),
24
- * region: currentGetRegion.then(currentGetRegion => currentGetRegion.name),
24
+ * region: currentGetRegion.then(currentGetRegion => currentGetRegion.region),
25
25
  * domainName: remoteDomain.domainName,
26
26
  * },
27
27
  * });
@@ -22,12 +22,12 @@ const utilities = require("../utilities");
22
22
  * connectionAlias: "outbound_connection",
23
23
  * localDomainInfo: {
24
24
  * ownerId: current.then(current => current.accountId),
25
- * region: currentGetRegion.then(currentGetRegion => currentGetRegion.name),
25
+ * region: currentGetRegion.then(currentGetRegion => currentGetRegion.region),
26
26
  * domainName: localDomain.domainName,
27
27
  * },
28
28
  * remoteDomainInfo: {
29
29
  * ownerId: current.then(current => current.accountId),
30
- * region: currentGetRegion.then(currentGetRegion => currentGetRegion.name),
30
+ * region: currentGetRegion.then(currentGetRegion => currentGetRegion.region),
31
31
  * domainName: remoteDomain.domainName,
32
32
  * },
33
33
  * });
@@ -19,12 +19,12 @@ import * as outputs from "../types/output";
19
19
  * connectionMode: "DIRECT",
20
20
  * localDomainInfo: {
21
21
  * ownerId: current.then(current => current.accountId),
22
- * region: currentGetRegion.then(currentGetRegion => currentGetRegion.name),
22
+ * region: currentGetRegion.then(currentGetRegion => currentGetRegion.region),
23
23
  * domainName: localDomain.domainName,
24
24
  * },
25
25
  * remoteDomainInfo: {
26
26
  * ownerId: current.then(current => current.accountId),
27
- * region: currentGetRegion.then(currentGetRegion => currentGetRegion.name),
27
+ * region: currentGetRegion.then(currentGetRegion => currentGetRegion.region),
28
28
  * domainName: remoteDomain.domainName,
29
29
  * },
30
30
  * });
@@ -23,12 +23,12 @@ const utilities = require("../utilities");
23
23
  * connectionMode: "DIRECT",
24
24
  * localDomainInfo: {
25
25
  * ownerId: current.then(current => current.accountId),
26
- * region: currentGetRegion.then(currentGetRegion => currentGetRegion.name),
26
+ * region: currentGetRegion.then(currentGetRegion => currentGetRegion.region),
27
27
  * domainName: localDomain.domainName,
28
28
  * },
29
29
  * remoteDomainInfo: {
30
30
  * ownerId: current.then(current => current.accountId),
31
- * region: currentGetRegion.then(currentGetRegion => currentGetRegion.name),
31
+ * region: currentGetRegion.then(currentGetRegion => currentGetRegion.region),
32
32
  * domainName: remoteDomain.domainName,
33
33
  * },
34
34
  * });
@@ -35,7 +35,7 @@ import * as outputs from "../types/output";
35
35
  * - s3:
36
36
  * aws:
37
37
  * sts_role_arn: "${arn}"
38
- * region: "${current.name}"
38
+ * region: "${current.region}"
39
39
  * bucket: "example"
40
40
  * threshold:
41
41
  * event_collect_timeout: "60s"
@@ -39,7 +39,7 @@ const utilities = require("../utilities");
39
39
  * - s3:
40
40
  * aws:
41
41
  * sts_role_arn: "${arn}"
42
- * region: "${current.name}"
42
+ * region: "${current.region}"
43
43
  * bucket: "example"
44
44
  * threshold:
45
45
  * event_collect_timeout: "60s"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pulumi/aws",
3
- "version": "7.0.0-alpha.2",
3
+ "version": "7.0.0-rc.1",
4
4
  "description": "A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.",
5
5
  "keywords": [
6
6
  "pulumi",
@@ -24,6 +24,6 @@
24
24
  "pulumi": {
25
25
  "resource": true,
26
26
  "name": "aws",
27
- "version": "7.0.0-alpha.2"
27
+ "version": "7.0.0-rc.1"
28
28
  }
29
29
  }
@@ -42,7 +42,7 @@ import * as outputs from "../types/output";
42
42
  * key: "manifest.json",
43
43
  * content: pulumi.jsonStringify({
44
44
  * fileLocations: [{
45
- * URIPrefixes: [pulumi.all([example.id, currentGetRegion, currentGetPartition]).apply(([id, currentGetRegion, currentGetPartition]) => `https://${id}.s3-${currentGetRegion.name}.${currentGetPartition.dnsSuffix}`)],
45
+ * URIPrefixes: [pulumi.all([example.id, currentGetRegion, currentGetPartition]).apply(([id, currentGetRegion, currentGetPartition]) => `https://${id}.s3-${currentGetRegion.region}.${currentGetPartition.dnsSuffix}`)],
46
46
  * }],
47
47
  * globalUploadSettings: {
48
48
  * format: "CSV",
@@ -46,7 +46,7 @@ const utilities = require("../utilities");
46
46
  * key: "manifest.json",
47
47
  * content: pulumi.jsonStringify({
48
48
  * fileLocations: [{
49
- * URIPrefixes: [pulumi.all([example.id, currentGetRegion, currentGetPartition]).apply(([id, currentGetRegion, currentGetPartition]) => `https://${id}.s3-${currentGetRegion.name}.${currentGetPartition.dnsSuffix}`)],
49
+ * URIPrefixes: [pulumi.all([example.id, currentGetRegion, currentGetPartition]).apply(([id, currentGetRegion, currentGetPartition]) => `https://${id}.s3-${currentGetRegion.region}.${currentGetPartition.dnsSuffix}`)],
50
50
  * }],
51
51
  * globalUploadSettings: {
52
52
  * format: "CSV",
package/rbin/rule.d.ts CHANGED
@@ -13,7 +13,7 @@ import * as outputs from "../types/output";
13
13
  * import * as aws from "@pulumi/aws";
14
14
  *
15
15
  * const example = new aws.rbin.Rule("example", {
16
- * description: "example_rule",
16
+ * description: "Example tag-level retention rule",
17
17
  * resourceType: "EBS_SNAPSHOT",
18
18
  * resourceTags: [{
19
19
  * resourceTagKey: "tag_key",
@@ -29,6 +29,29 @@ import * as outputs from "../types/output";
29
29
  * });
30
30
  * ```
31
31
  *
32
+ * ### Region-Level Retention Rule
33
+ *
34
+ * ```typescript
35
+ * import * as pulumi from "@pulumi/pulumi";
36
+ * import * as aws from "@pulumi/aws";
37
+ *
38
+ * const example = new aws.rbin.Rule("example", {
39
+ * description: "Example region-level retention rule with exclusion tags",
40
+ * resourceType: "EC2_IMAGE",
41
+ * excludeResourceTags: [{
42
+ * resourceTagKey: "tag_key",
43
+ * resourceTagValue: "tag_value",
44
+ * }],
45
+ * retentionPeriod: {
46
+ * retentionPeriodValue: 10,
47
+ * retentionPeriodUnit: "DAYS",
48
+ * },
49
+ * tags: {
50
+ * test_tag_key: "test_tag_value",
51
+ * },
52
+ * });
53
+ * ```
54
+ *
32
55
  * ## Import
33
56
  *
34
57
  * Using `pulumi import`, import RBin Rule using the `id`. For example:
@@ -55,19 +78,23 @@ export declare class Rule extends pulumi.CustomResource {
55
78
  static isInstance(obj: any): obj is Rule;
56
79
  readonly arn: pulumi.Output<string>;
57
80
  /**
58
- * The retention rule description.
81
+ * Retention rule description.
59
82
  */
60
83
  readonly description: pulumi.Output<string>;
84
+ /**
85
+ * Exclusion tags to use to identify resources that are to be excluded, or ignored, by a Region-level retention rule. See `excludeResourceTags` below.
86
+ */
87
+ readonly excludeResourceTags: pulumi.Output<outputs.rbin.RuleExcludeResourceTag[] | undefined>;
61
88
  /**
62
89
  * Information about the retention rule lock configuration. See `lockConfiguration` below.
63
90
  */
64
91
  readonly lockConfiguration: pulumi.Output<outputs.rbin.RuleLockConfiguration | undefined>;
65
92
  /**
66
- * (Timestamp) The date and time at which the unlock delay is set to expire. Only returned for retention rules that have been unlocked and that are still within the unlock delay period.
93
+ * (Timestamp) Date and time at which the unlock delay is set to expire. Only returned for retention rules that have been unlocked and that are still within the unlock delay period.
67
94
  */
68
95
  readonly lockEndTime: pulumi.Output<string>;
69
96
  /**
70
- * (Optional) The lock state of the retention rules to list. Only retention rules with the specified lock state are returned. Valid values are `locked`, `pendingUnlock`, `unlocked`.
97
+ * (Optional) Lock state of the retention rules to list. Only retention rules with the specified lock state are returned. Valid values are `locked`, `pendingUnlock`, `unlocked`.
71
98
  */
72
99
  readonly lockState: pulumi.Output<string>;
73
100
  /**
@@ -75,11 +102,11 @@ export declare class Rule extends pulumi.CustomResource {
75
102
  */
76
103
  readonly region: pulumi.Output<string>;
77
104
  /**
78
- * Specifies the resource tags to use to identify resources that are to be retained by a tag-level retention rule. See `resourceTags` below.
105
+ * Resource tags to use to identify resources that are to be retained by a tag-level retention rule. See `resourceTags` below.
79
106
  */
80
- readonly resourceTags: pulumi.Output<outputs.rbin.RuleResourceTag[]>;
107
+ readonly resourceTags: pulumi.Output<outputs.rbin.RuleResourceTag[] | undefined>;
81
108
  /**
82
- * The resource type to be retained by the retention rule. Valid values are `EBS_SNAPSHOT` and `EC2_IMAGE`.
109
+ * Resource type to be retained by the retention rule. Valid values are `EBS_SNAPSHOT` and `EC2_IMAGE`.
83
110
  */
84
111
  readonly resourceType: pulumi.Output<string>;
85
112
  /**
@@ -89,7 +116,7 @@ export declare class Rule extends pulumi.CustomResource {
89
116
  */
90
117
  readonly retentionPeriod: pulumi.Output<outputs.rbin.RuleRetentionPeriod>;
91
118
  /**
92
- * (String) The state of the retention rule. Only retention rules that are in the `available` state retain resources. Valid values include `pending` and `available`.
119
+ * (String) State of the retention rule. Only retention rules that are in the `available` state retain resources. Valid values include `pending` and `available`.
93
120
  */
94
121
  readonly status: pulumi.Output<string>;
95
122
  readonly tags: pulumi.Output<{
@@ -113,19 +140,23 @@ export declare class Rule extends pulumi.CustomResource {
113
140
  export interface RuleState {
114
141
  arn?: pulumi.Input<string>;
115
142
  /**
116
- * The retention rule description.
143
+ * Retention rule description.
117
144
  */
118
145
  description?: pulumi.Input<string>;
146
+ /**
147
+ * Exclusion tags to use to identify resources that are to be excluded, or ignored, by a Region-level retention rule. See `excludeResourceTags` below.
148
+ */
149
+ excludeResourceTags?: pulumi.Input<pulumi.Input<inputs.rbin.RuleExcludeResourceTag>[]>;
119
150
  /**
120
151
  * Information about the retention rule lock configuration. See `lockConfiguration` below.
121
152
  */
122
153
  lockConfiguration?: pulumi.Input<inputs.rbin.RuleLockConfiguration>;
123
154
  /**
124
- * (Timestamp) The date and time at which the unlock delay is set to expire. Only returned for retention rules that have been unlocked and that are still within the unlock delay period.
155
+ * (Timestamp) Date and time at which the unlock delay is set to expire. Only returned for retention rules that have been unlocked and that are still within the unlock delay period.
125
156
  */
126
157
  lockEndTime?: pulumi.Input<string>;
127
158
  /**
128
- * (Optional) The lock state of the retention rules to list. Only retention rules with the specified lock state are returned. Valid values are `locked`, `pendingUnlock`, `unlocked`.
159
+ * (Optional) Lock state of the retention rules to list. Only retention rules with the specified lock state are returned. Valid values are `locked`, `pendingUnlock`, `unlocked`.
129
160
  */
130
161
  lockState?: pulumi.Input<string>;
131
162
  /**
@@ -133,11 +164,11 @@ export interface RuleState {
133
164
  */
134
165
  region?: pulumi.Input<string>;
135
166
  /**
136
- * Specifies the resource tags to use to identify resources that are to be retained by a tag-level retention rule. See `resourceTags` below.
167
+ * Resource tags to use to identify resources that are to be retained by a tag-level retention rule. See `resourceTags` below.
137
168
  */
138
169
  resourceTags?: pulumi.Input<pulumi.Input<inputs.rbin.RuleResourceTag>[]>;
139
170
  /**
140
- * The resource type to be retained by the retention rule. Valid values are `EBS_SNAPSHOT` and `EC2_IMAGE`.
171
+ * Resource type to be retained by the retention rule. Valid values are `EBS_SNAPSHOT` and `EC2_IMAGE`.
141
172
  */
142
173
  resourceType?: pulumi.Input<string>;
143
174
  /**
@@ -147,7 +178,7 @@ export interface RuleState {
147
178
  */
148
179
  retentionPeriod?: pulumi.Input<inputs.rbin.RuleRetentionPeriod>;
149
180
  /**
150
- * (String) The state of the retention rule. Only retention rules that are in the `available` state retain resources. Valid values include `pending` and `available`.
181
+ * (String) State of the retention rule. Only retention rules that are in the `available` state retain resources. Valid values include `pending` and `available`.
151
182
  */
152
183
  status?: pulumi.Input<string>;
153
184
  tags?: pulumi.Input<{
@@ -162,9 +193,13 @@ export interface RuleState {
162
193
  */
163
194
  export interface RuleArgs {
164
195
  /**
165
- * The retention rule description.
196
+ * Retention rule description.
166
197
  */
167
198
  description?: pulumi.Input<string>;
199
+ /**
200
+ * Exclusion tags to use to identify resources that are to be excluded, or ignored, by a Region-level retention rule. See `excludeResourceTags` below.
201
+ */
202
+ excludeResourceTags?: pulumi.Input<pulumi.Input<inputs.rbin.RuleExcludeResourceTag>[]>;
168
203
  /**
169
204
  * Information about the retention rule lock configuration. See `lockConfiguration` below.
170
205
  */
@@ -174,11 +209,11 @@ export interface RuleArgs {
174
209
  */
175
210
  region?: pulumi.Input<string>;
176
211
  /**
177
- * Specifies the resource tags to use to identify resources that are to be retained by a tag-level retention rule. See `resourceTags` below.
212
+ * Resource tags to use to identify resources that are to be retained by a tag-level retention rule. See `resourceTags` below.
178
213
  */
179
214
  resourceTags?: pulumi.Input<pulumi.Input<inputs.rbin.RuleResourceTag>[]>;
180
215
  /**
181
- * The resource type to be retained by the retention rule. Valid values are `EBS_SNAPSHOT` and `EC2_IMAGE`.
216
+ * Resource type to be retained by the retention rule. Valid values are `EBS_SNAPSHOT` and `EC2_IMAGE`.
182
217
  */
183
218
  resourceType: pulumi.Input<string>;
184
219
  /**
package/rbin/rule.js CHANGED
@@ -17,7 +17,7 @@ const utilities = require("../utilities");
17
17
  * import * as aws from "@pulumi/aws";
18
18
  *
19
19
  * const example = new aws.rbin.Rule("example", {
20
- * description: "example_rule",
20
+ * description: "Example tag-level retention rule",
21
21
  * resourceType: "EBS_SNAPSHOT",
22
22
  * resourceTags: [{
23
23
  * resourceTagKey: "tag_key",
@@ -33,6 +33,29 @@ const utilities = require("../utilities");
33
33
  * });
34
34
  * ```
35
35
  *
36
+ * ### Region-Level Retention Rule
37
+ *
38
+ * ```typescript
39
+ * import * as pulumi from "@pulumi/pulumi";
40
+ * import * as aws from "@pulumi/aws";
41
+ *
42
+ * const example = new aws.rbin.Rule("example", {
43
+ * description: "Example region-level retention rule with exclusion tags",
44
+ * resourceType: "EC2_IMAGE",
45
+ * excludeResourceTags: [{
46
+ * resourceTagKey: "tag_key",
47
+ * resourceTagValue: "tag_value",
48
+ * }],
49
+ * retentionPeriod: {
50
+ * retentionPeriodValue: 10,
51
+ * retentionPeriodUnit: "DAYS",
52
+ * },
53
+ * tags: {
54
+ * test_tag_key: "test_tag_value",
55
+ * },
56
+ * });
57
+ * ```
58
+ *
36
59
  * ## Import
37
60
  *
38
61
  * Using `pulumi import`, import RBin Rule using the `id`. For example:
@@ -71,6 +94,7 @@ class Rule extends pulumi.CustomResource {
71
94
  const state = argsOrState;
72
95
  resourceInputs["arn"] = state ? state.arn : undefined;
73
96
  resourceInputs["description"] = state ? state.description : undefined;
97
+ resourceInputs["excludeResourceTags"] = state ? state.excludeResourceTags : undefined;
74
98
  resourceInputs["lockConfiguration"] = state ? state.lockConfiguration : undefined;
75
99
  resourceInputs["lockEndTime"] = state ? state.lockEndTime : undefined;
76
100
  resourceInputs["lockState"] = state ? state.lockState : undefined;
@@ -91,6 +115,7 @@ class Rule extends pulumi.CustomResource {
91
115
  throw new Error("Missing required property 'retentionPeriod'");
92
116
  }
93
117
  resourceInputs["description"] = args ? args.description : undefined;
118
+ resourceInputs["excludeResourceTags"] = args ? args.excludeResourceTags : undefined;
94
119
  resourceInputs["lockConfiguration"] = args ? args.lockConfiguration : undefined;
95
120
  resourceInputs["region"] = args ? args.region : undefined;
96
121
  resourceInputs["resourceTags"] = args ? args.resourceTags : undefined;
package/rbin/rule.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"rule.js","sourceRoot":"","sources":["../../rbin/rule.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAIzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,MAAa,IAAK,SAAQ,MAAM,CAAC,cAAc;IAC3C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAiB,EAAE,IAAmC;QAC/G,OAAO,IAAI,IAAI,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC3D,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,IAAI,CAAC,YAAY,CAAC;IACrD,C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"../types/output";
20
20
  * {
21
21
  * id: "my_elb",
22
22
  * type: "elastic-load-balancer",
23
- * value: `elb-111111.${current.name}.elb.amazonaws.com`,
23
+ * value: `elb-111111.${current.region}.elb.amazonaws.com`,
24
24
  * },
25
25
  * {
26
26
  * id: "site_down_banner",
27
27
  * type: "s3-website",
28
- * region: current1.name,
28
+ * region: current1.region,
29
29
  * value: "www.example.com",
30
30
  * },
31
31
  * ],
@@ -192,12 +192,12 @@ export interface GetTrafficPolicyDocumentResult {
192
192
  * {
193
193
  * id: "my_elb",
194
194
  * type: "elastic-load-balancer",
195
- * value: `elb-111111.${current.name}.elb.amazonaws.com`,
195
+ * value: `elb-111111.${current.region}.elb.amazonaws.com`,
196
196
  * },
197
197
  * {
198
198
  * id: "site_down_banner",
199
199
  * type: "s3-website",
200
- * region: current1.name,
200
+ * region: current1.region,
201
201
  * value: "www.example.com",
202
202
  * },
203
203
  * ],
@@ -24,12 +24,12 @@ const utilities = require("../utilities");
24
24
  * {
25
25
  * id: "my_elb",
26
26
  * type: "elastic-load-balancer",
27
- * value: `elb-111111.${current.name}.elb.amazonaws.com`,
27
+ * value: `elb-111111.${current.region}.elb.amazonaws.com`,
28
28
  * },
29
29
  * {
30
30
  * id: "site_down_banner",
31
31
  * type: "s3-website",
32
- * region: current1.name,
32
+ * region: current1.region,
33
33
  * value: "www.example.com",
34
34
  * },
35
35
  * ],
@@ -160,12 +160,12 @@ exports.getTrafficPolicyDocument = getTrafficPolicyDocument;
160
160
  * {
161
161
  * id: "my_elb",
162
162
  * type: "elastic-load-balancer",
163
- * value: `elb-111111.${current.name}.elb.amazonaws.com`,
163
+ * value: `elb-111111.${current.region}.elb.amazonaws.com`,
164
164
  * },
165
165
  * {
166
166
  * id: "site_down_banner",
167
167
  * type: "s3-website",
168
- * region: current1.name,
168
+ * region: current1.region,
169
169
  * value: "www.example.com",
170
170
  * },
171
171
  * ],
@@ -50,7 +50,7 @@ export declare class ProfilesResourceAssociation extends pulumi.CustomResource {
50
50
  /**
51
51
  * Resource properties for the resource to be associated with the profile.
52
52
  */
53
- readonly resourceProperties: pulumi.Output<string | undefined>;
53
+ readonly resourceProperties: pulumi.Output<string>;
54
54
  /**
55
55
  * Type of resource associated with the profile.
56
56
  */
package/s3/bucket.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
2
  import * as inputs from "../types/input";
3
3
  import * as outputs from "../types/output";
4
+ import * as enums from "../types/enums";
4
5
  /**
5
6
  * Provides a S3 bucket resource.
6
7
  *
@@ -233,7 +234,7 @@ export interface BucketState {
233
234
  *
234
235
  * @deprecated acl is deprecated. Use the aws.s3.BucketAcl resource instead.
235
236
  */
236
- acl?: pulumi.Input<string>;
237
+ acl?: pulumi.Input<string | enums.s3.CannedAcl>;
237
238
  /**
238
239
  * ARN of the bucket. Will be of format `arn:aws:s3:::bucketname`.
239
240
  */
@@ -311,7 +312,7 @@ export interface BucketState {
311
312
  *
312
313
  * @deprecated policy is deprecated. Use the aws.s3.BucketPolicy resource instead.
313
314
  */
314
- policy?: pulumi.Input<string>;
315
+ policy?: pulumi.Input<string | inputs.s3.PolicyDocument>;
315
316
  /**
316
317
  * 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.
317
318
  */
@@ -397,7 +398,7 @@ export interface BucketArgs {
397
398
  *
398
399
  * @deprecated acl is deprecated. Use the aws.s3.BucketAcl resource instead.
399
400
  */
400
- acl?: pulumi.Input<string>;
401
+ acl?: pulumi.Input<string | enums.s3.CannedAcl>;
401
402
  /**
402
403
  * Name of the bucket. If omitted, the provider will assign a random, unique name. Must be lowercase and less than or equal to 63 characters in length. A full list of bucket naming rules [may be found here](https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucketnamingrules.html). The name must not be in the format `[bucketName]--[azid]--x-s3`. Use the `aws.s3.DirectoryBucket` resource to manage S3 Express buckets.
403
404
  */
@@ -455,7 +456,7 @@ export interface BucketArgs {
455
456
  *
456
457
  * @deprecated policy is deprecated. Use the aws.s3.BucketPolicy resource instead.
457
458
  */
458
- policy?: pulumi.Input<string>;
459
+ policy?: pulumi.Input<string | inputs.s3.PolicyDocument>;
459
460
  /**
460
461
  * 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.
461
462
  */
@@ -36,6 +36,8 @@ import * as inputs from "../types/input";
36
36
  * });
37
37
  * ```
38
38
  *
39
+ * > Only one `aws.s3.BucketPolicy` resource should be defined per S3 bucket. Defining multiple `aws.s3.BucketPolicy` resources with different Pulumi names but the same `bucket` value may result in unexpected policy overwrites. Each resource uses the `PutBucketPolicy` API, which replaces the entire existing policy without error or warning. Because Pulumi treats each resource independently, the policy applied last will silently override any previously applied policy.
40
+ *
39
41
  * ## Import
40
42
  *
41
43
  * Using `pulumi import`, import S3 bucket policies using the bucket name. For example: