CreateVpcOrigin
Create an Amazon CloudFront VPC origin.
Request Syntax
POST /2020-05-31/vpc-origin HTTP/1.1
<?xml version="1.0" encoding="UTF-8"?>
<CreateVpcOriginRequest xmlns="http://cloudfront.amazonaws.com/doc/2020-05-31/">
<Tags>
<Items>
<Tag>
<Key>string
</Key>
<Value>string
</Value>
</Tag>
</Items>
</Tags>
<VpcOriginEndpointConfig>
<Arn>string
</Arn>
<HTTPPort>integer
</HTTPPort>
<HTTPSPort>integer
</HTTPSPort>
<Name>string
</Name>
<OriginProtocolPolicy>string
</OriginProtocolPolicy>
<OriginSslProtocols>
<Items>
<SslProtocol>string
</SslProtocol>
</Items>
<Quantity>integer
</Quantity>
</OriginSslProtocols>
</VpcOriginEndpointConfig>
</CreateVpcOriginRequest>
URI Request Parameters
The request does not use any URI parameters.
Request Body
The request accepts the following data in XML format.
- CreateVpcOriginRequest
-
Root level tag for the CreateVpcOriginRequest parameters.
Required: Yes
- Tags
-
A complex type that contains zero or more
Tag
elements.Type: Tags object
Required: No
- VpcOriginEndpointConfig
-
The VPC origin endpoint configuration.
Type: VpcOriginEndpointConfig object
Required: Yes
Response Syntax
HTTP/1.1 202
<?xml version="1.0" encoding="UTF-8"?>
<VpcOrigin>
<Arn>string</Arn>
<CreatedTime>timestamp</CreatedTime>
<Id>string</Id>
<LastModifiedTime>timestamp</LastModifiedTime>
<Status>string</Status>
<VpcOriginEndpointConfig>
<Arn>string</Arn>
<HTTPPort>integer</HTTPPort>
<HTTPSPort>integer</HTTPSPort>
<Name>string</Name>
<OriginProtocolPolicy>string</OriginProtocolPolicy>
<OriginSslProtocols>
<Items>
<SslProtocol>string</SslProtocol>
</Items>
<Quantity>integer</Quantity>
</OriginSslProtocols>
</VpcOriginEndpointConfig>
</VpcOrigin>
Response Elements
If the action is successful, the service sends back an HTTP 202 response.
The following data is returned in XML format by the service.
- VpcOrigin
-
Root level tag for the VpcOrigin parameters.
Required: Yes
- Arn
-
The VPC origin ARN.
Type: String
- CreatedTime
-
The VPC origin created time.
Type: Timestamp
- Id
-
The VPC origin ID.
Type: String
- LastModifiedTime
-
The VPC origin last modified time.
Type: Timestamp
- Status
-
The VPC origin status.
Type: String
- VpcOriginEndpointConfig
-
The VPC origin endpoint configuration.
Type: VpcOriginEndpointConfig object
Errors
For information about the errors that are common to all actions, see Common Errors.
- AccessDenied
-
Access denied.
HTTP Status Code: 403
- EntityAlreadyExists
-
The entity already exists. You must provide a unique entity.
HTTP Status Code: 409
- EntityLimitExceeded
-
The entity limit has been exceeded.
HTTP Status Code: 400
- InconsistentQuantities
-
The value of
Quantity
and the size ofItems
don't match.HTTP Status Code: 400
- InvalidArgument
-
An argument is invalid.
HTTP Status Code: 400
- InvalidTagging
-
The tagging specified is not valid.
HTTP Status Code: 400
- UnsupportedOperation
-
This operation is not supported in this region.
HTTP Status Code: 400
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: