CloudFront class

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.

Constructors

CloudFront({@_s.required String region, AwsClientCredentials credentials, Client client, String endpointUrl})

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

createCloudFrontOriginAccessIdentity2018_06_18({CloudFrontOriginAccessIdentityConfig cloudFrontOriginAccessIdentityConfig}) Future<CreateCloudFrontOriginAccessIdentityResult>
Creates a new origin access identity. If you're using Amazon S3 for your origin, you can use an origin access identity to require users to access your content using a CloudFront URL instead of the Amazon S3 URL. For more information about how to use origin access identities, see Serving Private Content through CloudFront in the Amazon CloudFront Developer Guide. [...]
createDistribution2018_06_18({DistributionConfig distributionConfig}) Future<CreateDistributionResult>
Creates a new web distribution. You create a CloudFront distribution to tell CloudFront where you want content to be delivered from, and the details about how to track and manage content delivery. Send a POST request to the /CloudFront API version/distribution/distribution ID resource. When you update a distribution, there are more required fields than when you create a distribution. When you update your distribution by using UpdateDistribution, follow the steps included in the documentation to get the current configuration and then make your updates. This helps to make sure that you include all of the required fields. To view a summary, see Required Fields for Create Distribution and Update Distribution in the Amazon CloudFront Developer Guide. If you are using Adobe Flash Media Server's RTMP protocol, you set up a different kind of CloudFront distribution. For more information, see CreateStreamingDistribution. [...]
createDistributionWithTags2018_06_18({DistributionConfigWithTags distributionConfigWithTags}) Future<CreateDistributionWithTagsResult>
Create a new distribution with tags. [...]
createFieldLevelEncryptionConfig2018_06_18({FieldLevelEncryptionConfig fieldLevelEncryptionConfig}) Future<CreateFieldLevelEncryptionConfigResult>
Create a new field-level encryption configuration. [...]
createFieldLevelEncryptionProfile2018_06_18({FieldLevelEncryptionProfileConfig fieldLevelEncryptionProfileConfig}) Future<CreateFieldLevelEncryptionProfileResult>
Create a field-level encryption profile. [...]
createInvalidation2018_06_18({String distributionId, InvalidationBatch invalidationBatch}) Future<CreateInvalidationResult>
Create a new invalidation. [...]
createPublicKey2018_06_18({PublicKeyConfig publicKeyConfig}) Future<CreatePublicKeyResult>
Add a new public key to CloudFront to use, for example, for field-level encryption. You can add a maximum of 10 public keys with one AWS account. [...]
createStreamingDistribution2018_06_18({StreamingDistributionConfig streamingDistributionConfig}) Future<CreateStreamingDistributionResult>
Creates a new RMTP distribution. An RTMP distribution is similar to a web distribution, but an RTMP distribution streams media files using the Adobe Real-Time Messaging Protocol (RTMP) instead of serving files using HTTP. [...]
createStreamingDistributionWithTags2018_06_18({StreamingDistributionConfigWithTags streamingDistributionConfigWithTags}) Future<CreateStreamingDistributionWithTagsResult>
Create a new streaming distribution with tags. [...]
deleteCloudFrontOriginAccessIdentity2018_06_18({String id, String ifMatch}) Future<void>
Delete an origin access identity. [...]
deleteDistribution2018_06_18({String id, String ifMatch}) Future<void>
Delete a distribution. [...]
deleteFieldLevelEncryptionConfig2018_06_18({String id, String ifMatch}) Future<void>
Remove a field-level encryption configuration. [...]
deleteFieldLevelEncryptionProfile2018_06_18({String id, String ifMatch}) Future<void>
Remove a field-level encryption profile. [...]
deletePublicKey2018_06_18({String id, String ifMatch}) Future<void>
Remove a public key you previously added to CloudFront. [...]
deleteStreamingDistribution2018_06_18({String id, String ifMatch}) Future<void>
Delete a streaming distribution. To delete an RTMP distribution using the CloudFront API, perform the following steps. [...]
getCloudFrontOriginAccessIdentity2018_06_18({String id}) Future<GetCloudFrontOriginAccessIdentityResult>
Get the information about an origin access identity. [...]
getCloudFrontOriginAccessIdentityConfig2018_06_18({String id}) Future<GetCloudFrontOriginAccessIdentityConfigResult>
Get the configuration information about an origin access identity. [...]
getDistribution2018_06_18({String id}) Future<GetDistributionResult>
Get the information about a distribution. [...]
getDistributionConfig2018_06_18({String id}) Future<GetDistributionConfigResult>
Get the configuration information about a distribution. [...]
getFieldLevelEncryption2018_06_18({String id}) Future<GetFieldLevelEncryptionResult>
Get the field-level encryption configuration information. [...]
getFieldLevelEncryptionConfig2018_06_18({String id}) Future<GetFieldLevelEncryptionConfigResult>
Get the field-level encryption configuration information. [...]
getFieldLevelEncryptionProfile2018_06_18({String id}) Future<GetFieldLevelEncryptionProfileResult>
Get the field-level encryption profile information. [...]
getFieldLevelEncryptionProfileConfig2018_06_18({String id}) Future<GetFieldLevelEncryptionProfileConfigResult>
Get the field-level encryption profile configuration information. [...]
getInvalidation2018_06_18({String distributionId, String id}) Future<GetInvalidationResult>
Get the information about an invalidation. [...]
getPublicKey2018_06_18({String id}) Future<GetPublicKeyResult>
Get the public key information. [...]
getPublicKeyConfig2018_06_18({String id}) Future<GetPublicKeyConfigResult>
Return public key configuration informaation [...]
getStreamingDistribution2018_06_18({String id}) Future<GetStreamingDistributionResult>
Gets information about a specified RTMP distribution, including the distribution configuration. [...]
getStreamingDistributionConfig2018_06_18({String id}) Future<GetStreamingDistributionConfigResult>
Get the configuration information about a streaming distribution. [...]
listCloudFrontOriginAccessIdentities2018_06_18({String marker, String maxItems}) Future<ListCloudFrontOriginAccessIdentitiesResult>
Lists origin access identities. [...]
listDistributions2018_06_18({String marker, String maxItems}) Future<ListDistributionsResult>
List distributions. [...]
listDistributionsByWebACLId2018_06_18({String webACLId, String marker, String maxItems}) Future<ListDistributionsByWebACLIdResult>
List the distributions that are associated with a specified AWS WAF web ACL. [...]
listFieldLevelEncryptionConfigs2018_06_18({String marker, String maxItems}) Future<ListFieldLevelEncryptionConfigsResult>
List all field-level encryption configurations that have been created in CloudFront for this account. [...]
listFieldLevelEncryptionProfiles2018_06_18({String marker, String maxItems}) Future<ListFieldLevelEncryptionProfilesResult>
Request a list of field-level encryption profiles that have been created in CloudFront for this account. [...]
listInvalidations2018_06_18({String distributionId, String marker, String maxItems}) Future<ListInvalidationsResult>
Lists invalidation batches. [...]
listPublicKeys2018_06_18({String marker, String maxItems}) Future<ListPublicKeysResult>
List all public keys that have been added to CloudFront for this account. [...]
listStreamingDistributions2018_06_18({String marker, String maxItems}) Future<ListStreamingDistributionsResult>
List streaming distributions. [...]
listTagsForResource2018_06_18({String resource}) Future<ListTagsForResourceResult>
List tags for a CloudFront resource. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
tagResource2018_06_18({String resource, Tags tags}) Future<void>
Add tags to a CloudFront resource. [...]
toString() String
Returns a string representation of this object.
inherited
untagResource2018_06_18({String resource, TagKeys tagKeys}) Future<void>
Remove tags from a CloudFront resource. [...]
updateCloudFrontOriginAccessIdentity2018_06_18({CloudFrontOriginAccessIdentityConfig cloudFrontOriginAccessIdentityConfig, String id, String ifMatch}) Future<UpdateCloudFrontOriginAccessIdentityResult>
Update an origin access identity. [...]
updateDistribution2018_06_18({DistributionConfig distributionConfig, String id, String ifMatch}) Future<UpdateDistributionResult>
Updates the configuration for a web distribution. When you update a distribution, there are more required fields than when you create a distribution. When you update your distribution by using this API action, follow the steps here to get the current configuration and then make your updates, to make sure that you include all of the required fields. To view a summary, see Required Fields for Create Distribution and Update Distribution in the Amazon CloudFront Developer Guide. The update process includes getting the current distribution configuration, updating the XML document that is returned to make your changes, and then submitting an UpdateDistribution request to make the updates. [...]
updateFieldLevelEncryptionConfig2018_06_18({FieldLevelEncryptionConfig fieldLevelEncryptionConfig, String id, String ifMatch}) Future<UpdateFieldLevelEncryptionConfigResult>
Update a field-level encryption configuration. [...]
updateFieldLevelEncryptionProfile2018_06_18({FieldLevelEncryptionProfileConfig fieldLevelEncryptionProfileConfig, String id, String ifMatch}) Future<UpdateFieldLevelEncryptionProfileResult>
Update a field-level encryption profile. [...]
updatePublicKey2018_06_18({String id, PublicKeyConfig publicKeyConfig, String ifMatch}) Future<UpdatePublicKeyResult>
Update public key information. Note that the only value you can change is the comment. [...]
updateStreamingDistribution2018_06_18({String id, StreamingDistributionConfig streamingDistributionConfig, String ifMatch}) Future<UpdateStreamingDistributionResult>
Update a streaming distribution. [...]

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited