Skip to main content

endpoints

Creates, updates, deletes, gets or lists an endpoints resource.

Overview

Nameendpoints
TypeResource
Idaws.s3outposts.endpoints

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
access_typestringThe type of connectivity used to access the Amazon S3 on Outposts endpoint. (Private, CustomerOwnedIp)
cidr_blockstringThe VPC CIDR committed by this endpoint.
creation_timestring (date-time)The time the endpoint was created.
customer_owned_ipv_4_poolstringThe ID of the customer-owned IPv4 address pool used for the endpoint. (pattern: <code>^ipv4pool-coip-([0-9a-f]{17})$</code>)
endpoint_arnstringThe Amazon Resource Name (ARN) of the endpoint. (pattern: <code>^arn:(aws|aws-cn|aws-us-gov|aws-iso|aws-iso-b):s3-outposts:[a-z-0-9]*:[0-9]{12}:outpost/(op-[a-f0-9]{17}|ec2)/endpoint/[a-zA-Z0-9]{19}$</code>)
failed_reasonobjectThe failure reason, if any, for a create or delete endpoint operation.
network_interfacesarrayThe network interface of the endpoint.
outposts_idstringThe ID of the Outposts. (pattern: <code>^(op-[a-f0-9]{17}|\d{12}|ec2)$</code>)
security_group_idstringThe ID of the security group used for the endpoint. (pattern: <code>^sg-([0-9a-f]{8}|[0-9a-f]{17})$</code>)
statusstringThe status of the endpoint. (Pending, Available, Deleting, Create_Failed, Delete_Failed)
subnet_idstringThe ID of the subnet used for the endpoint. (pattern: <code>^subnet-([0-9a-f]{8}|[0-9a-f]{17})$</code>)
vpc_idstringThe ID of the VPC used for the endpoint.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_endpointsselectregionnextToken, maxResultsLists endpoints associated with the specified Outpost. Related actions include: CreateEndpoint DeleteEndpoint
create_endpointinsertregion, OutpostId, SubnetId, SecurityGroupIdCreates an endpoint and associates it with the specified Outpost. It can take up to 5 minutes for this action to finish. Related actions include: DeleteEndpoint ListEndpoints
delete_endpointdeleteendpointId, regionoutpostIdDeletes an endpoint. It can take up to 5 minutes for this action to finish. Related actions include: CreateEndpoint ListEndpoints

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
endpointIdstringThe ID of the endpoint.
regionstringAWS region (default: us-east-1)
maxResultsintegerThe maximum number of endpoints that will be returned in the response.
nextTokenstringIf a previous response from this operation included a NextToken value, provide that value here to retrieve the next page of results.
outpostIdstringThe ID of the Outposts.

SELECT examples

Lists endpoints associated with the specified Outpost. Related actions include: CreateEndpoint DeleteEndpoint

SELECT
access_type,
cidr_block,
creation_time,
customer_owned_ipv_4_pool,
endpoint_arn,
failed_reason,
network_interfaces,
outposts_id,
security_group_id,
status,
subnet_id,
vpc_id
FROM aws.s3outposts.endpoints
WHERE region = '{{ region }}' -- required
AND nextToken = '{{ nextToken }}'
AND maxResults = '{{ maxResults }}'
;

INSERT examples

Creates an endpoint and associates it with the specified Outpost. It can take up to 5 minutes for this action to finish. Related actions include: DeleteEndpoint ListEndpoints

INSERT INTO aws.s3outposts.endpoints (
OutpostId,
SubnetId,
SecurityGroupId,
AccessType,
CustomerOwnedIpv4Pool,
region
)
SELECT
'{{ OutpostId }}' /* required */,
'{{ SubnetId }}' /* required */,
'{{ SecurityGroupId }}' /* required */,
'{{ AccessType }}',
'{{ CustomerOwnedIpv4Pool }}',
'{{ region }}'
RETURNING
endpoint_arn
;

DELETE examples

Deletes an endpoint. It can take up to 5 minutes for this action to finish. Related actions include: CreateEndpoint ListEndpoints

DELETE FROM aws.s3outposts.endpoints
WHERE endpointId = '{{ endpointId }}' --required
AND region = '{{ region }}' --required
AND outpostId = '{{ outpostId }}'
;