Class CfnAccessPoint
The AWS::S3::AccessPoint resource is an Amazon S3 resource type that you can use to access buckets.
Inherited Members
Namespace: Amazon.CDK.AWS.S3
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnAccessPoint : CfnResource, IInspectable, IAccessPointRef, IConstruct, IDependable, IEnvironmentAware, ITaggableV2
Syntax (vb)
Public Class CfnAccessPoint Inherits CfnResource Implements IInspectable, IAccessPointRef, IConstruct, IDependable, IEnvironmentAware, ITaggableV2
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-s3-accesspoint.html
CloudformationResource: AWS::S3::AccessPoint
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 cfnAccessPoint = new CfnAccessPoint(this, "MyCfnAccessPoint", new CfnAccessPointProps {
Bucket = "bucket",
// the properties below are optional
BucketAccountId = "bucketAccountId",
Name = "name",
Policy = policy,
PublicAccessBlockConfiguration = new PublicAccessBlockConfigurationProperty {
BlockPublicAcls = false,
BlockPublicPolicy = false,
IgnorePublicAcls = false,
RestrictPublicBuckets = false
},
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} },
VpcConfiguration = new VpcConfigurationProperty {
VpcId = "vpcId"
}
});
Synopsis
Constructors
| CfnAccessPoint(Construct, string, ICfnAccessPointProps) | Create a new |
Properties
| AccessPointRef | A reference to a AccessPoint resource. |
| AttrAlias | The alias for this access point. |
| AttrArn | This property contains the details of the ARN for the access point. |
| AttrName | The name of this access point. |
| AttrNetworkOrigin | Indicates whether this access point allows access from the internet. |
| Bucket | The name of the bucket associated with this access point. |
| BucketAccountId | The AWS account ID associated with the S3 bucket associated with this access point. |
| CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
| CdkTagManager | Tag Manager which manages the tags for this resource. |
| CfnProperties | The AWS::S3::AccessPoint resource is an Amazon S3 resource type that you can use to access buckets. |
| CfnPropertyNames | The AWS::S3::AccessPoint resource is an Amazon S3 resource type that you can use to access buckets. |
| Name | The name of this access point. |
| Policy | The access point policy associated with this access point. |
| PublicAccessBlockConfiguration | The PublicAccessBlock configuration that you want to apply to this Amazon S3 bucket. |
| Tags | An array of tags that you can apply to access points. |
| VpcConfiguration | The Virtual Private Cloud (VPC) configuration for this access point, if one exists. |
Methods
| ArnForAccessPoint(IAccessPointRef) | The AWS::S3::AccessPoint resource is an Amazon S3 resource type that you can use to access buckets. |
| FromAccessPointArn(Construct, string, string) | Creates a new IAccessPointRef from an ARN. |
| FromAccessPointName(Construct, string, string) | Creates a new IAccessPointRef from a accessPointName. |
| Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
| IsCfnAccessPoint(object) | Checks whether the given object is a CfnAccessPoint. |
| RenderProperties(IDictionary<string, object>) | The AWS::S3::AccessPoint resource is an Amazon S3 resource type that you can use to access buckets. |
Constructors
CfnAccessPoint(Construct, string, ICfnAccessPointProps)
Create a new AWS::S3::AccessPoint.
public CfnAccessPoint(Construct scope, string id, ICfnAccessPointProps props)
Parameters
- scope Construct
Scope in which this resource is defined.
- id string
Construct identifier for this resource (unique in its scope).
- props ICfnAccessPointProps
Resource properties.
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-s3-accesspoint.html
CloudformationResource: AWS::S3::AccessPoint
ExampleMetadata: fixture=_generated
Properties
AccessPointRef
A reference to a AccessPoint resource.
public virtual IAccessPointReference AccessPointRef { get; }
Property Value
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-s3-accesspoint.html
CloudformationResource: AWS::S3::AccessPoint
ExampleMetadata: fixture=_generated
AttrAlias
The alias for this access point.
public virtual string AttrAlias { get; }
Property Value
Remarks
CloudformationAttribute: Alias
AttrArn
This property contains the details of the ARN for the access point.
public virtual string AttrArn { get; }
Property Value
Remarks
CloudformationAttribute: Arn
AttrName
The name of this access point.
public virtual string AttrName { get; }
Property Value
Remarks
CloudformationAttribute: Name
AttrNetworkOrigin
Indicates whether this access point allows access from the internet.
public virtual string AttrNetworkOrigin { get; }
Property Value
Remarks
If VpcConfiguration is specified for this access point, then NetworkOrigin is VPC , and the access point doesn't allow access from the internet. Otherwise, NetworkOrigin is Internet , and the access point allows access from the internet, subject to the access point and bucket access policies.
Allowed values : VPC | Internet
CloudformationAttribute: NetworkOrigin
Bucket
The name of the bucket associated with this access point.
public virtual string Bucket { get; set; }
Property Value
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-s3-accesspoint.html
CloudformationResource: AWS::S3::AccessPoint
ExampleMetadata: fixture=_generated
BucketAccountId
The AWS account ID associated with the S3 bucket associated with this access point.
public virtual string? BucketAccountId { get; set; }
Property Value
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-s3-accesspoint.html
CloudformationResource: AWS::S3::AccessPoint
ExampleMetadata: fixture=_generated
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-s3-accesspoint.html
CloudformationResource: AWS::S3::AccessPoint
ExampleMetadata: fixture=_generated
CdkTagManager
Tag Manager which manages the tags for this resource.
public virtual TagManager CdkTagManager { get; }
Property Value
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-s3-accesspoint.html
CloudformationResource: AWS::S3::AccessPoint
ExampleMetadata: fixture=_generated
CfnProperties
The AWS::S3::AccessPoint resource is an Amazon S3 resource type that you can use to access buckets.
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
Overrides
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-s3-accesspoint.html
CloudformationResource: AWS::S3::AccessPoint
ExampleMetadata: fixture=_generated
CfnPropertyNames
The AWS::S3::AccessPoint resource is an Amazon S3 resource type that you can use to access buckets.
protected override IDictionary<string, string> CfnPropertyNames { get; }
Property Value
Overrides
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-s3-accesspoint.html
CloudformationResource: AWS::S3::AccessPoint
ExampleMetadata: fixture=_generated
Name
The name of this access point.
public virtual string? Name { get; set; }
Property Value
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-s3-accesspoint.html
CloudformationResource: AWS::S3::AccessPoint
ExampleMetadata: fixture=_generated
Policy
The access point policy associated with this access point.
public virtual object Policy { get; set; }
Property Value
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-s3-accesspoint.html
CloudformationResource: AWS::S3::AccessPoint
ExampleMetadata: fixture=_generated
PublicAccessBlockConfiguration
The PublicAccessBlock configuration that you want to apply to this Amazon S3 bucket.
public virtual object? PublicAccessBlockConfiguration { get; set; }
Property Value
Remarks
Type union: either IResolvable or CfnAccessPoint.IPublicAccessBlockConfigurationProperty
Tags
An array of tags that you can apply to access points.
public virtual ICfnTag[]? Tags { get; set; }
Property Value
ICfnTag[]
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-s3-accesspoint.html
CloudformationResource: AWS::S3::AccessPoint
ExampleMetadata: fixture=_generated
VpcConfiguration
The Virtual Private Cloud (VPC) configuration for this access point, if one exists.
public virtual object? VpcConfiguration { get; set; }
Property Value
Remarks
Type union: either IResolvable or CfnAccessPoint.IVpcConfigurationProperty
Methods
ArnForAccessPoint(IAccessPointRef)
The AWS::S3::AccessPoint resource is an Amazon S3 resource type that you can use to access buckets.
public static string ArnForAccessPoint(IAccessPointRef resource)
Parameters
- resource IAccessPointRef
Returns
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-s3-accesspoint.html
CloudformationResource: AWS::S3::AccessPoint
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 cfnAccessPoint = new CfnAccessPoint(this, "MyCfnAccessPoint", new CfnAccessPointProps {
Bucket = "bucket",
// the properties below are optional
BucketAccountId = "bucketAccountId",
Name = "name",
Policy = policy,
PublicAccessBlockConfiguration = new PublicAccessBlockConfigurationProperty {
BlockPublicAcls = false,
BlockPublicPolicy = false,
IgnorePublicAcls = false,
RestrictPublicBuckets = false
},
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} },
VpcConfiguration = new VpcConfigurationProperty {
VpcId = "vpcId"
}
});
FromAccessPointArn(Construct, string, string)
Creates a new IAccessPointRef from an ARN.
public static IAccessPointRef FromAccessPointArn(Construct scope, string id, string arn)
Parameters
Returns
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-s3-accesspoint.html
CloudformationResource: AWS::S3::AccessPoint
ExampleMetadata: fixture=_generated
FromAccessPointName(Construct, string, string)
Creates a new IAccessPointRef from a accessPointName.
public static IAccessPointRef FromAccessPointName(Construct scope, string id, string accessPointName)
Parameters
Returns
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-s3-accesspoint.html
CloudformationResource: AWS::S3::AccessPoint
ExampleMetadata: fixture=_generated
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.
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-s3-accesspoint.html
CloudformationResource: AWS::S3::AccessPoint
ExampleMetadata: fixture=_generated
IsCfnAccessPoint(object)
Checks whether the given object is a CfnAccessPoint.
public static bool IsCfnAccessPoint(object x)
Parameters
- x object
Returns
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-s3-accesspoint.html
CloudformationResource: AWS::S3::AccessPoint
ExampleMetadata: fixture=_generated
RenderProperties(IDictionary<string, object>)
The AWS::S3::AccessPoint resource is an Amazon S3 resource type that you can use to access buckets.
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props IDictionary<string, object>
Returns
Overrides
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-s3-accesspoint.html
CloudformationResource: AWS::S3::AccessPoint
ExampleMetadata: fixture=_generated