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({String? region, AwsClientCredentials? credentials, AwsClientCredentialsProvider? credentialsProvider, Client? client, String? endpointUrl})

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

close() → void
Closes the internal HTTP client if none was provided at creation. If a client was passed as a constructor argument, this becomes a noop.
createCloudFrontOriginAccessIdentity2019_03_26({required 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.
createDistribution2019_03_26({required 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.
createDistributionWithTags2019_03_26({required DistributionConfigWithTags distributionConfigWithTags}) Future<CreateDistributionWithTagsResult>
Create a new distribution with tags.
createFieldLevelEncryptionConfig2019_03_26({required FieldLevelEncryptionConfig fieldLevelEncryptionConfig}) Future<CreateFieldLevelEncryptionConfigResult>
Create a new field-level encryption configuration.
createFieldLevelEncryptionProfile2019_03_26({required FieldLevelEncryptionProfileConfig fieldLevelEncryptionProfileConfig}) Future<CreateFieldLevelEncryptionProfileResult>
Create a field-level encryption profile.
createInvalidation2019_03_26({required String distributionId, required InvalidationBatch invalidationBatch}) Future<CreateInvalidationResult>
Create a new invalidation.
createPublicKey2019_03_26({required 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.
createStreamingDistribution2019_03_26({required StreamingDistributionConfig streamingDistributionConfig}) Future<CreateStreamingDistributionResult>
Creates a new RTMP 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.
createStreamingDistributionWithTags2019_03_26({required StreamingDistributionConfigWithTags streamingDistributionConfigWithTags}) Future<CreateStreamingDistributionWithTagsResult>
Create a new streaming distribution with tags.
deleteCloudFrontOriginAccessIdentity2019_03_26({required String id, String? ifMatch}) Future<void>
Delete an origin access identity.
deleteDistribution2019_03_26({required String id, String? ifMatch}) Future<void>
Delete a distribution.
deleteFieldLevelEncryptionConfig2019_03_26({required String id, String? ifMatch}) Future<void>
Remove a field-level encryption configuration.
deleteFieldLevelEncryptionProfile2019_03_26({required String id, String? ifMatch}) Future<void>
Remove a field-level encryption profile.
deletePublicKey2019_03_26({required String id, String? ifMatch}) Future<void>
Remove a public key you previously added to CloudFront.
deleteStreamingDistribution2019_03_26({required String id, String? ifMatch}) Future<void>
Delete a streaming distribution. To delete an RTMP distribution using the CloudFront API, perform the following steps.
getCloudFrontOriginAccessIdentity2019_03_26({required String id}) Future<GetCloudFrontOriginAccessIdentityResult>
Get the information about an origin access identity.
getCloudFrontOriginAccessIdentityConfig2019_03_26({required String id}) Future<GetCloudFrontOriginAccessIdentityConfigResult>
Get the configuration information about an origin access identity.
getDistribution2019_03_26({required String id}) Future<GetDistributionResult>
Get the information about a distribution.
getDistributionConfig2019_03_26({required String id}) Future<GetDistributionConfigResult>
Get the configuration information about a distribution.
getFieldLevelEncryption2019_03_26({required String id}) Future<GetFieldLevelEncryptionResult>
Get the field-level encryption configuration information.
getFieldLevelEncryptionConfig2019_03_26({required String id}) Future<GetFieldLevelEncryptionConfigResult>
Get the field-level encryption configuration information.
getFieldLevelEncryptionProfile2019_03_26({required String id}) Future<GetFieldLevelEncryptionProfileResult>
Get the field-level encryption profile information.
getFieldLevelEncryptionProfileConfig2019_03_26({required String id}) Future<GetFieldLevelEncryptionProfileConfigResult>
Get the field-level encryption profile configuration information.
getInvalidation2019_03_26({required String distributionId, required String id}) Future<GetInvalidationResult>
Get the information about an invalidation.
getPublicKey2019_03_26({required String id}) Future<GetPublicKeyResult>
Get the public key information.
getPublicKeyConfig2019_03_26({required String id}) Future<GetPublicKeyConfigResult>
Return public key configuration informaation
getStreamingDistribution2019_03_26({required String id}) Future<GetStreamingDistributionResult>
Gets information about a specified RTMP distribution, including the distribution configuration.
getStreamingDistributionConfig2019_03_26({required String id}) Future<GetStreamingDistributionConfigResult>
Get the configuration information about a streaming distribution.
listCloudFrontOriginAccessIdentities2019_03_26({String? marker, String? maxItems}) Future<ListCloudFrontOriginAccessIdentitiesResult>
Lists origin access identities.
listDistributions2019_03_26({String? marker, String? maxItems}) Future<ListDistributionsResult>
List CloudFront distributions.
listDistributionsByWebACLId2019_03_26({required String webACLId, String? marker, String? maxItems}) Future<ListDistributionsByWebACLIdResult>
List the distributions that are associated with a specified AWS WAF web ACL.
listFieldLevelEncryptionConfigs2019_03_26({String? marker, String? maxItems}) Future<ListFieldLevelEncryptionConfigsResult>
List all field-level encryption configurations that have been created in CloudFront for this account.
listFieldLevelEncryptionProfiles2019_03_26({String? marker, String? maxItems}) Future<ListFieldLevelEncryptionProfilesResult>
Request a list of field-level encryption profiles that have been created in CloudFront for this account.
listInvalidations2019_03_26({required String distributionId, String? marker, String? maxItems}) Future<ListInvalidationsResult>
Lists invalidation batches.
listPublicKeys2019_03_26({String? marker, String? maxItems}) Future<ListPublicKeysResult>
List all public keys that have been added to CloudFront for this account.
listStreamingDistributions2019_03_26({String? marker, String? maxItems}) Future<ListStreamingDistributionsResult>
List streaming distributions.
listTagsForResource2019_03_26({required String resource}) Future<ListTagsForResourceResult>
List tags for a CloudFront resource.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
tagResource2019_03_26({required String resource, required Tags tags}) Future<void>
Add tags to a CloudFront resource.
toString() String
A string representation of this object.
inherited
untagResource2019_03_26({required String resource, required TagKeys tagKeys}) Future<void>
Remove tags from a CloudFront resource.
updateCloudFrontOriginAccessIdentity2019_03_26({required CloudFrontOriginAccessIdentityConfig cloudFrontOriginAccessIdentityConfig, required String id, String? ifMatch}) Future<UpdateCloudFrontOriginAccessIdentityResult>
Update an origin access identity.
updateDistribution2019_03_26({required DistributionConfig distributionConfig, required String id, String? ifMatch}) Future<UpdateDistributionResult>
Updates the configuration for a web distribution. 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.
updateFieldLevelEncryptionConfig2019_03_26({required FieldLevelEncryptionConfig fieldLevelEncryptionConfig, required String id, String? ifMatch}) Future<UpdateFieldLevelEncryptionConfigResult>
Update a field-level encryption configuration.
updateFieldLevelEncryptionProfile2019_03_26({required FieldLevelEncryptionProfileConfig fieldLevelEncryptionProfileConfig, required String id, String? ifMatch}) Future<UpdateFieldLevelEncryptionProfileResult>
Update a field-level encryption profile.
updatePublicKey2019_03_26({required String id, required PublicKeyConfig publicKeyConfig, String? ifMatch}) Future<UpdatePublicKeyResult>
Update public key information. Note that the only value you can change is the comment.
updateStreamingDistribution2019_03_26({required String id, required StreamingDistributionConfig streamingDistributionConfig, String? ifMatch}) Future<UpdateStreamingDistributionResult>
Update a streaming distribution.

Operators

operator ==(Object other) bool
The equality operator.
inherited