@Stability(value=Stable) public static final class FileAssetLocation.Builder extends Object implements software.amazon.jsii.Builder<FileAssetLocation>
FileAssetLocation
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
FileAssetLocation.Builder |
bucketName(String bucketName)
Sets the value of
FileAssetLocation.getBucketName() |
FileAssetLocation |
build()
Builds the configured instance.
|
FileAssetLocation.Builder |
httpUrl(String httpUrl)
Sets the value of
FileAssetLocation.getHttpUrl() |
FileAssetLocation.Builder |
kmsKeyArn(String kmsKeyArn)
Deprecated.
Since bootstrap bucket v4, the key policy properly allows use of the
key via the bucket and no additional parameters have to be granted anymore.
|
FileAssetLocation.Builder |
objectKey(String objectKey)
Sets the value of
FileAssetLocation.getObjectKey() |
FileAssetLocation.Builder |
s3ObjectUrl(String s3ObjectUrl)
Sets the value of
FileAssetLocation.getS3ObjectUrl() |
FileAssetLocation.Builder |
s3Url(String s3Url)
Deprecated.
use `httpUrl`
|
@Stability(value=Stable) public FileAssetLocation.Builder bucketName(String bucketName)
FileAssetLocation.getBucketName()
bucketName
- The name of the Amazon S3 bucket. This parameter is required.this
@Stability(value=Stable) public FileAssetLocation.Builder httpUrl(String httpUrl)
FileAssetLocation.getHttpUrl()
httpUrl
- The HTTP URL of this asset on Amazon S3. This parameter is required.this
@Stability(value=Stable) public FileAssetLocation.Builder objectKey(String objectKey)
FileAssetLocation.getObjectKey()
objectKey
- The Amazon S3 object key. This parameter is required.this
@Stability(value=Stable) public FileAssetLocation.Builder s3ObjectUrl(String s3ObjectUrl)
FileAssetLocation.getS3ObjectUrl()
s3ObjectUrl
- The S3 URL of this asset on Amazon S3. This parameter is required.this
@Stability(value=Deprecated) @Deprecated public FileAssetLocation.Builder s3Url(String s3Url)
FileAssetLocation.getS3Url()
s3Url
- The HTTP URL of this asset on Amazon S3. This parameter is required.this
@Stability(value=Deprecated) @Deprecated public FileAssetLocation.Builder kmsKeyArn(String kmsKeyArn)
FileAssetLocation.getKmsKeyArn()
kmsKeyArn
- The ARN of the KMS key used to encrypt the file asset bucket, if any.
If so, the consuming role should be given "kms:Decrypt" permissions in its
identity policy.
It's the responsibility of they key's creator to make sure that all consumers that the key's key policy is configured such that the key can be used by all consumers that need it.
The default bootstrap stack provisioned by the CDK CLI ensures this, and can be used as an example for how to configure the key properly.
this
@Stability(value=Stable) public FileAssetLocation build()
build
in interface software.amazon.jsii.Builder<FileAssetLocation>
FileAssetLocation
NullPointerException
- if any required attribute was not providedCopyright © 2020. All rights reserved.