@Stability(value=Stable) @Internal public static final class BucketProps.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements BucketProps
BucketProps
software.amazon.jsii.JsiiObject.InitializationMode
BucketProps.Builder, BucketProps.Jsii$Proxy
Modifier | Constructor and Description |
---|---|
protected |
Jsii$Proxy(BucketAccessControl accessControl,
Boolean autoDeleteObjects,
BlockPublicAccess blockPublicAccess,
Boolean bucketKeyEnabled,
String bucketName,
List<? extends CorsRule> cors,
BucketEncryption encryption,
IKey encryptionKey,
Boolean enforceSsl,
List<? extends Inventory> inventories,
List<? extends LifecycleRule> lifecycleRules,
List<? extends BucketMetrics> metrics,
ObjectOwnership objectOwnership,
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()
Specifies a canned ACL that grants predefined permissions to the bucket.
|
Boolean |
getAutoDeleteObjects()
Whether all objects should be automatically deleted when the bucket is removed from the stack or when the stack is deleted.
|
BlockPublicAccess |
getBlockPublicAccess()
The block public access configuration of this bucket.
|
Boolean |
getBucketKeyEnabled()
Specifies whether Amazon S3 should use an S3 Bucket Key with server-side encryption using KMS (SSE-KMS) for new objects in the bucket.
|
String |
getBucketName()
Physical name of this bucket.
|
List<CorsRule> |
getCors()
The CORS configuration of this bucket.
|
BucketEncryption |
getEncryption()
The kind of server-side encryption to apply to this bucket.
|
IKey |
getEncryptionKey()
External KMS key to use for bucket encryption.
|
Boolean |
getEnforceSsl()
Enforces SSL for requests.
|
List<Inventory> |
getInventories()
The inventory configuration of the bucket.
|
List<LifecycleRule> |
getLifecycleRules()
Rules that define how Amazon S3 manages objects during their lifetime.
|
List<BucketMetrics> |
getMetrics()
The metrics configuration of this bucket.
|
ObjectOwnership |
getObjectOwnership()
The objectOwnership of the bucket.
|
Boolean |
getPublicReadAccess()
Grants public read access to all objects in the bucket.
|
RemovalPolicy |
getRemovalPolicy()
Policy to apply when the bucket is removed from this stack.
|
IBucket |
getServerAccessLogsBucket()
Destination bucket for the server access logs.
|
String |
getServerAccessLogsPrefix()
Optional log file prefix to use for the bucket's access logs.
|
Boolean |
getVersioned()
Whether this bucket should have versioning turned on or not.
|
String |
getWebsiteErrorDocument()
The name of the error document (e.g.
|
String |
getWebsiteIndexDocument()
The name of the index document (e.g.
|
RedirectTarget |
getWebsiteRedirect()
Specifies the redirect behavior of all requests to a website endpoint of a bucket.
|
List<RoutingRule> |
getWebsiteRoutingRules()
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, jsiiStaticSet
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
builder
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
objRef
- Reference to the JSII managed object.protected Jsii$Proxy(BucketAccessControl accessControl, Boolean autoDeleteObjects, BlockPublicAccess blockPublicAccess, Boolean bucketKeyEnabled, String bucketName, List<? extends CorsRule> cors, BucketEncryption encryption, IKey encryptionKey, Boolean enforceSsl, List<? extends Inventory> inventories, List<? extends LifecycleRule> lifecycleRules, List<? extends BucketMetrics> metrics, ObjectOwnership objectOwnership, 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()
BucketProps
Default: BucketAccessControl.PRIVATE
getAccessControl
in interface BucketProps
public final Boolean getAutoDeleteObjects()
BucketProps
Requires the removalPolicy
to be set to RemovalPolicy.DESTROY
.
Default: false
getAutoDeleteObjects
in interface BucketProps
public final BlockPublicAccess getBlockPublicAccess()
BucketProps
Default: - CloudFormation defaults will apply. 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 BucketProps
https://docs.aws.amazon.com/AmazonS3/latest/dev/access-control-block-public-access.html
public final Boolean getBucketKeyEnabled()
BucketProps
Only relevant, when Encryption is set to {@link BucketEncryption.KMS}
Default: - false
getBucketKeyEnabled
in interface BucketProps
public final String getBucketName()
BucketProps
Default: - Assigned by CloudFormation (recommended).
getBucketName
in interface BucketProps
public final List<CorsRule> getCors()
BucketProps
Default: - No CORS configuration.
getCors
in interface BucketProps
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-cors.html
public 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 BucketProps
public final IKey getEncryptionKey()
BucketProps
The '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 BucketProps
public final Boolean getEnforceSsl()
BucketProps
S3.5 of the AWS Foundational Security Best Practices Regarding S3.
Default: false
getEnforceSsl
in interface BucketProps
https://docs.aws.amazon.com/config/latest/developerguide/s3-bucket-ssl-requests-only.html
public final List<Inventory> getInventories()
BucketProps
Default: - No inventory configuration
getInventories
in interface BucketProps
https://docs.aws.amazon.com/AmazonS3/latest/dev/storage-inventory.html
public final List<LifecycleRule> getLifecycleRules()
BucketProps
Default: - No lifecycle rules.
getLifecycleRules
in interface BucketProps
public final List<BucketMetrics> getMetrics()
BucketProps
Default: - No metrics configuration.
getMetrics
in interface BucketProps
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-metricsconfiguration.html
public final ObjectOwnership getObjectOwnership()
BucketProps
Default: - No ObjectOwnership configuration, uploading account will own the object.
getObjectOwnership
in interface BucketProps
https://docs.aws.amazon.com/AmazonS3/latest/dev/about-object-ownership.html
public final Boolean getPublicReadAccess()
BucketProps
Similar to calling bucket.grantPublicAccess()
Default: false
getPublicReadAccess
in interface BucketProps
public final RemovalPolicy getRemovalPolicy()
BucketProps
Default: - The bucket will be orphaned.
getRemovalPolicy
in interface BucketProps
public final IBucket getServerAccessLogsBucket()
BucketProps
Default: - If "serverAccessLogsPrefix" undefined - access logs disabled, otherwise - log to current bucket.
getServerAccessLogsBucket
in interface BucketProps
public final String getServerAccessLogsPrefix()
BucketProps
If defined without "serverAccessLogsBucket", enables access logs to current bucket with this prefix.
Default: - No log file prefix
getServerAccessLogsPrefix
in interface BucketProps
public final Boolean getVersioned()
BucketProps
Default: false
getVersioned
in interface BucketProps
public final String getWebsiteErrorDocument()
BucketProps
Default: - No error document.
getWebsiteErrorDocument
in interface BucketProps
public final String getWebsiteIndexDocument()
BucketProps
Default: - No index document.
getWebsiteIndexDocument
in interface BucketProps
public final RedirectTarget getWebsiteRedirect()
BucketProps
If you specify this property, you can't specify "websiteIndexDocument", "websiteErrorDocument" nor , "websiteRoutingRules".
Default: - No redirection.
getWebsiteRedirect
in interface BucketProps
public final List<RoutingRule> getWebsiteRoutingRules()
BucketProps
Default: - No redirection rules.
getWebsiteRoutingRules
in interface BucketProps
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
$jsii$toJson
in interface software.amazon.jsii.JsiiSerializable
Copyright © 2021. All rights reserved.