@pulumi/aws 5.2.0-alpha.1650047579 → 5.2.0
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/apigateway/stage.d.ts +18 -6
- package/apigateway/stage.js +2 -0
- package/apigateway/stage.js.map +1 -1
- package/athena/database.d.ts +42 -0
- package/athena/database.js +26 -0
- package/athena/database.js.map +1 -1
- package/autoscaling/attachment.d.ts +1 -1
- package/autoscaling/attachment.js +1 -1
- package/autoscaling/group.d.ts +19 -10
- package/autoscaling/group.js +4 -1
- package/autoscaling/group.js.map +1 -1
- package/backup/plan.d.ts +3 -0
- package/backup/plan.js +3 -0
- package/backup/plan.js.map +1 -1
- package/cfg/rule.d.ts +39 -12
- package/cfg/rule.js +27 -0
- package/cfg/rule.js.map +1 -1
- package/cloudformation/stackSet.d.ts +12 -0
- package/cloudformation/stackSet.js +2 -0
- package/cloudformation/stackSet.js.map +1 -1
- package/cloudformation/stackSetInstance.d.ts +19 -1
- package/cloudformation/stackSetInstance.js +9 -1
- package/cloudformation/stackSetInstance.js.map +1 -1
- package/cloudtrail/trail.d.ts +31 -30
- package/cloudtrail/trail.js +31 -30
- package/cloudtrail/trail.js.map +1 -1
- package/cloudwatch/getEventBus.d.ts +51 -0
- package/cloudwatch/getEventBus.js +38 -0
- package/cloudwatch/getEventBus.js.map +1 -0
- package/cloudwatch/index.d.ts +1 -0
- package/cloudwatch/index.js +1 -0
- package/cloudwatch/index.js.map +1 -1
- package/cognito/index.d.ts +1 -0
- package/cognito/index.js +5 -0
- package/cognito/index.js.map +1 -1
- package/cognito/userInGroup.d.ts +100 -0
- package/cognito/userInGroup.js +90 -0
- package/cognito/userInGroup.js.map +1 -0
- package/cognito/userPoolClient.d.ts +22 -0
- package/cognito/userPoolClient.js +22 -0
- package/cognito/userPoolClient.js.map +1 -1
- package/datasync/fsxOpenZfsFileSystem.d.ts +175 -0
- package/datasync/fsxOpenZfsFileSystem.js +104 -0
- package/datasync/fsxOpenZfsFileSystem.js.map +1 -0
- package/datasync/index.d.ts +1 -0
- package/datasync/index.js +5 -0
- package/datasync/index.js.map +1 -1
- package/dynamodb/contributorInsights.d.ts +82 -0
- package/dynamodb/contributorInsights.js +76 -0
- package/dynamodb/contributorInsights.js.map +1 -0
- package/dynamodb/index.d.ts +1 -0
- package/dynamodb/index.js +5 -0
- package/dynamodb/index.js.map +1 -1
- package/dynamodb/tableItem.d.ts +6 -9
- package/dynamodb/tableItem.js.map +1 -1
- package/ec2/amiLaunchPermission.d.ts +70 -10
- package/ec2/amiLaunchPermission.js +32 -5
- package/ec2/amiLaunchPermission.js.map +1 -1
- package/ec2/defaultNetworkAcl.d.ts +1 -1
- package/ec2/defaultNetworkAcl.js +1 -1
- package/ec2/getEips.d.ts +1 -1
- package/ec2/getNatGateways.d.ts +65 -0
- package/ec2/getNatGateways.js +28 -0
- package/ec2/getNatGateways.js.map +1 -0
- package/ec2/getRoute.d.ts +9 -0
- package/ec2/getRoute.js +1 -0
- package/ec2/getRoute.js.map +1 -1
- package/ec2/index.d.ts +1 -0
- package/ec2/index.js +1 -0
- package/ec2/index.js.map +1 -1
- package/ec2/instance.d.ts +18 -6
- package/ec2/instance.js +2 -0
- package/ec2/instance.js.map +1 -1
- package/ec2/keyPair.d.ts +3 -12
- package/ec2/keyPair.js.map +1 -1
- package/ec2/route.d.ts +12 -0
- package/ec2/route.js +2 -0
- package/ec2/route.js.map +1 -1
- package/ec2/spotInstanceRequest.d.ts +18 -6
- package/ec2/spotInstanceRequest.js +2 -0
- package/ec2/spotInstanceRequest.js.map +1 -1
- package/ec2/vpc.d.ts +3 -3
- package/ec2/vpcEndpointService.d.ts +4 -4
- package/ec2/vpcIpam.d.ts +12 -0
- package/ec2/vpcIpam.js +2 -0
- package/ec2/vpcIpam.js.map +1 -1
- package/ec2/vpnConnection.d.ts +16 -0
- package/ec2/vpnConnection.js +4 -0
- package/ec2/vpnConnection.js.map +1 -1
- package/eks/addon.d.ts +18 -6
- package/eks/addon.js +2 -0
- package/eks/addon.js.map +1 -1
- package/eks/getAddonVersion.d.ts +82 -0
- package/eks/getAddonVersion.js +51 -0
- package/eks/getAddonVersion.js.map +1 -0
- package/eks/index.d.ts +1 -0
- package/eks/index.js +1 -0
- package/eks/index.js.map +1 -1
- package/elasticache/cluster.d.ts +64 -3
- package/elasticache/cluster.js +32 -0
- package/elasticache/cluster.js.map +1 -1
- package/elasticache/getCluster.d.ts +4 -0
- package/elasticache/getCluster.js.map +1 -1
- package/elasticache/getReplicationGroup.d.ts +5 -0
- package/elasticache/getReplicationGroup.js.map +1 -1
- package/elasticache/index.d.ts +1 -0
- package/elasticache/index.js +5 -0
- package/elasticache/index.js.map +1 -1
- package/elasticache/replicationGroup.d.ts +54 -6
- package/elasticache/replicationGroup.js +32 -0
- package/elasticache/replicationGroup.js.map +1 -1
- package/elasticache/userGroupAssociation.d.ts +100 -0
- package/elasticache/userGroupAssociation.js +97 -0
- package/elasticache/userGroupAssociation.js.map +1 -0
- package/emr/cluster.d.ts +6 -6
- package/gamelift/alias.d.ts +2 -2
- package/gamelift/alias.js +2 -2
- package/gamelift/build.d.ts +6 -6
- package/gamelift/build.js +2 -2
- package/gamelift/fleet.d.ts +10 -14
- package/gamelift/fleet.js +2 -2
- package/gamelift/fleet.js.map +1 -1
- package/gamelift/gameServerGroup.d.ts +5 -5
- package/gamelift/gameServerGroup.js +3 -3
- package/gamelift/gameSessionQueue.d.ts +2 -2
- package/gamelift/gameSessionQueue.js +2 -2
- package/gamelift/script.d.ts +4 -4
- package/gamelift/script.js +2 -2
- package/getCanonicalUserId.d.ts +2 -0
- package/getCanonicalUserId.js +2 -0
- package/getCanonicalUserId.js.map +1 -1
- package/glue/schema.d.ts +3 -3
- package/grafana/index.d.ts +1 -0
- package/grafana/index.js +5 -0
- package/grafana/index.js.map +1 -1
- package/grafana/roleAssociation.d.ts +121 -0
- package/grafana/roleAssociation.js +98 -0
- package/grafana/roleAssociation.js.map +1 -0
- package/guardduty/ipset.d.ts +0 -1
- package/guardduty/ipset.js +0 -1
- package/guardduty/ipset.js.map +1 -1
- package/iam/getSamlProvider.d.ts +81 -0
- package/iam/getSamlProvider.js +39 -0
- package/iam/getSamlProvider.js.map +1 -0
- package/iam/group.d.ts +0 -2
- package/iam/group.js +0 -2
- package/iam/group.js.map +1 -1
- package/iam/index.d.ts +1 -0
- package/iam/index.js +1 -0
- package/iam/index.js.map +1 -1
- package/imagebuilder/getImagePipelines.d.ts +57 -0
- package/imagebuilder/getImagePipelines.js +40 -0
- package/imagebuilder/getImagePipelines.js.map +1 -0
- package/imagebuilder/index.d.ts +1 -0
- package/imagebuilder/index.js +1 -0
- package/imagebuilder/index.js.map +1 -1
- package/index.d.ts +3 -1
- package/index.js +7 -3
- package/index.js.map +1 -1
- package/iot/authorizer.d.ts +12 -0
- package/iot/authorizer.js +2 -0
- package/iot/authorizer.js.map +1 -1
- package/iot/index.d.ts +3 -0
- package/iot/index.js +15 -0
- package/iot/index.js.map +1 -1
- package/iot/indexingConfiguration.d.ts +98 -0
- package/iot/indexingConfiguration.js +88 -0
- package/iot/indexingConfiguration.js.map +1 -0
- package/iot/loggingOptions.d.ts +87 -0
- package/iot/loggingOptions.js +74 -0
- package/iot/loggingOptions.js.map +1 -0
- package/iot/provisioningTemplate.d.ts +232 -0
- package/iot/provisioningTemplate.js +144 -0
- package/iot/provisioningTemplate.js.map +1 -0
- package/keyspaces/index.d.ts +1 -0
- package/keyspaces/index.js +37 -0
- package/keyspaces/index.js.map +1 -0
- package/keyspaces/keyspace.d.ts +114 -0
- package/keyspaces/keyspace.js +77 -0
- package/keyspaces/keyspace.js.map +1 -0
- package/lambda/function.d.ts +44 -0
- package/lambda/function.js +34 -0
- package/lambda/function.js.map +1 -1
- package/lambda/functionUrl.d.ts +153 -0
- package/lambda/functionUrl.js +111 -0
- package/lambda/functionUrl.js.map +1 -0
- package/lambda/getFunction.d.ts +4 -0
- package/lambda/getFunction.js.map +1 -1
- package/lambda/getFunctionUrl.d.ts +85 -0
- package/lambda/getFunctionUrl.js +39 -0
- package/lambda/getFunctionUrl.js.map +1 -0
- package/lambda/index.d.ts +2 -0
- package/lambda/index.js +6 -0
- package/lambda/index.js.map +1 -1
- package/lambda/permission.d.ts +18 -6
- package/lambda/permission.js +2 -0
- package/lambda/permission.js.map +1 -1
- package/memorydb/getAcl.d.ts +75 -0
- package/memorydb/getAcl.js +37 -0
- package/memorydb/getAcl.js.map +1 -0
- package/memorydb/getCluster.d.ts +152 -0
- package/memorydb/getCluster.js +37 -0
- package/memorydb/getCluster.js.map +1 -0
- package/memorydb/getParameterGroup.d.ts +83 -0
- package/memorydb/getParameterGroup.js +37 -0
- package/memorydb/getParameterGroup.js.map +1 -0
- package/memorydb/getSnapshot.d.ts +87 -0
- package/memorydb/getSnapshot.js +37 -0
- package/memorydb/getSnapshot.js.map +1 -0
- package/memorydb/getSubnetGroup.d.ts +79 -0
- package/memorydb/getSubnetGroup.js +37 -0
- package/memorydb/getSubnetGroup.js.map +1 -0
- package/memorydb/getUser.d.ts +80 -0
- package/memorydb/getUser.js +37 -0
- package/memorydb/getUser.js.map +1 -0
- package/memorydb/index.d.ts +6 -0
- package/memorydb/index.js +6 -0
- package/memorydb/index.js.map +1 -1
- package/msk/getCluster.d.ts +4 -0
- package/msk/getCluster.js.map +1 -1
- package/mskconnect/connector.d.ts +270 -0
- package/mskconnect/connector.js +166 -0
- package/mskconnect/connector.js.map +1 -0
- package/mskconnect/getConnector.d.ts +57 -0
- package/mskconnect/getConnector.js +36 -0
- package/mskconnect/getConnector.js.map +1 -0
- package/mskconnect/index.d.ts +2 -0
- package/mskconnect/index.js +6 -0
- package/mskconnect/index.js.map +1 -1
- package/mwaa/environment.d.ts +12 -0
- package/mwaa/environment.js +2 -0
- package/mwaa/environment.js.map +1 -1
- package/neptune/clusterEndpoint.d.ts +9 -0
- package/neptune/clusterEndpoint.js.map +1 -1
- package/opensearch/domain.d.ts +445 -0
- package/opensearch/domain.js +273 -0
- package/opensearch/domain.js.map +1 -0
- package/opensearch/domainPolicy.d.ts +93 -0
- package/opensearch/domainPolicy.js +90 -0
- package/opensearch/domainPolicy.js.map +1 -0
- package/opensearch/domainSamlOptions.d.ts +105 -0
- package/opensearch/domainSamlOptions.js +98 -0
- package/opensearch/domainSamlOptions.js.map +1 -0
- package/opensearch/getDomain.d.ts +144 -0
- package/opensearch/getDomain.js +37 -0
- package/opensearch/getDomain.js.map +1 -0
- package/opensearch/index.d.ts +4 -0
- package/opensearch/index.js +48 -0
- package/opensearch/index.js.map +1 -0
- package/organizations/account.d.ts +17 -5
- package/organizations/account.js +4 -2
- package/organizations/account.js.map +1 -1
- package/package.json +2 -2
- package/package.json.dev +2 -2
- package/qldb/getLedger.d.ts +10 -0
- package/qldb/getLedger.js +1 -0
- package/qldb/getLedger.js.map +1 -1
- package/qldb/index.d.ts +1 -0
- package/qldb/index.js +5 -0
- package/qldb/index.js.map +1 -1
- package/qldb/ledger.d.ts +12 -0
- package/qldb/ledger.js +2 -0
- package/qldb/ledger.js.map +1 -1
- package/qldb/stream.d.ts +159 -0
- package/qldb/stream.js +104 -0
- package/qldb/stream.js.map +1 -0
- package/rds/cluster.d.ts +3 -3
- package/rds/clusterActivityStream.d.ts +138 -0
- package/rds/clusterActivityStream.js +112 -0
- package/rds/clusterActivityStream.js.map +1 -0
- package/rds/index.d.ts +2 -0
- package/rds/index.js +10 -0
- package/rds/index.js.map +1 -1
- package/rds/instance.d.ts +3 -3
- package/rds/instanceAutomatedBackupsReplication.d.ts +153 -0
- package/rds/instanceAutomatedBackupsReplication.js +127 -0
- package/rds/instanceAutomatedBackupsReplication.js.map +1 -0
- package/route53/getTrafficPolicyDocument.d.ts +125 -0
- package/route53/getTrafficPolicyDocument.js +72 -0
- package/route53/getTrafficPolicyDocument.js.map +1 -0
- package/route53/index.d.ts +3 -0
- package/route53/index.js +11 -0
- package/route53/index.js.map +1 -1
- package/route53/trafficPolicy.d.ts +122 -0
- package/route53/trafficPolicy.js +94 -0
- package/route53/trafficPolicy.js.map +1 -0
- package/route53/trafficPolicyInstance.d.ts +121 -0
- package/route53/trafficPolicyInstance.js +94 -0
- package/route53/trafficPolicyInstance.js.map +1 -0
- package/s3/bucketObject.d.ts +2 -12
- package/s3/bucketObject.js +2 -0
- package/s3/bucketObject.js.map +1 -1
- package/s3/bucketObjectLockConfigurationV2.d.ts +35 -2
- package/s3/bucketObjectLockConfigurationV2.js +35 -2
- package/s3/bucketObjectLockConfigurationV2.js.map +1 -1
- package/s3/bucketV2.d.ts +518 -32
- package/s3/bucketV2.js +378 -12
- package/s3/bucketV2.js.map +1 -1
- package/s3/getCanonicalUserId.d.ts +2 -0
- package/s3/getCanonicalUserId.js +2 -0
- package/s3/getCanonicalUserId.js.map +1 -1
- package/ses/identityNotificationTopic.d.ts +10 -10
- package/ses/identityNotificationTopic.js +1 -1
- package/ssm/getDocument.d.ts +3 -3
- package/ssm/getMaintenanceWindows.d.ts +53 -0
- package/ssm/getMaintenanceWindows.js +40 -0
- package/ssm/getMaintenanceWindows.js.map +1 -0
- package/ssm/index.d.ts +1 -0
- package/ssm/index.js +1 -0
- package/ssm/index.js.map +1 -1
- package/ssm/maintenanceWindowTask.d.ts +30 -2
- package/ssm/maintenanceWindowTask.js +6 -6
- package/ssm/maintenanceWindowTask.js.map +1 -1
- package/storagegateway/gateway.d.ts +12 -0
- package/storagegateway/gateway.js +2 -0
- package/storagegateway/gateway.js.map +1 -1
- package/storagegateway/nfsFileShare.d.ts +24 -0
- package/storagegateway/nfsFileShare.js +4 -0
- package/storagegateway/nfsFileShare.js.map +1 -1
- package/types/input.d.ts +1658 -413
- package/types/output.d.ts +1672 -285
- package/xray/group.d.ts +17 -0
- package/xray/group.js +6 -0
- package/xray/group.js.map +1 -1
package/s3/bucketV2.d.ts
CHANGED
|
@@ -1,6 +1,372 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
import { input as inputs, output as outputs } from "../types";
|
|
3
3
|
/**
|
|
4
|
+
* Provides a S3 bucket resource.
|
|
5
|
+
*
|
|
6
|
+
* > This functionality is for managing S3 in an AWS Partition. To manage [S3 on Outposts](https://docs.aws.amazon.com/AmazonS3/latest/dev/S3onOutposts.html), see the `aws.s3control.Bucket` resource.
|
|
7
|
+
*
|
|
8
|
+
* > **NOTE on S3 Bucket Accelerate Configuration:** S3 Bucket Accelerate can be configured in either the standalone resource `aws.s3.BucketAccelerateConfigurationV2`
|
|
9
|
+
* or with the deprecated parameter `accelerationStatus` in the resource `aws.s3.BucketV2`.
|
|
10
|
+
* Configuring with both will cause inconsistencies and may overwrite configuration.
|
|
11
|
+
*
|
|
12
|
+
* > **NOTE on S3 Bucket canned ACL Configuration:** S3 Bucket canned ACL can be configured in either the standalone resource `aws.s3.BucketAclV2`
|
|
13
|
+
* or with the deprecated parameter `acl` in the resource `aws.s3.BucketV2`.
|
|
14
|
+
* Configuring with both will cause inconsistencies and may overwrite configuration.
|
|
15
|
+
*
|
|
16
|
+
* > **NOTE on S3 Bucket ACL Grants Configuration:** S3 Bucket grants can be configured in either the standalone resource `aws.s3.BucketAclV2`
|
|
17
|
+
* or with the deprecated parameter `grant` in the resource `aws.s3.BucketV2`.
|
|
18
|
+
* Configuring with both will cause inconsistencies and may overwrite configuration.
|
|
19
|
+
*
|
|
20
|
+
* > **NOTE on S3 Bucket CORS Configuration:** S3 Bucket CORS can be configured in either the standalone resource `aws.s3.BucketCorsConfigurationV2`
|
|
21
|
+
* or with the deprecated parameter `corsRule` in the resource `aws.s3.BucketV2`.
|
|
22
|
+
* Configuring with both will cause inconsistencies and may overwrite configuration.
|
|
23
|
+
*
|
|
24
|
+
* > **NOTE on S3 Bucket Lifecycle Configuration:** S3 Bucket Lifecycle can be configured in either the standalone resource `aws.s3.BucketLifecycleConfigurationV2`
|
|
25
|
+
* or with the deprecated parameter `lifecycleRule` in the resource `aws.s3.BucketV2`.
|
|
26
|
+
* Configuring with both will cause inconsistencies and may overwrite configuration.
|
|
27
|
+
*
|
|
28
|
+
* > **NOTE on S3 Bucket Logging Configuration:** S3 Bucket logging can be configured in either the standalone resource `aws.s3.BucketLoggingV2`
|
|
29
|
+
* or with the deprecated parameter `logging` in the resource `aws.s3.BucketV2`.
|
|
30
|
+
* Configuring with both will cause inconsistencies and may overwrite configuration.
|
|
31
|
+
*
|
|
32
|
+
* > **NOTE on S3 Bucket Object Lock Configuration:** S3 Bucket Object Lock can be configured in either the standalone resource `aws.s3.BucketObjectLockConfigurationV2`
|
|
33
|
+
* or with the deprecated parameter `objectLockConfiguration` in the resource `aws.s3.BucketV2`.
|
|
34
|
+
* Configuring with both will cause inconsistencies and may overwrite configuration.
|
|
35
|
+
*
|
|
36
|
+
* > **NOTE on S3 Bucket Policy Configuration:** S3 Bucket Policy can be configured in either the standalone resource `aws.s3.BucketPolicy`
|
|
37
|
+
* or with the deprecated parameter `policy` in the resource `aws.s3.BucketV2`.
|
|
38
|
+
* Configuring with both will cause inconsistencies and may overwrite configuration.
|
|
39
|
+
*
|
|
40
|
+
* > **NOTE on S3 Bucket Replication Configuration:** S3 Bucket Replication can be configured in either the standalone resource `awsS3BucketReplicatonConfiguration`
|
|
41
|
+
* or with the deprecated parameter `replicationConfiguration` in the resource `aws.s3.BucketV2`.
|
|
42
|
+
* Configuring with both will cause inconsistencies and may overwrite configuration.
|
|
43
|
+
*
|
|
44
|
+
* > **NOTE on S3 Bucket Request Payment Configuration:** S3 Bucket Request Payment can be configured in either the standalone resource `aws.s3.BucketRequestPaymentConfigurationV2`
|
|
45
|
+
* or with the deprecated parameter `requestPayer` in the resource `aws.s3.BucketV2`.
|
|
46
|
+
* Configuring with both will cause inconsistencies and may overwrite configuration.
|
|
47
|
+
*
|
|
48
|
+
* > **NOTE on S3 Bucket Server Side Encryption Configuration:** S3 Bucket Server Side Encryption can be configured in either the standalone resource `aws.s3.BucketServerSideEncryptionConfigurationV2`
|
|
49
|
+
* or with the deprecated parameter `serverSideEncryptionConfiguration` in the resource `aws.s3.BucketV2`.
|
|
50
|
+
* Configuring with both will cause inconsistencies and may overwrite configuration.
|
|
51
|
+
*
|
|
52
|
+
* > **NOTE on S3 Bucket Versioning Configuration:** S3 Bucket versioning can be configured in either the standalone resource `aws.s3.BucketVersioningV2`
|
|
53
|
+
* or with the deprecated parameter `versioning` in the resource `aws.s3.BucketV2`.
|
|
54
|
+
* Configuring with both will cause inconsistencies and may overwrite configuration.
|
|
55
|
+
*
|
|
56
|
+
* > **NOTE on S3 Bucket Website Configuration:** S3 Bucket Website can be configured in either the standalone resource `aws.s3.BucketWebsiteConfigurationV2`
|
|
57
|
+
* or with the deprecated parameter `website` in the resource `aws.s3.BucketV2`.
|
|
58
|
+
* Configuring with both will cause inconsistencies and may overwrite configuration.
|
|
59
|
+
*
|
|
60
|
+
* ## Example Usage
|
|
61
|
+
* ### Private Bucket w/ Tags
|
|
62
|
+
*
|
|
63
|
+
* ```typescript
|
|
64
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
65
|
+
* import * as aws from "@pulumi/aws";
|
|
66
|
+
*
|
|
67
|
+
* const bucketV2 = new aws.s3.BucketV2("bucketV2", {tags: {
|
|
68
|
+
* Name: "My bucket",
|
|
69
|
+
* Environment: "Dev",
|
|
70
|
+
* }});
|
|
71
|
+
* const example = new aws.s3.BucketAclV2("example", {
|
|
72
|
+
* bucket: bucketV2.id,
|
|
73
|
+
* acl: "private",
|
|
74
|
+
* });
|
|
75
|
+
* ```
|
|
76
|
+
* ### Static Website Hosting
|
|
77
|
+
*
|
|
78
|
+
* ```typescript
|
|
79
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
80
|
+
* import * as aws from "@pulumi/aws";
|
|
81
|
+
* import * from "fs";
|
|
82
|
+
*
|
|
83
|
+
* const bucketV2 = new aws.s3.BucketV2("bucketV2", {
|
|
84
|
+
* acl: "public-read",
|
|
85
|
+
* policy: fs.readFileSync("policy.json"),
|
|
86
|
+
* websites: [{
|
|
87
|
+
* indexDocument: "index.html",
|
|
88
|
+
* errorDocument: "error.html",
|
|
89
|
+
* routingRules: `[{
|
|
90
|
+
* "Condition": {
|
|
91
|
+
* "KeyPrefixEquals": "docs/"
|
|
92
|
+
* },
|
|
93
|
+
* "Redirect": {
|
|
94
|
+
* "ReplaceKeyPrefixWith": "documents/"
|
|
95
|
+
* }
|
|
96
|
+
* }]
|
|
97
|
+
* `,
|
|
98
|
+
* }],
|
|
99
|
+
* });
|
|
100
|
+
* ```
|
|
101
|
+
* ### Using CORS
|
|
102
|
+
*
|
|
103
|
+
* ```typescript
|
|
104
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
105
|
+
* import * as aws from "@pulumi/aws";
|
|
106
|
+
*
|
|
107
|
+
* const bucketV2 = new aws.s3.BucketV2("b", {
|
|
108
|
+
* acl: "public-read",
|
|
109
|
+
* corsRules: [{
|
|
110
|
+
* allowedHeaders: ["*"],
|
|
111
|
+
* allowedMethods: [
|
|
112
|
+
* "PUT",
|
|
113
|
+
* "POST",
|
|
114
|
+
* ],
|
|
115
|
+
* allowedOrigins: ["https://s3-website-test.hashicorp.com"],
|
|
116
|
+
* exposeHeaders: ["ETag"],
|
|
117
|
+
* maxAgeSeconds: 3000,
|
|
118
|
+
* }],
|
|
119
|
+
* });
|
|
120
|
+
* ```
|
|
121
|
+
* ### Using versioning
|
|
122
|
+
*
|
|
123
|
+
* ```typescript
|
|
124
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
125
|
+
* import * as aws from "@pulumi/aws";
|
|
126
|
+
*
|
|
127
|
+
* const bucketV2 = new aws.s3.BucketV2("b", {
|
|
128
|
+
* acl: "private",
|
|
129
|
+
* versionings: [{
|
|
130
|
+
* enabled: true,
|
|
131
|
+
* }],
|
|
132
|
+
* });
|
|
133
|
+
* ```
|
|
134
|
+
* ### Enable Logging
|
|
135
|
+
*
|
|
136
|
+
* ```typescript
|
|
137
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
138
|
+
* import * as aws from "@pulumi/aws";
|
|
139
|
+
*
|
|
140
|
+
* const logBucket = new aws.s3.BucketV2("logBucket", {acl: "log-delivery-write"});
|
|
141
|
+
* const bucketV2 = new aws.s3.BucketV2("bucketV2", {
|
|
142
|
+
* acl: "private",
|
|
143
|
+
* loggings: [{
|
|
144
|
+
* targetBucket: logBucket.id,
|
|
145
|
+
* targetPrefix: "log/",
|
|
146
|
+
* }],
|
|
147
|
+
* });
|
|
148
|
+
* ```
|
|
149
|
+
* ### Using object lifecycle
|
|
150
|
+
*
|
|
151
|
+
* ```typescript
|
|
152
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
153
|
+
* import * as aws from "@pulumi/aws";
|
|
154
|
+
*
|
|
155
|
+
* const bucket = new aws.s3.BucketV2("bucket", {
|
|
156
|
+
* acl: "private",
|
|
157
|
+
* lifecycleRules: [
|
|
158
|
+
* {
|
|
159
|
+
* enabled: true,
|
|
160
|
+
* expirations: [{
|
|
161
|
+
* days: 90,
|
|
162
|
+
* }],
|
|
163
|
+
* id: "log",
|
|
164
|
+
* prefix: "log/",
|
|
165
|
+
* tags: {
|
|
166
|
+
* autoclean: "true",
|
|
167
|
+
* rule: "log",
|
|
168
|
+
* },
|
|
169
|
+
* transitions: [
|
|
170
|
+
* {
|
|
171
|
+
* days: 30,
|
|
172
|
+
* storageClass: "STANDARD_IA", // or "ONEZONE_IA"
|
|
173
|
+
* },
|
|
174
|
+
* {
|
|
175
|
+
* days: 60,
|
|
176
|
+
* storageClass: "GLACIER",
|
|
177
|
+
* },
|
|
178
|
+
* ],
|
|
179
|
+
* },
|
|
180
|
+
* {
|
|
181
|
+
* enabled: true,
|
|
182
|
+
* expirations: [{
|
|
183
|
+
* date: "2016-01-12",
|
|
184
|
+
* }],
|
|
185
|
+
* id: "tmp",
|
|
186
|
+
* prefix: "tmp/",
|
|
187
|
+
* },
|
|
188
|
+
* ],
|
|
189
|
+
* });
|
|
190
|
+
* const versioningBucket = new aws.s3.BucketV2("versioning_bucket", {
|
|
191
|
+
* acl: "private",
|
|
192
|
+
* lifecycleRules: [{
|
|
193
|
+
* enabled: true,
|
|
194
|
+
* noncurrentVersionExpirations: [{
|
|
195
|
+
* days: 90,
|
|
196
|
+
* }],
|
|
197
|
+
* noncurrentVersionTransitions: [
|
|
198
|
+
* {
|
|
199
|
+
* days: 30,
|
|
200
|
+
* storageClass: "STANDARD_IA",
|
|
201
|
+
* },
|
|
202
|
+
* {
|
|
203
|
+
* days: 60,
|
|
204
|
+
* storageClass: "GLACIER",
|
|
205
|
+
* },
|
|
206
|
+
* ],
|
|
207
|
+
* prefix: "config/",
|
|
208
|
+
* }],
|
|
209
|
+
* versionings: [{
|
|
210
|
+
* enabled: true,
|
|
211
|
+
* }],
|
|
212
|
+
* });
|
|
213
|
+
* ```
|
|
214
|
+
* ### Using object lock configuration
|
|
215
|
+
*
|
|
216
|
+
* ```typescript
|
|
217
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
218
|
+
* import * as aws from "@pulumi/aws";
|
|
219
|
+
*
|
|
220
|
+
* const example = new aws.s3.BucketV2("example", {
|
|
221
|
+
* objectLockConfiguration: {
|
|
222
|
+
* objectLockEnabled: "Enabled",
|
|
223
|
+
* rules: [{
|
|
224
|
+
* defaultRetentions: [{
|
|
225
|
+
* days: 5,
|
|
226
|
+
* mode: "COMPLIANCE",
|
|
227
|
+
* }],
|
|
228
|
+
* }],
|
|
229
|
+
* },
|
|
230
|
+
* });
|
|
231
|
+
* ```
|
|
232
|
+
* ### Using replication configuration
|
|
233
|
+
*
|
|
234
|
+
* ```typescript
|
|
235
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
236
|
+
* import * as aws from "@pulumi/aws";
|
|
237
|
+
*
|
|
238
|
+
* const central = new aws.Provider("central", {region: "eu-central-1"});
|
|
239
|
+
* const replicationRole = new aws.iam.Role("replicationRole", {assumeRolePolicy: `{
|
|
240
|
+
* "Version": "2012-10-17",
|
|
241
|
+
* "Statement": [
|
|
242
|
+
* {
|
|
243
|
+
* "Action": "sts:AssumeRole",
|
|
244
|
+
* "Principal": {
|
|
245
|
+
* "Service": "s3.amazonaws.com"
|
|
246
|
+
* },
|
|
247
|
+
* "Effect": "Allow",
|
|
248
|
+
* "Sid": ""
|
|
249
|
+
* }
|
|
250
|
+
* ]
|
|
251
|
+
* }
|
|
252
|
+
* `});
|
|
253
|
+
* const destination = new aws.s3.BucketV2("destination", {versionings: [{
|
|
254
|
+
* enabled: true,
|
|
255
|
+
* }]});
|
|
256
|
+
* const source = new aws.s3.BucketV2("source", {
|
|
257
|
+
* acl: "private",
|
|
258
|
+
* versionings: [{
|
|
259
|
+
* enabled: true,
|
|
260
|
+
* }],
|
|
261
|
+
* replicationConfigurations: [{
|
|
262
|
+
* role: replicationRole.arn,
|
|
263
|
+
* rules: [{
|
|
264
|
+
* id: "foobar",
|
|
265
|
+
* status: "Enabled",
|
|
266
|
+
* filters: [{
|
|
267
|
+
* tags: {},
|
|
268
|
+
* }],
|
|
269
|
+
* destinations: [{
|
|
270
|
+
* bucket: destination.arn,
|
|
271
|
+
* storageClass: "STANDARD",
|
|
272
|
+
* replicationTimes: [{
|
|
273
|
+
* status: "Enabled",
|
|
274
|
+
* minutes: 15,
|
|
275
|
+
* }],
|
|
276
|
+
* metrics: [{
|
|
277
|
+
* status: "Enabled",
|
|
278
|
+
* minutes: 15,
|
|
279
|
+
* }],
|
|
280
|
+
* }],
|
|
281
|
+
* }],
|
|
282
|
+
* }],
|
|
283
|
+
* }, {
|
|
284
|
+
* provider: aws.central,
|
|
285
|
+
* });
|
|
286
|
+
* const replicationPolicy = new aws.iam.Policy("replicationPolicy", {policy: pulumi.interpolate`{
|
|
287
|
+
* "Version": "2012-10-17",
|
|
288
|
+
* "Statement": [
|
|
289
|
+
* {
|
|
290
|
+
* "Action": [
|
|
291
|
+
* "s3:GetReplicationConfiguration",
|
|
292
|
+
* "s3:ListBucket"
|
|
293
|
+
* ],
|
|
294
|
+
* "Effect": "Allow",
|
|
295
|
+
* "Resource": [
|
|
296
|
+
* "${source.arn}"
|
|
297
|
+
* ]
|
|
298
|
+
* },
|
|
299
|
+
* {
|
|
300
|
+
* "Action": [
|
|
301
|
+
* "s3:GetObjectVersionForReplication",
|
|
302
|
+
* "s3:GetObjectVersionAcl",
|
|
303
|
+
* "s3:GetObjectVersionTagging"
|
|
304
|
+
* ],
|
|
305
|
+
* "Effect": "Allow",
|
|
306
|
+
* "Resource": [
|
|
307
|
+
* "${source.arn}/*"
|
|
308
|
+
* ]
|
|
309
|
+
* },
|
|
310
|
+
* {
|
|
311
|
+
* "Action": [
|
|
312
|
+
* "s3:ReplicateObject",
|
|
313
|
+
* "s3:ReplicateDelete",
|
|
314
|
+
* "s3:ReplicateTags"
|
|
315
|
+
* ],
|
|
316
|
+
* "Effect": "Allow",
|
|
317
|
+
* "Resource": "${destination.arn}/*"
|
|
318
|
+
* }
|
|
319
|
+
* ]
|
|
320
|
+
* }
|
|
321
|
+
* `});
|
|
322
|
+
* const replicationRolePolicyAttachment = new aws.iam.RolePolicyAttachment("replicationRolePolicyAttachment", {
|
|
323
|
+
* role: replicationRole.name,
|
|
324
|
+
* policyArn: replicationPolicy.arn,
|
|
325
|
+
* });
|
|
326
|
+
* ```
|
|
327
|
+
* ### Enable Default Server Side Encryption
|
|
328
|
+
*
|
|
329
|
+
* ```typescript
|
|
330
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
331
|
+
* import * as aws from "@pulumi/aws";
|
|
332
|
+
*
|
|
333
|
+
* const mykey = new aws.kms.Key("mykey", {
|
|
334
|
+
* description: "This key is used to encrypt bucket objects",
|
|
335
|
+
* deletionWindowInDays: 10,
|
|
336
|
+
* });
|
|
337
|
+
* const mybucket = new aws.s3.BucketV2("mybucket", {serverSideEncryptionConfigurations: [{
|
|
338
|
+
* rules: [{
|
|
339
|
+
* applyServerSideEncryptionByDefaults: [{
|
|
340
|
+
* kmsMasterKeyId: mykey.arn,
|
|
341
|
+
* sseAlgorithm: "aws:kms",
|
|
342
|
+
* }],
|
|
343
|
+
* }],
|
|
344
|
+
* }]});
|
|
345
|
+
* ```
|
|
346
|
+
* ### Using ACL policy grants
|
|
347
|
+
*
|
|
348
|
+
* ```typescript
|
|
349
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
350
|
+
* import * as aws from "@pulumi/aws";
|
|
351
|
+
*
|
|
352
|
+
* const currentUser = aws.s3.getCanonicalUserId({});
|
|
353
|
+
* const bucket = new aws.s3.BucketV2("bucket", {grants: [
|
|
354
|
+
* {
|
|
355
|
+
* id: currentUser.then(currentUser => currentUser.id),
|
|
356
|
+
* type: "CanonicalUser",
|
|
357
|
+
* permissions: ["FULL_CONTROL"],
|
|
358
|
+
* },
|
|
359
|
+
* {
|
|
360
|
+
* type: "Group",
|
|
361
|
+
* permissions: [
|
|
362
|
+
* "READ_ACP",
|
|
363
|
+
* "WRITE",
|
|
364
|
+
* ],
|
|
365
|
+
* uri: "http://acs.amazonaws.com/groups/s3/LogDelivery",
|
|
366
|
+
* },
|
|
367
|
+
* ]});
|
|
368
|
+
* ```
|
|
369
|
+
*
|
|
4
370
|
* ## Import
|
|
5
371
|
*
|
|
6
372
|
* S3 bucket can be imported using the `bucket`, e.g.,
|
|
@@ -26,13 +392,14 @@ export declare class BucketV2 extends pulumi.CustomResource {
|
|
|
26
392
|
*/
|
|
27
393
|
static isInstance(obj: any): obj is BucketV2;
|
|
28
394
|
/**
|
|
29
|
-
*
|
|
395
|
+
* Sets the accelerate configuration of an existing bucket. Can be `Enabled` or `Suspended`. Cannot be used in `cn-north-1` or `us-gov-west-1`. This provider will only perform drift detection if a configuration value is provided.
|
|
396
|
+
* Use the resource `aws.s3.BucketAccelerateConfigurationV2` instead.
|
|
30
397
|
*
|
|
31
398
|
* @deprecated Use the aws_s3_bucket_accelerate_configuration resource instead
|
|
32
399
|
*/
|
|
33
400
|
readonly accelerationStatus: pulumi.Output<string>;
|
|
34
401
|
/**
|
|
35
|
-
* The [canned ACL](https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#canned-acl)
|
|
402
|
+
* The [canned ACL](https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#canned-acl) to apply. Valid values are `private`, `public-read`, `public-read-write`, `aws-exec-read`, `authenticated-read`, and `log-delivery-write`. Defaults to `private`. Conflicts with `grant`. This provider will only perform drift detection if a configuration value is provided. Use the resource `aws.s3.BucketAclV2` instead.
|
|
36
403
|
*
|
|
37
404
|
* @deprecated Use the aws_s3_bucket_acl resource instead
|
|
38
405
|
*/
|
|
@@ -58,7 +425,7 @@ export declare class BucketV2 extends pulumi.CustomResource {
|
|
|
58
425
|
*/
|
|
59
426
|
readonly bucketRegionalDomainName: pulumi.Output<string>;
|
|
60
427
|
/**
|
|
61
|
-
*
|
|
428
|
+
* A rule of [Cross-Origin Resource Sharing](https://docs.aws.amazon.com/AmazonS3/latest/dev/cors.html). See CORS rule below for details. This provider will only perform drift detection if a configuration value is provided. Use the resource `aws.s3.BucketCorsConfigurationV2` instead.
|
|
62
429
|
*
|
|
63
430
|
* @deprecated Use the aws_s3_bucket_cors_configuration resource instead
|
|
64
431
|
*/
|
|
@@ -68,7 +435,7 @@ export declare class BucketV2 extends pulumi.CustomResource {
|
|
|
68
435
|
*/
|
|
69
436
|
readonly forceDestroy: pulumi.Output<boolean | undefined>;
|
|
70
437
|
/**
|
|
71
|
-
*
|
|
438
|
+
* An [ACL policy grant](https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#sample-acl). See Grant below for details. Conflicts with `acl`. This provider will only perform drift detection if a configuration value is provided. Use the resource `aws.s3.BucketAclV2` instead.
|
|
72
439
|
*
|
|
73
440
|
* @deprecated Use the aws_s3_bucket_acl resource instead
|
|
74
441
|
*/
|
|
@@ -78,19 +445,25 @@ export declare class BucketV2 extends pulumi.CustomResource {
|
|
|
78
445
|
*/
|
|
79
446
|
readonly hostedZoneId: pulumi.Output<string>;
|
|
80
447
|
/**
|
|
81
|
-
* A configuration of [object lifecycle management](http://docs.aws.amazon.com/AmazonS3/latest/dev/object-lifecycle-mgmt.html).
|
|
448
|
+
* A configuration of [object lifecycle management](http://docs.aws.amazon.com/AmazonS3/latest/dev/object-lifecycle-mgmt.html). See Lifecycle Rule below for details. This provider will only perform drift detection if a configuration value is provided.
|
|
449
|
+
* Use the resource `aws.s3.BucketLifecycleConfigurationV2` instead.
|
|
82
450
|
*
|
|
83
451
|
* @deprecated Use the aws_s3_bucket_lifecycle_configuration resource instead
|
|
84
452
|
*/
|
|
85
453
|
readonly lifecycleRules: pulumi.Output<outputs.s3.BucketV2LifecycleRule[]>;
|
|
86
454
|
/**
|
|
87
|
-
*
|
|
455
|
+
* A configuration of [S3 bucket logging](https://docs.aws.amazon.com/AmazonS3/latest/UG/ManagingBucketLogging.html) parameters. See Logging below for details. This provider will only perform drift detection if a configuration value is provided.
|
|
456
|
+
* Use the resource `aws.s3.BucketLoggingV2` instead.
|
|
88
457
|
*
|
|
89
458
|
* @deprecated Use the aws_s3_bucket_logging resource instead
|
|
90
459
|
*/
|
|
91
460
|
readonly loggings: pulumi.Output<outputs.s3.BucketV2Logging[]>;
|
|
92
461
|
/**
|
|
93
|
-
* A configuration of [S3 object locking](https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lock.html). See Object Lock Configuration below.
|
|
462
|
+
* A configuration of [S3 object locking](https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lock.html). See Object Lock Configuration below for details.
|
|
463
|
+
* This provider wil only perform drift detection if a configuration value is provided.
|
|
464
|
+
* Use the `objectLockEnabled` parameter and the resource `aws.s3.BucketObjectLockConfigurationV2` instead.
|
|
465
|
+
*
|
|
466
|
+
* @deprecated Use the top-level parameter object_lock_enabled and the aws_s3_bucket_object_lock_configuration resource instead
|
|
94
467
|
*/
|
|
95
468
|
readonly objectLockConfiguration: pulumi.Output<outputs.s3.BucketV2ObjectLockConfiguration>;
|
|
96
469
|
/**
|
|
@@ -98,7 +471,8 @@ export declare class BucketV2 extends pulumi.CustomResource {
|
|
|
98
471
|
*/
|
|
99
472
|
readonly objectLockEnabled: pulumi.Output<boolean>;
|
|
100
473
|
/**
|
|
101
|
-
*
|
|
474
|
+
* A valid [bucket policy](https://docs.aws.amazon.com/AmazonS3/latest/dev/example-bucket-policies.html) JSON document. Note that if the policy document is not specific enough (but still valid), this provider may view the policy as constantly changing in a plan. In this case, please make sure you use the verbose/specific version of the policy.
|
|
475
|
+
* Use the resource `aws.s3.BucketPolicy` instead.
|
|
102
476
|
*
|
|
103
477
|
* @deprecated Use the aws_s3_bucket_policy resource instead
|
|
104
478
|
*/
|
|
@@ -108,25 +482,32 @@ export declare class BucketV2 extends pulumi.CustomResource {
|
|
|
108
482
|
*/
|
|
109
483
|
readonly region: pulumi.Output<string>;
|
|
110
484
|
/**
|
|
111
|
-
*
|
|
485
|
+
* A configuration of [replication configuration](http://docs.aws.amazon.com/AmazonS3/latest/dev/crr.html). See Replication Configuration below for details. this provider will only perform drift detection if a configuration value is provided.
|
|
486
|
+
* Use the resource `aws.s3.BucketReplicationConfig` instead.
|
|
112
487
|
*
|
|
113
488
|
* @deprecated Use the aws_s3_bucket_replication_configuration resource instead
|
|
114
489
|
*/
|
|
115
490
|
readonly replicationConfigurations: pulumi.Output<outputs.s3.BucketV2ReplicationConfiguration[]>;
|
|
116
491
|
/**
|
|
117
|
-
*
|
|
492
|
+
* Specifies who should bear the cost of Amazon S3 data transfer.
|
|
493
|
+
* Can be either `BucketOwner` or `Requester`. By default, the owner of the S3 bucket would incur the costs of any data transfer.
|
|
494
|
+
* See [Requester Pays Buckets](http://docs.aws.amazon.com/AmazonS3/latest/dev/RequesterPaysBuckets.html) developer guide for more information.
|
|
495
|
+
* This provider will only perform drift detection if a configuration value is provided.
|
|
496
|
+
* Use the resource `aws.s3.BucketRequestPaymentConfigurationV2` instead.
|
|
118
497
|
*
|
|
119
498
|
* @deprecated Use the aws_s3_bucket_request_payment_configuration resource instead
|
|
120
499
|
*/
|
|
121
500
|
readonly requestPayer: pulumi.Output<string>;
|
|
122
501
|
/**
|
|
123
|
-
*
|
|
502
|
+
* A configuration of [server-side encryption configuration](http://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-encryption.html). See Server Side Encryption Configuration below for details.
|
|
503
|
+
* This provider will only perform drift detection if a configuration value is provided.
|
|
504
|
+
* Use the resource `aws.s3.BucketServerSideEncryptionConfigurationV2` instead.
|
|
124
505
|
*
|
|
125
506
|
* @deprecated Use the aws_s3_bucket_server_side_encryption_configuration resource instead
|
|
126
507
|
*/
|
|
127
508
|
readonly serverSideEncryptionConfigurations: pulumi.Output<outputs.s3.BucketV2ServerSideEncryptionConfiguration[]>;
|
|
128
509
|
/**
|
|
129
|
-
* A map of tags to assign to the bucket. If configured with a provider
|
|
510
|
+
* A map of tags to assign to the bucket. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
|
|
130
511
|
*/
|
|
131
512
|
readonly tags: pulumi.Output<{
|
|
132
513
|
[key: string]: string;
|
|
@@ -138,7 +519,7 @@ export declare class BucketV2 extends pulumi.CustomResource {
|
|
|
138
519
|
[key: string]: string;
|
|
139
520
|
}>;
|
|
140
521
|
/**
|
|
141
|
-
*
|
|
522
|
+
* A configuration of the [S3 bucket versioning state](https://docs.aws.amazon.com/AmazonS3/latest/dev/Versioning.html). See Versioning below for details. This provider will only perform drift detection if a configuration value is provided. Use the resource `aws.s3.BucketVersioningV2` instead.
|
|
142
523
|
*
|
|
143
524
|
* @deprecated Use the aws_s3_bucket_versioning resource instead
|
|
144
525
|
*/
|
|
@@ -156,9 +537,10 @@ export declare class BucketV2 extends pulumi.CustomResource {
|
|
|
156
537
|
*/
|
|
157
538
|
readonly websiteEndpoint: pulumi.Output<string>;
|
|
158
539
|
/**
|
|
159
|
-
*
|
|
540
|
+
* A configuration of the [S3 bucket website](https://docs.aws.amazon.com/AmazonS3/latest/userguide/WebsiteHosting.html). See Website below for details. This provider will only perform drift detection if a configuration value is provided.
|
|
541
|
+
* Use the resource `aws.s3.BucketWebsiteConfigurationV2` instead.
|
|
160
542
|
*
|
|
161
|
-
* @deprecated Use the aws_s3_bucket_website_configuration resource
|
|
543
|
+
* @deprecated Use the aws_s3_bucket_website_configuration resource instead
|
|
162
544
|
*/
|
|
163
545
|
readonly websites: pulumi.Output<outputs.s3.BucketV2Website[]>;
|
|
164
546
|
/**
|
|
@@ -175,13 +557,14 @@ export declare class BucketV2 extends pulumi.CustomResource {
|
|
|
175
557
|
*/
|
|
176
558
|
export interface BucketV2State {
|
|
177
559
|
/**
|
|
178
|
-
*
|
|
560
|
+
* Sets the accelerate configuration of an existing bucket. Can be `Enabled` or `Suspended`. Cannot be used in `cn-north-1` or `us-gov-west-1`. This provider will only perform drift detection if a configuration value is provided.
|
|
561
|
+
* Use the resource `aws.s3.BucketAccelerateConfigurationV2` instead.
|
|
179
562
|
*
|
|
180
563
|
* @deprecated Use the aws_s3_bucket_accelerate_configuration resource instead
|
|
181
564
|
*/
|
|
182
565
|
accelerationStatus?: pulumi.Input<string>;
|
|
183
566
|
/**
|
|
184
|
-
* The [canned ACL](https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#canned-acl)
|
|
567
|
+
* The [canned ACL](https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#canned-acl) to apply. Valid values are `private`, `public-read`, `public-read-write`, `aws-exec-read`, `authenticated-read`, and `log-delivery-write`. Defaults to `private`. Conflicts with `grant`. This provider will only perform drift detection if a configuration value is provided. Use the resource `aws.s3.BucketAclV2` instead.
|
|
185
568
|
*
|
|
186
569
|
* @deprecated Use the aws_s3_bucket_acl resource instead
|
|
187
570
|
*/
|
|
@@ -207,7 +590,7 @@ export interface BucketV2State {
|
|
|
207
590
|
*/
|
|
208
591
|
bucketRegionalDomainName?: pulumi.Input<string>;
|
|
209
592
|
/**
|
|
210
|
-
*
|
|
593
|
+
* A rule of [Cross-Origin Resource Sharing](https://docs.aws.amazon.com/AmazonS3/latest/dev/cors.html). See CORS rule below for details. This provider will only perform drift detection if a configuration value is provided. Use the resource `aws.s3.BucketCorsConfigurationV2` instead.
|
|
211
594
|
*
|
|
212
595
|
* @deprecated Use the aws_s3_bucket_cors_configuration resource instead
|
|
213
596
|
*/
|
|
@@ -217,7 +600,7 @@ export interface BucketV2State {
|
|
|
217
600
|
*/
|
|
218
601
|
forceDestroy?: pulumi.Input<boolean>;
|
|
219
602
|
/**
|
|
220
|
-
*
|
|
603
|
+
* An [ACL policy grant](https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#sample-acl). See Grant below for details. Conflicts with `acl`. This provider will only perform drift detection if a configuration value is provided. Use the resource `aws.s3.BucketAclV2` instead.
|
|
221
604
|
*
|
|
222
605
|
* @deprecated Use the aws_s3_bucket_acl resource instead
|
|
223
606
|
*/
|
|
@@ -227,19 +610,25 @@ export interface BucketV2State {
|
|
|
227
610
|
*/
|
|
228
611
|
hostedZoneId?: pulumi.Input<string>;
|
|
229
612
|
/**
|
|
230
|
-
* A configuration of [object lifecycle management](http://docs.aws.amazon.com/AmazonS3/latest/dev/object-lifecycle-mgmt.html).
|
|
613
|
+
* A configuration of [object lifecycle management](http://docs.aws.amazon.com/AmazonS3/latest/dev/object-lifecycle-mgmt.html). See Lifecycle Rule below for details. This provider will only perform drift detection if a configuration value is provided.
|
|
614
|
+
* Use the resource `aws.s3.BucketLifecycleConfigurationV2` instead.
|
|
231
615
|
*
|
|
232
616
|
* @deprecated Use the aws_s3_bucket_lifecycle_configuration resource instead
|
|
233
617
|
*/
|
|
234
618
|
lifecycleRules?: pulumi.Input<pulumi.Input<inputs.s3.BucketV2LifecycleRule>[]>;
|
|
235
619
|
/**
|
|
236
|
-
*
|
|
620
|
+
* A configuration of [S3 bucket logging](https://docs.aws.amazon.com/AmazonS3/latest/UG/ManagingBucketLogging.html) parameters. See Logging below for details. This provider will only perform drift detection if a configuration value is provided.
|
|
621
|
+
* Use the resource `aws.s3.BucketLoggingV2` instead.
|
|
237
622
|
*
|
|
238
623
|
* @deprecated Use the aws_s3_bucket_logging resource instead
|
|
239
624
|
*/
|
|
240
625
|
loggings?: pulumi.Input<pulumi.Input<inputs.s3.BucketV2Logging>[]>;
|
|
241
626
|
/**
|
|
242
|
-
* A configuration of [S3 object locking](https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lock.html). See Object Lock Configuration below.
|
|
627
|
+
* A configuration of [S3 object locking](https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lock.html). See Object Lock Configuration below for details.
|
|
628
|
+
* This provider wil only perform drift detection if a configuration value is provided.
|
|
629
|
+
* Use the `objectLockEnabled` parameter and the resource `aws.s3.BucketObjectLockConfigurationV2` instead.
|
|
630
|
+
*
|
|
631
|
+
* @deprecated Use the top-level parameter object_lock_enabled and the aws_s3_bucket_object_lock_configuration resource instead
|
|
243
632
|
*/
|
|
244
633
|
objectLockConfiguration?: pulumi.Input<inputs.s3.BucketV2ObjectLockConfiguration>;
|
|
245
634
|
/**
|
|
@@ -247,7 +636,8 @@ export interface BucketV2State {
|
|
|
247
636
|
*/
|
|
248
637
|
objectLockEnabled?: pulumi.Input<boolean>;
|
|
249
638
|
/**
|
|
250
|
-
*
|
|
639
|
+
* A valid [bucket policy](https://docs.aws.amazon.com/AmazonS3/latest/dev/example-bucket-policies.html) JSON document. Note that if the policy document is not specific enough (but still valid), this provider may view the policy as constantly changing in a plan. In this case, please make sure you use the verbose/specific version of the policy.
|
|
640
|
+
* Use the resource `aws.s3.BucketPolicy` instead.
|
|
251
641
|
*
|
|
252
642
|
* @deprecated Use the aws_s3_bucket_policy resource instead
|
|
253
643
|
*/
|
|
@@ -257,25 +647,32 @@ export interface BucketV2State {
|
|
|
257
647
|
*/
|
|
258
648
|
region?: pulumi.Input<string>;
|
|
259
649
|
/**
|
|
260
|
-
*
|
|
650
|
+
* A configuration of [replication configuration](http://docs.aws.amazon.com/AmazonS3/latest/dev/crr.html). See Replication Configuration below for details. this provider will only perform drift detection if a configuration value is provided.
|
|
651
|
+
* Use the resource `aws.s3.BucketReplicationConfig` instead.
|
|
261
652
|
*
|
|
262
653
|
* @deprecated Use the aws_s3_bucket_replication_configuration resource instead
|
|
263
654
|
*/
|
|
264
655
|
replicationConfigurations?: pulumi.Input<pulumi.Input<inputs.s3.BucketV2ReplicationConfiguration>[]>;
|
|
265
656
|
/**
|
|
266
|
-
*
|
|
657
|
+
* Specifies who should bear the cost of Amazon S3 data transfer.
|
|
658
|
+
* Can be either `BucketOwner` or `Requester`. By default, the owner of the S3 bucket would incur the costs of any data transfer.
|
|
659
|
+
* See [Requester Pays Buckets](http://docs.aws.amazon.com/AmazonS3/latest/dev/RequesterPaysBuckets.html) developer guide for more information.
|
|
660
|
+
* This provider will only perform drift detection if a configuration value is provided.
|
|
661
|
+
* Use the resource `aws.s3.BucketRequestPaymentConfigurationV2` instead.
|
|
267
662
|
*
|
|
268
663
|
* @deprecated Use the aws_s3_bucket_request_payment_configuration resource instead
|
|
269
664
|
*/
|
|
270
665
|
requestPayer?: pulumi.Input<string>;
|
|
271
666
|
/**
|
|
272
|
-
*
|
|
667
|
+
* A configuration of [server-side encryption configuration](http://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-encryption.html). See Server Side Encryption Configuration below for details.
|
|
668
|
+
* This provider will only perform drift detection if a configuration value is provided.
|
|
669
|
+
* Use the resource `aws.s3.BucketServerSideEncryptionConfigurationV2` instead.
|
|
273
670
|
*
|
|
274
671
|
* @deprecated Use the aws_s3_bucket_server_side_encryption_configuration resource instead
|
|
275
672
|
*/
|
|
276
673
|
serverSideEncryptionConfigurations?: pulumi.Input<pulumi.Input<inputs.s3.BucketV2ServerSideEncryptionConfiguration>[]>;
|
|
277
674
|
/**
|
|
278
|
-
* A map of tags to assign to the bucket. If configured with a provider
|
|
675
|
+
* A map of tags to assign to the bucket. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
|
|
279
676
|
*/
|
|
280
677
|
tags?: pulumi.Input<{
|
|
281
678
|
[key: string]: pulumi.Input<string>;
|
|
@@ -287,7 +684,7 @@ export interface BucketV2State {
|
|
|
287
684
|
[key: string]: pulumi.Input<string>;
|
|
288
685
|
}>;
|
|
289
686
|
/**
|
|
290
|
-
*
|
|
687
|
+
* A configuration of the [S3 bucket versioning state](https://docs.aws.amazon.com/AmazonS3/latest/dev/Versioning.html). See Versioning below for details. This provider will only perform drift detection if a configuration value is provided. Use the resource `aws.s3.BucketVersioningV2` instead.
|
|
291
688
|
*
|
|
292
689
|
* @deprecated Use the aws_s3_bucket_versioning resource instead
|
|
293
690
|
*/
|
|
@@ -305,9 +702,10 @@ export interface BucketV2State {
|
|
|
305
702
|
*/
|
|
306
703
|
websiteEndpoint?: pulumi.Input<string>;
|
|
307
704
|
/**
|
|
308
|
-
*
|
|
705
|
+
* A configuration of the [S3 bucket website](https://docs.aws.amazon.com/AmazonS3/latest/userguide/WebsiteHosting.html). See Website below for details. This provider will only perform drift detection if a configuration value is provided.
|
|
706
|
+
* Use the resource `aws.s3.BucketWebsiteConfigurationV2` instead.
|
|
309
707
|
*
|
|
310
|
-
* @deprecated Use the aws_s3_bucket_website_configuration resource
|
|
708
|
+
* @deprecated Use the aws_s3_bucket_website_configuration resource instead
|
|
311
709
|
*/
|
|
312
710
|
websites?: pulumi.Input<pulumi.Input<inputs.s3.BucketV2Website>[]>;
|
|
313
711
|
}
|
|
@@ -315,6 +713,19 @@ export interface BucketV2State {
|
|
|
315
713
|
* The set of arguments for constructing a BucketV2 resource.
|
|
316
714
|
*/
|
|
317
715
|
export interface BucketV2Args {
|
|
716
|
+
/**
|
|
717
|
+
* Sets the accelerate configuration of an existing bucket. Can be `Enabled` or `Suspended`. Cannot be used in `cn-north-1` or `us-gov-west-1`. This provider will only perform drift detection if a configuration value is provided.
|
|
718
|
+
* Use the resource `aws.s3.BucketAccelerateConfigurationV2` instead.
|
|
719
|
+
*
|
|
720
|
+
* @deprecated Use the aws_s3_bucket_accelerate_configuration resource instead
|
|
721
|
+
*/
|
|
722
|
+
accelerationStatus?: pulumi.Input<string>;
|
|
723
|
+
/**
|
|
724
|
+
* The [canned ACL](https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#canned-acl) to apply. Valid values are `private`, `public-read`, `public-read-write`, `aws-exec-read`, `authenticated-read`, and `log-delivery-write`. Defaults to `private`. Conflicts with `grant`. This provider will only perform drift detection if a configuration value is provided. Use the resource `aws.s3.BucketAclV2` instead.
|
|
725
|
+
*
|
|
726
|
+
* @deprecated Use the aws_s3_bucket_acl resource instead
|
|
727
|
+
*/
|
|
728
|
+
acl?: pulumi.Input<string>;
|
|
318
729
|
/**
|
|
319
730
|
* The ARN of the bucket. Will be of format `arn:aws:s3:::bucketname`.
|
|
320
731
|
*/
|
|
@@ -327,16 +738,46 @@ export interface BucketV2Args {
|
|
|
327
738
|
* Creates a unique bucket name beginning with the specified prefix. Conflicts with `bucket`. Must be lowercase and less than or equal to 37 characters in length. A full list of bucket naming rules [may be found here](https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucketnamingrules.html).
|
|
328
739
|
*/
|
|
329
740
|
bucketPrefix?: pulumi.Input<string>;
|
|
741
|
+
/**
|
|
742
|
+
* A rule of [Cross-Origin Resource Sharing](https://docs.aws.amazon.com/AmazonS3/latest/dev/cors.html). See CORS rule below for details. This provider will only perform drift detection if a configuration value is provided. Use the resource `aws.s3.BucketCorsConfigurationV2` instead.
|
|
743
|
+
*
|
|
744
|
+
* @deprecated Use the aws_s3_bucket_cors_configuration resource instead
|
|
745
|
+
*/
|
|
746
|
+
corsRules?: pulumi.Input<pulumi.Input<inputs.s3.BucketV2CorsRule>[]>;
|
|
330
747
|
/**
|
|
331
748
|
* A boolean that indicates all objects (including any [locked objects](https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lock-overview.html)) should be deleted from the bucket so that the bucket can be destroyed without error. These objects are *not* recoverable.
|
|
332
749
|
*/
|
|
333
750
|
forceDestroy?: pulumi.Input<boolean>;
|
|
751
|
+
/**
|
|
752
|
+
* An [ACL policy grant](https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#sample-acl). See Grant below for details. Conflicts with `acl`. This provider will only perform drift detection if a configuration value is provided. Use the resource `aws.s3.BucketAclV2` instead.
|
|
753
|
+
*
|
|
754
|
+
* @deprecated Use the aws_s3_bucket_acl resource instead
|
|
755
|
+
*/
|
|
756
|
+
grants?: pulumi.Input<pulumi.Input<inputs.s3.BucketV2Grant>[]>;
|
|
334
757
|
/**
|
|
335
758
|
* The [Route 53 Hosted Zone ID](https://docs.aws.amazon.com/general/latest/gr/rande.html#s3_website_region_endpoints) for this bucket's region.
|
|
336
759
|
*/
|
|
337
760
|
hostedZoneId?: pulumi.Input<string>;
|
|
338
761
|
/**
|
|
339
|
-
* A configuration of [
|
|
762
|
+
* A configuration of [object lifecycle management](http://docs.aws.amazon.com/AmazonS3/latest/dev/object-lifecycle-mgmt.html). See Lifecycle Rule below for details. This provider will only perform drift detection if a configuration value is provided.
|
|
763
|
+
* Use the resource `aws.s3.BucketLifecycleConfigurationV2` instead.
|
|
764
|
+
*
|
|
765
|
+
* @deprecated Use the aws_s3_bucket_lifecycle_configuration resource instead
|
|
766
|
+
*/
|
|
767
|
+
lifecycleRules?: pulumi.Input<pulumi.Input<inputs.s3.BucketV2LifecycleRule>[]>;
|
|
768
|
+
/**
|
|
769
|
+
* A configuration of [S3 bucket logging](https://docs.aws.amazon.com/AmazonS3/latest/UG/ManagingBucketLogging.html) parameters. See Logging below for details. This provider will only perform drift detection if a configuration value is provided.
|
|
770
|
+
* Use the resource `aws.s3.BucketLoggingV2` instead.
|
|
771
|
+
*
|
|
772
|
+
* @deprecated Use the aws_s3_bucket_logging resource instead
|
|
773
|
+
*/
|
|
774
|
+
loggings?: pulumi.Input<pulumi.Input<inputs.s3.BucketV2Logging>[]>;
|
|
775
|
+
/**
|
|
776
|
+
* A configuration of [S3 object locking](https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lock.html). See Object Lock Configuration below for details.
|
|
777
|
+
* This provider wil only perform drift detection if a configuration value is provided.
|
|
778
|
+
* Use the `objectLockEnabled` parameter and the resource `aws.s3.BucketObjectLockConfigurationV2` instead.
|
|
779
|
+
*
|
|
780
|
+
* @deprecated Use the top-level parameter object_lock_enabled and the aws_s3_bucket_object_lock_configuration resource instead
|
|
340
781
|
*/
|
|
341
782
|
objectLockConfiguration?: pulumi.Input<inputs.s3.BucketV2ObjectLockConfiguration>;
|
|
342
783
|
/**
|
|
@@ -344,9 +785,54 @@ export interface BucketV2Args {
|
|
|
344
785
|
*/
|
|
345
786
|
objectLockEnabled?: pulumi.Input<boolean>;
|
|
346
787
|
/**
|
|
347
|
-
* A
|
|
788
|
+
* A valid [bucket policy](https://docs.aws.amazon.com/AmazonS3/latest/dev/example-bucket-policies.html) JSON document. Note that if the policy document is not specific enough (but still valid), this provider may view the policy as constantly changing in a plan. In this case, please make sure you use the verbose/specific version of the policy.
|
|
789
|
+
* Use the resource `aws.s3.BucketPolicy` instead.
|
|
790
|
+
*
|
|
791
|
+
* @deprecated Use the aws_s3_bucket_policy resource instead
|
|
792
|
+
*/
|
|
793
|
+
policy?: pulumi.Input<string>;
|
|
794
|
+
/**
|
|
795
|
+
* A configuration of [replication configuration](http://docs.aws.amazon.com/AmazonS3/latest/dev/crr.html). See Replication Configuration below for details. this provider will only perform drift detection if a configuration value is provided.
|
|
796
|
+
* Use the resource `aws.s3.BucketReplicationConfig` instead.
|
|
797
|
+
*
|
|
798
|
+
* @deprecated Use the aws_s3_bucket_replication_configuration resource instead
|
|
799
|
+
*/
|
|
800
|
+
replicationConfigurations?: pulumi.Input<pulumi.Input<inputs.s3.BucketV2ReplicationConfiguration>[]>;
|
|
801
|
+
/**
|
|
802
|
+
* Specifies who should bear the cost of Amazon S3 data transfer.
|
|
803
|
+
* Can be either `BucketOwner` or `Requester`. By default, the owner of the S3 bucket would incur the costs of any data transfer.
|
|
804
|
+
* See [Requester Pays Buckets](http://docs.aws.amazon.com/AmazonS3/latest/dev/RequesterPaysBuckets.html) developer guide for more information.
|
|
805
|
+
* This provider will only perform drift detection if a configuration value is provided.
|
|
806
|
+
* Use the resource `aws.s3.BucketRequestPaymentConfigurationV2` instead.
|
|
807
|
+
*
|
|
808
|
+
* @deprecated Use the aws_s3_bucket_request_payment_configuration resource instead
|
|
809
|
+
*/
|
|
810
|
+
requestPayer?: pulumi.Input<string>;
|
|
811
|
+
/**
|
|
812
|
+
* A configuration of [server-side encryption configuration](http://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-encryption.html). See Server Side Encryption Configuration below for details.
|
|
813
|
+
* This provider will only perform drift detection if a configuration value is provided.
|
|
814
|
+
* Use the resource `aws.s3.BucketServerSideEncryptionConfigurationV2` instead.
|
|
815
|
+
*
|
|
816
|
+
* @deprecated Use the aws_s3_bucket_server_side_encryption_configuration resource instead
|
|
817
|
+
*/
|
|
818
|
+
serverSideEncryptionConfigurations?: pulumi.Input<pulumi.Input<inputs.s3.BucketV2ServerSideEncryptionConfiguration>[]>;
|
|
819
|
+
/**
|
|
820
|
+
* A map of tags to assign to the bucket. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
|
|
348
821
|
*/
|
|
349
822
|
tags?: pulumi.Input<{
|
|
350
823
|
[key: string]: pulumi.Input<string>;
|
|
351
824
|
}>;
|
|
825
|
+
/**
|
|
826
|
+
* A configuration of the [S3 bucket versioning state](https://docs.aws.amazon.com/AmazonS3/latest/dev/Versioning.html). See Versioning below for details. This provider will only perform drift detection if a configuration value is provided. Use the resource `aws.s3.BucketVersioningV2` instead.
|
|
827
|
+
*
|
|
828
|
+
* @deprecated Use the aws_s3_bucket_versioning resource instead
|
|
829
|
+
*/
|
|
830
|
+
versionings?: pulumi.Input<pulumi.Input<inputs.s3.BucketV2Versioning>[]>;
|
|
831
|
+
/**
|
|
832
|
+
* A configuration of the [S3 bucket website](https://docs.aws.amazon.com/AmazonS3/latest/userguide/WebsiteHosting.html). See Website below for details. This provider will only perform drift detection if a configuration value is provided.
|
|
833
|
+
* Use the resource `aws.s3.BucketWebsiteConfigurationV2` instead.
|
|
834
|
+
*
|
|
835
|
+
* @deprecated Use the aws_s3_bucket_website_configuration resource instead
|
|
836
|
+
*/
|
|
837
|
+
websites?: pulumi.Input<pulumi.Input<inputs.s3.BucketV2Website>[]>;
|
|
352
838
|
}
|