pub struct CloudFrontClient { /* private fields */ }
Expand description
A client for the CloudFront API.
Implementations§
Source§impl CloudFrontClient
impl CloudFrontClient
Sourcepub fn new(region: Region) -> CloudFrontClient
pub fn new(region: Region) -> CloudFrontClient
Creates a client backed by the default tokio event loop.
The client will use the default credentials provider and tls client.
pub fn new_with<P, D>(
request_dispatcher: D,
credentials_provider: P,
region: Region,
) -> CloudFrontClientwhere
P: ProvideAwsCredentials + Send + Sync + 'static,
D: DispatchSignedRequest + Send + Sync + 'static,
pub fn new_with_client(client: Client, region: Region) -> CloudFrontClient
Trait Implementations§
Source§impl Clone for CloudFrontClient
impl Clone for CloudFrontClient
Source§fn clone(&self) -> CloudFrontClient
fn clone(&self) -> CloudFrontClient
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl CloudFront for CloudFrontClient
impl CloudFront for CloudFrontClient
Source§fn create_cloud_front_origin_access_identity<'life0, 'async_trait>(
&'life0 self,
input: CreateCloudFrontOriginAccessIdentityRequest,
) -> Pin<Box<dyn Future<Output = Result<CreateCloudFrontOriginAccessIdentityResult, RusotoError<CreateCloudFrontOriginAccessIdentityError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn create_cloud_front_origin_access_identity<'life0, 'async_trait>(
&'life0 self,
input: CreateCloudFrontOriginAccessIdentityRequest,
) -> Pin<Box<dyn Future<Output = Result<CreateCloudFrontOriginAccessIdentityResult, RusotoError<CreateCloudFrontOriginAccessIdentityError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
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.
Source§fn create_distribution<'life0, 'async_trait>(
&'life0 self,
input: CreateDistributionRequest,
) -> Pin<Box<dyn Future<Output = Result<CreateDistributionResult, RusotoError<CreateDistributionError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn create_distribution<'life0, 'async_trait>(
&'life0 self,
input: CreateDistributionRequest,
) -> Pin<Box<dyn Future<Output = Result<CreateDistributionResult, RusotoError<CreateDistributionError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
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.
Create a new distribution with tags.
Source§fn create_field_level_encryption_config<'life0, 'async_trait>(
&'life0 self,
input: CreateFieldLevelEncryptionConfigRequest,
) -> Pin<Box<dyn Future<Output = Result<CreateFieldLevelEncryptionConfigResult, RusotoError<CreateFieldLevelEncryptionConfigError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn create_field_level_encryption_config<'life0, 'async_trait>(
&'life0 self,
input: CreateFieldLevelEncryptionConfigRequest,
) -> Pin<Box<dyn Future<Output = Result<CreateFieldLevelEncryptionConfigResult, RusotoError<CreateFieldLevelEncryptionConfigError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Create a new field-level encryption configuration.
Source§fn create_field_level_encryption_profile<'life0, 'async_trait>(
&'life0 self,
input: CreateFieldLevelEncryptionProfileRequest,
) -> Pin<Box<dyn Future<Output = Result<CreateFieldLevelEncryptionProfileResult, RusotoError<CreateFieldLevelEncryptionProfileError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn create_field_level_encryption_profile<'life0, 'async_trait>(
&'life0 self,
input: CreateFieldLevelEncryptionProfileRequest,
) -> Pin<Box<dyn Future<Output = Result<CreateFieldLevelEncryptionProfileResult, RusotoError<CreateFieldLevelEncryptionProfileError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Create a field-level encryption profile.
Source§fn create_invalidation<'life0, 'async_trait>(
&'life0 self,
input: CreateInvalidationRequest,
) -> Pin<Box<dyn Future<Output = Result<CreateInvalidationResult, RusotoError<CreateInvalidationError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn create_invalidation<'life0, 'async_trait>(
&'life0 self,
input: CreateInvalidationRequest,
) -> Pin<Box<dyn Future<Output = Result<CreateInvalidationResult, RusotoError<CreateInvalidationError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Create a new invalidation.
Source§fn create_public_key<'life0, 'async_trait>(
&'life0 self,
input: CreatePublicKeyRequest,
) -> Pin<Box<dyn Future<Output = Result<CreatePublicKeyResult, RusotoError<CreatePublicKeyError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn create_public_key<'life0, 'async_trait>(
&'life0 self,
input: CreatePublicKeyRequest,
) -> Pin<Box<dyn Future<Output = Result<CreatePublicKeyResult, RusotoError<CreatePublicKeyError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
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.
Source§fn create_streaming_distribution<'life0, 'async_trait>(
&'life0 self,
input: CreateStreamingDistributionRequest,
) -> Pin<Box<dyn Future<Output = Result<CreateStreamingDistributionResult, RusotoError<CreateStreamingDistributionError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn create_streaming_distribution<'life0, 'async_trait>(
&'life0 self,
input: CreateStreamingDistributionRequest,
) -> Pin<Box<dyn Future<Output = Result<CreateStreamingDistributionResult, RusotoError<CreateStreamingDistributionError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
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.
To create a new distribution, submit a POST
request to the CloudFront API version/distribution resource. The request body must include a document with a StreamingDistributionConfig element. The response echoes the StreamingDistributionConfig
element and returns other information about the RTMP distribution.
To get the status of your request, use the GET StreamingDistribution API action. When the value of Enabled
is true
and the value of Status
is Deployed
, your distribution is ready. A distribution usually deploys in less than 15 minutes.
For more information about web distributions, see Working with RTMP Distributions in the Amazon CloudFront Developer Guide.
Beginning with the 2012-05-05 version of the CloudFront API, we made substantial changes to the format of the XML document that you include in the request body when you create or update a web distribution or an RTMP distribution, and when you invalidate objects. With previous versions of the API, we discovered that it was too easy to accidentally delete one or more values for an element that accepts multiple values, for example, CNAMEs and trusted signers. Our changes for the 2012-05-05 release are intended to prevent these accidental deletions and to notify you when there's a mismatch between the number of values you say you're specifying in the Quantity
element and the number of values specified.
Create a new streaming distribution with tags.
Source§fn delete_cloud_front_origin_access_identity<'life0, 'async_trait>(
&'life0 self,
input: DeleteCloudFrontOriginAccessIdentityRequest,
) -> Pin<Box<dyn Future<Output = Result<(), RusotoError<DeleteCloudFrontOriginAccessIdentityError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn delete_cloud_front_origin_access_identity<'life0, 'async_trait>(
&'life0 self,
input: DeleteCloudFrontOriginAccessIdentityRequest,
) -> Pin<Box<dyn Future<Output = Result<(), RusotoError<DeleteCloudFrontOriginAccessIdentityError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Delete an origin access identity.
Source§fn delete_distribution<'life0, 'async_trait>(
&'life0 self,
input: DeleteDistributionRequest,
) -> Pin<Box<dyn Future<Output = Result<(), RusotoError<DeleteDistributionError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn delete_distribution<'life0, 'async_trait>(
&'life0 self,
input: DeleteDistributionRequest,
) -> Pin<Box<dyn Future<Output = Result<(), RusotoError<DeleteDistributionError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Delete a distribution.
Source§fn delete_field_level_encryption_config<'life0, 'async_trait>(
&'life0 self,
input: DeleteFieldLevelEncryptionConfigRequest,
) -> Pin<Box<dyn Future<Output = Result<(), RusotoError<DeleteFieldLevelEncryptionConfigError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn delete_field_level_encryption_config<'life0, 'async_trait>(
&'life0 self,
input: DeleteFieldLevelEncryptionConfigRequest,
) -> Pin<Box<dyn Future<Output = Result<(), RusotoError<DeleteFieldLevelEncryptionConfigError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Remove a field-level encryption configuration.
Source§fn delete_field_level_encryption_profile<'life0, 'async_trait>(
&'life0 self,
input: DeleteFieldLevelEncryptionProfileRequest,
) -> Pin<Box<dyn Future<Output = Result<(), RusotoError<DeleteFieldLevelEncryptionProfileError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn delete_field_level_encryption_profile<'life0, 'async_trait>(
&'life0 self,
input: DeleteFieldLevelEncryptionProfileRequest,
) -> Pin<Box<dyn Future<Output = Result<(), RusotoError<DeleteFieldLevelEncryptionProfileError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Remove a field-level encryption profile.
Source§fn delete_public_key<'life0, 'async_trait>(
&'life0 self,
input: DeletePublicKeyRequest,
) -> Pin<Box<dyn Future<Output = Result<(), RusotoError<DeletePublicKeyError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn delete_public_key<'life0, 'async_trait>(
&'life0 self,
input: DeletePublicKeyRequest,
) -> Pin<Box<dyn Future<Output = Result<(), RusotoError<DeletePublicKeyError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Remove a public key you previously added to CloudFront.
Source§fn delete_streaming_distribution<'life0, 'async_trait>(
&'life0 self,
input: DeleteStreamingDistributionRequest,
) -> Pin<Box<dyn Future<Output = Result<(), RusotoError<DeleteStreamingDistributionError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn delete_streaming_distribution<'life0, 'async_trait>(
&'life0 self,
input: DeleteStreamingDistributionRequest,
) -> Pin<Box<dyn Future<Output = Result<(), RusotoError<DeleteStreamingDistributionError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Delete a streaming distribution. To delete an RTMP distribution using the CloudFront API, perform the following steps.
To delete an RTMP distribution using the CloudFront API:
-
Disable the RTMP distribution.
-
Submit a
GET Streaming Distribution Config
request to get the current configuration and theEtag
header for the distribution. -
Update the XML document that was returned in the response to your
GET Streaming Distribution Config
request to change the value ofEnabled
tofalse
. -
Submit a
PUT Streaming Distribution Config
request to update the configuration for your distribution. In the request body, include the XML document that you updated in Step 3. Then set the value of the HTTPIf-Match
header to the value of theETag
header that CloudFront returned when you submitted theGET Streaming Distribution Config
request in Step 2. -
Review the response to the
PUT Streaming Distribution Config
request to confirm that the distribution was successfully disabled. -
Submit a
GET Streaming Distribution Config
request to confirm that your changes have propagated. When propagation is complete, the value ofStatus
isDeployed
. -
Submit a
DELETE Streaming Distribution
request. Set the value of the HTTPIf-Match
header to the value of theETag
header that CloudFront returned when you submitted theGET Streaming Distribution Config
request in Step 2. -
Review the response to your
DELETE Streaming Distribution
request to confirm that the distribution was successfully deleted.
For information about deleting a distribution using the CloudFront console, see Deleting a Distribution in the Amazon CloudFront Developer Guide.
Source§fn get_cloud_front_origin_access_identity<'life0, 'async_trait>(
&'life0 self,
input: GetCloudFrontOriginAccessIdentityRequest,
) -> Pin<Box<dyn Future<Output = Result<GetCloudFrontOriginAccessIdentityResult, RusotoError<GetCloudFrontOriginAccessIdentityError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_cloud_front_origin_access_identity<'life0, 'async_trait>(
&'life0 self,
input: GetCloudFrontOriginAccessIdentityRequest,
) -> Pin<Box<dyn Future<Output = Result<GetCloudFrontOriginAccessIdentityResult, RusotoError<GetCloudFrontOriginAccessIdentityError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get the information about an origin access identity.
Source§fn get_cloud_front_origin_access_identity_config<'life0, 'async_trait>(
&'life0 self,
input: GetCloudFrontOriginAccessIdentityConfigRequest,
) -> Pin<Box<dyn Future<Output = Result<GetCloudFrontOriginAccessIdentityConfigResult, RusotoError<GetCloudFrontOriginAccessIdentityConfigError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_cloud_front_origin_access_identity_config<'life0, 'async_trait>(
&'life0 self,
input: GetCloudFrontOriginAccessIdentityConfigRequest,
) -> Pin<Box<dyn Future<Output = Result<GetCloudFrontOriginAccessIdentityConfigResult, RusotoError<GetCloudFrontOriginAccessIdentityConfigError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get the configuration information about an origin access identity.
Source§fn get_distribution<'life0, 'async_trait>(
&'life0 self,
input: GetDistributionRequest,
) -> Pin<Box<dyn Future<Output = Result<GetDistributionResult, RusotoError<GetDistributionError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_distribution<'life0, 'async_trait>(
&'life0 self,
input: GetDistributionRequest,
) -> Pin<Box<dyn Future<Output = Result<GetDistributionResult, RusotoError<GetDistributionError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get the information about a distribution.
Source§fn get_distribution_config<'life0, 'async_trait>(
&'life0 self,
input: GetDistributionConfigRequest,
) -> Pin<Box<dyn Future<Output = Result<GetDistributionConfigResult, RusotoError<GetDistributionConfigError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_distribution_config<'life0, 'async_trait>(
&'life0 self,
input: GetDistributionConfigRequest,
) -> Pin<Box<dyn Future<Output = Result<GetDistributionConfigResult, RusotoError<GetDistributionConfigError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get the configuration information about a distribution.
Source§fn get_field_level_encryption<'life0, 'async_trait>(
&'life0 self,
input: GetFieldLevelEncryptionRequest,
) -> Pin<Box<dyn Future<Output = Result<GetFieldLevelEncryptionResult, RusotoError<GetFieldLevelEncryptionError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_field_level_encryption<'life0, 'async_trait>(
&'life0 self,
input: GetFieldLevelEncryptionRequest,
) -> Pin<Box<dyn Future<Output = Result<GetFieldLevelEncryptionResult, RusotoError<GetFieldLevelEncryptionError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get the field-level encryption configuration information.
Source§fn get_field_level_encryption_config<'life0, 'async_trait>(
&'life0 self,
input: GetFieldLevelEncryptionConfigRequest,
) -> Pin<Box<dyn Future<Output = Result<GetFieldLevelEncryptionConfigResult, RusotoError<GetFieldLevelEncryptionConfigError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_field_level_encryption_config<'life0, 'async_trait>(
&'life0 self,
input: GetFieldLevelEncryptionConfigRequest,
) -> Pin<Box<dyn Future<Output = Result<GetFieldLevelEncryptionConfigResult, RusotoError<GetFieldLevelEncryptionConfigError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get the field-level encryption configuration information.
Source§fn get_field_level_encryption_profile<'life0, 'async_trait>(
&'life0 self,
input: GetFieldLevelEncryptionProfileRequest,
) -> Pin<Box<dyn Future<Output = Result<GetFieldLevelEncryptionProfileResult, RusotoError<GetFieldLevelEncryptionProfileError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_field_level_encryption_profile<'life0, 'async_trait>(
&'life0 self,
input: GetFieldLevelEncryptionProfileRequest,
) -> Pin<Box<dyn Future<Output = Result<GetFieldLevelEncryptionProfileResult, RusotoError<GetFieldLevelEncryptionProfileError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get the field-level encryption profile information.
Source§fn get_field_level_encryption_profile_config<'life0, 'async_trait>(
&'life0 self,
input: GetFieldLevelEncryptionProfileConfigRequest,
) -> Pin<Box<dyn Future<Output = Result<GetFieldLevelEncryptionProfileConfigResult, RusotoError<GetFieldLevelEncryptionProfileConfigError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_field_level_encryption_profile_config<'life0, 'async_trait>(
&'life0 self,
input: GetFieldLevelEncryptionProfileConfigRequest,
) -> Pin<Box<dyn Future<Output = Result<GetFieldLevelEncryptionProfileConfigResult, RusotoError<GetFieldLevelEncryptionProfileConfigError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get the field-level encryption profile configuration information.
Source§fn get_invalidation<'life0, 'async_trait>(
&'life0 self,
input: GetInvalidationRequest,
) -> Pin<Box<dyn Future<Output = Result<GetInvalidationResult, RusotoError<GetInvalidationError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_invalidation<'life0, 'async_trait>(
&'life0 self,
input: GetInvalidationRequest,
) -> Pin<Box<dyn Future<Output = Result<GetInvalidationResult, RusotoError<GetInvalidationError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get the information about an invalidation.
Source§fn get_public_key<'life0, 'async_trait>(
&'life0 self,
input: GetPublicKeyRequest,
) -> Pin<Box<dyn Future<Output = Result<GetPublicKeyResult, RusotoError<GetPublicKeyError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_public_key<'life0, 'async_trait>(
&'life0 self,
input: GetPublicKeyRequest,
) -> Pin<Box<dyn Future<Output = Result<GetPublicKeyResult, RusotoError<GetPublicKeyError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get the public key information.
Source§fn get_public_key_config<'life0, 'async_trait>(
&'life0 self,
input: GetPublicKeyConfigRequest,
) -> Pin<Box<dyn Future<Output = Result<GetPublicKeyConfigResult, RusotoError<GetPublicKeyConfigError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_public_key_config<'life0, 'async_trait>(
&'life0 self,
input: GetPublicKeyConfigRequest,
) -> Pin<Box<dyn Future<Output = Result<GetPublicKeyConfigResult, RusotoError<GetPublicKeyConfigError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Return public key configuration informaation
Source§fn get_streaming_distribution<'life0, 'async_trait>(
&'life0 self,
input: GetStreamingDistributionRequest,
) -> Pin<Box<dyn Future<Output = Result<GetStreamingDistributionResult, RusotoError<GetStreamingDistributionError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_streaming_distribution<'life0, 'async_trait>(
&'life0 self,
input: GetStreamingDistributionRequest,
) -> Pin<Box<dyn Future<Output = Result<GetStreamingDistributionResult, RusotoError<GetStreamingDistributionError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Gets information about a specified RTMP distribution, including the distribution configuration.
Source§fn get_streaming_distribution_config<'life0, 'async_trait>(
&'life0 self,
input: GetStreamingDistributionConfigRequest,
) -> Pin<Box<dyn Future<Output = Result<GetStreamingDistributionConfigResult, RusotoError<GetStreamingDistributionConfigError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_streaming_distribution_config<'life0, 'async_trait>(
&'life0 self,
input: GetStreamingDistributionConfigRequest,
) -> Pin<Box<dyn Future<Output = Result<GetStreamingDistributionConfigResult, RusotoError<GetStreamingDistributionConfigError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get the configuration information about a streaming distribution.
Source§fn list_cloud_front_origin_access_identities<'life0, 'async_trait>(
&'life0 self,
input: ListCloudFrontOriginAccessIdentitiesRequest,
) -> Pin<Box<dyn Future<Output = Result<ListCloudFrontOriginAccessIdentitiesResult, RusotoError<ListCloudFrontOriginAccessIdentitiesError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list_cloud_front_origin_access_identities<'life0, 'async_trait>(
&'life0 self,
input: ListCloudFrontOriginAccessIdentitiesRequest,
) -> Pin<Box<dyn Future<Output = Result<ListCloudFrontOriginAccessIdentitiesResult, RusotoError<ListCloudFrontOriginAccessIdentitiesError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Lists origin access identities.
Source§fn list_distributions<'life0, 'async_trait>(
&'life0 self,
input: ListDistributionsRequest,
) -> Pin<Box<dyn Future<Output = Result<ListDistributionsResult, RusotoError<ListDistributionsError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list_distributions<'life0, 'async_trait>(
&'life0 self,
input: ListDistributionsRequest,
) -> Pin<Box<dyn Future<Output = Result<ListDistributionsResult, RusotoError<ListDistributionsError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
List CloudFront distributions.
Source§fn list_distributions_by_web_acl_id<'life0, 'async_trait>(
&'life0 self,
input: ListDistributionsByWebACLIdRequest,
) -> Pin<Box<dyn Future<Output = Result<ListDistributionsByWebACLIdResult, RusotoError<ListDistributionsByWebACLIdError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list_distributions_by_web_acl_id<'life0, 'async_trait>(
&'life0 self,
input: ListDistributionsByWebACLIdRequest,
) -> Pin<Box<dyn Future<Output = Result<ListDistributionsByWebACLIdResult, RusotoError<ListDistributionsByWebACLIdError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
List the distributions that are associated with a specified AWS WAF web ACL.
Source§fn list_field_level_encryption_configs<'life0, 'async_trait>(
&'life0 self,
input: ListFieldLevelEncryptionConfigsRequest,
) -> Pin<Box<dyn Future<Output = Result<ListFieldLevelEncryptionConfigsResult, RusotoError<ListFieldLevelEncryptionConfigsError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list_field_level_encryption_configs<'life0, 'async_trait>(
&'life0 self,
input: ListFieldLevelEncryptionConfigsRequest,
) -> Pin<Box<dyn Future<Output = Result<ListFieldLevelEncryptionConfigsResult, RusotoError<ListFieldLevelEncryptionConfigsError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
List all field-level encryption configurations that have been created in CloudFront for this account.
Source§fn list_field_level_encryption_profiles<'life0, 'async_trait>(
&'life0 self,
input: ListFieldLevelEncryptionProfilesRequest,
) -> Pin<Box<dyn Future<Output = Result<ListFieldLevelEncryptionProfilesResult, RusotoError<ListFieldLevelEncryptionProfilesError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list_field_level_encryption_profiles<'life0, 'async_trait>(
&'life0 self,
input: ListFieldLevelEncryptionProfilesRequest,
) -> Pin<Box<dyn Future<Output = Result<ListFieldLevelEncryptionProfilesResult, RusotoError<ListFieldLevelEncryptionProfilesError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Request a list of field-level encryption profiles that have been created in CloudFront for this account.
Source§fn list_invalidations<'life0, 'async_trait>(
&'life0 self,
input: ListInvalidationsRequest,
) -> Pin<Box<dyn Future<Output = Result<ListInvalidationsResult, RusotoError<ListInvalidationsError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list_invalidations<'life0, 'async_trait>(
&'life0 self,
input: ListInvalidationsRequest,
) -> Pin<Box<dyn Future<Output = Result<ListInvalidationsResult, RusotoError<ListInvalidationsError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Lists invalidation batches.
Source§fn list_public_keys<'life0, 'async_trait>(
&'life0 self,
input: ListPublicKeysRequest,
) -> Pin<Box<dyn Future<Output = Result<ListPublicKeysResult, RusotoError<ListPublicKeysError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list_public_keys<'life0, 'async_trait>(
&'life0 self,
input: ListPublicKeysRequest,
) -> Pin<Box<dyn Future<Output = Result<ListPublicKeysResult, RusotoError<ListPublicKeysError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
List all public keys that have been added to CloudFront for this account.
Source§fn list_streaming_distributions<'life0, 'async_trait>(
&'life0 self,
input: ListStreamingDistributionsRequest,
) -> Pin<Box<dyn Future<Output = Result<ListStreamingDistributionsResult, RusotoError<ListStreamingDistributionsError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list_streaming_distributions<'life0, 'async_trait>(
&'life0 self,
input: ListStreamingDistributionsRequest,
) -> Pin<Box<dyn Future<Output = Result<ListStreamingDistributionsResult, RusotoError<ListStreamingDistributionsError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
List streaming distributions.
List tags for a CloudFront resource.
Source§fn tag_resource<'life0, 'async_trait>(
&'life0 self,
input: TagResourceRequest,
) -> Pin<Box<dyn Future<Output = Result<(), RusotoError<TagResourceError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn tag_resource<'life0, 'async_trait>(
&'life0 self,
input: TagResourceRequest,
) -> Pin<Box<dyn Future<Output = Result<(), RusotoError<TagResourceError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Add tags to a CloudFront resource.
Source§fn untag_resource<'life0, 'async_trait>(
&'life0 self,
input: UntagResourceRequest,
) -> Pin<Box<dyn Future<Output = Result<(), RusotoError<UntagResourceError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn untag_resource<'life0, 'async_trait>(
&'life0 self,
input: UntagResourceRequest,
) -> Pin<Box<dyn Future<Output = Result<(), RusotoError<UntagResourceError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Remove tags from a CloudFront resource.
Source§fn update_cloud_front_origin_access_identity<'life0, 'async_trait>(
&'life0 self,
input: UpdateCloudFrontOriginAccessIdentityRequest,
) -> Pin<Box<dyn Future<Output = Result<UpdateCloudFrontOriginAccessIdentityResult, RusotoError<UpdateCloudFrontOriginAccessIdentityError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn update_cloud_front_origin_access_identity<'life0, 'async_trait>(
&'life0 self,
input: UpdateCloudFrontOriginAccessIdentityRequest,
) -> Pin<Box<dyn Future<Output = Result<UpdateCloudFrontOriginAccessIdentityResult, RusotoError<UpdateCloudFrontOriginAccessIdentityError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Update an origin access identity.
Source§fn update_distribution<'life0, 'async_trait>(
&'life0 self,
input: UpdateDistributionRequest,
) -> Pin<Box<dyn Future<Output = Result<UpdateDistributionResult, RusotoError<UpdateDistributionError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn update_distribution<'life0, 'async_trait>(
&'life0 self,
input: UpdateDistributionRequest,
) -> Pin<Box<dyn Future<Output = Result<UpdateDistributionResult, RusotoError<UpdateDistributionError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
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.
For information about updating a distribution using the CloudFront console instead, see Creating a Distribution in the Amazon CloudFront Developer Guide.
To update a web distribution using the CloudFront API
-
Submit a GetDistributionConfig request to get the current configuration and an
Etag
header for the distribution.If you update the distribution again, you must get a new
Etag
header. -
Update the XML document that was returned in the response to your
GetDistributionConfig
request to include your changes.When you edit the XML file, be aware of the following:
-
You must strip out the ETag parameter that is returned.
-
Additional fields are required when you update a distribution. There may be fields included in the XML file for features that you haven't configured for your distribution. This is expected and required to successfully update the distribution.
-
You can't change the value of
CallerReference
. If you try to change this value, CloudFront returns anIllegalUpdate
error. -
The new configuration replaces the existing configuration; the values that you specify in an
UpdateDistribution
request are not merged into your existing configuration. When you add, delete, or replace values in an element that allows multiple values (for example,CNAME
), you must specify all of the values that you want to appear in the updated distribution. In addition, you must update the correspondingQuantity
element.
-
-
Submit an
UpdateDistribution
request to update the configuration for your distribution:-
In the request body, include the XML document that you updated in Step 2. The request body must include an XML document with a
DistributionConfig
element. -
Set the value of the HTTP
If-Match
header to the value of theETag
header that CloudFront returned when you submitted theGetDistributionConfig
request in Step 1.
-
-
Review the response to the
UpdateDistribution
request to confirm that the configuration was successfully updated. -
Optional: Submit a GetDistribution request to confirm that your changes have propagated. When propagation is complete, the value of
Status
isDeployed
.
Source§fn update_field_level_encryption_config<'life0, 'async_trait>(
&'life0 self,
input: UpdateFieldLevelEncryptionConfigRequest,
) -> Pin<Box<dyn Future<Output = Result<UpdateFieldLevelEncryptionConfigResult, RusotoError<UpdateFieldLevelEncryptionConfigError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn update_field_level_encryption_config<'life0, 'async_trait>(
&'life0 self,
input: UpdateFieldLevelEncryptionConfigRequest,
) -> Pin<Box<dyn Future<Output = Result<UpdateFieldLevelEncryptionConfigResult, RusotoError<UpdateFieldLevelEncryptionConfigError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Update a field-level encryption configuration.
Source§fn update_field_level_encryption_profile<'life0, 'async_trait>(
&'life0 self,
input: UpdateFieldLevelEncryptionProfileRequest,
) -> Pin<Box<dyn Future<Output = Result<UpdateFieldLevelEncryptionProfileResult, RusotoError<UpdateFieldLevelEncryptionProfileError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn update_field_level_encryption_profile<'life0, 'async_trait>(
&'life0 self,
input: UpdateFieldLevelEncryptionProfileRequest,
) -> Pin<Box<dyn Future<Output = Result<UpdateFieldLevelEncryptionProfileResult, RusotoError<UpdateFieldLevelEncryptionProfileError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Update a field-level encryption profile.
Source§fn update_public_key<'life0, 'async_trait>(
&'life0 self,
input: UpdatePublicKeyRequest,
) -> Pin<Box<dyn Future<Output = Result<UpdatePublicKeyResult, RusotoError<UpdatePublicKeyError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn update_public_key<'life0, 'async_trait>(
&'life0 self,
input: UpdatePublicKeyRequest,
) -> Pin<Box<dyn Future<Output = Result<UpdatePublicKeyResult, RusotoError<UpdatePublicKeyError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Update public key information. Note that the only value you can change is the comment.
Source§fn update_streaming_distribution<'life0, 'async_trait>(
&'life0 self,
input: UpdateStreamingDistributionRequest,
) -> Pin<Box<dyn Future<Output = Result<UpdateStreamingDistributionResult, RusotoError<UpdateStreamingDistributionError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn update_streaming_distribution<'life0, 'async_trait>(
&'life0 self,
input: UpdateStreamingDistributionRequest,
) -> Pin<Box<dyn Future<Output = Result<UpdateStreamingDistributionResult, RusotoError<UpdateStreamingDistributionError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Update a streaming distribution.