@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)
Sets the value of
FileAssetLocation.getKmsKeyArn() |
FileAssetLocation.Builder |
objectKey(String objectKey)
Sets the value of
FileAssetLocation.getObjectKey() |
FileAssetLocation.Builder |
s3ObjectUrl(String s3ObjectUrl)
Sets the value of
FileAssetLocation.getS3ObjectUrl() |
FileAssetLocation.Builder |
s3ObjectUrlWithPlaceholders(String s3ObjectUrlWithPlaceholders)
Sets the value of
FileAssetLocation.getS3ObjectUrlWithPlaceholders() |
@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 value suitable for inclusion in a CloudFormation template, and
may be an encoded token.
Example value: https://s3-us-east-1.amazonaws.com/mybucket/myobject
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 value suitable for inclusion in a CloudFormation template, and
may be an encoded token.
Example value: s3://mybucket/myobject
this@Stability(value=Stable) public FileAssetLocation.Builder kmsKeyArn(String kmsKeyArn)
FileAssetLocation.getKmsKeyArn()kmsKeyArn - The ARN of the KMS key used to encrypt the file asset bucket, if any.
The CDK bootstrap stack comes with a key policy that does not require
setting this property, so you only need to set this property if you
have customized the bootstrap stack to require it.this@Stability(value=Stable) public FileAssetLocation.Builder s3ObjectUrlWithPlaceholders(String s3ObjectUrlWithPlaceholders)
FileAssetLocation.getS3ObjectUrlWithPlaceholders()s3ObjectUrlWithPlaceholders - Like `s3ObjectUrl`, but not suitable for CloudFormation consumption.
If there are placeholders in the S3 URL, they will be returned unreplaced
and un-evaluated.this@Stability(value=Stable) public FileAssetLocation build()
build in interface software.amazon.jsii.Builder<FileAssetLocation>FileAssetLocationNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.