endpoints
Creates, updates, deletes, gets or lists an endpoints resource.
Overview
| Name | endpoints |
| Type | Resource |
| Id | aws.s3outposts.endpoints |
Fields
The following fields are returned by SELECT queries:
- list_endpoints
| Name | Datatype | Description |
|---|---|---|
access_type | string | The type of connectivity used to access the Amazon S3 on Outposts endpoint. (Private, CustomerOwnedIp) |
cidr_block | string | The VPC CIDR committed by this endpoint. |
creation_time | string (date-time) | The time the endpoint was created. |
customer_owned_ipv_4_pool | string | The ID of the customer-owned IPv4 address pool used for the endpoint. (pattern: <code>^ipv4pool-coip-([0-9a-f]{17})$</code>) |
endpoint_arn | string | The 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_reason | object | The failure reason, if any, for a create or delete endpoint operation. |
network_interfaces | array | The network interface of the endpoint. |
outposts_id | string | The ID of the Outposts. (pattern: <code>^(op-[a-f0-9]{17}|\d{12}|ec2)$</code>) |
security_group_id | string | The ID of the security group used for the endpoint. (pattern: <code>^sg-([0-9a-f]{8}|[0-9a-f]{17})$</code>) |
status | string | The status of the endpoint. (Pending, Available, Deleting, Create_Failed, Delete_Failed) |
subnet_id | string | The ID of the subnet used for the endpoint. (pattern: <code>^subnet-([0-9a-f]{8}|[0-9a-f]{17})$</code>) |
vpc_id | string | The ID of the VPC used for the endpoint. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list_endpoints | select | region | nextToken, maxResults | Lists endpoints associated with the specified Outpost. Related actions include: CreateEndpoint DeleteEndpoint |
create_endpoint | insert | region, OutpostId, SubnetId, SecurityGroupId | 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 | |
delete_endpoint | delete | endpointId, region | outpostId | Deletes 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.
| Name | Datatype | Description |
|---|---|---|
endpointId | string | The ID of the endpoint. |
region | string | AWS region (default: us-east-1) |
maxResults | integer | The maximum number of endpoints that will be returned in the response. |
nextToken | string | If a previous response from this operation included a NextToken value, provide that value here to retrieve the next page of results. |
outpostId | string | The ID of the Outposts. |
SELECT examples
- list_endpoints
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
- create_endpoint
- Manifest
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
;
# Description fields are for documentation purposes
- name: endpoints
props:
- name: region
value: "{{ region }}"
description: Required parameter for the endpoints resource.
- name: OutpostId
value: "{{ OutpostId }}"
- name: SubnetId
value: "{{ SubnetId }}"
- name: SecurityGroupId
value: "{{ SecurityGroupId }}"
- name: AccessType
value: "{{ AccessType }}"
valid_values: ['Private', 'CustomerOwnedIp']
- name: CustomerOwnedIpv4Pool
value: "{{ CustomerOwnedIpv4Pool }}"
DELETE examples
- delete_endpoint
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 }}'
;