@pulumi/aws 7.0.0-alpha.1 → 7.0.0-alpha.2
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/ecr/index.d.ts +1 -0
- package/ecr/index.js +1 -0
- package/ecr/index.js.map +1 -1
- package/ecr/lifecyclePolicyDocument.d.ts +5 -0
- package/ecr/lifecyclePolicyDocument.js +3 -0
- package/ecr/lifecyclePolicyDocument.js.map +1 -0
- package/iam/documents.d.ts +5 -0
- package/package.json +2 -2
- package/s3/bucketAccelerateConfiguration.js +1 -1
- package/s3/bucketAccelerateConfiguration.js.map +1 -1
- package/s3/bucketAccelerateConfigurationV2.d.ts +122 -0
- package/s3/bucketAccelerateConfigurationV2.js +103 -0
- package/s3/bucketAccelerateConfigurationV2.js.map +1 -0
- package/s3/bucketAcl.js +1 -1
- package/s3/bucketAcl.js.map +1 -1
- package/s3/bucketAclV2.d.ts +241 -0
- package/s3/bucketAclV2.js +207 -0
- package/s3/bucketAclV2.js.map +1 -0
- package/s3/bucketCorsConfiguration.js +1 -1
- package/s3/bucketCorsConfiguration.js.map +1 -1
- package/s3/bucketCorsConfigurationV2.d.ts +141 -0
- package/s3/bucketCorsConfigurationV2.js +120 -0
- package/s3/bucketCorsConfigurationV2.js.map +1 -0
- package/s3/bucketLifecycleConfiguration.js +1 -1
- package/s3/bucketLifecycleConfiguration.js.map +1 -1
- package/s3/bucketLifecycleConfigurationV2.d.ts +437 -0
- package/s3/bucketLifecycleConfigurationV2.js +402 -0
- package/s3/bucketLifecycleConfigurationV2.js.map +1 -0
- package/s3/bucketLogging.js +1 -1
- package/s3/bucketLogging.js.map +1 -1
- package/s3/bucketLoggingV2.d.ts +174 -0
- package/s3/bucketLoggingV2.js +126 -0
- package/s3/bucketLoggingV2.js.map +1 -0
- package/s3/bucketObjectLockConfiguration.js +1 -1
- package/s3/bucketObjectLockConfiguration.js.map +1 -1
- package/s3/bucketObjectLockConfigurationV2.d.ts +164 -0
- package/s3/bucketObjectLockConfigurationV2.js +119 -0
- package/s3/bucketObjectLockConfigurationV2.js.map +1 -0
- package/s3/bucketRequestPaymentConfiguration.js +1 -1
- package/s3/bucketRequestPaymentConfiguration.js.map +1 -1
- package/s3/bucketRequestPaymentConfigurationV2.d.ts +123 -0
- package/s3/bucketRequestPaymentConfigurationV2.js +104 -0
- package/s3/bucketRequestPaymentConfigurationV2.js.map +1 -0
- package/s3/bucketServerSideEncryptionConfiguration.js +1 -1
- package/s3/bucketServerSideEncryptionConfiguration.js.map +1 -1
- package/s3/bucketServerSideEncryptionConfigurationV2.d.ts +133 -0
- package/s3/bucketServerSideEncryptionConfigurationV2.js +112 -0
- package/s3/bucketServerSideEncryptionConfigurationV2.js.map +1 -0
- package/s3/bucketV2.d.ts +518 -0
- package/s3/bucketV2.js +138 -0
- package/s3/bucketV2.js.map +1 -0
- package/s3/bucketVersioning.js +1 -1
- package/s3/bucketVersioning.js.map +1 -1
- package/s3/bucketVersioningV2.d.ts +195 -0
- package/s3/bucketVersioningV2.js +164 -0
- package/s3/bucketVersioningV2.js.map +1 -0
- package/s3/bucketWebsiteConfiguration.js +1 -1
- package/s3/bucketWebsiteConfiguration.js.map +1 -1
- package/s3/bucketWebsiteConfigurationV2.d.ts +231 -0
- package/s3/bucketWebsiteConfigurationV2.js +152 -0
- package/s3/bucketWebsiteConfigurationV2.js.map +1 -0
- package/s3/index.d.ts +33 -0
- package/s3/index.js +57 -1
- package/s3/index.js.map +1 -1
- package/types/input.d.ts +781 -21
- package/types/output.d.ts +781 -21
package/ecr/index.d.ts
CHANGED
|
@@ -25,6 +25,7 @@ export declare const getRepositoryCreationTemplateOutput: typeof import("./getRe
|
|
|
25
25
|
export { LifecyclePolicyArgs, LifecyclePolicyState } from "./lifecyclePolicy";
|
|
26
26
|
export type LifecyclePolicy = import("./lifecyclePolicy").LifecyclePolicy;
|
|
27
27
|
export declare const LifecyclePolicy: typeof import("./lifecyclePolicy").LifecyclePolicy;
|
|
28
|
+
export * from "./lifecyclePolicyDocument";
|
|
28
29
|
export { PullThroughCacheRuleArgs, PullThroughCacheRuleState } from "./pullThroughCacheRule";
|
|
29
30
|
export type PullThroughCacheRule = import("./pullThroughCacheRule").PullThroughCacheRule;
|
|
30
31
|
export declare const PullThroughCacheRule: typeof import("./pullThroughCacheRule").PullThroughCacheRule;
|
package/ecr/index.js
CHANGED
|
@@ -44,6 +44,7 @@ exports.getRepositoryCreationTemplateOutput = null;
|
|
|
44
44
|
utilities.lazyLoad(exports, ["getRepositoryCreationTemplate", "getRepositoryCreationTemplateOutput"], () => require("./getRepositoryCreationTemplate"));
|
|
45
45
|
exports.LifecyclePolicy = null;
|
|
46
46
|
utilities.lazyLoad(exports, ["LifecyclePolicy"], () => require("./lifecyclePolicy"));
|
|
47
|
+
__exportStar(require("./lifecyclePolicyDocument"), exports);
|
|
47
48
|
exports.PullThroughCacheRule = null;
|
|
48
49
|
utilities.lazyLoad(exports, ["PullThroughCacheRule"], () => require("./pullThroughCacheRule"));
|
|
49
50
|
exports.RegistryPolicy = null;
|
package/ecr/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../ecr/index.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAK7B,QAAA,cAAc,GAAqD,IAAW,CAAC;AAC5F,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,gBAAgB,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,kBAAkB,CAAC,CAAC,CAAC;AAGtE,QAAA,qBAAqB,GAAmE,IAAW,CAAC;AACpG,QAAA,2BAA2B,GAAyE,IAAW,CAAC;AAC7H,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,uBAAuB,EAAC,6BAA6B,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,yBAAyB,CAAC,CAAC,CAA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AAO,CAAC,sBAAsB,CAAC,KAAK,EAAE,0BAA0B,EAAE,OAAO,CAAC,CAAA;AACjF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,KAAK,EAAE,oBAAoB,EAAE,OAAO,CAAC,CAAA;AAC3E,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,KAAK,EAAE,mCAAmC,EAAE,OAAO,CAAC,CAAA;AAC1F,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,KAAK,EAAE,8BAA8B,EAAE,OAAO,CAAC,CAAA;AACrF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,KAAK,EAAE,gBAAgB,EAAE,OAAO,CAAC,CAAA;AACvE,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,KAAK,EAAE,gCAAgC,EAAE,OAAO,CAAC,CAAA;AACvF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,KAAK,EAAE,sBAAsB,EAAE,OAAO,CAAC,CAAA"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as inputs from '../types/input';
|
|
2
|
+
export type LifecyclePolicyDocument = inputs.ecr.LifecyclePolicyDocument;
|
|
3
|
+
export type PolicyRule = inputs.ecr.LifecyclePolicyRule;
|
|
4
|
+
export type Action = inputs.ecr.LifecyclePolicyAction;
|
|
5
|
+
export type Selection = inputs.ecr.LifecyclePolicySelection;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lifecyclePolicyDocument.js","sourceRoot":"","sources":["../../ecr/lifecyclePolicyDocument.ts"],"names":[],"mappings":""}
|
package/iam/documents.d.ts
CHANGED
|
@@ -34,3 +34,8 @@ export type Principal = "*" | inputs.iam.AWSPrincipal | inputs.iam.ServicePrinci
|
|
|
34
34
|
* @returns {PolicyDocument} A policy document allowing principals to invoke `sts:AssumeRole`
|
|
35
35
|
*/
|
|
36
36
|
export declare function assumeRolePolicyForPrincipal(principal: Principal): inputs.iam.PolicyDocument;
|
|
37
|
+
export type PolicyDocument = inputs.iam.PolicyDocument;
|
|
38
|
+
export type PolicyStatement = inputs.iam.PolicyStatement;
|
|
39
|
+
export type ServicePrincipal = inputs.iam.ServicePrincipal;
|
|
40
|
+
export type AWSPrincipal = inputs.iam.AWSPrincipal;
|
|
41
|
+
export type FederatedPrincipal = inputs.iam.FederatedPrincipal;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumi/aws",
|
|
3
|
-
"version": "7.0.0-alpha.
|
|
3
|
+
"version": "7.0.0-alpha.2",
|
|
4
4
|
"description": "A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pulumi",
|
|
@@ -24,6 +24,6 @@
|
|
|
24
24
|
"pulumi": {
|
|
25
25
|
"resource": true,
|
|
26
26
|
"name": "aws",
|
|
27
|
-
"version": "7.0.0-alpha.
|
|
27
|
+
"version": "7.0.0-alpha.2"
|
|
28
28
|
}
|
|
29
29
|
}
|
|
@@ -87,7 +87,7 @@ class BucketAccelerateConfiguration extends pulumi.CustomResource {
|
|
|
87
87
|
resourceInputs["status"] = args ? args.status : undefined;
|
|
88
88
|
}
|
|
89
89
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
90
|
-
const aliasOpts = { aliases: [{ type: "aws:s3/bucketAccelerateConfigurationV2:BucketAccelerateConfigurationV2" }
|
|
90
|
+
const aliasOpts = { aliases: [{ type: "aws:s3/bucketAccelerateConfigurationV2:BucketAccelerateConfigurationV2" }] };
|
|
91
91
|
opts = pulumi.mergeOptions(opts, aliasOpts);
|
|
92
92
|
super(BucketAccelerateConfiguration.__pulumiType, name, resourceInputs, opts);
|
|
93
93
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bucketAccelerateConfiguration.js","sourceRoot":"","sources":["../../s3/bucketAccelerateConfiguration.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,i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the [Requirements for using Transfer Acceleration](https://docs.aws.amazon.com/AmazonS3/latest/userguide/transfer-acceleration.html#transfer-acceleration-requirements) for more details.
|
|
4
|
+
*
|
|
5
|
+
* > This resource cannot be used with S3 directory buckets.
|
|
6
|
+
*
|
|
7
|
+
* ## Example Usage
|
|
8
|
+
*
|
|
9
|
+
* ```typescript
|
|
10
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
11
|
+
* import * as aws from "@pulumi/aws";
|
|
12
|
+
*
|
|
13
|
+
* const mybucket = new aws.s3.Bucket("mybucket", {bucket: "mybucket"});
|
|
14
|
+
* const example = new aws.s3.BucketAccelerateConfiguration("example", {
|
|
15
|
+
* bucket: mybucket.id,
|
|
16
|
+
* status: "Enabled",
|
|
17
|
+
* });
|
|
18
|
+
* ```
|
|
19
|
+
*
|
|
20
|
+
* ## Import
|
|
21
|
+
*
|
|
22
|
+
* If the owner (account ID) of the source bucket differs from the account used to configure the AWS Provider, import using the `bucket` and `expected_bucket_owner` separated by a comma (`,`):
|
|
23
|
+
*
|
|
24
|
+
* __Using `pulumi import` to import.__ For example:
|
|
25
|
+
*
|
|
26
|
+
* If the owner (account ID) of the source bucket is the same account used to configure the AWS Provider, import using the `bucket`:
|
|
27
|
+
*
|
|
28
|
+
* ```sh
|
|
29
|
+
* $ pulumi import aws:s3/bucketAccelerateConfigurationV2:BucketAccelerateConfigurationV2 example bucket-name
|
|
30
|
+
* ```
|
|
31
|
+
* If the owner (account ID) of the source bucket differs from the account used to configure the AWS Provider, import using the `bucket` and `expected_bucket_owner` separated by a comma (`,`):
|
|
32
|
+
*
|
|
33
|
+
* ```sh
|
|
34
|
+
* $ pulumi import aws:s3/bucketAccelerateConfigurationV2:BucketAccelerateConfigurationV2 example bucket-name,123456789012
|
|
35
|
+
* ```
|
|
36
|
+
*
|
|
37
|
+
* @deprecated aws.s3/bucketaccelerateconfigurationv2.BucketAccelerateConfigurationV2 has been deprecated in favor of aws.s3/bucketaccelerateconfiguration.BucketAccelerateConfiguration
|
|
38
|
+
*/
|
|
39
|
+
export declare class BucketAccelerateConfigurationV2 extends pulumi.CustomResource {
|
|
40
|
+
/**
|
|
41
|
+
* Get an existing BucketAccelerateConfigurationV2 resource's state with the given name, ID, and optional extra
|
|
42
|
+
* properties used to qualify the lookup.
|
|
43
|
+
*
|
|
44
|
+
* @param name The _unique_ name of the resulting resource.
|
|
45
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
46
|
+
* @param state Any extra arguments used during the lookup.
|
|
47
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
48
|
+
*/
|
|
49
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: BucketAccelerateConfigurationV2State, opts?: pulumi.CustomResourceOptions): BucketAccelerateConfigurationV2;
|
|
50
|
+
/**
|
|
51
|
+
* Returns true if the given object is an instance of BucketAccelerateConfigurationV2. This is designed to work even
|
|
52
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
53
|
+
*/
|
|
54
|
+
static isInstance(obj: any): obj is BucketAccelerateConfigurationV2;
|
|
55
|
+
/**
|
|
56
|
+
* Name of the bucket.
|
|
57
|
+
*/
|
|
58
|
+
readonly bucket: pulumi.Output<string>;
|
|
59
|
+
/**
|
|
60
|
+
* Account ID of the expected bucket owner.
|
|
61
|
+
*/
|
|
62
|
+
readonly expectedBucketOwner: pulumi.Output<string | undefined>;
|
|
63
|
+
/**
|
|
64
|
+
* Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
|
|
65
|
+
*/
|
|
66
|
+
readonly region: pulumi.Output<string>;
|
|
67
|
+
/**
|
|
68
|
+
* Transfer acceleration state of the bucket. Valid values: `Enabled`, `Suspended`.
|
|
69
|
+
*/
|
|
70
|
+
readonly status: pulumi.Output<string>;
|
|
71
|
+
/**
|
|
72
|
+
* Create a BucketAccelerateConfigurationV2 resource with the given unique name, arguments, and options.
|
|
73
|
+
*
|
|
74
|
+
* @param name The _unique_ name of the resource.
|
|
75
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
76
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
77
|
+
*/
|
|
78
|
+
/** @deprecated aws.s3/bucketaccelerateconfigurationv2.BucketAccelerateConfigurationV2 has been deprecated in favor of aws.s3/bucketaccelerateconfiguration.BucketAccelerateConfiguration */
|
|
79
|
+
constructor(name: string, args: BucketAccelerateConfigurationV2Args, opts?: pulumi.CustomResourceOptions);
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Input properties used for looking up and filtering BucketAccelerateConfigurationV2 resources.
|
|
83
|
+
*/
|
|
84
|
+
export interface BucketAccelerateConfigurationV2State {
|
|
85
|
+
/**
|
|
86
|
+
* Name of the bucket.
|
|
87
|
+
*/
|
|
88
|
+
bucket?: pulumi.Input<string>;
|
|
89
|
+
/**
|
|
90
|
+
* Account ID of the expected bucket owner.
|
|
91
|
+
*/
|
|
92
|
+
expectedBucketOwner?: pulumi.Input<string>;
|
|
93
|
+
/**
|
|
94
|
+
* Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
|
|
95
|
+
*/
|
|
96
|
+
region?: pulumi.Input<string>;
|
|
97
|
+
/**
|
|
98
|
+
* Transfer acceleration state of the bucket. Valid values: `Enabled`, `Suspended`.
|
|
99
|
+
*/
|
|
100
|
+
status?: pulumi.Input<string>;
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* The set of arguments for constructing a BucketAccelerateConfigurationV2 resource.
|
|
104
|
+
*/
|
|
105
|
+
export interface BucketAccelerateConfigurationV2Args {
|
|
106
|
+
/**
|
|
107
|
+
* Name of the bucket.
|
|
108
|
+
*/
|
|
109
|
+
bucket: pulumi.Input<string>;
|
|
110
|
+
/**
|
|
111
|
+
* Account ID of the expected bucket owner.
|
|
112
|
+
*/
|
|
113
|
+
expectedBucketOwner?: pulumi.Input<string>;
|
|
114
|
+
/**
|
|
115
|
+
* Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
|
|
116
|
+
*/
|
|
117
|
+
region?: pulumi.Input<string>;
|
|
118
|
+
/**
|
|
119
|
+
* Transfer acceleration state of the bucket. Valid values: `Enabled`, `Suspended`.
|
|
120
|
+
*/
|
|
121
|
+
status: pulumi.Input<string>;
|
|
122
|
+
}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
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.BucketAccelerateConfigurationV2 = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Provides an S3 bucket accelerate configuration resource. See the [Requirements for using Transfer Acceleration](https://docs.aws.amazon.com/AmazonS3/latest/userguide/transfer-acceleration.html#transfer-acceleration-requirements) for more details.
|
|
10
|
+
*
|
|
11
|
+
* > This resource cannot be used with S3 directory buckets.
|
|
12
|
+
*
|
|
13
|
+
* ## Example Usage
|
|
14
|
+
*
|
|
15
|
+
* ```typescript
|
|
16
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
17
|
+
* import * as aws from "@pulumi/aws";
|
|
18
|
+
*
|
|
19
|
+
* const mybucket = new aws.s3.Bucket("mybucket", {bucket: "mybucket"});
|
|
20
|
+
* const example = new aws.s3.BucketAccelerateConfiguration("example", {
|
|
21
|
+
* bucket: mybucket.id,
|
|
22
|
+
* status: "Enabled",
|
|
23
|
+
* });
|
|
24
|
+
* ```
|
|
25
|
+
*
|
|
26
|
+
* ## Import
|
|
27
|
+
*
|
|
28
|
+
* If the owner (account ID) of the source bucket differs from the account used to configure the AWS Provider, import using the `bucket` and `expected_bucket_owner` separated by a comma (`,`):
|
|
29
|
+
*
|
|
30
|
+
* __Using `pulumi import` to import.__ For example:
|
|
31
|
+
*
|
|
32
|
+
* If the owner (account ID) of the source bucket is the same account used to configure the AWS Provider, import using the `bucket`:
|
|
33
|
+
*
|
|
34
|
+
* ```sh
|
|
35
|
+
* $ pulumi import aws:s3/bucketAccelerateConfigurationV2:BucketAccelerateConfigurationV2 example bucket-name
|
|
36
|
+
* ```
|
|
37
|
+
* If the owner (account ID) of the source bucket differs from the account used to configure the AWS Provider, import using the `bucket` and `expected_bucket_owner` separated by a comma (`,`):
|
|
38
|
+
*
|
|
39
|
+
* ```sh
|
|
40
|
+
* $ pulumi import aws:s3/bucketAccelerateConfigurationV2:BucketAccelerateConfigurationV2 example bucket-name,123456789012
|
|
41
|
+
* ```
|
|
42
|
+
*
|
|
43
|
+
* @deprecated aws.s3/bucketaccelerateconfigurationv2.BucketAccelerateConfigurationV2 has been deprecated in favor of aws.s3/bucketaccelerateconfiguration.BucketAccelerateConfiguration
|
|
44
|
+
*/
|
|
45
|
+
class BucketAccelerateConfigurationV2 extends pulumi.CustomResource {
|
|
46
|
+
/**
|
|
47
|
+
* Get an existing BucketAccelerateConfigurationV2 resource's state with the given name, ID, and optional extra
|
|
48
|
+
* properties used to qualify the lookup.
|
|
49
|
+
*
|
|
50
|
+
* @param name The _unique_ name of the resulting resource.
|
|
51
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
52
|
+
* @param state Any extra arguments used during the lookup.
|
|
53
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
54
|
+
*/
|
|
55
|
+
static get(name, id, state, opts) {
|
|
56
|
+
pulumi.log.warn("BucketAccelerateConfigurationV2 is deprecated: aws.s3/bucketaccelerateconfigurationv2.BucketAccelerateConfigurationV2 has been deprecated in favor of aws.s3/bucketaccelerateconfiguration.BucketAccelerateConfiguration");
|
|
57
|
+
return new BucketAccelerateConfigurationV2(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Returns true if the given object is an instance of BucketAccelerateConfigurationV2. This is designed to work even
|
|
61
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
62
|
+
*/
|
|
63
|
+
static isInstance(obj) {
|
|
64
|
+
if (obj === undefined || obj === null) {
|
|
65
|
+
return false;
|
|
66
|
+
}
|
|
67
|
+
return obj['__pulumiType'] === BucketAccelerateConfigurationV2.__pulumiType;
|
|
68
|
+
}
|
|
69
|
+
/** @deprecated aws.s3/bucketaccelerateconfigurationv2.BucketAccelerateConfigurationV2 has been deprecated in favor of aws.s3/bucketaccelerateconfiguration.BucketAccelerateConfiguration */
|
|
70
|
+
constructor(name, argsOrState, opts) {
|
|
71
|
+
pulumi.log.warn("BucketAccelerateConfigurationV2 is deprecated: aws.s3/bucketaccelerateconfigurationv2.BucketAccelerateConfigurationV2 has been deprecated in favor of aws.s3/bucketaccelerateconfiguration.BucketAccelerateConfiguration");
|
|
72
|
+
let resourceInputs = {};
|
|
73
|
+
opts = opts || {};
|
|
74
|
+
if (opts.id) {
|
|
75
|
+
const state = argsOrState;
|
|
76
|
+
resourceInputs["bucket"] = state ? state.bucket : undefined;
|
|
77
|
+
resourceInputs["expectedBucketOwner"] = state ? state.expectedBucketOwner : undefined;
|
|
78
|
+
resourceInputs["region"] = state ? state.region : undefined;
|
|
79
|
+
resourceInputs["status"] = state ? state.status : undefined;
|
|
80
|
+
}
|
|
81
|
+
else {
|
|
82
|
+
const args = argsOrState;
|
|
83
|
+
if ((!args || args.bucket === undefined) && !opts.urn) {
|
|
84
|
+
throw new Error("Missing required property 'bucket'");
|
|
85
|
+
}
|
|
86
|
+
if ((!args || args.status === undefined) && !opts.urn) {
|
|
87
|
+
throw new Error("Missing required property 'status'");
|
|
88
|
+
}
|
|
89
|
+
resourceInputs["bucket"] = args ? args.bucket : undefined;
|
|
90
|
+
resourceInputs["expectedBucketOwner"] = args ? args.expectedBucketOwner : undefined;
|
|
91
|
+
resourceInputs["region"] = args ? args.region : undefined;
|
|
92
|
+
resourceInputs["status"] = args ? args.status : undefined;
|
|
93
|
+
}
|
|
94
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
95
|
+
const aliasOpts = { aliases: [{ type: "aws:s3/bucketAccelerateConfigurationV2:BucketAccelerateConfigurationV2" }] };
|
|
96
|
+
opts = pulumi.mergeOptions(opts, aliasOpts);
|
|
97
|
+
super(BucketAccelerateConfigurationV2.__pulumiType, name, resourceInputs, opts);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
exports.BucketAccelerateConfigurationV2 = BucketAccelerateConfigurationV2;
|
|
101
|
+
/** @internal */
|
|
102
|
+
BucketAccelerateConfigurationV2.__pulumiType = 'aws:s3/bucketAccelerateConfigurationV2:BucketAccelerateConfigurationV2';
|
|
103
|
+
//# sourceMappingURL=bucketAccelerateConfigurationV2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bucketAccelerateConfigurationV2.js","sourceRoot":"","sources":["../../s3/bucketAccelerateConfigurationV2.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,MAAa,+BAAgC,SAAQ,MAAM,CAAC,cAAc;IACtE;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA4C,EAAE,IAAmC;QAC1I,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,0NAA0N,CAAC,CAAA;QAC3O,OAAO,IAAI,+BAA+B,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACtF,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC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,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,cAAc,CAAC,qBAAqB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC,CAAC,SAAS,CAAC;YACpF,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;SAC7D;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,MAAM,SAAS,GAAG,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,wEAAwE,EAAE,CAAC,EAAE,CAAC;QACpH,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;QAC5C,KAAK,CAAC,+BAA+B,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACpF,CAAC;;AAnFL,0EAoFC;AArEG,gBAAgB;AACO,4CAAY,GAAG,wEAAwE,CAAC"}
|
package/s3/bucketAcl.js
CHANGED
|
@@ -191,7 +191,7 @@ class BucketAcl extends pulumi.CustomResource {
|
|
|
191
191
|
resourceInputs["region"] = args ? args.region : undefined;
|
|
192
192
|
}
|
|
193
193
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
194
|
-
const aliasOpts = { aliases: [{ type: "aws:s3/bucketAclV2:BucketAclV2" }
|
|
194
|
+
const aliasOpts = { aliases: [{ type: "aws:s3/bucketAclV2:BucketAclV2" }] };
|
|
195
195
|
opts = pulumi.mergeOptions(opts, aliasOpts);
|
|
196
196
|
super(BucketAcl.__pulumiType, name, resourceInputs, opts);
|
|
197
197
|
}
|
package/s3/bucketAcl.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bucketAcl.js","sourceRoot":"","sources":["../../s3/bucketAcl.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAIzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2IG;AACH,MAAa,SAAU,SAAQ,MAAM,CAAC,cAAc;IAChD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAsB,EAAE,IAAmC;QACpH,OAAO,IAAI,SAAS,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAChE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,SAAS,CAAC,YAAY,CAAC;IAC1D,CAAC;IA+BD,YAAY,IAAY,EAAE,WAA4C,EAAE,IAAmC;QACvG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAyC,CAAC;YACxD,cAAc,CAAC,qBAAqB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAAC,CAAC,SAAS,CAAC;YACtF,cAAc,CAAC,KAAK,CAAC,GAAG,KA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CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,MAAM,SAAS,GAAG,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,gCAAgC,EAAE,CAAC,EAAE,CAAC;QAC5E,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;QAC5C,KAAK,CAAC,SAAS,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC9D,CAAC;;AAlFL,8BAmFC;AArEG,gBAAgB;AACO,sBAAY,GAAG,4BAA4B,CAAC"}
|
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "../types/input";
|
|
3
|
+
import * as outputs from "../types/output";
|
|
4
|
+
/**
|
|
5
|
+
* Provides an S3 bucket ACL resource.
|
|
6
|
+
*
|
|
7
|
+
* > **Note:** destroy does not delete the S3 Bucket ACL but does remove the resource from state.
|
|
8
|
+
*
|
|
9
|
+
* > This resource cannot be used with S3 directory buckets.
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ### With `private` ACL
|
|
14
|
+
*
|
|
15
|
+
* ```typescript
|
|
16
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
17
|
+
* import * as aws from "@pulumi/aws";
|
|
18
|
+
*
|
|
19
|
+
* const example = new aws.s3.Bucket("example", {bucket: "my-tf-example-bucket"});
|
|
20
|
+
* const exampleBucketOwnershipControls = new aws.s3.BucketOwnershipControls("example", {
|
|
21
|
+
* bucket: example.id,
|
|
22
|
+
* rule: {
|
|
23
|
+
* objectOwnership: "BucketOwnerPreferred",
|
|
24
|
+
* },
|
|
25
|
+
* });
|
|
26
|
+
* const exampleBucketAcl = new aws.s3.BucketAcl("example", {
|
|
27
|
+
* bucket: example.id,
|
|
28
|
+
* acl: "private",
|
|
29
|
+
* }, {
|
|
30
|
+
* dependsOn: [exampleBucketOwnershipControls],
|
|
31
|
+
* });
|
|
32
|
+
* ```
|
|
33
|
+
*
|
|
34
|
+
* ### With `public-read` ACL
|
|
35
|
+
*
|
|
36
|
+
* > This example explicitly disables the default S3 bucket security settings. This
|
|
37
|
+
* should be done with caution, as all bucket objects become publicly exposed.
|
|
38
|
+
*
|
|
39
|
+
* ```typescript
|
|
40
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
41
|
+
* import * as aws from "@pulumi/aws";
|
|
42
|
+
*
|
|
43
|
+
* const example = new aws.s3.Bucket("example", {bucket: "my-tf-example-bucket"});
|
|
44
|
+
* const exampleBucketOwnershipControls = new aws.s3.BucketOwnershipControls("example", {
|
|
45
|
+
* bucket: example.id,
|
|
46
|
+
* rule: {
|
|
47
|
+
* objectOwnership: "BucketOwnerPreferred",
|
|
48
|
+
* },
|
|
49
|
+
* });
|
|
50
|
+
* const exampleBucketPublicAccessBlock = new aws.s3.BucketPublicAccessBlock("example", {
|
|
51
|
+
* bucket: example.id,
|
|
52
|
+
* blockPublicAcls: false,
|
|
53
|
+
* blockPublicPolicy: false,
|
|
54
|
+
* ignorePublicAcls: false,
|
|
55
|
+
* restrictPublicBuckets: false,
|
|
56
|
+
* });
|
|
57
|
+
* const exampleBucketAcl = new aws.s3.BucketAcl("example", {
|
|
58
|
+
* bucket: example.id,
|
|
59
|
+
* acl: "public-read",
|
|
60
|
+
* }, {
|
|
61
|
+
* dependsOn: [
|
|
62
|
+
* exampleBucketOwnershipControls,
|
|
63
|
+
* exampleBucketPublicAccessBlock,
|
|
64
|
+
* ],
|
|
65
|
+
* });
|
|
66
|
+
* ```
|
|
67
|
+
*
|
|
68
|
+
* ### With Grants
|
|
69
|
+
*
|
|
70
|
+
* ```typescript
|
|
71
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
72
|
+
* import * as aws from "@pulumi/aws";
|
|
73
|
+
*
|
|
74
|
+
* const current = aws.s3.getCanonicalUserId({});
|
|
75
|
+
* const example = new aws.s3.Bucket("example", {bucket: "my-tf-example-bucket"});
|
|
76
|
+
* const exampleBucketOwnershipControls = new aws.s3.BucketOwnershipControls("example", {
|
|
77
|
+
* bucket: example.id,
|
|
78
|
+
* rule: {
|
|
79
|
+
* objectOwnership: "BucketOwnerPreferred",
|
|
80
|
+
* },
|
|
81
|
+
* });
|
|
82
|
+
* const exampleBucketAcl = new aws.s3.BucketAcl("example", {
|
|
83
|
+
* bucket: example.id,
|
|
84
|
+
* accessControlPolicy: {
|
|
85
|
+
* grants: [
|
|
86
|
+
* {
|
|
87
|
+
* grantee: {
|
|
88
|
+
* id: current.then(current => current.id),
|
|
89
|
+
* type: "CanonicalUser",
|
|
90
|
+
* },
|
|
91
|
+
* permission: "READ",
|
|
92
|
+
* },
|
|
93
|
+
* {
|
|
94
|
+
* grantee: {
|
|
95
|
+
* type: "Group",
|
|
96
|
+
* uri: "http://acs.amazonaws.com/groups/s3/LogDelivery",
|
|
97
|
+
* },
|
|
98
|
+
* permission: "READ_ACP",
|
|
99
|
+
* },
|
|
100
|
+
* ],
|
|
101
|
+
* owner: {
|
|
102
|
+
* id: current.then(current => current.id),
|
|
103
|
+
* },
|
|
104
|
+
* },
|
|
105
|
+
* }, {
|
|
106
|
+
* dependsOn: [exampleBucketOwnershipControls],
|
|
107
|
+
* });
|
|
108
|
+
* ```
|
|
109
|
+
*
|
|
110
|
+
* ## Import
|
|
111
|
+
*
|
|
112
|
+
* If the owner (account ID) of the source bucket is the _same_ account used to configure the AWS Provider, and the source bucket is __configured__ with a
|
|
113
|
+
* [canned ACL](https://docs.aws.amazon.com/AmazonS3/latest/userguide/acl-overview.html#canned-acl) (i.e. predefined grant), import using the `bucket` and `acl` separated by a comma (`,`):
|
|
114
|
+
*
|
|
115
|
+
* If the owner (account ID) of the source bucket _differs_ from the account used to configure the AWS Provider, and the source bucket is __not configured__ with a [canned ACL](https://docs.aws.amazon.com/AmazonS3/latest/userguide/acl-overview.html#canned-acl) (i.e. predefined grant), imported using the `bucket` and `expected_bucket_owner` separated by a comma (`,`):
|
|
116
|
+
*
|
|
117
|
+
* If the owner (account ID) of the source bucket _differs_ from the account used to configure the AWS Provider, and the source bucket is __configured__ with a
|
|
118
|
+
* [canned ACL](https://docs.aws.amazon.com/AmazonS3/latest/userguide/acl-overview.html#canned-acl) (i.e. predefined grant), imported using the `bucket`, `expected_bucket_owner`, and `acl` separated by commas (`,`):
|
|
119
|
+
*
|
|
120
|
+
* __Using `pulumi import` to import__ using `bucket`, `expected_bucket_owner`, and/or `acl`, depending on your situation. For example:
|
|
121
|
+
*
|
|
122
|
+
* If the owner (account ID) of the source bucket is the _same_ account used to configure the AWS Provider, and the source bucket is __not configured__ with a
|
|
123
|
+
* [canned ACL](https://docs.aws.amazon.com/AmazonS3/latest/userguide/acl-overview.html#canned-acl) (i.e. predefined grant), import using the `bucket`:
|
|
124
|
+
*
|
|
125
|
+
* ```sh
|
|
126
|
+
* $ pulumi import aws:s3/bucketAclV2:BucketAclV2 example bucket-name
|
|
127
|
+
* ```
|
|
128
|
+
* If the owner (account ID) of the source bucket is the _same_ account used to configure the AWS Provider, and the source bucket is __configured__ with a [canned ACL](https://docs.aws.amazon.com/AmazonS3/latest/userguide/acl-overview.html#canned-acl) (i.e. predefined grant), import using the `bucket` and `acl` separated by a comma (`,`):
|
|
129
|
+
*
|
|
130
|
+
* ```sh
|
|
131
|
+
* $ pulumi import aws:s3/bucketAclV2:BucketAclV2 example bucket-name,private
|
|
132
|
+
* ```
|
|
133
|
+
* If the owner (account ID) of the source bucket _differs_ from the account used to configure the AWS Provider, and the source bucket is __not configured__ with a [canned ACL](https://docs.aws.amazon.com/AmazonS3/latest/userguide/acl-overview.html#canned-acl) (i.e. predefined grant), imported using the `bucket` and `expected_bucket_owner` separated by a comma (`,`):
|
|
134
|
+
*
|
|
135
|
+
* ```sh
|
|
136
|
+
* $ pulumi import aws:s3/bucketAclV2:BucketAclV2 example bucket-name,123456789012
|
|
137
|
+
* ```
|
|
138
|
+
* If the owner (account ID) of the source bucket _differs_ from the account used to configure the AWS Provider, and the source bucket is __configured__ with a [canned ACL](https://docs.aws.amazon.com/AmazonS3/latest/userguide/acl-overview.html#canned-acl) (i.e. predefined grant), imported using the `bucket`, `expected_bucket_owner`, and `acl` separated by commas (`,`):
|
|
139
|
+
*
|
|
140
|
+
* ```sh
|
|
141
|
+
* $ pulumi import aws:s3/bucketAclV2:BucketAclV2 example bucket-name,123456789012,private
|
|
142
|
+
* ```
|
|
143
|
+
*
|
|
144
|
+
* @deprecated aws.s3/bucketaclv2.BucketAclV2 has been deprecated in favor of aws.s3/bucketacl.BucketAcl
|
|
145
|
+
*/
|
|
146
|
+
export declare class BucketAclV2 extends pulumi.CustomResource {
|
|
147
|
+
/**
|
|
148
|
+
* Get an existing BucketAclV2 resource's state with the given name, ID, and optional extra
|
|
149
|
+
* properties used to qualify the lookup.
|
|
150
|
+
*
|
|
151
|
+
* @param name The _unique_ name of the resulting resource.
|
|
152
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
153
|
+
* @param state Any extra arguments used during the lookup.
|
|
154
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
155
|
+
*/
|
|
156
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: BucketAclV2State, opts?: pulumi.CustomResourceOptions): BucketAclV2;
|
|
157
|
+
/**
|
|
158
|
+
* Returns true if the given object is an instance of BucketAclV2. This is designed to work even
|
|
159
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
160
|
+
*/
|
|
161
|
+
static isInstance(obj: any): obj is BucketAclV2;
|
|
162
|
+
/**
|
|
163
|
+
* Configuration block that sets the ACL permissions for an object per grantee. See below.
|
|
164
|
+
*/
|
|
165
|
+
readonly accessControlPolicy: pulumi.Output<outputs.s3.BucketAclV2AccessControlPolicy>;
|
|
166
|
+
/**
|
|
167
|
+
* Specifies the Canned ACL to apply to the bucket. Valid values: `private`, `public-read`, `public-read-write`, `aws-exec-read`, `authenticated-read`, `bucket-owner-read`, `bucket-owner-full-control`, `log-delivery-write`. Full details are available on the [AWS documentation](https://docs.aws.amazon.com/AmazonS3/latest/userguide/acl-overview.html#canned-acl).
|
|
168
|
+
*/
|
|
169
|
+
readonly acl: pulumi.Output<string | undefined>;
|
|
170
|
+
/**
|
|
171
|
+
* Bucket to which to apply the ACL.
|
|
172
|
+
*/
|
|
173
|
+
readonly bucket: pulumi.Output<string>;
|
|
174
|
+
/**
|
|
175
|
+
* Account ID of the expected bucket owner.
|
|
176
|
+
*/
|
|
177
|
+
readonly expectedBucketOwner: pulumi.Output<string | undefined>;
|
|
178
|
+
/**
|
|
179
|
+
* Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
|
|
180
|
+
*/
|
|
181
|
+
readonly region: pulumi.Output<string>;
|
|
182
|
+
/**
|
|
183
|
+
* Create a BucketAclV2 resource with the given unique name, arguments, and options.
|
|
184
|
+
*
|
|
185
|
+
* @param name The _unique_ name of the resource.
|
|
186
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
187
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
188
|
+
*/
|
|
189
|
+
/** @deprecated aws.s3/bucketaclv2.BucketAclV2 has been deprecated in favor of aws.s3/bucketacl.BucketAcl */
|
|
190
|
+
constructor(name: string, args: BucketAclV2Args, opts?: pulumi.CustomResourceOptions);
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* Input properties used for looking up and filtering BucketAclV2 resources.
|
|
194
|
+
*/
|
|
195
|
+
export interface BucketAclV2State {
|
|
196
|
+
/**
|
|
197
|
+
* Configuration block that sets the ACL permissions for an object per grantee. See below.
|
|
198
|
+
*/
|
|
199
|
+
accessControlPolicy?: pulumi.Input<inputs.s3.BucketAclV2AccessControlPolicy>;
|
|
200
|
+
/**
|
|
201
|
+
* Specifies the Canned ACL to apply to the bucket. Valid values: `private`, `public-read`, `public-read-write`, `aws-exec-read`, `authenticated-read`, `bucket-owner-read`, `bucket-owner-full-control`, `log-delivery-write`. Full details are available on the [AWS documentation](https://docs.aws.amazon.com/AmazonS3/latest/userguide/acl-overview.html#canned-acl).
|
|
202
|
+
*/
|
|
203
|
+
acl?: pulumi.Input<string>;
|
|
204
|
+
/**
|
|
205
|
+
* Bucket to which to apply the ACL.
|
|
206
|
+
*/
|
|
207
|
+
bucket?: pulumi.Input<string>;
|
|
208
|
+
/**
|
|
209
|
+
* Account ID of the expected bucket owner.
|
|
210
|
+
*/
|
|
211
|
+
expectedBucketOwner?: pulumi.Input<string>;
|
|
212
|
+
/**
|
|
213
|
+
* Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
|
|
214
|
+
*/
|
|
215
|
+
region?: pulumi.Input<string>;
|
|
216
|
+
}
|
|
217
|
+
/**
|
|
218
|
+
* The set of arguments for constructing a BucketAclV2 resource.
|
|
219
|
+
*/
|
|
220
|
+
export interface BucketAclV2Args {
|
|
221
|
+
/**
|
|
222
|
+
* Configuration block that sets the ACL permissions for an object per grantee. See below.
|
|
223
|
+
*/
|
|
224
|
+
accessControlPolicy?: pulumi.Input<inputs.s3.BucketAclV2AccessControlPolicy>;
|
|
225
|
+
/**
|
|
226
|
+
* Specifies the Canned ACL to apply to the bucket. Valid values: `private`, `public-read`, `public-read-write`, `aws-exec-read`, `authenticated-read`, `bucket-owner-read`, `bucket-owner-full-control`, `log-delivery-write`. Full details are available on the [AWS documentation](https://docs.aws.amazon.com/AmazonS3/latest/userguide/acl-overview.html#canned-acl).
|
|
227
|
+
*/
|
|
228
|
+
acl?: pulumi.Input<string>;
|
|
229
|
+
/**
|
|
230
|
+
* Bucket to which to apply the ACL.
|
|
231
|
+
*/
|
|
232
|
+
bucket: pulumi.Input<string>;
|
|
233
|
+
/**
|
|
234
|
+
* Account ID of the expected bucket owner.
|
|
235
|
+
*/
|
|
236
|
+
expectedBucketOwner?: pulumi.Input<string>;
|
|
237
|
+
/**
|
|
238
|
+
* Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
|
|
239
|
+
*/
|
|
240
|
+
region?: pulumi.Input<string>;
|
|
241
|
+
}
|