Skip to content
v2.278.0

CfnEndpointProps Struct ​

Properties for defining a CfnEndpoint.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_s3outposts as s3outposts } from 'aws-cdk-lib';
const cfnEndpointProps: s3outposts.CfnEndpointProps = {
  outpostId: 'outpostId',
  securityGroupId: 'securityGroupId',
  subnetId: 'subnetId',

  // the properties below are optional
  accessType: 'accessType',
  customerOwnedIpv4Pool: 'customerOwnedIpv4Pool',
  failedReason: {
    errorCode: 'errorCode',
    message: 'message',
  },
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_s3outposts as s3outposts

cfn_endpoint_props = s3outposts.CfnEndpointProps(
    outpost_id="outpostId",
    security_group_id="securityGroupId",
    subnet_id="subnetId",

    # the properties below are optional
    access_type="accessType",
    customer_owned_ipv4_pool="customerOwnedIpv4Pool",
    failed_reason=s3outposts.CfnEndpoint.FailedReasonProperty(
        error_code="errorCode",
        message="message"
    )
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.s3outposts.*;

CfnEndpointProps cfnEndpointProps = CfnEndpointProps.builder()
        .outpostId("outpostId")
        .securityGroupId("securityGroupId")
        .subnetId("subnetId")

        // the properties below are optional
        .accessType("accessType")
        .customerOwnedIpv4Pool("customerOwnedIpv4Pool")
        .failedReason(FailedReasonProperty.builder()
                .errorCode("errorCode")
                .message("message")
                .build())
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.S3Outposts;

var cfnEndpointProps = new CfnEndpointProps {
    OutpostId = "outpostId",
    SecurityGroupId = "securityGroupId",
    SubnetId = "subnetId",

    // the properties below are optional
    AccessType = "accessType",
    CustomerOwnedIpv4Pool = "customerOwnedIpv4Pool",
    FailedReason = new FailedReasonProperty {
        ErrorCode = "errorCode",
        Message = "message"
    }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnEndpointProps := &CfnEndpointProps{
	OutpostId: jsii.String("outpostId"),
	SecurityGroupId: jsii.String("securityGroupId"),
	SubnetId: jsii.String("subnetId"),

	// the properties below are optional
	AccessType: jsii.String("accessType"),
	CustomerOwnedIpv4Pool: jsii.String("customerOwnedIpv4Pool"),
	FailedReason: &FailedReasonProperty{
		ErrorCode: jsii.String("errorCode"),
		Message: jsii.String("message"),
	},
}

Properties ​

accessTypeoptionalstringaccess_typeoptionalstraccessTypeoptionalStringAccessTypeoptionalstringAccessTypeoptional*string = "Private" #
The container for the type of connectivity used to access the Amazon S3 on Outposts endpoint.
notes

To use the Amazon VPC , choose Private . To use the endpoint with an on-premises network, choose CustomerOwnedIp . If you choose CustomerOwnedIp , you must also provide the customer-owned IP address pool (CoIP pool).

Private is the default access type value.

customerOwnedIpv4Pooloptionalstringcustomer_owned_ipv4_pooloptionalstrcustomerOwnedIpv4PooloptionalStringCustomerOwnedIpv4PooloptionalstringCustomerOwnedIpv4Pooloptional*string #
The ID of the customer-owned IPv4 address pool (CoIP pool) for the endpoint.

IP addresses are allocated from this pool for the endpoint.

failedReasonoptionalIResolvable | CfnEndpoint.FailedReasonPropertyfailed_reasonoptionaltyping.Union[IResolvable, FailedReasonProperty]failedReasonoptionalIResolvableFailedReasonoptionalIResolvableFailedReasonoptionalinterface{} #
The failure reason, if any, for a create or delete endpoint operation.
outpostIdstringoutpost_idstroutpostIdStringOutpostIdstringOutpostId*string required #
The ID of the Outpost.
securityGroupIdstringsecurity_group_idstrsecurityGroupIdStringSecurityGroupIdstringSecurityGroupId*string required #
The ID of the security group used for the endpoint.
subnetIdstringsubnet_idstrsubnetIdStringSubnetIdstringSubnetId*string required #
The ID of the subnet used for the endpoint.