@Stability(value=Experimental) @Internal public static final class BucketProps.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements BucketProps
BucketPropssoftware.amazon.jsii.JsiiObject.InitializationModeBucketProps.Builder, BucketProps.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
protected |
Jsii$Proxy(BucketAccessControl accessControl,
BlockPublicAccess blockPublicAccess,
String bucketName,
List<? extends CorsRule> cors,
BucketEncryption encryption,
IKey encryptionKey,
List<? extends Inventory> inventories,
List<? extends LifecycleRule> lifecycleRules,
List<? extends BucketMetrics> metrics,
Boolean publicReadAccess,
RemovalPolicy removalPolicy,
IBucket serverAccessLogsBucket,
String serverAccessLogsPrefix,
Boolean versioned,
String websiteErrorDocument,
String websiteIndexDocument,
RedirectTarget websiteRedirect,
List<? extends RoutingRule> websiteRoutingRules)
Constructor that initializes the object based on literal property values passed by the
BucketProps.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()
(experimental) Specifies a canned ACL that grants predefined permissions to the bucket.
|
BlockPublicAccess |
getBlockPublicAccess()
(experimental) The block public access configuration of this bucket.
|
String |
getBucketName()
(experimental) Physical name of this bucket.
|
List<CorsRule> |
getCors()
(experimental) The CORS configuration of this bucket.
|
BucketEncryption |
getEncryption()
(experimental) The kind of server-side encryption to apply to this bucket.
|
IKey |
getEncryptionKey()
(experimental) External KMS key to use for bucket encryption.
|
List<Inventory> |
getInventories()
(experimental) The inventory configuration of the bucket.
|
List<LifecycleRule> |
getLifecycleRules()
(experimental) Rules that define how Amazon S3 manages objects during their lifetime.
|
List<BucketMetrics> |
getMetrics()
(experimental) The metrics configuration of this bucket.
|
Boolean |
getPublicReadAccess()
(experimental) Grants public read access to all objects in the bucket.
|
RemovalPolicy |
getRemovalPolicy()
(experimental) Policy to apply when the bucket is removed from this stack.
|
IBucket |
getServerAccessLogsBucket()
(experimental) Destination bucket for the server access logs.
|
String |
getServerAccessLogsPrefix()
(experimental) Optional log file prefix to use for the bucket's access logs.
|
Boolean |
getVersioned()
(experimental) Whether this bucket should have versioning turned on or not.
|
String |
getWebsiteErrorDocument()
(experimental) The name of the error document (e.g.
|
String |
getWebsiteIndexDocument()
(experimental) The name of the index document (e.g.
|
RedirectTarget |
getWebsiteRedirect()
(experimental) Specifies the redirect behavior of all requests to a website endpoint of a bucket.
|
List<RoutingRule> |
getWebsiteRoutingRules()
(experimental) Rules that define when a redirect is applied and the redirect behavior.
|
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(BucketAccessControl accessControl, BlockPublicAccess blockPublicAccess, String bucketName, List<? extends CorsRule> cors, BucketEncryption encryption, IKey encryptionKey, List<? extends Inventory> inventories, List<? extends LifecycleRule> lifecycleRules, List<? extends BucketMetrics> metrics, Boolean publicReadAccess, RemovalPolicy removalPolicy, IBucket serverAccessLogsBucket, String serverAccessLogsPrefix, Boolean versioned, String websiteErrorDocument, String websiteIndexDocument, RedirectTarget websiteRedirect, List<? extends RoutingRule> websiteRoutingRules)
BucketProps.Builder.public final BucketAccessControl getAccessControl()
BucketPropsDefault: BucketAccessControl.PRIVATE
getAccessControl in interface BucketPropspublic final BlockPublicAccess getBlockPublicAccess()
BucketPropsDefault: false New buckets and objects don't allow public access, but users can modify bucket policies or object permissions to allow public access.
getBlockPublicAccess in interface BucketPropshttps://docs.aws.amazon.com/AmazonS3/latest/dev/access-control-block-public-access.htmlpublic final String getBucketName()
BucketPropsDefault: - Assigned by CloudFormation (recommended).
getBucketName in interface BucketPropspublic final List<CorsRule> getCors()
BucketPropsDefault: - No CORS configuration.
getCors in interface BucketPropshttps://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-cors.htmlpublic final BucketEncryption getEncryption()
BucketProps
If you choose KMS, you can specify a KMS key via encryptionKey. If
encryption key is not specified, a key will automatically be created.
Default: - `Kms` if `encryptionKey` is specified, or `Unencrypted` otherwise.
getEncryption in interface BucketPropspublic final IKey getEncryptionKey()
BucketPropsThe 'encryption' property must be either not specified or set to "Kms". An error will be emitted if encryption is set to "Unencrypted" or "Managed".
Default: - If encryption is set to "Kms" and this property is undefined, a new KMS key will be created and associated with this bucket.
getEncryptionKey in interface BucketPropspublic final List<Inventory> getInventories()
BucketPropsDefault: - No inventory configuration
getInventories in interface BucketPropshttps://docs.aws.amazon.com/AmazonS3/latest/dev/storage-inventory.htmlpublic final List<LifecycleRule> getLifecycleRules()
BucketPropsDefault: - No lifecycle rules.
getLifecycleRules in interface BucketPropspublic final List<BucketMetrics> getMetrics()
BucketPropsDefault: - No metrics configuration.
getMetrics in interface BucketPropshttps://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-metricsconfiguration.htmlpublic final Boolean getPublicReadAccess()
BucketProps
Similar to calling bucket.grantPublicAccess()
Default: false
getPublicReadAccess in interface BucketPropspublic final RemovalPolicy getRemovalPolicy()
BucketPropsDefault: - The bucket will be orphaned.
getRemovalPolicy in interface BucketPropspublic final IBucket getServerAccessLogsBucket()
BucketPropsDefault: - If "serverAccessLogsPrefix" undefined - access logs disabled, otherwise - log to current bucket.
getServerAccessLogsBucket in interface BucketPropspublic final String getServerAccessLogsPrefix()
BucketPropsIf defined without "serverAccessLogsBucket", enables access logs to current bucket with this prefix.
Default: - No log file prefix
getServerAccessLogsPrefix in interface BucketPropspublic final Boolean getVersioned()
BucketPropsDefault: false
getVersioned in interface BucketPropspublic final String getWebsiteErrorDocument()
BucketPropsDefault: - No error document.
getWebsiteErrorDocument in interface BucketPropspublic final String getWebsiteIndexDocument()
BucketPropsDefault: - No index document.
getWebsiteIndexDocument in interface BucketPropspublic final RedirectTarget getWebsiteRedirect()
BucketPropsIf you specify this property, you can't specify "websiteIndexDocument", "websiteErrorDocument" nor , "websiteRoutingRules".
Default: - No redirection.
getWebsiteRedirect in interface BucketPropspublic final List<RoutingRule> getWebsiteRoutingRules()
BucketPropsDefault: - No redirection rules.
getWebsiteRoutingRules in interface BucketProps@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
$jsii$toJson in interface software.amazon.jsii.JsiiSerializableCopyright © 2020. All rights reserved.