@Generated(value="jsii-pacmak/1.9.0 (build 5c646d5)", date="2020-08-14T23:35:53.719Z") @Stability(value=Stable) public interface FileAssetLocation extends software.amazon.jsii.JsiiSerializable
This is where the asset can be consumed at runtime.
| Modifier and Type | Interface and Description |
|---|---|
static class |
FileAssetLocation.Builder
A builder for
FileAssetLocation |
static class |
FileAssetLocation.Jsii$Proxy
An implementation for
FileAssetLocation |
| Modifier and Type | Method and Description |
|---|---|
static FileAssetLocation.Builder |
builder() |
String |
getBucketName()
The name of the Amazon S3 bucket.
|
String |
getHttpUrl()
The HTTP URL of this asset on Amazon S3.
|
default String |
getKmsKeyArn()
The ARN of the KMS key used to encrypt the file asset bucket, if any.
|
String |
getObjectKey()
The Amazon S3 object key.
|
String |
getS3ObjectUrl()
The S3 URL of this asset on Amazon S3.
|
String |
getS3Url()
Deprecated.
use `httpUrl`
|
@Stability(value=Stable) @NotNull String getBucketName()
@Stability(value=Stable) @NotNull String getHttpUrl()
Example:
// Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826 https:
@Stability(value=Stable) @NotNull String getObjectKey()
@Stability(value=Stable) @NotNull String getS3ObjectUrl()
Example:
// Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826 s3:
@Stability(value=Deprecated) @Deprecated @NotNull String getS3Url()
@Stability(value=Stable) @Nullable default String getKmsKeyArn()
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.
Default: - Asset bucket is not encrypted
@Stability(value=Stable) static FileAssetLocation.Builder builder()
FileAssetLocation.Builder of FileAssetLocationCopyright © 2020. All rights reserved.