Class: AWS.CloudFront (2018-06-18)
- Inherits:
-
AWS.Service
- Object
- AWS.Service
- AWS.CloudFront_20180618
- Identifier:
- cloudfront
- API Version:
- 2018-06-18
- Defined in:
- (unknown)
Overview
Constructs a service interface object. Each API operation is exposed as a function on service.
Service Description
This is the Amazon CloudFront API Reference. This guide is for developers who need detailed information about CloudFront API actions, data types, and errors. For detailed information about CloudFront features, see the Amazon CloudFront Developer Guide.
Sending a Request Using CloudFront
var cloudfront = new AWS.CloudFront();
cloudfront.createCloudFrontOriginAccessIdentity(params, function (err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Locking the API Version
In order to ensure that the CloudFront object uses this specific API, you can
construct the object by passing the apiVersion option to the constructor:
var cloudfront = new AWS.CloudFront({apiVersion: '2018-06-18'});
You can also set the API version globally in AWS.config.apiVersions using
the cloudfront service identifier:
AWS.config.apiVersions = {
cloudfront: '2018-06-18',
// other service API versions
};
var cloudfront = new AWS.CloudFront();
Waiter Resource States
This service supports a list of resource states that can be polled using the waitFor() method. The resource states are:
distributionDeployed, invalidationCompleted, streamingDistributionDeployed
Constructor Summary collapse
-
new AWS.CloudFront(options = {}) ⇒ Object
constructor
Constructs a service object.
Property Summary collapse
-
endpoint ⇒ AWS.Endpoint
readwrite
An Endpoint object representing the endpoint URL for service requests.
Properties inherited from AWS.Service
Method Summary collapse
-
createCloudFrontOriginAccessIdentity(params = {}, callback) ⇒ AWS.Request
Creates a new origin access identity.
-
createDistribution(params = {}, callback) ⇒ AWS.Request
Creates a new web distribution.
-
createDistributionWithTags(params = {}, callback) ⇒ AWS.Request
Create a new distribution with tags.
.
-
createFieldLevelEncryptionConfig(params = {}, callback) ⇒ AWS.Request
Create a new field-level encryption configuration.
.
-
createFieldLevelEncryptionProfile(params = {}, callback) ⇒ AWS.Request
Create a field-level encryption profile.
.
-
createInvalidation(params = {}, callback) ⇒ AWS.Request
Create a new invalidation.
-
createPublicKey(params = {}, callback) ⇒ AWS.Request
Add a new public key to CloudFront to use, for example, for field-level encryption.
-
createStreamingDistribution(params = {}, callback) ⇒ AWS.Request
Creates a new RMTP distribution.
-
createStreamingDistributionWithTags(params = {}, callback) ⇒ AWS.Request
Create a new streaming distribution with tags.
.
-
deleteCloudFrontOriginAccessIdentity(params = {}, callback) ⇒ AWS.Request
Delete an origin access identity.
-
deleteDistribution(params = {}, callback) ⇒ AWS.Request
Delete a distribution.
-
deleteFieldLevelEncryptionConfig(params = {}, callback) ⇒ AWS.Request
Remove a field-level encryption configuration.
.
-
deleteFieldLevelEncryptionProfile(params = {}, callback) ⇒ AWS.Request
Remove a field-level encryption profile.
.
-
deletePublicKey(params = {}, callback) ⇒ AWS.Request
Remove a public key you previously added to CloudFront.
.
-
deleteStreamingDistribution(params = {}, callback) ⇒ AWS.Request
Delete a streaming distribution.
-
getCloudFrontOriginAccessIdentity(params = {}, callback) ⇒ AWS.Request
Get the information about an origin access identity.
-
getCloudFrontOriginAccessIdentityConfig(params = {}, callback) ⇒ AWS.Request
Get the configuration information about an origin access identity.
-
getDistribution(params = {}, callback) ⇒ AWS.Request
Get the information about a distribution.
-
getDistributionConfig(params = {}, callback) ⇒ AWS.Request
Get the configuration information about a distribution.
-
getFieldLevelEncryption(params = {}, callback) ⇒ AWS.Request
Get the field-level encryption configuration information.
.
-
getFieldLevelEncryptionConfig(params = {}, callback) ⇒ AWS.Request
Get the field-level encryption configuration information.
.
-
getFieldLevelEncryptionProfile(params = {}, callback) ⇒ AWS.Request
Get the field-level encryption profile information.
.
-
getFieldLevelEncryptionProfileConfig(params = {}, callback) ⇒ AWS.Request
Get the field-level encryption profile configuration information.
.
-
getInvalidation(params = {}, callback) ⇒ AWS.Request
Get the information about an invalidation.
-
getPublicKey(params = {}, callback) ⇒ AWS.Request
Get the public key information.
.
-
getPublicKeyConfig(params = {}, callback) ⇒ AWS.Request
Return public key configuration informaation
.
-
getStreamingDistribution(params = {}, callback) ⇒ AWS.Request
Gets information about a specified RTMP distribution, including the distribution configuration.
.
-
getStreamingDistributionConfig(params = {}, callback) ⇒ AWS.Request
Get the configuration information about a streaming distribution.
-
listCloudFrontOriginAccessIdentities(params = {}, callback) ⇒ AWS.Request
Lists origin access identities.
.
-
listDistributions(params = {}, callback) ⇒ AWS.Request
List distributions.
-
listDistributionsByWebACLId(params = {}, callback) ⇒ AWS.Request
List the distributions that are associated with a specified AWS WAF web ACL.
-
listFieldLevelEncryptionConfigs(params = {}, callback) ⇒ AWS.Request
List all field-level encryption configurations that have been created in CloudFront for this account.
.
-
listFieldLevelEncryptionProfiles(params = {}, callback) ⇒ AWS.Request
Request a list of field-level encryption profiles that have been created in CloudFront for this account.
.
-
listInvalidations(params = {}, callback) ⇒ AWS.Request
Lists invalidation batches.
-
listPublicKeys(params = {}, callback) ⇒ AWS.Request
List all public keys that have been added to CloudFront for this account.
.
-
listStreamingDistributions(params = {}, callback) ⇒ AWS.Request
List streaming distributions.
-
listTagsForResource(params = {}, callback) ⇒ AWS.Request
List tags for a CloudFront resource.
.
-
tagResource(params = {}, callback) ⇒ AWS.Request
Add tags to a CloudFront resource.
.
-
untagResource(params = {}, callback) ⇒ AWS.Request
Remove tags from a CloudFront resource.
.
-
updateCloudFrontOriginAccessIdentity(params = {}, callback) ⇒ AWS.Request
Update an origin access identity.
-
updateDistribution(params = {}, callback) ⇒ AWS.Request
Updates the configuration for a web distribution.
-
updateFieldLevelEncryptionConfig(params = {}, callback) ⇒ AWS.Request
Update a field-level encryption configuration.
-
updateFieldLevelEncryptionProfile(params = {}, callback) ⇒ AWS.Request
Update a field-level encryption profile.
-
updatePublicKey(params = {}, callback) ⇒ AWS.Request
Update public key information.
-
updateStreamingDistribution(params = {}, callback) ⇒ AWS.Request
Update a streaming distribution.
-
waitFor(state, params = {}, callback) ⇒ AWS.Request
Waits for a given CloudFront_20180618 resource.
Methods inherited from AWS.Service
makeRequest, makeUnauthenticatedRequest, setupRequestListeners, defineService
Constructor Details
new AWS.CloudFront(options = {}) ⇒ Object
Constructs a service object. This object has one method for each API operation.