@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.js
CHANGED
|
@@ -6,6 +6,372 @@ exports.BucketV2 = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("../utilities");
|
|
8
8
|
/**
|
|
9
|
+
* Provides a S3 bucket resource.
|
|
10
|
+
*
|
|
11
|
+
* > 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.
|
|
12
|
+
*
|
|
13
|
+
* > **NOTE on S3 Bucket Accelerate Configuration:** S3 Bucket Accelerate can be configured in either the standalone resource `aws.s3.BucketAccelerateConfigurationV2`
|
|
14
|
+
* or with the deprecated parameter `accelerationStatus` in the resource `aws.s3.BucketV2`.
|
|
15
|
+
* Configuring with both will cause inconsistencies and may overwrite configuration.
|
|
16
|
+
*
|
|
17
|
+
* > **NOTE on S3 Bucket canned ACL Configuration:** S3 Bucket canned ACL can be configured in either the standalone resource `aws.s3.BucketAclV2`
|
|
18
|
+
* or with the deprecated parameter `acl` in the resource `aws.s3.BucketV2`.
|
|
19
|
+
* Configuring with both will cause inconsistencies and may overwrite configuration.
|
|
20
|
+
*
|
|
21
|
+
* > **NOTE on S3 Bucket ACL Grants Configuration:** S3 Bucket grants can be configured in either the standalone resource `aws.s3.BucketAclV2`
|
|
22
|
+
* or with the deprecated parameter `grant` in the resource `aws.s3.BucketV2`.
|
|
23
|
+
* Configuring with both will cause inconsistencies and may overwrite configuration.
|
|
24
|
+
*
|
|
25
|
+
* > **NOTE on S3 Bucket CORS Configuration:** S3 Bucket CORS can be configured in either the standalone resource `aws.s3.BucketCorsConfigurationV2`
|
|
26
|
+
* or with the deprecated parameter `corsRule` in the resource `aws.s3.BucketV2`.
|
|
27
|
+
* Configuring with both will cause inconsistencies and may overwrite configuration.
|
|
28
|
+
*
|
|
29
|
+
* > **NOTE on S3 Bucket Lifecycle Configuration:** S3 Bucket Lifecycle can be configured in either the standalone resource `aws.s3.BucketLifecycleConfigurationV2`
|
|
30
|
+
* or with the deprecated parameter `lifecycleRule` in the resource `aws.s3.BucketV2`.
|
|
31
|
+
* Configuring with both will cause inconsistencies and may overwrite configuration.
|
|
32
|
+
*
|
|
33
|
+
* > **NOTE on S3 Bucket Logging Configuration:** S3 Bucket logging can be configured in either the standalone resource `aws.s3.BucketLoggingV2`
|
|
34
|
+
* or with the deprecated parameter `logging` in the resource `aws.s3.BucketV2`.
|
|
35
|
+
* Configuring with both will cause inconsistencies and may overwrite configuration.
|
|
36
|
+
*
|
|
37
|
+
* > **NOTE on S3 Bucket Object Lock Configuration:** S3 Bucket Object Lock can be configured in either the standalone resource `aws.s3.BucketObjectLockConfigurationV2`
|
|
38
|
+
* or with the deprecated parameter `objectLockConfiguration` in the resource `aws.s3.BucketV2`.
|
|
39
|
+
* Configuring with both will cause inconsistencies and may overwrite configuration.
|
|
40
|
+
*
|
|
41
|
+
* > **NOTE on S3 Bucket Policy Configuration:** S3 Bucket Policy can be configured in either the standalone resource `aws.s3.BucketPolicy`
|
|
42
|
+
* or with the deprecated parameter `policy` in the resource `aws.s3.BucketV2`.
|
|
43
|
+
* Configuring with both will cause inconsistencies and may overwrite configuration.
|
|
44
|
+
*
|
|
45
|
+
* > **NOTE on S3 Bucket Replication Configuration:** S3 Bucket Replication can be configured in either the standalone resource `awsS3BucketReplicatonConfiguration`
|
|
46
|
+
* or with the deprecated parameter `replicationConfiguration` in the resource `aws.s3.BucketV2`.
|
|
47
|
+
* Configuring with both will cause inconsistencies and may overwrite configuration.
|
|
48
|
+
*
|
|
49
|
+
* > **NOTE on S3 Bucket Request Payment Configuration:** S3 Bucket Request Payment can be configured in either the standalone resource `aws.s3.BucketRequestPaymentConfigurationV2`
|
|
50
|
+
* or with the deprecated parameter `requestPayer` in the resource `aws.s3.BucketV2`.
|
|
51
|
+
* Configuring with both will cause inconsistencies and may overwrite configuration.
|
|
52
|
+
*
|
|
53
|
+
* > **NOTE on S3 Bucket Server Side Encryption Configuration:** S3 Bucket Server Side Encryption can be configured in either the standalone resource `aws.s3.BucketServerSideEncryptionConfigurationV2`
|
|
54
|
+
* or with the deprecated parameter `serverSideEncryptionConfiguration` in the resource `aws.s3.BucketV2`.
|
|
55
|
+
* Configuring with both will cause inconsistencies and may overwrite configuration.
|
|
56
|
+
*
|
|
57
|
+
* > **NOTE on S3 Bucket Versioning Configuration:** S3 Bucket versioning can be configured in either the standalone resource `aws.s3.BucketVersioningV2`
|
|
58
|
+
* or with the deprecated parameter `versioning` in the resource `aws.s3.BucketV2`.
|
|
59
|
+
* Configuring with both will cause inconsistencies and may overwrite configuration.
|
|
60
|
+
*
|
|
61
|
+
* > **NOTE on S3 Bucket Website Configuration:** S3 Bucket Website can be configured in either the standalone resource `aws.s3.BucketWebsiteConfigurationV2`
|
|
62
|
+
* or with the deprecated parameter `website` in the resource `aws.s3.BucketV2`.
|
|
63
|
+
* Configuring with both will cause inconsistencies and may overwrite configuration.
|
|
64
|
+
*
|
|
65
|
+
* ## Example Usage
|
|
66
|
+
* ### Private Bucket w/ Tags
|
|
67
|
+
*
|
|
68
|
+
* ```typescript
|
|
69
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
70
|
+
* import * as aws from "@pulumi/aws";
|
|
71
|
+
*
|
|
72
|
+
* const bucketV2 = new aws.s3.BucketV2("bucketV2", {tags: {
|
|
73
|
+
* Name: "My bucket",
|
|
74
|
+
* Environment: "Dev",
|
|
75
|
+
* }});
|
|
76
|
+
* const example = new aws.s3.BucketAclV2("example", {
|
|
77
|
+
* bucket: bucketV2.id,
|
|
78
|
+
* acl: "private",
|
|
79
|
+
* });
|
|
80
|
+
* ```
|
|
81
|
+
* ### Static Website Hosting
|
|
82
|
+
*
|
|
83
|
+
* ```typescript
|
|
84
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
85
|
+
* import * as aws from "@pulumi/aws";
|
|
86
|
+
* import * from "fs";
|
|
87
|
+
*
|
|
88
|
+
* const bucketV2 = new aws.s3.BucketV2("bucketV2", {
|
|
89
|
+
* acl: "public-read",
|
|
90
|
+
* policy: fs.readFileSync("policy.json"),
|
|
91
|
+
* websites: [{
|
|
92
|
+
* indexDocument: "index.html",
|
|
93
|
+
* errorDocument: "error.html",
|
|
94
|
+
* routingRules: `[{
|
|
95
|
+
* "Condition": {
|
|
96
|
+
* "KeyPrefixEquals": "docs/"
|
|
97
|
+
* },
|
|
98
|
+
* "Redirect": {
|
|
99
|
+
* "ReplaceKeyPrefixWith": "documents/"
|
|
100
|
+
* }
|
|
101
|
+
* }]
|
|
102
|
+
* `,
|
|
103
|
+
* }],
|
|
104
|
+
* });
|
|
105
|
+
* ```
|
|
106
|
+
* ### Using CORS
|
|
107
|
+
*
|
|
108
|
+
* ```typescript
|
|
109
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
110
|
+
* import * as aws from "@pulumi/aws";
|
|
111
|
+
*
|
|
112
|
+
* const bucketV2 = new aws.s3.BucketV2("b", {
|
|
113
|
+
* acl: "public-read",
|
|
114
|
+
* corsRules: [{
|
|
115
|
+
* allowedHeaders: ["*"],
|
|
116
|
+
* allowedMethods: [
|
|
117
|
+
* "PUT",
|
|
118
|
+
* "POST",
|
|
119
|
+
* ],
|
|
120
|
+
* allowedOrigins: ["https://s3-website-test.hashicorp.com"],
|
|
121
|
+
* exposeHeaders: ["ETag"],
|
|
122
|
+
* maxAgeSeconds: 3000,
|
|
123
|
+
* }],
|
|
124
|
+
* });
|
|
125
|
+
* ```
|
|
126
|
+
* ### Using versioning
|
|
127
|
+
*
|
|
128
|
+
* ```typescript
|
|
129
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
130
|
+
* import * as aws from "@pulumi/aws";
|
|
131
|
+
*
|
|
132
|
+
* const bucketV2 = new aws.s3.BucketV2("b", {
|
|
133
|
+
* acl: "private",
|
|
134
|
+
* versionings: [{
|
|
135
|
+
* enabled: true,
|
|
136
|
+
* }],
|
|
137
|
+
* });
|
|
138
|
+
* ```
|
|
139
|
+
* ### Enable Logging
|
|
140
|
+
*
|
|
141
|
+
* ```typescript
|
|
142
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
143
|
+
* import * as aws from "@pulumi/aws";
|
|
144
|
+
*
|
|
145
|
+
* const logBucket = new aws.s3.BucketV2("logBucket", {acl: "log-delivery-write"});
|
|
146
|
+
* const bucketV2 = new aws.s3.BucketV2("bucketV2", {
|
|
147
|
+
* acl: "private",
|
|
148
|
+
* loggings: [{
|
|
149
|
+
* targetBucket: logBucket.id,
|
|
150
|
+
* targetPrefix: "log/",
|
|
151
|
+
* }],
|
|
152
|
+
* });
|
|
153
|
+
* ```
|
|
154
|
+
* ### Using object lifecycle
|
|
155
|
+
*
|
|
156
|
+
* ```typescript
|
|
157
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
158
|
+
* import * as aws from "@pulumi/aws";
|
|
159
|
+
*
|
|
160
|
+
* const bucket = new aws.s3.BucketV2("bucket", {
|
|
161
|
+
* acl: "private",
|
|
162
|
+
* lifecycleRules: [
|
|
163
|
+
* {
|
|
164
|
+
* enabled: true,
|
|
165
|
+
* expirations: [{
|
|
166
|
+
* days: 90,
|
|
167
|
+
* }],
|
|
168
|
+
* id: "log",
|
|
169
|
+
* prefix: "log/",
|
|
170
|
+
* tags: {
|
|
171
|
+
* autoclean: "true",
|
|
172
|
+
* rule: "log",
|
|
173
|
+
* },
|
|
174
|
+
* transitions: [
|
|
175
|
+
* {
|
|
176
|
+
* days: 30,
|
|
177
|
+
* storageClass: "STANDARD_IA", // or "ONEZONE_IA"
|
|
178
|
+
* },
|
|
179
|
+
* {
|
|
180
|
+
* days: 60,
|
|
181
|
+
* storageClass: "GLACIER",
|
|
182
|
+
* },
|
|
183
|
+
* ],
|
|
184
|
+
* },
|
|
185
|
+
* {
|
|
186
|
+
* enabled: true,
|
|
187
|
+
* expirations: [{
|
|
188
|
+
* date: "2016-01-12",
|
|
189
|
+
* }],
|
|
190
|
+
* id: "tmp",
|
|
191
|
+
* prefix: "tmp/",
|
|
192
|
+
* },
|
|
193
|
+
* ],
|
|
194
|
+
* });
|
|
195
|
+
* const versioningBucket = new aws.s3.BucketV2("versioning_bucket", {
|
|
196
|
+
* acl: "private",
|
|
197
|
+
* lifecycleRules: [{
|
|
198
|
+
* enabled: true,
|
|
199
|
+
* noncurrentVersionExpirations: [{
|
|
200
|
+
* days: 90,
|
|
201
|
+
* }],
|
|
202
|
+
* noncurrentVersionTransitions: [
|
|
203
|
+
* {
|
|
204
|
+
* days: 30,
|
|
205
|
+
* storageClass: "STANDARD_IA",
|
|
206
|
+
* },
|
|
207
|
+
* {
|
|
208
|
+
* days: 60,
|
|
209
|
+
* storageClass: "GLACIER",
|
|
210
|
+
* },
|
|
211
|
+
* ],
|
|
212
|
+
* prefix: "config/",
|
|
213
|
+
* }],
|
|
214
|
+
* versionings: [{
|
|
215
|
+
* enabled: true,
|
|
216
|
+
* }],
|
|
217
|
+
* });
|
|
218
|
+
* ```
|
|
219
|
+
* ### Using object lock configuration
|
|
220
|
+
*
|
|
221
|
+
* ```typescript
|
|
222
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
223
|
+
* import * as aws from "@pulumi/aws";
|
|
224
|
+
*
|
|
225
|
+
* const example = new aws.s3.BucketV2("example", {
|
|
226
|
+
* objectLockConfiguration: {
|
|
227
|
+
* objectLockEnabled: "Enabled",
|
|
228
|
+
* rules: [{
|
|
229
|
+
* defaultRetentions: [{
|
|
230
|
+
* days: 5,
|
|
231
|
+
* mode: "COMPLIANCE",
|
|
232
|
+
* }],
|
|
233
|
+
* }],
|
|
234
|
+
* },
|
|
235
|
+
* });
|
|
236
|
+
* ```
|
|
237
|
+
* ### Using replication configuration
|
|
238
|
+
*
|
|
239
|
+
* ```typescript
|
|
240
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
241
|
+
* import * as aws from "@pulumi/aws";
|
|
242
|
+
*
|
|
243
|
+
* const central = new aws.Provider("central", {region: "eu-central-1"});
|
|
244
|
+
* const replicationRole = new aws.iam.Role("replicationRole", {assumeRolePolicy: `{
|
|
245
|
+
* "Version": "2012-10-17",
|
|
246
|
+
* "Statement": [
|
|
247
|
+
* {
|
|
248
|
+
* "Action": "sts:AssumeRole",
|
|
249
|
+
* "Principal": {
|
|
250
|
+
* "Service": "s3.amazonaws.com"
|
|
251
|
+
* },
|
|
252
|
+
* "Effect": "Allow",
|
|
253
|
+
* "Sid": ""
|
|
254
|
+
* }
|
|
255
|
+
* ]
|
|
256
|
+
* }
|
|
257
|
+
* `});
|
|
258
|
+
* const destination = new aws.s3.BucketV2("destination", {versionings: [{
|
|
259
|
+
* enabled: true,
|
|
260
|
+
* }]});
|
|
261
|
+
* const source = new aws.s3.BucketV2("source", {
|
|
262
|
+
* acl: "private",
|
|
263
|
+
* versionings: [{
|
|
264
|
+
* enabled: true,
|
|
265
|
+
* }],
|
|
266
|
+
* replicationConfigurations: [{
|
|
267
|
+
* role: replicationRole.arn,
|
|
268
|
+
* rules: [{
|
|
269
|
+
* id: "foobar",
|
|
270
|
+
* status: "Enabled",
|
|
271
|
+
* filters: [{
|
|
272
|
+
* tags: {},
|
|
273
|
+
* }],
|
|
274
|
+
* destinations: [{
|
|
275
|
+
* bucket: destination.arn,
|
|
276
|
+
* storageClass: "STANDARD",
|
|
277
|
+
* replicationTimes: [{
|
|
278
|
+
* status: "Enabled",
|
|
279
|
+
* minutes: 15,
|
|
280
|
+
* }],
|
|
281
|
+
* metrics: [{
|
|
282
|
+
* status: "Enabled",
|
|
283
|
+
* minutes: 15,
|
|
284
|
+
* }],
|
|
285
|
+
* }],
|
|
286
|
+
* }],
|
|
287
|
+
* }],
|
|
288
|
+
* }, {
|
|
289
|
+
* provider: aws.central,
|
|
290
|
+
* });
|
|
291
|
+
* const replicationPolicy = new aws.iam.Policy("replicationPolicy", {policy: pulumi.interpolate`{
|
|
292
|
+
* "Version": "2012-10-17",
|
|
293
|
+
* "Statement": [
|
|
294
|
+
* {
|
|
295
|
+
* "Action": [
|
|
296
|
+
* "s3:GetReplicationConfiguration",
|
|
297
|
+
* "s3:ListBucket"
|
|
298
|
+
* ],
|
|
299
|
+
* "Effect": "Allow",
|
|
300
|
+
* "Resource": [
|
|
301
|
+
* "${source.arn}"
|
|
302
|
+
* ]
|
|
303
|
+
* },
|
|
304
|
+
* {
|
|
305
|
+
* "Action": [
|
|
306
|
+
* "s3:GetObjectVersionForReplication",
|
|
307
|
+
* "s3:GetObjectVersionAcl",
|
|
308
|
+
* "s3:GetObjectVersionTagging"
|
|
309
|
+
* ],
|
|
310
|
+
* "Effect": "Allow",
|
|
311
|
+
* "Resource": [
|
|
312
|
+
* "${source.arn}/*"
|
|
313
|
+
* ]
|
|
314
|
+
* },
|
|
315
|
+
* {
|
|
316
|
+
* "Action": [
|
|
317
|
+
* "s3:ReplicateObject",
|
|
318
|
+
* "s3:ReplicateDelete",
|
|
319
|
+
* "s3:ReplicateTags"
|
|
320
|
+
* ],
|
|
321
|
+
* "Effect": "Allow",
|
|
322
|
+
* "Resource": "${destination.arn}/*"
|
|
323
|
+
* }
|
|
324
|
+
* ]
|
|
325
|
+
* }
|
|
326
|
+
* `});
|
|
327
|
+
* const replicationRolePolicyAttachment = new aws.iam.RolePolicyAttachment("replicationRolePolicyAttachment", {
|
|
328
|
+
* role: replicationRole.name,
|
|
329
|
+
* policyArn: replicationPolicy.arn,
|
|
330
|
+
* });
|
|
331
|
+
* ```
|
|
332
|
+
* ### Enable Default Server Side Encryption
|
|
333
|
+
*
|
|
334
|
+
* ```typescript
|
|
335
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
336
|
+
* import * as aws from "@pulumi/aws";
|
|
337
|
+
*
|
|
338
|
+
* const mykey = new aws.kms.Key("mykey", {
|
|
339
|
+
* description: "This key is used to encrypt bucket objects",
|
|
340
|
+
* deletionWindowInDays: 10,
|
|
341
|
+
* });
|
|
342
|
+
* const mybucket = new aws.s3.BucketV2("mybucket", {serverSideEncryptionConfigurations: [{
|
|
343
|
+
* rules: [{
|
|
344
|
+
* applyServerSideEncryptionByDefaults: [{
|
|
345
|
+
* kmsMasterKeyId: mykey.arn,
|
|
346
|
+
* sseAlgorithm: "aws:kms",
|
|
347
|
+
* }],
|
|
348
|
+
* }],
|
|
349
|
+
* }]});
|
|
350
|
+
* ```
|
|
351
|
+
* ### Using ACL policy grants
|
|
352
|
+
*
|
|
353
|
+
* ```typescript
|
|
354
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
355
|
+
* import * as aws from "@pulumi/aws";
|
|
356
|
+
*
|
|
357
|
+
* const currentUser = aws.s3.getCanonicalUserId({});
|
|
358
|
+
* const bucket = new aws.s3.BucketV2("bucket", {grants: [
|
|
359
|
+
* {
|
|
360
|
+
* id: currentUser.then(currentUser => currentUser.id),
|
|
361
|
+
* type: "CanonicalUser",
|
|
362
|
+
* permissions: ["FULL_CONTROL"],
|
|
363
|
+
* },
|
|
364
|
+
* {
|
|
365
|
+
* type: "Group",
|
|
366
|
+
* permissions: [
|
|
367
|
+
* "READ_ACP",
|
|
368
|
+
* "WRITE",
|
|
369
|
+
* ],
|
|
370
|
+
* uri: "http://acs.amazonaws.com/groups/s3/LogDelivery",
|
|
371
|
+
* },
|
|
372
|
+
* ]});
|
|
373
|
+
* ```
|
|
374
|
+
*
|
|
9
375
|
* ## Import
|
|
10
376
|
*
|
|
11
377
|
* S3 bucket can be imported using the `bucket`, e.g.,
|
|
@@ -49,32 +415,32 @@ class BucketV2 extends pulumi.CustomResource {
|
|
|
49
415
|
}
|
|
50
416
|
else {
|
|
51
417
|
const args = argsOrState;
|
|
418
|
+
resourceInputs["accelerationStatus"] = args ? args.accelerationStatus : undefined;
|
|
419
|
+
resourceInputs["acl"] = args ? args.acl : undefined;
|
|
52
420
|
resourceInputs["arn"] = args ? args.arn : undefined;
|
|
53
421
|
resourceInputs["bucket"] = args ? args.bucket : undefined;
|
|
54
422
|
resourceInputs["bucketPrefix"] = args ? args.bucketPrefix : undefined;
|
|
423
|
+
resourceInputs["corsRules"] = args ? args.corsRules : undefined;
|
|
55
424
|
resourceInputs["forceDestroy"] = args ? args.forceDestroy : undefined;
|
|
425
|
+
resourceInputs["grants"] = args ? args.grants : undefined;
|
|
56
426
|
resourceInputs["hostedZoneId"] = args ? args.hostedZoneId : undefined;
|
|
427
|
+
resourceInputs["lifecycleRules"] = args ? args.lifecycleRules : undefined;
|
|
428
|
+
resourceInputs["loggings"] = args ? args.loggings : undefined;
|
|
57
429
|
resourceInputs["objectLockConfiguration"] = args ? args.objectLockConfiguration : undefined;
|
|
58
430
|
resourceInputs["objectLockEnabled"] = args ? args.objectLockEnabled : undefined;
|
|
431
|
+
resourceInputs["policy"] = args ? args.policy : undefined;
|
|
432
|
+
resourceInputs["replicationConfigurations"] = args ? args.replicationConfigurations : undefined;
|
|
433
|
+
resourceInputs["requestPayer"] = args ? args.requestPayer : undefined;
|
|
434
|
+
resourceInputs["serverSideEncryptionConfigurations"] = args ? args.serverSideEncryptionConfigurations : undefined;
|
|
59
435
|
resourceInputs["tags"] = args ? args.tags : undefined;
|
|
60
|
-
resourceInputs["
|
|
61
|
-
resourceInputs["
|
|
436
|
+
resourceInputs["versionings"] = args ? args.versionings : undefined;
|
|
437
|
+
resourceInputs["websites"] = args ? args.websites : undefined;
|
|
62
438
|
resourceInputs["bucketDomainName"] = undefined /*out*/;
|
|
63
439
|
resourceInputs["bucketRegionalDomainName"] = undefined /*out*/;
|
|
64
|
-
resourceInputs["corsRules"] = undefined /*out*/;
|
|
65
|
-
resourceInputs["grants"] = undefined /*out*/;
|
|
66
|
-
resourceInputs["lifecycleRules"] = undefined /*out*/;
|
|
67
|
-
resourceInputs["loggings"] = undefined /*out*/;
|
|
68
|
-
resourceInputs["policy"] = undefined /*out*/;
|
|
69
440
|
resourceInputs["region"] = undefined /*out*/;
|
|
70
|
-
resourceInputs["replicationConfigurations"] = undefined /*out*/;
|
|
71
|
-
resourceInputs["requestPayer"] = undefined /*out*/;
|
|
72
|
-
resourceInputs["serverSideEncryptionConfigurations"] = undefined /*out*/;
|
|
73
441
|
resourceInputs["tagsAll"] = undefined /*out*/;
|
|
74
|
-
resourceInputs["versionings"] = undefined /*out*/;
|
|
75
442
|
resourceInputs["websiteDomain"] = undefined /*out*/;
|
|
76
443
|
resourceInputs["websiteEndpoint"] = undefined /*out*/;
|
|
77
|
-
resourceInputs["websites"] = undefined /*out*/;
|
|
78
444
|
}
|
|
79
445
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
80
446
|
const aliasOpts = { aliases: [{ type: "aws:s3/bucket:Bucket" }] };
|
package/s3/bucketV2.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bucketV2.js","sourceRoot":"","sources":["../../s3/bucketV2.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"bucketV2.js","sourceRoot":"","sources":["../../s3/bucketV2.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsXG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,cAAc;IAyL/C,YAAY,IAAY,EAAE,WAA0C,EAAE,IAAmC;QACrG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAwC,CAAC;YACvD,cAAc,CA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,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,QAAQ,CAAC,YAAY,CAAC;IACzD,CAAC;;AA1BL,4BA0PC;AA5OG,gBAAgB;AACO,qBAAY,GAAG,0BAA0B,CAAC"}
|
|
@@ -3,6 +3,8 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
3
3
|
* The Canonical User ID data source allows access to the [canonical user ID](http://docs.aws.amazon.com/general/latest/gr/acct-identifiers.html)
|
|
4
4
|
* for the effective account in which this provider is working.
|
|
5
5
|
*
|
|
6
|
+
* > **NOTE:** To use this data source, you must have the `s3:ListAllMyBuckets` permission.
|
|
7
|
+
*
|
|
6
8
|
* ## Example Usage
|
|
7
9
|
*
|
|
8
10
|
* ```typescript
|
package/s3/getCanonicalUserId.js
CHANGED
|
@@ -9,6 +9,8 @@ const utilities = require("../utilities");
|
|
|
9
9
|
* The Canonical User ID data source allows access to the [canonical user ID](http://docs.aws.amazon.com/general/latest/gr/acct-identifiers.html)
|
|
10
10
|
* for the effective account in which this provider is working.
|
|
11
11
|
*
|
|
12
|
+
* > **NOTE:** To use this data source, you must have the `s3:ListAllMyBuckets` permission.
|
|
13
|
+
*
|
|
12
14
|
* ## Example Usage
|
|
13
15
|
*
|
|
14
16
|
* ```typescript
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getCanonicalUserId.js","sourceRoot":"","sources":["../../s3/getCanonicalUserId.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"getCanonicalUserId.js","sourceRoot":"","sources":["../../s3/getCanonicalUserId.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;GAeG;AACH,SAAgB,kBAAkB,CAAC,IAA2B;IAC1D,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;IACnE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,8CAA8C,EAAE,EAC5E,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,gDAQC"}
|
|
@@ -18,7 +18,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
18
18
|
*
|
|
19
19
|
* ## Import
|
|
20
20
|
*
|
|
21
|
-
* Identity Notification Topics can be imported using ID of the record. The ID is made up as IDENTITY|TYPE where IDENTITY is the SES Identity and TYPE is the Notification Type.
|
|
21
|
+
* Identity Notification Topics can be imported using the ID of the record. The ID is made up as `IDENTITY|TYPE` where `IDENTITY` is the SES Identity and `TYPE` is the Notification Type.
|
|
22
22
|
*
|
|
23
23
|
* ```sh
|
|
24
24
|
* $ pulumi import aws:ses/identityNotificationTopic:IdentityNotificationTopic test 'example.com|Bounce'
|
|
@@ -45,15 +45,15 @@ export declare class IdentityNotificationTopic extends pulumi.CustomResource {
|
|
|
45
45
|
*/
|
|
46
46
|
readonly identity: pulumi.Output<string>;
|
|
47
47
|
/**
|
|
48
|
-
* Whether SES should include original email headers in SNS notifications of this type.
|
|
48
|
+
* Whether SES should include original email headers in SNS notifications of this type. `false` by default.
|
|
49
49
|
*/
|
|
50
50
|
readonly includeOriginalHeaders: pulumi.Output<boolean | undefined>;
|
|
51
51
|
/**
|
|
52
|
-
* The type of notifications that will be published to the specified Amazon SNS topic. Valid Values:
|
|
52
|
+
* The type of notifications that will be published to the specified Amazon SNS topic. Valid Values: `Bounce`, `Complaint` or `Delivery`.
|
|
53
53
|
*/
|
|
54
54
|
readonly notificationType: pulumi.Output<string>;
|
|
55
55
|
/**
|
|
56
|
-
* The Amazon Resource Name (ARN) of the Amazon SNS topic. Can be set to "" (an empty string) to disable publishing.
|
|
56
|
+
* The Amazon Resource Name (ARN) of the Amazon SNS topic. Can be set to `""` (an empty string) to disable publishing.
|
|
57
57
|
*/
|
|
58
58
|
readonly topicArn: pulumi.Output<string | undefined>;
|
|
59
59
|
/**
|
|
@@ -74,15 +74,15 @@ export interface IdentityNotificationTopicState {
|
|
|
74
74
|
*/
|
|
75
75
|
identity?: pulumi.Input<string>;
|
|
76
76
|
/**
|
|
77
|
-
* Whether SES should include original email headers in SNS notifications of this type.
|
|
77
|
+
* Whether SES should include original email headers in SNS notifications of this type. `false` by default.
|
|
78
78
|
*/
|
|
79
79
|
includeOriginalHeaders?: pulumi.Input<boolean>;
|
|
80
80
|
/**
|
|
81
|
-
* The type of notifications that will be published to the specified Amazon SNS topic. Valid Values:
|
|
81
|
+
* The type of notifications that will be published to the specified Amazon SNS topic. Valid Values: `Bounce`, `Complaint` or `Delivery`.
|
|
82
82
|
*/
|
|
83
83
|
notificationType?: pulumi.Input<string>;
|
|
84
84
|
/**
|
|
85
|
-
* The Amazon Resource Name (ARN) of the Amazon SNS topic. Can be set to "" (an empty string) to disable publishing.
|
|
85
|
+
* The Amazon Resource Name (ARN) of the Amazon SNS topic. Can be set to `""` (an empty string) to disable publishing.
|
|
86
86
|
*/
|
|
87
87
|
topicArn?: pulumi.Input<string>;
|
|
88
88
|
}
|
|
@@ -95,15 +95,15 @@ export interface IdentityNotificationTopicArgs {
|
|
|
95
95
|
*/
|
|
96
96
|
identity: pulumi.Input<string>;
|
|
97
97
|
/**
|
|
98
|
-
* Whether SES should include original email headers in SNS notifications of this type.
|
|
98
|
+
* Whether SES should include original email headers in SNS notifications of this type. `false` by default.
|
|
99
99
|
*/
|
|
100
100
|
includeOriginalHeaders?: pulumi.Input<boolean>;
|
|
101
101
|
/**
|
|
102
|
-
* The type of notifications that will be published to the specified Amazon SNS topic. Valid Values:
|
|
102
|
+
* The type of notifications that will be published to the specified Amazon SNS topic. Valid Values: `Bounce`, `Complaint` or `Delivery`.
|
|
103
103
|
*/
|
|
104
104
|
notificationType: pulumi.Input<string>;
|
|
105
105
|
/**
|
|
106
|
-
* The Amazon Resource Name (ARN) of the Amazon SNS topic. Can be set to "" (an empty string) to disable publishing.
|
|
106
|
+
* The Amazon Resource Name (ARN) of the Amazon SNS topic. Can be set to `""` (an empty string) to disable publishing.
|
|
107
107
|
*/
|
|
108
108
|
topicArn?: pulumi.Input<string>;
|
|
109
109
|
}
|
|
@@ -24,7 +24,7 @@ const utilities = require("../utilities");
|
|
|
24
24
|
*
|
|
25
25
|
* ## Import
|
|
26
26
|
*
|
|
27
|
-
* Identity Notification Topics can be imported using ID of the record. The ID is made up as IDENTITY|TYPE where IDENTITY is the SES Identity and TYPE is the Notification Type.
|
|
27
|
+
* Identity Notification Topics can be imported using the ID of the record. The ID is made up as `IDENTITY|TYPE` where `IDENTITY` is the SES Identity and `TYPE` is the Notification Type.
|
|
28
28
|
*
|
|
29
29
|
* ```sh
|
|
30
30
|
* $ pulumi import aws:ses/identityNotificationTopic:IdentityNotificationTopic test 'example.com|Bounce'
|
package/ssm/getDocument.d.ts
CHANGED
|
@@ -35,7 +35,7 @@ export declare function getDocument(args: GetDocumentArgs, opts?: pulumi.InvokeO
|
|
|
35
35
|
*/
|
|
36
36
|
export interface GetDocumentArgs {
|
|
37
37
|
/**
|
|
38
|
-
* Returns the document in the specified format. The document format can be either JSON
|
|
38
|
+
* Returns the document in the specified format. The document format can be either `JSON`, `YAML` and `TEXT`. JSON is the default format.
|
|
39
39
|
*/
|
|
40
40
|
documentFormat?: string;
|
|
41
41
|
/**
|
|
@@ -52,7 +52,7 @@ export interface GetDocumentArgs {
|
|
|
52
52
|
*/
|
|
53
53
|
export interface GetDocumentResult {
|
|
54
54
|
/**
|
|
55
|
-
* The ARN of the document.
|
|
55
|
+
* The ARN of the document. If the document is an AWS managed document, this value will be set to the name of the document instead.
|
|
56
56
|
*/
|
|
57
57
|
readonly arn: string;
|
|
58
58
|
/**
|
|
@@ -77,7 +77,7 @@ export declare function getDocumentOutput(args: GetDocumentOutputArgs, opts?: pu
|
|
|
77
77
|
*/
|
|
78
78
|
export interface GetDocumentOutputArgs {
|
|
79
79
|
/**
|
|
80
|
-
* Returns the document in the specified format. The document format can be either JSON
|
|
80
|
+
* Returns the document in the specified format. The document format can be either `JSON`, `YAML` and `TEXT`. JSON is the default format.
|
|
81
81
|
*/
|
|
82
82
|
documentFormat?: pulumi.Input<string>;
|
|
83
83
|
/**
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import { input as inputs, output as outputs } from "../types";
|
|
3
|
+
/**
|
|
4
|
+
* Use this data source to get the window IDs of SSM maintenance windows.
|
|
5
|
+
*
|
|
6
|
+
* ## Example Usage
|
|
7
|
+
*
|
|
8
|
+
* ```typescript
|
|
9
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
10
|
+
* import * as aws from "@pulumi/aws";
|
|
11
|
+
*
|
|
12
|
+
* const example = pulumi.output(aws.ssm.getMaintenanceWindows({
|
|
13
|
+
* filters: [{
|
|
14
|
+
* name: "Enabled",
|
|
15
|
+
* values: ["true"],
|
|
16
|
+
* }],
|
|
17
|
+
* }));
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
export declare function getMaintenanceWindows(args?: GetMaintenanceWindowsArgs, opts?: pulumi.InvokeOptions): Promise<GetMaintenanceWindowsResult>;
|
|
21
|
+
/**
|
|
22
|
+
* A collection of arguments for invoking getMaintenanceWindows.
|
|
23
|
+
*/
|
|
24
|
+
export interface GetMaintenanceWindowsArgs {
|
|
25
|
+
/**
|
|
26
|
+
* Configuration block(s) for filtering. Detailed below.
|
|
27
|
+
*/
|
|
28
|
+
filters?: inputs.ssm.GetMaintenanceWindowsFilter[];
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* A collection of values returned by getMaintenanceWindows.
|
|
32
|
+
*/
|
|
33
|
+
export interface GetMaintenanceWindowsResult {
|
|
34
|
+
readonly filters?: outputs.ssm.GetMaintenanceWindowsFilter[];
|
|
35
|
+
/**
|
|
36
|
+
* The provider-assigned unique ID for this managed resource.
|
|
37
|
+
*/
|
|
38
|
+
readonly id: string;
|
|
39
|
+
/**
|
|
40
|
+
* List of window IDs of the matched SSM maintenance windows.
|
|
41
|
+
*/
|
|
42
|
+
readonly ids: string[];
|
|
43
|
+
}
|
|
44
|
+
export declare function getMaintenanceWindowsOutput(args?: GetMaintenanceWindowsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetMaintenanceWindowsResult>;
|
|
45
|
+
/**
|
|
46
|
+
* A collection of arguments for invoking getMaintenanceWindows.
|
|
47
|
+
*/
|
|
48
|
+
export interface GetMaintenanceWindowsOutputArgs {
|
|
49
|
+
/**
|
|
50
|
+
* Configuration block(s) for filtering. Detailed below.
|
|
51
|
+
*/
|
|
52
|
+
filters?: pulumi.Input<pulumi.Input<inputs.ssm.GetMaintenanceWindowsFilterArgs>[]>;
|
|
53
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.getMaintenanceWindowsOutput = exports.getMaintenanceWindows = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Use this data source to get the window IDs of SSM maintenance windows.
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as aws from "@pulumi/aws";
|
|
16
|
+
*
|
|
17
|
+
* const example = pulumi.output(aws.ssm.getMaintenanceWindows({
|
|
18
|
+
* filters: [{
|
|
19
|
+
* name: "Enabled",
|
|
20
|
+
* values: ["true"],
|
|
21
|
+
* }],
|
|
22
|
+
* }));
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
function getMaintenanceWindows(args, opts) {
|
|
26
|
+
args = args || {};
|
|
27
|
+
if (!opts) {
|
|
28
|
+
opts = {};
|
|
29
|
+
}
|
|
30
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
31
|
+
return pulumi.runtime.invoke("aws:ssm/getMaintenanceWindows:getMaintenanceWindows", {
|
|
32
|
+
"filters": args.filters,
|
|
33
|
+
}, opts);
|
|
34
|
+
}
|
|
35
|
+
exports.getMaintenanceWindows = getMaintenanceWindows;
|
|
36
|
+
function getMaintenanceWindowsOutput(args, opts) {
|
|
37
|
+
return pulumi.output(args).apply(a => getMaintenanceWindows(a, opts));
|
|
38
|
+
}
|
|
39
|
+
exports.getMaintenanceWindowsOutput = getMaintenanceWindowsOutput;
|
|
40
|
+
//# sourceMappingURL=getMaintenanceWindows.js.map
|