@anvil-cloud/sdk 0.0.2 → 0.0.4
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/README.md +60 -0
- package/bin/package.json +1 -1
- package/bin/types/input.d.ts +37 -37
- package/package.json +1 -1
- package/types/input.ts +36 -36
package/README.md
CHANGED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# @anvil-cloud/sdk
|
|
2
|
+
|
|
3
|
+
**Cloud infrastructure that's secure by default — not by accident.**
|
|
4
|
+
|
|
5
|
+
Anvil wraps raw cloud resources into opinionated, production-ready components. No 200-line Terraform modules. No copy-pasting security configs from Stack Overflow. Just declare what you need and Anvil handles the rest.
|
|
6
|
+
|
|
7
|
+
```typescript
|
|
8
|
+
import * as anvil from '@anvil-cloud/sdk';
|
|
9
|
+
|
|
10
|
+
const bucket = new anvil.aws.Bucket('uploads', {
|
|
11
|
+
versioning: true,
|
|
12
|
+
});
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
That S3 bucket ships with public access blocked, encryption enabled, and ACLs disabled — because that's how every bucket should start. You opt _in_ to risk, not out of it.
|
|
16
|
+
|
|
17
|
+
## Multi-cloud
|
|
18
|
+
|
|
19
|
+
Anvil supports any cloud provider. AWS and GCP are available today, with more coming soon.
|
|
20
|
+
|
|
21
|
+
## Quick start
|
|
22
|
+
|
|
23
|
+
**1. Install the CLI**
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
brew install anvil-cloud/tap/anvil
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
**2. Install the SDK**
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
npm install @anvil-cloud/sdk
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
**3. Write infrastructure**
|
|
36
|
+
|
|
37
|
+
```typescript
|
|
38
|
+
// index.ts
|
|
39
|
+
import * as anvil from '@anvil-cloud/sdk';
|
|
40
|
+
|
|
41
|
+
const bucket = new anvil.aws.Bucket('uploads');
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
**4. Deploy**
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
anvil deploy
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
## How it works
|
|
51
|
+
|
|
52
|
+
Anvil is built on top of [Pulumi](https://www.pulumi.com/). Each component wraps one or more raw cloud resources with secure defaults baked in. You write TypeScript, Anvil handles the wiring.
|
|
53
|
+
|
|
54
|
+
## Links
|
|
55
|
+
|
|
56
|
+
- [GitHub](https://github.com/anvil-cloud/anvil)
|
|
57
|
+
|
|
58
|
+
## License
|
|
59
|
+
|
|
60
|
+
Apache-2.0
|
package/bin/package.json
CHANGED
package/bin/types/input.d.ts
CHANGED
|
@@ -153,6 +153,36 @@ export declare namespace aws {
|
|
|
153
153
|
*/
|
|
154
154
|
token?: pulumi.Input<string>;
|
|
155
155
|
}
|
|
156
|
+
interface BucketOverridesArgs {
|
|
157
|
+
/**
|
|
158
|
+
* Name of the bucket. If omitted, the provider will assign a random, unique name. Must be lowercase and less than or equal to 63 characters in length. A full list of bucket naming rules [may be found here](https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucketnamingrules.html). The name must not be in the format `<span pulumi-lang-nodejs="[bucketName]" pulumi-lang-dotnet="[BucketName]" pulumi-lang-go="[bucketName]" pulumi-lang-python="[bucket_name]" pulumi-lang-yaml="[bucketName]" pulumi-lang-java="[bucketName]">[bucket_name]</span>--[azid]--x-s3`. Use the <span pulumi-lang-nodejs="`aws.s3.DirectoryBucket`" pulumi-lang-dotnet="`aws.s3.DirectoryBucket`" pulumi-lang-go="`s3.DirectoryBucket`" pulumi-lang-python="`s3.DirectoryBucket`" pulumi-lang-yaml="`aws.s3.DirectoryBucket`" pulumi-lang-java="`aws.s3.DirectoryBucket`">`aws.s3.DirectoryBucket`</span> resource to manage S3 Express buckets.
|
|
159
|
+
*/
|
|
160
|
+
bucket?: pulumi.Input<string>;
|
|
161
|
+
/**
|
|
162
|
+
* Creates a unique bucket name beginning with the specified prefix. Conflicts with <span pulumi-lang-nodejs="`bucket`" pulumi-lang-dotnet="`Bucket`" pulumi-lang-go="`bucket`" pulumi-lang-python="`bucket`" pulumi-lang-yaml="`bucket`" pulumi-lang-java="`bucket`">`bucket`</span>. 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).
|
|
163
|
+
*/
|
|
164
|
+
bucketPrefix?: pulumi.Input<string>;
|
|
165
|
+
/**
|
|
166
|
+
* 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 *when the bucket is destroyed* so that the bucket can be destroyed without error. These objects are *not* recoverable. This only deletes objects when the bucket is destroyed, *not* when setting this parameter to <span pulumi-lang-nodejs="`true`" pulumi-lang-dotnet="`True`" pulumi-lang-go="`true`" pulumi-lang-python="`true`" pulumi-lang-yaml="`true`" pulumi-lang-java="`true`">`true`</span>. Once this parameter is set to <span pulumi-lang-nodejs="`true`" pulumi-lang-dotnet="`True`" pulumi-lang-go="`true`" pulumi-lang-python="`true`" pulumi-lang-yaml="`true`" pulumi-lang-java="`true`">`true`</span>, there must be a successful `pulumi up` run before a destroy is required to update this value in the resource state. Without a successful `pulumi up` after this parameter is set, this flag will have no effect. If setting this field in the same operation that would require replacing the bucket or destroying the bucket, this flag will not work. Additionally when importing a bucket, a successful `pulumi up` is required to set this value in state before it will take effect on a destroy operation.
|
|
167
|
+
*/
|
|
168
|
+
forceDestroy?: pulumi.Input<boolean>;
|
|
169
|
+
/**
|
|
170
|
+
* Indicates whether this bucket has an Object Lock configuration enabled. Valid values are <span pulumi-lang-nodejs="`true`" pulumi-lang-dotnet="`True`" pulumi-lang-go="`true`" pulumi-lang-python="`true`" pulumi-lang-yaml="`true`" pulumi-lang-java="`true`">`true`</span> or <span pulumi-lang-nodejs="`false`" pulumi-lang-dotnet="`False`" pulumi-lang-go="`false`" pulumi-lang-python="`false`" pulumi-lang-yaml="`false`" pulumi-lang-java="`false`">`false`</span>. This argument is not supported in all regions or partitions.
|
|
171
|
+
*/
|
|
172
|
+
objectLockEnabled?: pulumi.Input<boolean>;
|
|
173
|
+
/**
|
|
174
|
+
* 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.
|
|
175
|
+
*/
|
|
176
|
+
region?: pulumi.Input<string>;
|
|
177
|
+
/**
|
|
178
|
+
* Map of tags to assign to the bucket. If configured with a provider <span pulumi-lang-nodejs="`defaultTags`" pulumi-lang-dotnet="`DefaultTags`" pulumi-lang-go="`defaultTags`" pulumi-lang-python="`default_tags`" pulumi-lang-yaml="`defaultTags`" pulumi-lang-java="`defaultTags`">`default_tags`</span> configuration block present, tags with matching keys will overwrite those defined at the provider-level.
|
|
179
|
+
*
|
|
180
|
+
* The following arguments are deprecated, and will be removed in a future major version:
|
|
181
|
+
*/
|
|
182
|
+
tags?: pulumi.Input<{
|
|
183
|
+
[key: string]: pulumi.Input<string>;
|
|
184
|
+
}>;
|
|
185
|
+
}
|
|
156
186
|
interface BucketPolicyTransformArgs {
|
|
157
187
|
/**
|
|
158
188
|
* Name of the bucket to which to apply the policy.
|
|
@@ -237,40 +267,10 @@ export declare namespace aws {
|
|
|
237
267
|
*/
|
|
238
268
|
rules?: pulumi.Input<pulumi.Input<pulumiAws.types.input.s3.BucketServerSideEncryptionConfigurationRule>[]>;
|
|
239
269
|
}
|
|
240
|
-
interface BucketTransformArgs {
|
|
241
|
-
/**
|
|
242
|
-
* Name of the bucket. If omitted, the provider will assign a random, unique name. Must be lowercase and less than or equal to 63 characters in length. A full list of bucket naming rules [may be found here](https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucketnamingrules.html). The name must not be in the format `<span pulumi-lang-nodejs="[bucketName]" pulumi-lang-dotnet="[BucketName]" pulumi-lang-go="[bucketName]" pulumi-lang-python="[bucket_name]" pulumi-lang-yaml="[bucketName]" pulumi-lang-java="[bucketName]">[bucket_name]</span>--[azid]--x-s3`. Use the <span pulumi-lang-nodejs="`aws.s3.DirectoryBucket`" pulumi-lang-dotnet="`aws.s3.DirectoryBucket`" pulumi-lang-go="`s3.DirectoryBucket`" pulumi-lang-python="`s3.DirectoryBucket`" pulumi-lang-yaml="`aws.s3.DirectoryBucket`" pulumi-lang-java="`aws.s3.DirectoryBucket`">`aws.s3.DirectoryBucket`</span> resource to manage S3 Express buckets.
|
|
243
|
-
*/
|
|
244
|
-
bucket?: pulumi.Input<string>;
|
|
245
|
-
/**
|
|
246
|
-
* Creates a unique bucket name beginning with the specified prefix. Conflicts with <span pulumi-lang-nodejs="`bucket`" pulumi-lang-dotnet="`Bucket`" pulumi-lang-go="`bucket`" pulumi-lang-python="`bucket`" pulumi-lang-yaml="`bucket`" pulumi-lang-java="`bucket`">`bucket`</span>. 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).
|
|
247
|
-
*/
|
|
248
|
-
bucketPrefix?: pulumi.Input<string>;
|
|
249
|
-
/**
|
|
250
|
-
* 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 *when the bucket is destroyed* so that the bucket can be destroyed without error. These objects are *not* recoverable. This only deletes objects when the bucket is destroyed, *not* when setting this parameter to <span pulumi-lang-nodejs="`true`" pulumi-lang-dotnet="`True`" pulumi-lang-go="`true`" pulumi-lang-python="`true`" pulumi-lang-yaml="`true`" pulumi-lang-java="`true`">`true`</span>. Once this parameter is set to <span pulumi-lang-nodejs="`true`" pulumi-lang-dotnet="`True`" pulumi-lang-go="`true`" pulumi-lang-python="`true`" pulumi-lang-yaml="`true`" pulumi-lang-java="`true`">`true`</span>, there must be a successful `pulumi up` run before a destroy is required to update this value in the resource state. Without a successful `pulumi up` after this parameter is set, this flag will have no effect. If setting this field in the same operation that would require replacing the bucket or destroying the bucket, this flag will not work. Additionally when importing a bucket, a successful `pulumi up` is required to set this value in state before it will take effect on a destroy operation.
|
|
251
|
-
*/
|
|
252
|
-
forceDestroy?: pulumi.Input<boolean>;
|
|
253
|
-
/**
|
|
254
|
-
* Indicates whether this bucket has an Object Lock configuration enabled. Valid values are <span pulumi-lang-nodejs="`true`" pulumi-lang-dotnet="`True`" pulumi-lang-go="`true`" pulumi-lang-python="`true`" pulumi-lang-yaml="`true`" pulumi-lang-java="`true`">`true`</span> or <span pulumi-lang-nodejs="`false`" pulumi-lang-dotnet="`False`" pulumi-lang-go="`false`" pulumi-lang-python="`false`" pulumi-lang-yaml="`false`" pulumi-lang-java="`false`">`false`</span>. This argument is not supported in all regions or partitions.
|
|
255
|
-
*/
|
|
256
|
-
objectLockEnabled?: pulumi.Input<boolean>;
|
|
257
|
-
/**
|
|
258
|
-
* 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.
|
|
259
|
-
*/
|
|
260
|
-
region?: pulumi.Input<string>;
|
|
261
|
-
/**
|
|
262
|
-
* Map of tags to assign to the bucket. If configured with a provider <span pulumi-lang-nodejs="`defaultTags`" pulumi-lang-dotnet="`DefaultTags`" pulumi-lang-go="`defaultTags`" pulumi-lang-python="`default_tags`" pulumi-lang-yaml="`defaultTags`" pulumi-lang-java="`defaultTags`">`default_tags`</span> configuration block present, tags with matching keys will overwrite those defined at the provider-level.
|
|
263
|
-
*
|
|
264
|
-
* The following arguments are deprecated, and will be removed in a future major version:
|
|
265
|
-
*/
|
|
266
|
-
tags?: pulumi.Input<{
|
|
267
|
-
[key: string]: pulumi.Input<string>;
|
|
268
|
-
}>;
|
|
269
|
-
}
|
|
270
270
|
interface BucketTransformArgsArgs {
|
|
271
271
|
accelerationStatus?: pulumi.Input<inputs.aws.BucketAccelerateConfigurationTransformArgs>;
|
|
272
272
|
acl?: pulumi.Input<inputs.aws.BucketAclTransformArgs>;
|
|
273
|
-
bucket?: pulumi.Input<inputs.aws.
|
|
273
|
+
bucket?: pulumi.Input<inputs.aws.BucketOverridesArgs>;
|
|
274
274
|
corsRules?: pulumi.Input<inputs.aws.BucketCorsConfigurationTransformArgs>;
|
|
275
275
|
grants?: pulumi.Input<inputs.aws.BucketAclTransformArgs>;
|
|
276
276
|
lifecycleRules?: pulumi.Input<inputs.aws.BucketLifecycleConfigurationTransformArgs>;
|
|
@@ -345,7 +345,7 @@ export declare namespace aws {
|
|
|
345
345
|
*/
|
|
346
346
|
routingRules?: pulumi.Input<pulumi.Input<pulumiAws.types.input.s3.BucketWebsiteConfigurationRoutingRule>[]>;
|
|
347
347
|
}
|
|
348
|
-
interface
|
|
348
|
+
interface LambdaOverridesArgs {
|
|
349
349
|
/**
|
|
350
350
|
* Instruction set architecture for your Lambda function. Valid values are `[<span pulumi-lang-nodejs=""x8664"" pulumi-lang-dotnet=""X8664"" pulumi-lang-go=""x8664"" pulumi-lang-python=""x86_64"" pulumi-lang-yaml=""x8664"" pulumi-lang-java=""x8664"">"x86_64"</span>]` and `["arm64"]`. Default is `[<span pulumi-lang-nodejs=""x8664"" pulumi-lang-dotnet=""X8664"" pulumi-lang-go=""x8664"" pulumi-lang-python=""x86_64"" pulumi-lang-yaml=""x8664"" pulumi-lang-java=""x8664"">"x86_64"</span>]`. Removing this attribute, function's architecture stays the same.
|
|
351
351
|
*/
|
|
@@ -512,7 +512,7 @@ export declare namespace aws {
|
|
|
512
512
|
vpcConfig?: pulumi.Input<pulumiAws.types.input.lambda.FunctionVpcConfig>;
|
|
513
513
|
}
|
|
514
514
|
interface LambdaTransformArgsArgs {
|
|
515
|
-
lambda?: pulumi.Input<inputs.aws.
|
|
515
|
+
lambda?: pulumi.Input<inputs.aws.LambdaOverridesArgs>;
|
|
516
516
|
}
|
|
517
517
|
interface PABTransformArgs {
|
|
518
518
|
/**
|
|
@@ -551,7 +551,7 @@ export declare namespace aws {
|
|
|
551
551
|
}
|
|
552
552
|
}
|
|
553
553
|
export declare namespace gcp {
|
|
554
|
-
interface
|
|
554
|
+
interface BucketOverridesArgs {
|
|
555
555
|
/**
|
|
556
556
|
* The bucket's [Autoclass](https://cloud.google.com/storage/docs/autoclass) configuration. Structure is documented below.
|
|
557
557
|
*/
|
|
@@ -655,9 +655,9 @@ export declare namespace gcp {
|
|
|
655
655
|
website?: pulumi.Input<pulumiGcp.types.input.storage.BucketWebsite>;
|
|
656
656
|
}
|
|
657
657
|
interface BucketTransformArgsArgs {
|
|
658
|
-
bucket?: pulumi.Input<inputs.gcp.
|
|
658
|
+
bucket?: pulumi.Input<inputs.gcp.BucketOverridesArgs>;
|
|
659
659
|
}
|
|
660
|
-
interface
|
|
660
|
+
interface FunctionOverridesArgs {
|
|
661
661
|
/**
|
|
662
662
|
* Describes the Build step of the function that builds a container
|
|
663
663
|
* from the given source.
|
|
@@ -709,6 +709,6 @@ export declare namespace gcp {
|
|
|
709
709
|
serviceConfig?: pulumi.Input<pulumiGcp.types.input.cloudfunctionsv2.FunctionServiceConfig>;
|
|
710
710
|
}
|
|
711
711
|
interface FunctionTransformArgsArgs {
|
|
712
|
-
function?: pulumi.Input<inputs.gcp.
|
|
712
|
+
function?: pulumi.Input<inputs.gcp.FunctionOverridesArgs>;
|
|
713
713
|
}
|
|
714
714
|
}
|
package/package.json
CHANGED
package/types/input.ts
CHANGED
|
@@ -165,6 +165,35 @@ export namespace aws {
|
|
|
165
165
|
token?: pulumi.Input<string>;
|
|
166
166
|
}
|
|
167
167
|
|
|
168
|
+
export interface BucketOverridesArgs {
|
|
169
|
+
/**
|
|
170
|
+
* Name of the bucket. If omitted, the provider will assign a random, unique name. Must be lowercase and less than or equal to 63 characters in length. A full list of bucket naming rules [may be found here](https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucketnamingrules.html). The name must not be in the format `<span pulumi-lang-nodejs="[bucketName]" pulumi-lang-dotnet="[BucketName]" pulumi-lang-go="[bucketName]" pulumi-lang-python="[bucket_name]" pulumi-lang-yaml="[bucketName]" pulumi-lang-java="[bucketName]">[bucket_name]</span>--[azid]--x-s3`. Use the <span pulumi-lang-nodejs="`aws.s3.DirectoryBucket`" pulumi-lang-dotnet="`aws.s3.DirectoryBucket`" pulumi-lang-go="`s3.DirectoryBucket`" pulumi-lang-python="`s3.DirectoryBucket`" pulumi-lang-yaml="`aws.s3.DirectoryBucket`" pulumi-lang-java="`aws.s3.DirectoryBucket`">`aws.s3.DirectoryBucket`</span> resource to manage S3 Express buckets.
|
|
171
|
+
*/
|
|
172
|
+
bucket?: pulumi.Input<string>;
|
|
173
|
+
/**
|
|
174
|
+
* Creates a unique bucket name beginning with the specified prefix. Conflicts with <span pulumi-lang-nodejs="`bucket`" pulumi-lang-dotnet="`Bucket`" pulumi-lang-go="`bucket`" pulumi-lang-python="`bucket`" pulumi-lang-yaml="`bucket`" pulumi-lang-java="`bucket`">`bucket`</span>. 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).
|
|
175
|
+
*/
|
|
176
|
+
bucketPrefix?: pulumi.Input<string>;
|
|
177
|
+
/**
|
|
178
|
+
* 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 *when the bucket is destroyed* so that the bucket can be destroyed without error. These objects are *not* recoverable. This only deletes objects when the bucket is destroyed, *not* when setting this parameter to <span pulumi-lang-nodejs="`true`" pulumi-lang-dotnet="`True`" pulumi-lang-go="`true`" pulumi-lang-python="`true`" pulumi-lang-yaml="`true`" pulumi-lang-java="`true`">`true`</span>. Once this parameter is set to <span pulumi-lang-nodejs="`true`" pulumi-lang-dotnet="`True`" pulumi-lang-go="`true`" pulumi-lang-python="`true`" pulumi-lang-yaml="`true`" pulumi-lang-java="`true`">`true`</span>, there must be a successful `pulumi up` run before a destroy is required to update this value in the resource state. Without a successful `pulumi up` after this parameter is set, this flag will have no effect. If setting this field in the same operation that would require replacing the bucket or destroying the bucket, this flag will not work. Additionally when importing a bucket, a successful `pulumi up` is required to set this value in state before it will take effect on a destroy operation.
|
|
179
|
+
*/
|
|
180
|
+
forceDestroy?: pulumi.Input<boolean>;
|
|
181
|
+
/**
|
|
182
|
+
* Indicates whether this bucket has an Object Lock configuration enabled. Valid values are <span pulumi-lang-nodejs="`true`" pulumi-lang-dotnet="`True`" pulumi-lang-go="`true`" pulumi-lang-python="`true`" pulumi-lang-yaml="`true`" pulumi-lang-java="`true`">`true`</span> or <span pulumi-lang-nodejs="`false`" pulumi-lang-dotnet="`False`" pulumi-lang-go="`false`" pulumi-lang-python="`false`" pulumi-lang-yaml="`false`" pulumi-lang-java="`false`">`false`</span>. This argument is not supported in all regions or partitions.
|
|
183
|
+
*/
|
|
184
|
+
objectLockEnabled?: pulumi.Input<boolean>;
|
|
185
|
+
/**
|
|
186
|
+
* 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.
|
|
187
|
+
*/
|
|
188
|
+
region?: pulumi.Input<string>;
|
|
189
|
+
/**
|
|
190
|
+
* Map of tags to assign to the bucket. If configured with a provider <span pulumi-lang-nodejs="`defaultTags`" pulumi-lang-dotnet="`DefaultTags`" pulumi-lang-go="`defaultTags`" pulumi-lang-python="`default_tags`" pulumi-lang-yaml="`defaultTags`" pulumi-lang-java="`defaultTags`">`default_tags`</span> configuration block present, tags with matching keys will overwrite those defined at the provider-level.
|
|
191
|
+
*
|
|
192
|
+
* The following arguments are deprecated, and will be removed in a future major version:
|
|
193
|
+
*/
|
|
194
|
+
tags?: pulumi.Input<{[key: string]: pulumi.Input<string>}>;
|
|
195
|
+
}
|
|
196
|
+
|
|
168
197
|
export interface BucketPolicyTransformArgs {
|
|
169
198
|
/**
|
|
170
199
|
* Name of the bucket to which to apply the policy.
|
|
@@ -253,39 +282,10 @@ export namespace aws {
|
|
|
253
282
|
rules?: pulumi.Input<pulumi.Input<pulumiAws.types.input.s3.BucketServerSideEncryptionConfigurationRule>[]>;
|
|
254
283
|
}
|
|
255
284
|
|
|
256
|
-
export interface BucketTransformArgs {
|
|
257
|
-
/**
|
|
258
|
-
* Name of the bucket. If omitted, the provider will assign a random, unique name. Must be lowercase and less than or equal to 63 characters in length. A full list of bucket naming rules [may be found here](https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucketnamingrules.html). The name must not be in the format `<span pulumi-lang-nodejs="[bucketName]" pulumi-lang-dotnet="[BucketName]" pulumi-lang-go="[bucketName]" pulumi-lang-python="[bucket_name]" pulumi-lang-yaml="[bucketName]" pulumi-lang-java="[bucketName]">[bucket_name]</span>--[azid]--x-s3`. Use the <span pulumi-lang-nodejs="`aws.s3.DirectoryBucket`" pulumi-lang-dotnet="`aws.s3.DirectoryBucket`" pulumi-lang-go="`s3.DirectoryBucket`" pulumi-lang-python="`s3.DirectoryBucket`" pulumi-lang-yaml="`aws.s3.DirectoryBucket`" pulumi-lang-java="`aws.s3.DirectoryBucket`">`aws.s3.DirectoryBucket`</span> resource to manage S3 Express buckets.
|
|
259
|
-
*/
|
|
260
|
-
bucket?: pulumi.Input<string>;
|
|
261
|
-
/**
|
|
262
|
-
* Creates a unique bucket name beginning with the specified prefix. Conflicts with <span pulumi-lang-nodejs="`bucket`" pulumi-lang-dotnet="`Bucket`" pulumi-lang-go="`bucket`" pulumi-lang-python="`bucket`" pulumi-lang-yaml="`bucket`" pulumi-lang-java="`bucket`">`bucket`</span>. 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).
|
|
263
|
-
*/
|
|
264
|
-
bucketPrefix?: pulumi.Input<string>;
|
|
265
|
-
/**
|
|
266
|
-
* 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 *when the bucket is destroyed* so that the bucket can be destroyed without error. These objects are *not* recoverable. This only deletes objects when the bucket is destroyed, *not* when setting this parameter to <span pulumi-lang-nodejs="`true`" pulumi-lang-dotnet="`True`" pulumi-lang-go="`true`" pulumi-lang-python="`true`" pulumi-lang-yaml="`true`" pulumi-lang-java="`true`">`true`</span>. Once this parameter is set to <span pulumi-lang-nodejs="`true`" pulumi-lang-dotnet="`True`" pulumi-lang-go="`true`" pulumi-lang-python="`true`" pulumi-lang-yaml="`true`" pulumi-lang-java="`true`">`true`</span>, there must be a successful `pulumi up` run before a destroy is required to update this value in the resource state. Without a successful `pulumi up` after this parameter is set, this flag will have no effect. If setting this field in the same operation that would require replacing the bucket or destroying the bucket, this flag will not work. Additionally when importing a bucket, a successful `pulumi up` is required to set this value in state before it will take effect on a destroy operation.
|
|
267
|
-
*/
|
|
268
|
-
forceDestroy?: pulumi.Input<boolean>;
|
|
269
|
-
/**
|
|
270
|
-
* Indicates whether this bucket has an Object Lock configuration enabled. Valid values are <span pulumi-lang-nodejs="`true`" pulumi-lang-dotnet="`True`" pulumi-lang-go="`true`" pulumi-lang-python="`true`" pulumi-lang-yaml="`true`" pulumi-lang-java="`true`">`true`</span> or <span pulumi-lang-nodejs="`false`" pulumi-lang-dotnet="`False`" pulumi-lang-go="`false`" pulumi-lang-python="`false`" pulumi-lang-yaml="`false`" pulumi-lang-java="`false`">`false`</span>. This argument is not supported in all regions or partitions.
|
|
271
|
-
*/
|
|
272
|
-
objectLockEnabled?: pulumi.Input<boolean>;
|
|
273
|
-
/**
|
|
274
|
-
* 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.
|
|
275
|
-
*/
|
|
276
|
-
region?: pulumi.Input<string>;
|
|
277
|
-
/**
|
|
278
|
-
* Map of tags to assign to the bucket. If configured with a provider <span pulumi-lang-nodejs="`defaultTags`" pulumi-lang-dotnet="`DefaultTags`" pulumi-lang-go="`defaultTags`" pulumi-lang-python="`default_tags`" pulumi-lang-yaml="`defaultTags`" pulumi-lang-java="`defaultTags`">`default_tags`</span> configuration block present, tags with matching keys will overwrite those defined at the provider-level.
|
|
279
|
-
*
|
|
280
|
-
* The following arguments are deprecated, and will be removed in a future major version:
|
|
281
|
-
*/
|
|
282
|
-
tags?: pulumi.Input<{[key: string]: pulumi.Input<string>}>;
|
|
283
|
-
}
|
|
284
|
-
|
|
285
285
|
export interface BucketTransformArgsArgs {
|
|
286
286
|
accelerationStatus?: pulumi.Input<inputs.aws.BucketAccelerateConfigurationTransformArgs>;
|
|
287
287
|
acl?: pulumi.Input<inputs.aws.BucketAclTransformArgs>;
|
|
288
|
-
bucket?: pulumi.Input<inputs.aws.
|
|
288
|
+
bucket?: pulumi.Input<inputs.aws.BucketOverridesArgs>;
|
|
289
289
|
corsRules?: pulumi.Input<inputs.aws.BucketCorsConfigurationTransformArgs>;
|
|
290
290
|
grants?: pulumi.Input<inputs.aws.BucketAclTransformArgs>;
|
|
291
291
|
lifecycleRules?: pulumi.Input<inputs.aws.BucketLifecycleConfigurationTransformArgs>;
|
|
@@ -363,7 +363,7 @@ export namespace aws {
|
|
|
363
363
|
routingRules?: pulumi.Input<pulumi.Input<pulumiAws.types.input.s3.BucketWebsiteConfigurationRoutingRule>[]>;
|
|
364
364
|
}
|
|
365
365
|
|
|
366
|
-
export interface
|
|
366
|
+
export interface LambdaOverridesArgs {
|
|
367
367
|
/**
|
|
368
368
|
* Instruction set architecture for your Lambda function. Valid values are `[<span pulumi-lang-nodejs=""x8664"" pulumi-lang-dotnet=""X8664"" pulumi-lang-go=""x8664"" pulumi-lang-python=""x86_64"" pulumi-lang-yaml=""x8664"" pulumi-lang-java=""x8664"">"x86_64"</span>]` and `["arm64"]`. Default is `[<span pulumi-lang-nodejs=""x8664"" pulumi-lang-dotnet=""X8664"" pulumi-lang-go=""x8664"" pulumi-lang-python=""x86_64"" pulumi-lang-yaml=""x8664"" pulumi-lang-java=""x8664"">"x86_64"</span>]`. Removing this attribute, function's architecture stays the same.
|
|
369
369
|
*/
|
|
@@ -529,7 +529,7 @@ export namespace aws {
|
|
|
529
529
|
}
|
|
530
530
|
|
|
531
531
|
export interface LambdaTransformArgsArgs {
|
|
532
|
-
lambda?: pulumi.Input<inputs.aws.
|
|
532
|
+
lambda?: pulumi.Input<inputs.aws.LambdaOverridesArgs>;
|
|
533
533
|
}
|
|
534
534
|
|
|
535
535
|
export interface PABTransformArgs {
|
|
@@ -570,7 +570,7 @@ export namespace aws {
|
|
|
570
570
|
}
|
|
571
571
|
|
|
572
572
|
export namespace gcp {
|
|
573
|
-
export interface
|
|
573
|
+
export interface BucketOverridesArgs {
|
|
574
574
|
/**
|
|
575
575
|
* The bucket's [Autoclass](https://cloud.google.com/storage/docs/autoclass) configuration. Structure is documented below.
|
|
576
576
|
*/
|
|
@@ -673,10 +673,10 @@ export namespace gcp {
|
|
|
673
673
|
}
|
|
674
674
|
|
|
675
675
|
export interface BucketTransformArgsArgs {
|
|
676
|
-
bucket?: pulumi.Input<inputs.gcp.
|
|
676
|
+
bucket?: pulumi.Input<inputs.gcp.BucketOverridesArgs>;
|
|
677
677
|
}
|
|
678
678
|
|
|
679
|
-
export interface
|
|
679
|
+
export interface FunctionOverridesArgs {
|
|
680
680
|
/**
|
|
681
681
|
* Describes the Build step of the function that builds a container
|
|
682
682
|
* from the given source.
|
|
@@ -727,6 +727,6 @@ export namespace gcp {
|
|
|
727
727
|
}
|
|
728
728
|
|
|
729
729
|
export interface FunctionTransformArgsArgs {
|
|
730
|
-
function?: pulumi.Input<inputs.gcp.
|
|
730
|
+
function?: pulumi.Input<inputs.gcp.FunctionOverridesArgs>;
|
|
731
731
|
}
|
|
732
732
|
}
|