CloudFront class

This is the Amazon CloudFront API Reference. This guide is for developers who need detailed information about the CloudFront API actions, data types, and errors. For detailed information about CloudFront features and their associated API calls, 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.
createCloudFrontOriginAccessIdentity2016_11_25({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.
createDistribution2016_11_25({required DistributionConfig distributionConfig}) Future<CreateDistributionResult>
Creates a new web distribution. Send a GET request to the /CloudFront API version/distribution/distribution ID resource.
createDistributionWithTags2016_11_25({required DistributionConfigWithTags distributionConfigWithTags}) Future<CreateDistributionWithTagsResult>
Create a new distribution with tags.
createInvalidation2016_11_25({required String distributionId, required InvalidationBatch invalidationBatch}) Future<CreateInvalidationResult>
Create a new invalidation.
createStreamingDistribution2016_11_25({required 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.
createStreamingDistributionWithTags2016_11_25({required StreamingDistributionConfigWithTags streamingDistributionConfigWithTags}) Future<CreateStreamingDistributionWithTagsResult>
Create a new streaming distribution with tags.
deleteCloudFrontOriginAccessIdentity2016_11_25({required String id, String? ifMatch}) Future<void>
Delete an origin access identity.
deleteDistribution2016_11_25({required String id, String? ifMatch}) Future<void>
Delete a distribution.
deleteStreamingDistribution2016_11_25({required String id, String? ifMatch}) Future<void>
Delete a streaming distribution. To delete an RTMP distribution using the CloudFront API, perform the following steps.
getCloudFrontOriginAccessIdentity2016_11_25({required String id}) Future<GetCloudFrontOriginAccessIdentityResult>
Get the information about an origin access identity.
getCloudFrontOriginAccessIdentityConfig2016_11_25({required String id}) Future<GetCloudFrontOriginAccessIdentityConfigResult>
Get the configuration information about an origin access identity.
getDistribution2016_11_25({required String id}) Future<GetDistributionResult>
Get the information about a distribution.
getDistributionConfig2016_11_25({required String id}) Future<GetDistributionConfigResult>
Get the configuration information about a distribution.
getInvalidation2016_11_25({required String distributionId, required String id}) Future<GetInvalidationResult>
Get the information about an invalidation.
getStreamingDistribution2016_11_25({required String id}) Future<GetStreamingDistributionResult>
Gets information about a specified RTMP distribution, including the distribution configuration.
getStreamingDistributionConfig2016_11_25({required String id}) Future<GetStreamingDistributionConfigResult>
Get the configuration information about a streaming distribution.
listCloudFrontOriginAccessIdentities2016_11_25({String? marker, String? maxItems}) Future<ListCloudFrontOriginAccessIdentitiesResult>
Lists origin access identities.
listDistributions2016_11_25({String? marker, String? maxItems}) Future<ListDistributionsResult>
List distributions.
listDistributionsByWebACLId2016_11_25({required String webACLId, String? marker, String? maxItems}) Future<ListDistributionsByWebACLIdResult>
List the distributions that are associated with a specified AWS WAF web ACL.
listInvalidations2016_11_25({required String distributionId, String? marker, String? maxItems}) Future<ListInvalidationsResult>
Lists invalidation batches.
listStreamingDistributions2016_11_25({String? marker, String? maxItems}) Future<ListStreamingDistributionsResult>
List streaming distributions.
listTagsForResource2016_11_25({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
tagResource2016_11_25({required String resource, required Tags tags}) Future<void>
Add tags to a CloudFront resource.
toString() String
A string representation of this object.
inherited
untagResource2016_11_25({required String resource, required TagKeys tagKeys}) Future<void>
Remove tags from a CloudFront resource.
updateCloudFrontOriginAccessIdentity2016_11_25({required CloudFrontOriginAccessIdentityConfig cloudFrontOriginAccessIdentityConfig, required String id, String? ifMatch}) Future<UpdateCloudFrontOriginAccessIdentityResult>
Update an origin access identity.
updateDistribution2016_11_25({required DistributionConfig distributionConfig, required String id, String? ifMatch}) Future<UpdateDistributionResult>
Update a distribution.
updateStreamingDistribution2016_11_25({required String id, required StreamingDistributionConfig streamingDistributionConfig, String? ifMatch}) Future<UpdateStreamingDistributionResult>
Update a streaming distribution.

Operators

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