CreateTrustStore
Creates a trust store.
Request Syntax
POST /2020-05-31/trust-store HTTP/1.1
<?xml version="1.0" encoding="UTF-8"?>
<CreateTrustStoreRequest xmlns="http://cloudfront.amazonaws.com/doc/2020-05-31/">
<CaCertificatesBundleSource>
<CaCertificatesBundleS3Location>
<Bucket>string</Bucket>
<Key>string</Key>
<Region>string</Region>
<Version>string</Version>
</CaCertificatesBundleS3Location>
</CaCertificatesBundleSource>
<Name>string</Name>
<Tags>
<Items>
<Tag>
<Key>string</Key>
<Value>string</Value>
</Tag>
</Items>
</Tags>
</CreateTrustStoreRequest>
URI Request Parameters
The request does not use any URI parameters.
Request Body
The request accepts the following data in XML format.
- CreateTrustStoreRequest
-
Root level tag for the CreateTrustStoreRequest parameters.
Required: Yes
- CaCertificatesBundleSource
-
The CA certificates bundle source for the trust store.
Type: CaCertificatesBundleSource object
Note: This object is a Union. Only one member of this object can be specified or returned.
Required: Yes
- Name
-
A name for the trust store.
Type: String
Required: Yes
- Tags
-
A complex type that contains zero or more
Tagelements.Type: Tags object
Required: No
Response Syntax
HTTP/1.1 201
<?xml version="1.0" encoding="UTF-8"?>
<TrustStore>
<Arn>string</Arn>
<Id>string</Id>
<LastModifiedTime>timestamp</LastModifiedTime>
<Name>string</Name>
<NumberOfCaCertificates>integer</NumberOfCaCertificates>
<Reason>string</Reason>
<Status>string</Status>
</TrustStore>
Response Elements
If the action is successful, the service sends back an HTTP 201 response.
The following data is returned in XML format by the service.
- TrustStore
-
Root level tag for the TrustStore parameters.
Required: Yes
- Arn
-
The trust store's Amazon Resource Name (ARN).
Type: String
- Id
-
The trust store's ID.
Type: String
- LastModifiedTime
-
The trust store's last modified time.
Type: Timestamp
- Name
-
The trust store's name.
Type: String
- NumberOfCaCertificates
-
The trust store's number of CA certificates.
Type: Integer
- Reason
-
The trust store's reason.
Type: String
- Status
-
The trust store's status.
Type: String
Valid Values:
pending | active | failed
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
- EntityNotFound
-
The entity was not found.
HTTP Status Code: 404
- InvalidArgument
-
An argument is invalid.
HTTP Status Code: 400
- InvalidTagging
-
The tagging specified is not valid.
HTTP Status Code: 400
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: