@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-14T16:25:27.225Z") public class CfnMultiRegionAccessPointPolicy extends CfnResource implements IInspectable
Applies an Amazon S3 access policy to an Amazon S3 Multi-Region Access Point.
It is not possible to delete an access policy for a Multi-Region Access Point from the CloudFormation template. When you attempt to delete the policy, CloudFormation updates the policy using DeletionPolicy:Retain
and UpdateReplacePolicy:Retain
. CloudFormation updates the policy to only allow access to the account that created the bucket.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.s3.*; Object policy; CfnMultiRegionAccessPointPolicy cfnMultiRegionAccessPointPolicy = CfnMultiRegionAccessPointPolicy.Builder.create(this, "MyCfnMultiRegionAccessPointPolicy") .mrapName("mrapName") .policy(policy) .build();
Modifier and Type | Class and Description |
---|---|
static class |
CfnMultiRegionAccessPointPolicy.Builder
A fluent builder for
CfnMultiRegionAccessPointPolicy . |
static interface |
CfnMultiRegionAccessPointPolicy.PolicyStatusProperty
The container element for a bucket's policy status.
|
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
IConstruct.Jsii$Default
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
Modifier | Constructor and Description |
---|---|
|
CfnMultiRegionAccessPointPolicy(Construct scope,
java.lang.String id,
CfnMultiRegionAccessPointPolicyProps props)
Create a new `AWS::S3::MultiRegionAccessPointPolicy`.
|
protected |
CfnMultiRegionAccessPointPolicy(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnMultiRegionAccessPointPolicy(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAttrPolicyStatusIsPublic() |
protected java.util.Map<java.lang.String,java.lang.Object> |
getCfnProperties() |
java.lang.String |
getMrapName()
The name of the Multi-Region Access Point.
|
java.lang.Object |
getPolicy()
The access policy associated with the Multi-Region Access Point.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
renderProperties(java.util.Map<java.lang.String,java.lang.Object> props) |
void |
setMrapName(java.lang.String value)
The name of the Multi-Region Access Point.
|
void |
setPolicy(java.lang.Object value)
The access policy associated with the Multi-Region Access Point.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
getRef
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
public static final java.lang.String CFN_RESOURCE_TYPE_NAME
protected CfnMultiRegionAccessPointPolicy(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnMultiRegionAccessPointPolicy(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public CfnMultiRegionAccessPointPolicy(Construct scope, java.lang.String id, CfnMultiRegionAccessPointPolicyProps props)
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. This parameter is required.props
- - resource properties. This parameter is required.public void inspect(TreeInspector inspector)
inspect
in interface IInspectable
inspector
- - tree inspector to collect and process attributes. This parameter is required.protected java.util.Map<java.lang.String,java.lang.Object> renderProperties(java.util.Map<java.lang.String,java.lang.Object> props)
renderProperties
in class CfnResource
props
- This parameter is required.public java.lang.String getAttrPolicyStatusIsPublic()
protected java.util.Map<java.lang.String,java.lang.Object> getCfnProperties()
getCfnProperties
in class CfnResource
public java.lang.String getMrapName()
public void setMrapName(java.lang.String value)
public java.lang.Object getPolicy()
public void setPolicy(java.lang.Object value)