Class CfnMultiRegionAccessPointPolicy
Applies an Amazon S3 access policy to an Amazon S3 Multi-Region Access Point.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.S3
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnMultiRegionAccessPointPolicy : CfnResource, IInspectable
Syntax (vb)
Public Class CfnMultiRegionAccessPointPolicy
Inherits CfnResource
Implements IInspectable
Remarks
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.
CloudformationResource: AWS::S3::MultiRegionAccessPointPolicy
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.S3;
var policy;
var cfnMultiRegionAccessPointPolicy = new CfnMultiRegionAccessPointPolicy(this, "MyCfnMultiRegionAccessPointPolicy", new CfnMultiRegionAccessPointPolicyProps {
MrapName = "mrapName",
Policy = policy
});
Synopsis
Constructors
CfnMultiRegionAccessPointPolicy(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CfnMultiRegionAccessPointPolicy(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
CfnMultiRegionAccessPointPolicy(Construct, String, ICfnMultiRegionAccessPointPolicyProps) |
Properties
AttrPolicyStatus | The Policy Status associated with this Multi Region Access Point. |
AttrPolicyStatusIsPublic | Specifies whether the policy is public or not. |
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
CfnProperties | |
MrapName | The name of the Multi-Region Access Point. |
Policy | The access policy associated with the Multi-Region Access Point. |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnMultiRegionAccessPointPolicy(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnMultiRegionAccessPointPolicy(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CfnMultiRegionAccessPointPolicy(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnMultiRegionAccessPointPolicy(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
CfnMultiRegionAccessPointPolicy(Construct, String, ICfnMultiRegionAccessPointPolicyProps)
public CfnMultiRegionAccessPointPolicy(Construct scope, string id, ICfnMultiRegionAccessPointPolicyProps props)
Parameters
- scope Constructs.Construct
Scope in which this resource is defined.
- id System.String
Construct identifier for this resource (unique in its scope).
- props ICfnMultiRegionAccessPointPolicyProps
Resource properties.
Properties
AttrPolicyStatus
The Policy Status associated with this Multi Region Access Point.
public virtual IResolvable AttrPolicyStatus { get; }
Property Value
Remarks
CloudformationAttribute: PolicyStatus
AttrPolicyStatusIsPublic
Specifies whether the policy is public or not.
public virtual string AttrPolicyStatusIsPublic { get; }
Property Value
System.String
Remarks
CloudformationAttribute: PolicyStatus.IsPublic
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
System.String
CfnProperties
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.Object>
Overrides
MrapName
The name of the Multi-Region Access Point.
public virtual string MrapName { get; set; }
Property Value
System.String
Policy
The access policy associated with the Multi-Region Access Point.
public virtual object Policy { get; set; }
Property Value
System.Object
Methods
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
- inspector TreeInspector
tree inspector to collect and process attributes.
RenderProperties(IDictionary<String, Object>)
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props System.Collections.Generic.IDictionary<System.String, System.Object>
Returns
System.Collections.Generic.IDictionary<System.String, System.Object>