@Generated(value="jsii-pacmak/1.27.0 (build 07d848a)", date="2021-04-12T10:04:22.968Z") @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()
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.
|
String |
getObjectKey()
The Amazon S3 object key.
|
String |
getS3ObjectUrl()
The S3 URL of this asset on Amazon S3.
|
default 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 @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=Deprecated) @Deprecated @Nullable default String getS3Url()
Default: - value specified in `httpUrl` is used.
@Stability(value=Stable) static FileAssetLocation.Builder builder()
FileAssetLocation.Builder of FileAssetLocationCopyright © 2021. All rights reserved.