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.
-
createCloudFrontOriginAccessIdentity2017_03_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.
-
createDistribution2017_03_25(
{required DistributionConfig distributionConfig}) → Future< CreateDistributionResult> -
Creates a new web distribution. Send a
POST
request to the/CloudFront API version/distribution
/distribution ID
resource. -
createDistributionWithTags2017_03_25(
{required DistributionConfigWithTags distributionConfigWithTags}) → Future< CreateDistributionWithTagsResult> - Create a new distribution with tags.
-
createInvalidation2017_03_25(
{required String distributionId, required InvalidationBatch invalidationBatch}) → Future< CreateInvalidationResult> - Create a new invalidation.
-
createStreamingDistribution2017_03_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.
-
createStreamingDistributionWithTags2017_03_25(
{required StreamingDistributionConfigWithTags streamingDistributionConfigWithTags}) → Future< CreateStreamingDistributionWithTagsResult> - Create a new streaming distribution with tags.
-
deleteCloudFrontOriginAccessIdentity2017_03_25(
{required String id, String? ifMatch}) → Future< void> - Delete an origin access identity.
-
deleteDistribution2017_03_25(
{required String id, String? ifMatch}) → Future< void> - Delete a distribution.
-
deleteServiceLinkedRole2017_03_25(
{required String roleName}) → Future< void> - May throw InvalidArgument. May throw AccessDenied. May throw ResourceInUse. May throw NoSuchResource.
-
deleteStreamingDistribution2017_03_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.
-
getCloudFrontOriginAccessIdentity2017_03_25(
{required String id}) → Future< GetCloudFrontOriginAccessIdentityResult> - Get the information about an origin access identity.
-
getCloudFrontOriginAccessIdentityConfig2017_03_25(
{required String id}) → Future< GetCloudFrontOriginAccessIdentityConfigResult> - Get the configuration information about an origin access identity.
-
getDistribution2017_03_25(
{required String id}) → Future< GetDistributionResult> - Get the information about a distribution.
-
getDistributionConfig2017_03_25(
{required String id}) → Future< GetDistributionConfigResult> - Get the configuration information about a distribution.
-
getInvalidation2017_03_25(
{required String distributionId, required String id}) → Future< GetInvalidationResult> - Get the information about an invalidation.
-
getStreamingDistribution2017_03_25(
{required String id}) → Future< GetStreamingDistributionResult> - Gets information about a specified RTMP distribution, including the distribution configuration.
-
getStreamingDistributionConfig2017_03_25(
{required String id}) → Future< GetStreamingDistributionConfigResult> - Get the configuration information about a streaming distribution.
-
listCloudFrontOriginAccessIdentities2017_03_25(
{String? marker, String? maxItems}) → Future< ListCloudFrontOriginAccessIdentitiesResult> - Lists origin access identities.
-
listDistributions2017_03_25(
{String? marker, String? maxItems}) → Future< ListDistributionsResult> - List distributions.
-
listDistributionsByWebACLId2017_03_25(
{required String webACLId, String? marker, String? maxItems}) → Future< ListDistributionsByWebACLIdResult> - List the distributions that are associated with a specified AWS WAF web ACL.
-
listInvalidations2017_03_25(
{required String distributionId, String? marker, String? maxItems}) → Future< ListInvalidationsResult> - Lists invalidation batches.
-
listStreamingDistributions2017_03_25(
{String? marker, String? maxItems}) → Future< ListStreamingDistributionsResult> - List streaming distributions.
-
listTagsForResource2017_03_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
-
tagResource2017_03_25(
{required String resource, required Tags tags}) → Future< void> - Add tags to a CloudFront resource.
-
toString(
) → String -
A string representation of this object.
inherited
-
untagResource2017_03_25(
{required String resource, required TagKeys tagKeys}) → Future< void> - Remove tags from a CloudFront resource.
-
updateCloudFrontOriginAccessIdentity2017_03_25(
{required CloudFrontOriginAccessIdentityConfig cloudFrontOriginAccessIdentityConfig, required String id, String? ifMatch}) → Future< UpdateCloudFrontOriginAccessIdentityResult> - Update an origin access identity.
-
updateDistribution2017_03_25(
{required DistributionConfig distributionConfig, required String id, String? ifMatch}) → Future< UpdateDistributionResult> - Updates the configuration for a web distribution. Perform the following steps.
-
updateStreamingDistribution2017_03_25(
{required String id, required StreamingDistributionConfig streamingDistributionConfig, String? ifMatch}) → Future< UpdateStreamingDistributionResult> - Update a streaming distribution.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited