@Generated(value="jsii-pacmak/1.15.0 (build 585166b)", date="2021-01-21T13:42:48.952Z") @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.
|
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=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=Stable) static FileAssetLocation.Builder builder()
FileAssetLocation.Builder of FileAssetLocationCopyright © 2021. All rights reserved.