@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:41.737Z") @Stability(value=Stable) public class CfnAccessPoint extends CfnResource implements IInspectable
The AWS::S3::AccessPoint resource is an Amazon S3 resource type that you can use to access buckets.
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;
Object policyStatus;
CfnAccessPoint cfnAccessPoint = CfnAccessPoint.Builder.create(this, "MyCfnAccessPoint")
.bucket("bucket")
// the properties below are optional
.name("name")
.policy(policy)
.policyStatus(policyStatus)
.publicAccessBlockConfiguration(PublicAccessBlockConfigurationProperty.builder()
.blockPublicAcls(false)
.blockPublicPolicy(false)
.ignorePublicAcls(false)
.restrictPublicBuckets(false)
.build())
.vpcConfiguration(VpcConfigurationProperty.builder()
.vpcId("vpcId")
.build())
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnAccessPoint.Builder
A fluent builder for
CfnAccessPoint. |
static interface |
CfnAccessPoint.PublicAccessBlockConfigurationProperty
The PublicAccessBlock configuration that you want to apply to this Amazon S3 bucket.
|
static interface |
CfnAccessPoint.VpcConfigurationProperty
The Virtual Private Cloud (VPC) configuration for this access point.
|
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnAccessPoint(software.constructs.Construct scope,
String id,
CfnAccessPointProps props)
Create a new `AWS::S3::AccessPoint`.
|
protected |
CfnAccessPoint(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnAccessPoint(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAttrAlias()
The alias for this access point.
|
String |
getAttrArn()
This property contains the details of the ARN for the access point.
|
String |
getAttrName()
The name of this access point.
|
String |
getAttrNetworkOrigin()
Indicates whether this access point allows access from the internet.
|
String |
getBucket()
The name of the bucket associated with this access point.
|
protected Map<String,Object> |
getCfnProperties() |
String |
getName()
The name of this access point.
|
Object |
getPolicy()
The access point policy associated with this access point.
|
Object |
getPolicyStatus()
The container element for a bucket's policy status.
|
Object |
getPublicAccessBlockConfiguration()
The PublicAccessBlock configuration that you want to apply to this Amazon S3 bucket.
|
Object |
getVpcConfiguration()
The Virtual Private Cloud (VPC) configuration for this access point, if one exists.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setBucket(String value)
The name of the bucket associated with this access point.
|
void |
setName(String value)
The name of this access point.
|
void |
setPolicy(Object value)
The access point policy associated with this access point.
|
void |
setPolicyStatus(Object value)
The container element for a bucket's policy status.
|
void |
setPublicAccessBlockConfiguration(CfnAccessPoint.PublicAccessBlockConfigurationProperty value)
The PublicAccessBlock configuration that you want to apply to this Amazon S3 bucket.
|
void |
setPublicAccessBlockConfiguration(IResolvable value)
The PublicAccessBlock configuration that you want to apply to this Amazon S3 bucket.
|
void |
setVpcConfiguration(CfnAccessPoint.VpcConfigurationProperty value)
The Virtual Private Cloud (VPC) configuration for this access point, if one exists.
|
void |
setVpcConfiguration(IResolvable value)
The Virtual Private Cloud (VPC) configuration for this access point, if one exists.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnAccessPoint(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnAccessPoint(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnAccessPoint(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnAccessPointProps 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.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull public String getAttrAlias()
@Stability(value=Stable) @NotNull public String getAttrArn()
@Stability(value=Stable) @NotNull public String getAttrName()
@Stability(value=Stable) @NotNull public String getAttrNetworkOrigin()
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
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public String getBucket()
@Stability(value=Stable)
public void setBucket(@NotNull
String value)
@Stability(value=Stable) @NotNull public Object getPolicy()
@Stability(value=Stable)
public void setPolicy(@NotNull
Object value)
@Stability(value=Stable) @NotNull public Object getPolicyStatus()
@Stability(value=Stable)
public void setPolicyStatus(@NotNull
Object value)
@Stability(value=Stable) @Nullable public String getName()
If you don't specify a name, AWS CloudFormation generates a unique ID and uses that ID for the access point name.
@Stability(value=Stable)
public void setName(@Nullable
String value)
If you don't specify a name, AWS CloudFormation generates a unique ID and uses that ID for the access point name.
@Stability(value=Stable) @Nullable public Object getPublicAccessBlockConfiguration()
You can enable the configuration options in any combination. For more information about when Amazon S3 considers a bucket or object public, see The Meaning of "Public" in the Amazon S3 User Guide .
@Stability(value=Stable)
public void setPublicAccessBlockConfiguration(@Nullable
CfnAccessPoint.PublicAccessBlockConfigurationProperty value)
You can enable the configuration options in any combination. For more information about when Amazon S3 considers a bucket or object public, see The Meaning of "Public" in the Amazon S3 User Guide .
@Stability(value=Stable)
public void setPublicAccessBlockConfiguration(@Nullable
IResolvable value)
You can enable the configuration options in any combination. For more information about when Amazon S3 considers a bucket or object public, see The Meaning of "Public" in the Amazon S3 User Guide .
@Stability(value=Stable) @Nullable public Object getVpcConfiguration()
@Stability(value=Stable)
public void setVpcConfiguration(@Nullable
CfnAccessPoint.VpcConfigurationProperty value)
@Stability(value=Stable)
public void setVpcConfiguration(@Nullable
IResolvable value)
Copyright © 2022. All rights reserved.