@Stability(value=Stable) @Internal public static final class BucketDeploymentProps.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements BucketDeploymentProps
BucketDeploymentPropssoftware.amazon.jsii.JsiiObject.InitializationModeBucketDeploymentProps.Builder, BucketDeploymentProps.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
protected |
Jsii$Proxy(BucketDeploymentProps.Builder builder)
Constructor that initializes the object based on literal property values passed by the
BucketDeploymentProps.Builder. |
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.
|
| Modifier and Type | Method and Description |
|---|---|
com.fasterxml.jackson.databind.JsonNode |
$jsii$toJson() |
boolean |
equals(Object o) |
BucketAccessControl |
getAccessControl()
System-defined x-amz-acl metadata to be set on all objects in the deployment.
|
List<CacheControl> |
getCacheControl()
System-defined cache-control metadata to be set on all objects in the deployment.
|
String |
getContentDisposition()
System-defined cache-disposition metadata to be set on all objects in the deployment.
|
String |
getContentEncoding()
System-defined content-encoding metadata to be set on all objects in the deployment.
|
String |
getContentLanguage()
System-defined content-language metadata to be set on all objects in the deployment.
|
String |
getContentType()
System-defined content-type metadata to be set on all objects in the deployment.
|
IBucket |
getDestinationBucket()
The S3 bucket to sync the contents of the zip file to.
|
String |
getDestinationKeyPrefix()
Key prefix in the destination bucket.
|
IDistribution |
getDistribution()
The CloudFront distribution using the destination bucket as an origin.
|
List<String> |
getDistributionPaths()
The file paths to invalidate in the CloudFront distribution.
|
Size |
getEphemeralStorageSize()
The size of the AWS Lambda function’s /tmp directory in MiB.
|
List<String> |
getExclude()
If this is set, matching files or objects will be excluded from the deployment's sync command.
|
Expiration |
getExpires()
System-defined expires metadata to be set on all objects in the deployment.
|
List<String> |
getInclude()
If this is set, matching files or objects will be included with the deployment's sync command.
|
RetentionDays |
getLogRetention()
The number of days that the lambda function's log events are kept in CloudWatch Logs.
|
Number |
getMemoryLimit()
The amount of memory (in MiB) to allocate to the AWS Lambda function which replicates the files from the CDK bucket to the destination bucket.
|
UserDefinedObjectMetadata |
getMetadata()
User-defined object metadata to be set on all objects in the deployment.
|
Boolean |
getPrune()
If this is set to false, files in the destination bucket that do not exist in the asset, will NOT be deleted during deployment (create/update).
|
Boolean |
getRetainOnDelete()
If this is set to "false", the destination files will be deleted when the resource is deleted or the destination is updated.
|
IRole |
getRole()
Execution role associated with this function.
|
ServerSideEncryption |
getServerSideEncryption()
System-defined x-amz-server-side-encryption metadata to be set on all objects in the deployment.
|
String |
getServerSideEncryptionAwsKmsKeyId()
System-defined x-amz-server-side-encryption-aws-kms-key-id metadata to be set on all objects in the deployment.
|
String |
getServerSideEncryptionCustomerAlgorithm()
System-defined x-amz-server-side-encryption-customer-algorithm metadata to be set on all objects in the deployment.
|
List<ISource> |
getSources()
The sources from which to deploy the contents of this bucket.
|
StorageClass |
getStorageClass()
System-defined x-amz-storage-class metadata to be set on all objects in the deployment.
|
Boolean |
getUseEfs()
Mount an EFS file system.
|
IVpc |
getVpc()
The VPC network to place the deployment lambda handler in.
|
SubnetSelection |
getVpcSubnets()
Where in the VPC to place the deployment lambda handler.
|
String |
getWebsiteRedirectLocation()
System-defined x-amz-website-redirect-location metadata to be set on all objects in the deployment.
|
int |
hashCode() |
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitbuilderprotected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
objRef - Reference to the JSII managed object.protected Jsii$Proxy(BucketDeploymentProps.Builder builder)
BucketDeploymentProps.Builder.public final IBucket getDestinationBucket()
BucketDeploymentPropsgetDestinationBucket in interface BucketDeploymentPropspublic final List<ISource> getSources()
BucketDeploymentPropsgetSources in interface BucketDeploymentPropspublic final BucketAccessControl getAccessControl()
BucketDeploymentPropsDefault: - Not set.
getAccessControl in interface BucketDeploymentPropspublic final List<CacheControl> getCacheControl()
BucketDeploymentPropsDefault: - Not set.
getCacheControl in interface BucketDeploymentPropspublic final String getContentDisposition()
BucketDeploymentPropsDefault: - Not set.
getContentDisposition in interface BucketDeploymentPropspublic final String getContentEncoding()
BucketDeploymentPropsDefault: - Not set.
getContentEncoding in interface BucketDeploymentPropspublic final String getContentLanguage()
BucketDeploymentPropsDefault: - Not set.
getContentLanguage in interface BucketDeploymentPropspublic final String getContentType()
BucketDeploymentPropsDefault: - Not set.
getContentType in interface BucketDeploymentPropspublic final String getDestinationKeyPrefix()
BucketDeploymentPropsMust be <=104 characters
Default: "/" (unzip to root of the destination bucket)
getDestinationKeyPrefix in interface BucketDeploymentPropspublic final IDistribution getDistribution()
BucketDeploymentPropsFiles in the distribution's edge caches will be invalidated after files are uploaded to the destination bucket.
Default: - No invalidation occurs
getDistribution in interface BucketDeploymentPropspublic final List<String> getDistributionPaths()
BucketDeploymentPropsDefault: - All files under the destination bucket key prefix will be invalidated.
getDistributionPaths in interface BucketDeploymentPropspublic final Size getEphemeralStorageSize()
BucketDeploymentPropsDefault: 512 MiB
getEphemeralStorageSize in interface BucketDeploymentPropspublic final List<String> getExclude()
BucketDeploymentPropsThis can be used to exclude a file from being pruned in the destination bucket.
If you want to just exclude files from the deployment package (which excludes these files
evaluated when invalidating the asset), you should leverage the exclude property of
AssetOptions when defining your source.
Default: - No exclude filters are used
getExclude in interface BucketDeploymentPropspublic final Expiration getExpires()
BucketDeploymentPropsDefault: - The objects in the distribution will not expire.
getExpires in interface BucketDeploymentPropspublic final List<String> getInclude()
BucketDeploymentProps
Since all files from the deployment package are included by default, this property
is usually leveraged alongside an exclude filter.
Default: - No include filters are used and all files are included with the sync command
getInclude in interface BucketDeploymentPropspublic final RetentionDays getLogRetention()
BucketDeploymentPropsDefault: logs.RetentionDays.INFINITE
getLogRetention in interface BucketDeploymentPropspublic final Number getMemoryLimit()
BucketDeploymentPropsIf you are deploying large files, you will need to increase this number accordingly.
Default: 128
getMemoryLimit in interface BucketDeploymentPropspublic final UserDefinedObjectMetadata getMetadata()
BucketDeploymentPropsDefault: - No user metadata is set
getMetadata in interface BucketDeploymentPropspublic final Boolean getPrune()
BucketDeploymentPropsDefault: true
getPrune in interface BucketDeploymentPropspublic final Boolean getRetainOnDelete()
BucketDeploymentPropsNOTICE: Configuring this to "false" might have operational implications. Please visit to the package documentation referred below to make sure you fully understand those implications.
Default: true - when resource is deleted/updated, files are retained
getRetainOnDelete in interface BucketDeploymentPropspublic final IRole getRole()
BucketDeploymentPropsDefault: - A role is automatically created
getRole in interface BucketDeploymentPropspublic final ServerSideEncryption getServerSideEncryption()
BucketDeploymentPropsDefault: - Server side encryption is not used.
getServerSideEncryption in interface BucketDeploymentPropspublic final String getServerSideEncryptionAwsKmsKeyId()
BucketDeploymentPropsDefault: - Not set.
getServerSideEncryptionAwsKmsKeyId in interface BucketDeploymentPropspublic final String getServerSideEncryptionCustomerAlgorithm()
BucketDeploymentPropsWarning: This is not a useful parameter until this bug is fixed: https://github.com/aws/aws-cdk/issues/6080
Default: - Not set.
public final StorageClass getStorageClass()
BucketDeploymentPropsDefault: - Default storage-class for the bucket is used.
getStorageClass in interface BucketDeploymentPropspublic final Boolean getUseEfs()
BucketDeploymentPropsEnable this if your assets are large and you encounter disk space errors. Enabling this option will require a VPC to be specified.
Default: - No EFS. Lambda has access only to 512MB of disk space.
getUseEfs in interface BucketDeploymentPropspublic final IVpc getVpc()
BucketDeploymentProps
This is required if useEfs is set.
Default: None
getVpc in interface BucketDeploymentPropspublic final SubnetSelection getVpcSubnets()
BucketDeploymentPropsOnly used if 'vpc' is supplied.
Default: - the Vpc default strategy if not specified
getVpcSubnets in interface BucketDeploymentPropspublic final String getWebsiteRedirectLocation()
BucketDeploymentPropsDefault: - No website redirection.
getWebsiteRedirectLocation in interface BucketDeploymentProps@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
$jsii$toJson in interface software.amazon.jsii.JsiiSerializableCopyright © 2022. All rights reserved.