Skip to main content

vpc_origins

Creates, updates, deletes or gets a vpc_origin resource or lists vpc_origins in a region

Overview

Namevpc_origins
TypeResource
DescriptionAn Amazon CloudFront VPC origin.
Idawscc.cloudfront.vpc_origins

Fields

NameDatatypeDescription
arnstring
created_timestring
idstring
last_modified_timestring
statusstring
tagsarrayA complex type that contains zero or more ``Tag`` elements.
vpc_origin_endpoint_configobjectThe VPC origin endpoint configuration.
regionstringAWS region.

For more information, see AWS::CloudFront::VpcOrigin.

Methods

NameAccessible byRequired Params
create_resourceINSERTVpcOriginEndpointConfig, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all properties from an individual vpc_origin.

SELECT
region,
arn,
created_time,
id,
last_modified_time,
status,
tags,
vpc_origin_endpoint_config
FROM awscc.cloudfront.vpc_origins
WHERE data__Identifier = '<Id>';

INSERT example

Use the following StackQL query and manifest file to create a new vpc_origin resource, using stack-deploy.

/*+ create */
INSERT INTO awscc.cloudfront.vpc_origins (
VpcOriginEndpointConfig,
region
)
SELECT
'{{ VpcOriginEndpointConfig }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM awscc.cloudfront.vpc_origins
WHERE data__Identifier = '<Id>'
AND region = 'us-east-1';

Permissions

To operate on the vpc_origins resource, the following permissions are required:

Create

cloudfront:CreateVpcOrigin,
cloudfront:GetVpcOrigin,
cloudfront:TagResource,
ec2:DescribeInstances,
elasticloadbalancing:DescribeLoadBalancers,
ec2:DescribeInternetGateways,
iam:CreateServiceLinkedRole,
sts:AssumeRole

Delete

cloudfront:DeleteVpcOrigin,
cloudfront:GetVpcOrigin,
elasticloadbalancing:DescribeLoadBalancers,
ec2:DescribeInstances,
ec2:DescribeInternetGateways,
iam:CreateServiceLinkedRole,
sts:AssumeRole

List

cloudfront:ListVpcOrigins

Read

cloudfront:GetVpcOrigin,
cloudfront:ListTagsForResource

Update

cloudfront:UpdateVpcOrigin,
cloudfront:GetVpcOrigin,
cloudfront:TagResource,
ec2:DescribeInstances,
cloudfront:UntagResource,
cloudfront:ListTagsForResource,
elasticloadbalancing:DescribeLoadBalancers,
ec2:DescribeInternetGateways,
iam:CreateServiceLinkedRole,
sts:AssumeRole