Skip to main content

vpc_origins

Creates, updates, deletes, gets or lists a vpc_origins resource.

Overview

Namevpc_origins
TypeResource
Idaws.cloudfront.vpc_origins

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
account_idstringThe account ID of the Amazon Web Services account that owns the VPC origin.
arnstringThe VPC origin ARN.
created_timestringThe VPC origin created time.
idstringThe VPC origin ID.
last_modified_timestringThe VPC origin last modified time.
statusstringThe VPC origin status.
vpc_origin_endpoint_configstringThe VPC origin endpoint configuration.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_vpc_originselectid, regionGet the details of an Amazon CloudFront VPC origin.
list_vpc_originsselectregionMarker, MaxItemsList the CloudFront VPC origins in your account.
create_vpc_origininsertregion, VpcOriginEndpointConfigCreate an Amazon CloudFront VPC origin.
update_vpc_originupdateid, If-Match, region, VpcOriginEndpointConfigUpdate an Amazon CloudFront VPC origin in your account.
delete_vpc_origindeleteid, If-Match, regionDelete an Amazon CloudFront VPC origin.

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
If-MatchstringThe version identifier of the VPC origin to delete. This is the ETag value returned in the response to GetVpcOrigin.
idstringThe VPC origin ID.
regionstringAWS region (default: us-east-1)
MarkerstringThe marker associated with the VPC origins list.
MaxItemsstringThe maximum number of items included in the list.

SELECT examples

Get the details of an Amazon CloudFront VPC origin.

SELECT
account_id,
arn,
created_time,
id,
last_modified_time,
status,
vpc_origin_endpoint_config
FROM aws.cloudfront.vpc_origins
WHERE id = '{{ id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Create an Amazon CloudFront VPC origin.

INSERT INTO aws.cloudfront.vpc_origins (
VpcOriginEndpointConfig,
Tags,
region
)
SELECT
'{{ VpcOriginEndpointConfig }}' /* required */,
'{{ Tags }}',
'{{ region }}'
RETURNING
account_id,
arn,
created_time,
id,
last_modified_time,
status,
vpc_origin_endpoint_config
;

UPDATE examples

Update an Amazon CloudFront VPC origin in your account.

UPDATE aws.cloudfront.vpc_origins
SET
VpcOriginEndpointConfig = '{{ VpcOriginEndpointConfig }}'
WHERE
id = '{{ id }}' --required
AND `If-Match` = '{{ If-Match }}' --required
AND region = '{{ region }}' --required
AND VpcOriginEndpointConfig = '{{ VpcOriginEndpointConfig }}' --required
RETURNING
account_id,
arn,
created_time,
id,
last_modified_time,
status,
vpc_origin_endpoint_config;

DELETE examples

Delete an Amazon CloudFront VPC origin.

DELETE FROM aws.cloudfront.vpc_origins
WHERE id = '{{ id }}' --required
AND `If-Match` = '{{ If-Match }}' --required
AND region = '{{ region }}' --required
;