pub struct Client { /* private fields */ }
Expand description

Client for Amazon CloudFront

Client for invoking operations on Amazon CloudFront. Each operation on Amazon CloudFront is a method on this this struct. .send() MUST be invoked on the generated operations to dispatch the request to the service.

Examples

Constructing a client and invoking an operation

    // create a shared configuration. This can be used & shared between multiple service clients.
    let shared_config = aws_config::load_from_env().await;
    let client = aws_sdk_cloudfront::Client::new(&shared_config);
    // invoke an operation
    /* let rsp = client
        .<operation_name>().
        .<param>("some value")
        .send().await; */

Constructing a client with custom configuration

use aws_config::RetryConfig;
    let shared_config = aws_config::load_from_env().await;
    let config = aws_sdk_cloudfront::config::Builder::from(&shared_config)
        .retry_config(RetryConfig::disabled())
        .build();
    let client = aws_sdk_cloudfront::Client::from_conf(config);

Implementations

Creates a client with the given service configuration.

Returns the client’s configuration.

Constructs a fluent builder for the AssociateAlias operation.

Constructs a fluent builder for the CreateCachePolicy operation.

Constructs a fluent builder for the CreateCloudFrontOriginAccessIdentity operation.

Constructs a fluent builder for the CreateDistribution operation.

Constructs a fluent builder for the CreateDistributionWithTags operation.

Constructs a fluent builder for the CreateFieldLevelEncryptionConfig operation.

Constructs a fluent builder for the CreateFieldLevelEncryptionProfile operation.

Constructs a fluent builder for the CreateFunction operation.

Constructs a fluent builder for the CreateInvalidation operation.

Constructs a fluent builder for the CreateKeyGroup operation.

Constructs a fluent builder for the CreateMonitoringSubscription operation.

Constructs a fluent builder for the CreateOriginRequestPolicy operation.

Constructs a fluent builder for the CreatePublicKey operation.

Constructs a fluent builder for the CreateRealtimeLogConfig operation.

Constructs a fluent builder for the CreateResponseHeadersPolicy operation.

Constructs a fluent builder for the CreateStreamingDistribution operation.

Constructs a fluent builder for the CreateStreamingDistributionWithTags operation.

Constructs a fluent builder for the DeleteCachePolicy operation.

Constructs a fluent builder for the DeleteCloudFrontOriginAccessIdentity operation.

Constructs a fluent builder for the DeleteDistribution operation.

Constructs a fluent builder for the DeleteFieldLevelEncryptionConfig operation.

Constructs a fluent builder for the DeleteFieldLevelEncryptionProfile operation.

Constructs a fluent builder for the DeleteFunction operation.

Constructs a fluent builder for the DeleteKeyGroup operation.

Constructs a fluent builder for the DeleteMonitoringSubscription operation.

Constructs a fluent builder for the DeleteOriginRequestPolicy operation.

Constructs a fluent builder for the DeletePublicKey operation.

Constructs a fluent builder for the DeleteRealtimeLogConfig operation.

Constructs a fluent builder for the DeleteResponseHeadersPolicy operation.

Constructs a fluent builder for the DeleteStreamingDistribution operation.

Constructs a fluent builder for the DescribeFunction operation.

Constructs a fluent builder for the GetCachePolicy operation.

Constructs a fluent builder for the GetCachePolicyConfig operation.

Constructs a fluent builder for the GetCloudFrontOriginAccessIdentity operation.

Constructs a fluent builder for the GetCloudFrontOriginAccessIdentityConfig operation.

Constructs a fluent builder for the GetDistribution operation.

Constructs a fluent builder for the GetDistributionConfig operation.

Constructs a fluent builder for the GetFieldLevelEncryption operation.

Constructs a fluent builder for the GetFieldLevelEncryptionConfig operation.

Constructs a fluent builder for the GetFieldLevelEncryptionProfile operation.

Constructs a fluent builder for the GetFieldLevelEncryptionProfileConfig operation.

Constructs a fluent builder for the GetFunction operation.

Constructs a fluent builder for the GetInvalidation operation.

Constructs a fluent builder for the GetKeyGroup operation.

Constructs a fluent builder for the GetKeyGroupConfig operation.

Constructs a fluent builder for the GetMonitoringSubscription operation.

Constructs a fluent builder for the GetOriginRequestPolicy operation.

Constructs a fluent builder for the GetOriginRequestPolicyConfig operation.

Constructs a fluent builder for the GetPublicKey operation.

Constructs a fluent builder for the GetPublicKeyConfig operation.

Constructs a fluent builder for the GetRealtimeLogConfig operation.

Constructs a fluent builder for the GetResponseHeadersPolicy operation.

Constructs a fluent builder for the GetResponseHeadersPolicyConfig operation.

Constructs a fluent builder for the GetStreamingDistribution operation.

Constructs a fluent builder for the GetStreamingDistributionConfig operation.

Constructs a fluent builder for the ListCachePolicies operation.

Constructs a fluent builder for the ListCloudFrontOriginAccessIdentities operation. This operation supports pagination; See into_paginator().

Constructs a fluent builder for the ListConflictingAliases operation.

Constructs a fluent builder for the ListDistributions operation. This operation supports pagination; See into_paginator().

Constructs a fluent builder for the ListDistributionsByCachePolicyId operation.

Constructs a fluent builder for the ListDistributionsByKeyGroup operation.

Constructs a fluent builder for the ListDistributionsByOriginRequestPolicyId operation.

Constructs a fluent builder for the ListDistributionsByRealtimeLogConfig operation.

Constructs a fluent builder for the ListDistributionsByResponseHeadersPolicyId operation.

Constructs a fluent builder for the ListDistributionsByWebACLId operation.

Constructs a fluent builder for the ListFieldLevelEncryptionConfigs operation.

Constructs a fluent builder for the ListFieldLevelEncryptionProfiles operation.

Constructs a fluent builder for the ListFunctions operation.

Constructs a fluent builder for the ListInvalidations operation. This operation supports pagination; See into_paginator().

Constructs a fluent builder for the ListKeyGroups operation.

Constructs a fluent builder for the ListOriginRequestPolicies operation.

Constructs a fluent builder for the ListPublicKeys operation.

Constructs a fluent builder for the ListRealtimeLogConfigs operation.

Constructs a fluent builder for the ListResponseHeadersPolicies operation.

Constructs a fluent builder for the ListStreamingDistributions operation. This operation supports pagination; See into_paginator().

Constructs a fluent builder for the ListTagsForResource operation.

Constructs a fluent builder for the PublishFunction operation.

Constructs a fluent builder for the TagResource operation.

Constructs a fluent builder for the TestFunction operation.

Constructs a fluent builder for the UntagResource operation.

Constructs a fluent builder for the UpdateCachePolicy operation.

Constructs a fluent builder for the UpdateCloudFrontOriginAccessIdentity operation.

Constructs a fluent builder for the UpdateDistribution operation.

Constructs a fluent builder for the UpdateFieldLevelEncryptionConfig operation.

Constructs a fluent builder for the UpdateFieldLevelEncryptionProfile operation.

Constructs a fluent builder for the UpdateFunction operation.

Constructs a fluent builder for the UpdateKeyGroup operation.

Constructs a fluent builder for the UpdateOriginRequestPolicy operation.

Constructs a fluent builder for the UpdatePublicKey operation.

Constructs a fluent builder for the UpdateRealtimeLogConfig operation.

Constructs a fluent builder for the UpdateResponseHeadersPolicy operation.

Constructs a fluent builder for the UpdateStreamingDistribution operation.

Creates a client with the given service config and connector override.

Creates a new client from a shared config.

Creates a new client from the service Config.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more