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.
§Constructing a Client
A Config is required to construct a client. For most use cases, the aws-config
crate should be used to automatically resolve this config using
aws_config::load_from_env(), since this will resolve an SdkConfig which can be shared
across multiple different AWS SDK clients. This config resolution process can be customized
by calling aws_config::from_env() instead, which returns a ConfigLoader that uses
the builder pattern to customize the default config.
In the simplest case, creating a client looks as follows:
let config = aws_config::load_from_env().await;
let client = aws_sdk_cloudfront::Client::new(&config);Occasionally, SDKs may have additional service-specific values that can be set on the Config that
is absent from SdkConfig, or slightly different settings for a specific client may be desired.
The Builder struct implements From<&SdkConfig>, so setting these specific settings can be
done as follows:
let sdk_config = ::aws_config::load_from_env().await;
let config = aws_sdk_cloudfront::config::Builder::from(&sdk_config)
.some_service_specific_setting("value")
.build();See the aws-config docs and Config for more information on customizing configuration.
Note: Client construction is expensive due to connection thread pool initialization, and should be done once at application start-up.
§Using the Client
A client has a function for every operation that can be performed by the service.
For example, the AssociateAlias operation has
a Client::associate_alias, function which returns a builder for that operation.
The fluent builder ultimately has a send() function that returns an async future that
returns a result, as illustrated below:
let result = client.associate_alias()
.target_distribution_id("example")
.send()
.await;The underlying HTTP requests that get made by this can be modified with the customize_operation
function on the fluent builder. See the customize module for more
information.
§Waiters
This client provides wait_until methods behind the Waiters trait.
To use them, simply import the trait, and then call one of the wait_until methods. This will
return a waiter fluent builder that takes various parameters, which are documented on the builder
type. Once parameters have been provided, the wait method can be called to initiate waiting.
For example, if there was a wait_until_thing method, it could look like:
let result = client.wait_until_thing()
.thing_id("someId")
.wait(Duration::from_secs(120))
.await;Implementations§
Source§impl Client
impl Client
Sourcepub fn associate_alias(&self) -> AssociateAliasFluentBuilder
pub fn associate_alias(&self) -> AssociateAliasFluentBuilder
Constructs a fluent builder for the AssociateAlias operation.
- The fluent builder is configurable:
target_distribution_id(impl Into<String>)/set_target_distribution_id(Option<String>):
required: trueThe ID of the distribution that you’re associating the alias with.
alias(impl Into<String>)/set_alias(Option<String>):
required: trueThe alias (also known as a CNAME) to add to the target distribution.
- On success, responds with
AssociateAliasOutput - On failure, responds with
SdkError<AssociateAliasError>
Source§impl Client
impl Client
Sourcepub fn copy_distribution(&self) -> CopyDistributionFluentBuilder
pub fn copy_distribution(&self) -> CopyDistributionFluentBuilder
Constructs a fluent builder for the CopyDistribution operation.
- The fluent builder is configurable:
primary_distribution_id(impl Into<String>)/set_primary_distribution_id(Option<String>):
required: trueThe identifier of the primary distribution whose configuration you are copying. To get a distribution ID, use
ListDistributions.staging(bool)/set_staging(Option<bool>):
required: falseThe type of distribution that your primary distribution will be copied to. The only valid value is
True, indicating that you are copying to a staging distribution.if_match(impl Into<String>)/set_if_match(Option<String>):
required: falseThe version identifier of the primary distribution whose configuration you are copying. This is the
ETagvalue returned in the response toGetDistributionandGetDistributionConfig.caller_reference(impl Into<String>)/set_caller_reference(Option<String>):
required: trueA value that uniquely identifies a request to create a resource. This helps to prevent CloudFront from creating a duplicate resource if you accidentally resubmit an identical request.
enabled(bool)/set_enabled(Option<bool>):
required: falseA Boolean flag to specify the state of the staging distribution when it’s created. When you set this value to
True, the staging distribution is enabled. When you set this value toFalse, the staging distribution is disabled.If you omit this field, the default value is
True.
- On success, responds with
CopyDistributionOutputwith field(s):distribution(Option<Distribution>):A distribution tells CloudFront where you want content to be delivered from, and the details about how to track and manage content delivery.
location(Option<String>):The URL of the staging distribution.
e_tag(Option<String>):The version identifier for the current version of the staging distribution.
- On failure, responds with
SdkError<CopyDistributionError>
Source§impl Client
impl Client
Sourcepub fn create_anycast_ip_list(&self) -> CreateAnycastIpListFluentBuilder
pub fn create_anycast_ip_list(&self) -> CreateAnycastIpListFluentBuilder
Constructs a fluent builder for the CreateAnycastIpList operation.
- The fluent builder is configurable:
name(impl Into<String>)/set_name(Option<String>):
required: trueName of the Anycast static IP list.
ip_count(i32)/set_ip_count(Option<i32>):
required: trueThe number of static IP addresses that are allocated to the Anycast static IP list.
tags(Tags)/set_tags(Option<Tags>):
required: falseA complex type that contains zero or more
Tagelements.
- On success, responds with
CreateAnycastIpListOutputwith field(s):anycast_ip_list(Option<AnycastIpList>):A response structure that includes the version identifier (ETag) and the created
AnycastIpListstructure.e_tag(Option<String>):The version identifier for the current version of the Anycast static IP list.
- On failure, responds with
SdkError<CreateAnycastIpListError>
Source§impl Client
impl Client
Sourcepub fn create_cache_policy(&self) -> CreateCachePolicyFluentBuilder
pub fn create_cache_policy(&self) -> CreateCachePolicyFluentBuilder
Constructs a fluent builder for the CreateCachePolicy operation.
- The fluent builder is configurable:
cache_policy_config(CachePolicyConfig)/set_cache_policy_config(Option<CachePolicyConfig>):
required: trueA cache policy configuration.
- On success, responds with
CreateCachePolicyOutputwith field(s):cache_policy(Option<CachePolicy>):A cache policy.
location(Option<String>):The fully qualified URI of the cache policy just created.
e_tag(Option<String>):The current version of the cache policy.
- On failure, responds with
SdkError<CreateCachePolicyError>
Source§impl Client
impl Client
Sourcepub fn create_cloud_front_origin_access_identity(
&self,
) -> CreateCloudFrontOriginAccessIdentityFluentBuilder
pub fn create_cloud_front_origin_access_identity( &self, ) -> CreateCloudFrontOriginAccessIdentityFluentBuilder
Constructs a fluent builder for the CreateCloudFrontOriginAccessIdentity operation.
- The fluent builder is configurable:
cloud_front_origin_access_identity_config(CloudFrontOriginAccessIdentityConfig)/set_cloud_front_origin_access_identity_config(Option<CloudFrontOriginAccessIdentityConfig>):
required: trueThe current configuration information for the identity.
- On success, responds with
CreateCloudFrontOriginAccessIdentityOutputwith field(s):cloud_front_origin_access_identity(Option<CloudFrontOriginAccessIdentity>):The origin access identity’s information.
location(Option<String>):The fully qualified URI of the new origin access identity just created.
e_tag(Option<String>):The current version of the origin access identity created.
- On failure, responds with
SdkError<CreateCloudFrontOriginAccessIdentityError>
Source§impl Client
impl Client
Sourcepub fn create_continuous_deployment_policy(
&self,
) -> CreateContinuousDeploymentPolicyFluentBuilder
pub fn create_continuous_deployment_policy( &self, ) -> CreateContinuousDeploymentPolicyFluentBuilder
Constructs a fluent builder for the CreateContinuousDeploymentPolicy operation.
- The fluent builder is configurable:
continuous_deployment_policy_config(ContinuousDeploymentPolicyConfig)/set_continuous_deployment_policy_config(Option<ContinuousDeploymentPolicyConfig>):
required: trueContains the configuration for a continuous deployment policy.
- On success, responds with
CreateContinuousDeploymentPolicyOutputwith field(s):continuous_deployment_policy(Option<ContinuousDeploymentPolicy>):A continuous deployment policy.
location(Option<String>):The location of the continuous deployment policy.
e_tag(Option<String>):The version identifier for the current version of the continuous deployment policy.
- On failure, responds with
SdkError<CreateContinuousDeploymentPolicyError>
Source§impl Client
impl Client
Sourcepub fn create_distribution(&self) -> CreateDistributionFluentBuilder
pub fn create_distribution(&self) -> CreateDistributionFluentBuilder
Constructs a fluent builder for the CreateDistribution operation.
- The fluent builder is configurable:
distribution_config(DistributionConfig)/set_distribution_config(Option<DistributionConfig>):
required: trueThe distribution’s configuration information.
- On success, responds with
CreateDistributionOutputwith field(s):distribution(Option<Distribution>):The distribution’s information.
location(Option<String>):The fully qualified URI of the new distribution resource just created.
e_tag(Option<String>):The current version of the distribution created.
- On failure, responds with
SdkError<CreateDistributionError>
Source§impl Client
impl Client
Constructs a fluent builder for the CreateDistributionWithTags operation.
- The fluent builder is configurable:
distribution_config_with_tags(DistributionConfigWithTags)/set_distribution_config_with_tags(Option<DistributionConfigWithTags>):
required: trueThe distribution’s configuration information.
- On success, responds with
CreateDistributionWithTagsOutputwith field(s):distribution(Option<Distribution>):The distribution’s information.
location(Option<String>):The fully qualified URI of the new distribution resource just created.
e_tag(Option<String>):The current version of the distribution created.
- On failure, responds with
SdkError<CreateDistributionWithTagsError>
Source§impl Client
impl Client
Sourcepub fn create_field_level_encryption_config(
&self,
) -> CreateFieldLevelEncryptionConfigFluentBuilder
pub fn create_field_level_encryption_config( &self, ) -> CreateFieldLevelEncryptionConfigFluentBuilder
Constructs a fluent builder for the CreateFieldLevelEncryptionConfig operation.
- The fluent builder is configurable:
field_level_encryption_config(FieldLevelEncryptionConfig)/set_field_level_encryption_config(Option<FieldLevelEncryptionConfig>):
required: trueThe request to create a new field-level encryption configuration.
- On success, responds with
CreateFieldLevelEncryptionConfigOutputwith field(s):field_level_encryption(Option<FieldLevelEncryption>):Returned when you create a new field-level encryption configuration.
location(Option<String>):The fully qualified URI of the new configuration resource just created.
e_tag(Option<String>):The current version of the field level encryption configuration. For example:
E2QWRUHAPOMQZL.
- On failure, responds with
SdkError<CreateFieldLevelEncryptionConfigError>
Source§impl Client
impl Client
Sourcepub fn create_field_level_encryption_profile(
&self,
) -> CreateFieldLevelEncryptionProfileFluentBuilder
pub fn create_field_level_encryption_profile( &self, ) -> CreateFieldLevelEncryptionProfileFluentBuilder
Constructs a fluent builder for the CreateFieldLevelEncryptionProfile operation.
- The fluent builder is configurable:
field_level_encryption_profile_config(FieldLevelEncryptionProfileConfig)/set_field_level_encryption_profile_config(Option<FieldLevelEncryptionProfileConfig>):
required: trueThe request to create a field-level encryption profile.
- On success, responds with
CreateFieldLevelEncryptionProfileOutputwith field(s):field_level_encryption_profile(Option<FieldLevelEncryptionProfile>):Returned when you create a new field-level encryption profile.
location(Option<String>):The fully qualified URI of the new profile resource just created.
e_tag(Option<String>):The current version of the field level encryption profile. For example:
E2QWRUHAPOMQZL.
- On failure, responds with
SdkError<CreateFieldLevelEncryptionProfileError>
Source§impl Client
impl Client
Sourcepub fn create_function(&self) -> CreateFunctionFluentBuilder
pub fn create_function(&self) -> CreateFunctionFluentBuilder
Constructs a fluent builder for the CreateFunction operation.
- The fluent builder is configurable:
name(impl Into<String>)/set_name(Option<String>):
required: trueA name to identify the function.
function_config(FunctionConfig)/set_function_config(Option<FunctionConfig>):
required: trueConfiguration information about the function, including an optional comment and the function’s runtime.
function_code(Blob)/set_function_code(Option<Blob>):
required: trueThe function code. For more information about writing a CloudFront function, see Writing function code for CloudFront Functions in the Amazon CloudFront Developer Guide.
- On success, responds with
CreateFunctionOutputwith field(s):function_summary(Option<FunctionSummary>):Contains configuration information and metadata about a CloudFront function.
location(Option<String>):The URL of the CloudFront function. Use the URL to manage the function with the CloudFront API.
e_tag(Option<String>):The version identifier for the current version of the CloudFront function.
- On failure, responds with
SdkError<CreateFunctionError>
Source§impl Client
impl Client
Sourcepub fn create_invalidation(&self) -> CreateInvalidationFluentBuilder
pub fn create_invalidation(&self) -> CreateInvalidationFluentBuilder
Constructs a fluent builder for the CreateInvalidation operation.
- The fluent builder is configurable:
distribution_id(impl Into<String>)/set_distribution_id(Option<String>):
required: trueThe distribution’s id.
invalidation_batch(InvalidationBatch)/set_invalidation_batch(Option<InvalidationBatch>):
required: trueThe batch information for the invalidation.
- On success, responds with
CreateInvalidationOutputwith field(s):location(Option<String>):The fully qualified URI of the distribution and invalidation batch request, including the
Invalidation ID.invalidation(Option<Invalidation>):The invalidation’s information.
- On failure, responds with
SdkError<CreateInvalidationError>
Source§impl Client
impl Client
Sourcepub fn create_key_group(&self) -> CreateKeyGroupFluentBuilder
pub fn create_key_group(&self) -> CreateKeyGroupFluentBuilder
Constructs a fluent builder for the CreateKeyGroup operation.
- The fluent builder is configurable:
key_group_config(KeyGroupConfig)/set_key_group_config(Option<KeyGroupConfig>):
required: trueA key group configuration.
- On success, responds with
CreateKeyGroupOutputwith field(s):key_group(Option<KeyGroup>):The key group that was just created.
location(Option<String>):The URL of the key group.
e_tag(Option<String>):The identifier for this version of the key group.
- On failure, responds with
SdkError<CreateKeyGroupError>
Source§impl Client
impl Client
Sourcepub fn create_key_value_store(&self) -> CreateKeyValueStoreFluentBuilder
pub fn create_key_value_store(&self) -> CreateKeyValueStoreFluentBuilder
Constructs a fluent builder for the CreateKeyValueStore operation.
- The fluent builder is configurable:
name(impl Into<String>)/set_name(Option<String>):
required: trueThe name of the key value store. The minimum length is 1 character and the maximum length is 64 characters.
comment(impl Into<String>)/set_comment(Option<String>):
required: falseThe comment of the key value store.
import_source(ImportSource)/set_import_source(Option<ImportSource>):
required: falseThe S3 bucket that provides the source for the import. The source must be in a valid JSON format.
- On success, responds with
CreateKeyValueStoreOutputwith field(s):key_value_store(Option<KeyValueStore>):The resulting key value store.
e_tag(Option<String>):The
ETagin the resulting key value store.location(Option<String>):The location of the resulting key value store.
- On failure, responds with
SdkError<CreateKeyValueStoreError>
Source§impl Client
impl Client
Sourcepub fn create_monitoring_subscription(
&self,
) -> CreateMonitoringSubscriptionFluentBuilder
pub fn create_monitoring_subscription( &self, ) -> CreateMonitoringSubscriptionFluentBuilder
Constructs a fluent builder for the CreateMonitoringSubscription operation.
- The fluent builder is configurable:
distribution_id(impl Into<String>)/set_distribution_id(Option<String>):
required: trueThe ID of the distribution that you are enabling metrics for.
monitoring_subscription(MonitoringSubscription)/set_monitoring_subscription(Option<MonitoringSubscription>):
required: trueA monitoring subscription. This structure contains information about whether additional CloudWatch metrics are enabled for a given CloudFront distribution.
- On success, responds with
CreateMonitoringSubscriptionOutputwith field(s):monitoring_subscription(Option<MonitoringSubscription>):A monitoring subscription. This structure contains information about whether additional CloudWatch metrics are enabled for a given CloudFront distribution.
- On failure, responds with
SdkError<CreateMonitoringSubscriptionError>
Source§impl Client
impl Client
Sourcepub fn create_origin_access_control(
&self,
) -> CreateOriginAccessControlFluentBuilder
pub fn create_origin_access_control( &self, ) -> CreateOriginAccessControlFluentBuilder
Constructs a fluent builder for the CreateOriginAccessControl operation.
- The fluent builder is configurable:
origin_access_control_config(OriginAccessControlConfig)/set_origin_access_control_config(Option<OriginAccessControlConfig>):
required: trueContains the origin access control.
- On success, responds with
CreateOriginAccessControlOutputwith field(s):origin_access_control(Option<OriginAccessControl>):Contains an origin access control.
location(Option<String>):The URL of the origin access control.
e_tag(Option<String>):The version identifier for the current version of the origin access control.
- On failure, responds with
SdkError<CreateOriginAccessControlError>
Source§impl Client
impl Client
Sourcepub fn create_origin_request_policy(
&self,
) -> CreateOriginRequestPolicyFluentBuilder
pub fn create_origin_request_policy( &self, ) -> CreateOriginRequestPolicyFluentBuilder
Constructs a fluent builder for the CreateOriginRequestPolicy operation.
- The fluent builder is configurable:
origin_request_policy_config(OriginRequestPolicyConfig)/set_origin_request_policy_config(Option<OriginRequestPolicyConfig>):
required: trueAn origin request policy configuration.
- On success, responds with
CreateOriginRequestPolicyOutputwith field(s):origin_request_policy(Option<OriginRequestPolicy>):An origin request policy.
location(Option<String>):The fully qualified URI of the origin request policy just created.
e_tag(Option<String>):The current version of the origin request policy.
- On failure, responds with
SdkError<CreateOriginRequestPolicyError>
Source§impl Client
impl Client
Sourcepub fn create_public_key(&self) -> CreatePublicKeyFluentBuilder
pub fn create_public_key(&self) -> CreatePublicKeyFluentBuilder
Constructs a fluent builder for the CreatePublicKey operation.
- The fluent builder is configurable:
public_key_config(PublicKeyConfig)/set_public_key_config(Option<PublicKeyConfig>):
required: trueA CloudFront public key configuration.
- On success, responds with
CreatePublicKeyOutputwith field(s):public_key(Option<PublicKey>):The public key.
location(Option<String>):The URL of the public key.
e_tag(Option<String>):The identifier for this version of the public key.
- On failure, responds with
SdkError<CreatePublicKeyError>
Source§impl Client
impl Client
Sourcepub fn create_realtime_log_config(&self) -> CreateRealtimeLogConfigFluentBuilder
pub fn create_realtime_log_config(&self) -> CreateRealtimeLogConfigFluentBuilder
Constructs a fluent builder for the CreateRealtimeLogConfig operation.
- The fluent builder is configurable:
end_points(EndPoint)/set_end_points(Option<Vec::<EndPoint>>):
required: trueContains information about the Amazon Kinesis data stream where you are sending real-time log data.
fields(impl Into<String>)/set_fields(Option<Vec::<String>>):
required: trueA list of fields to include in each real-time log record.
For more information about fields, see Real-time log configuration fields in the Amazon CloudFront Developer Guide.
name(impl Into<String>)/set_name(Option<String>):
required: trueA unique name to identify this real-time log configuration.
sampling_rate(i64)/set_sampling_rate(Option<i64>):
required: trueThe sampling rate for this real-time log configuration. You can specify a whole number between 1 and 100 (inclusive) to determine the percentage of viewer requests that are represented in the real-time log data.
- On success, responds with
CreateRealtimeLogConfigOutputwith field(s):realtime_log_config(Option<RealtimeLogConfig>):A real-time log configuration.
- On failure, responds with
SdkError<CreateRealtimeLogConfigError>
Source§impl Client
impl Client
Sourcepub fn create_response_headers_policy(
&self,
) -> CreateResponseHeadersPolicyFluentBuilder
pub fn create_response_headers_policy( &self, ) -> CreateResponseHeadersPolicyFluentBuilder
Constructs a fluent builder for the CreateResponseHeadersPolicy operation.
- The fluent builder is configurable:
response_headers_policy_config(ResponseHeadersPolicyConfig)/set_response_headers_policy_config(Option<ResponseHeadersPolicyConfig>):
required: trueContains metadata about the response headers policy, and a set of configurations that specify the HTTP headers.
- On success, responds with
CreateResponseHeadersPolicyOutputwith field(s):response_headers_policy(Option<ResponseHeadersPolicy>):Contains a response headers policy.
location(Option<String>):The URL of the response headers policy.
e_tag(Option<String>):The version identifier for the current version of the response headers policy.
- On failure, responds with
SdkError<CreateResponseHeadersPolicyError>
Source§impl Client
impl Client
Sourcepub fn create_streaming_distribution(
&self,
) -> CreateStreamingDistributionFluentBuilder
pub fn create_streaming_distribution( &self, ) -> CreateStreamingDistributionFluentBuilder
Constructs a fluent builder for the CreateStreamingDistribution operation.
- The fluent builder is configurable:
streaming_distribution_config(StreamingDistributionConfig)/set_streaming_distribution_config(Option<StreamingDistributionConfig>):
required: trueThe streaming distribution’s configuration information.
- On success, responds with
CreateStreamingDistributionOutputwith field(s):streaming_distribution(Option<StreamingDistribution>):The streaming distribution’s information.
location(Option<String>):The fully qualified URI of the new streaming distribution resource just created.
e_tag(Option<String>):The current version of the streaming distribution created.
- On failure, responds with
SdkError<CreateStreamingDistributionError>
Source§impl Client
impl Client
Constructs a fluent builder for the CreateStreamingDistributionWithTags operation.
- The fluent builder is configurable:
streaming_distribution_config_with_tags(StreamingDistributionConfigWithTags)/set_streaming_distribution_config_with_tags(Option<StreamingDistributionConfigWithTags>):
required: trueThe streaming distribution’s configuration information.
- On success, responds with
CreateStreamingDistributionWithTagsOutputwith field(s):streaming_distribution(Option<StreamingDistribution>):The streaming distribution’s information.
location(Option<String>):The fully qualified URI of the new streaming distribution resource just created.
e_tag(Option<String>):The current version of the distribution created.
- On failure, responds with
SdkError<CreateStreamingDistributionWithTagsError>
Source§impl Client
impl Client
Sourcepub fn create_vpc_origin(&self) -> CreateVpcOriginFluentBuilder
pub fn create_vpc_origin(&self) -> CreateVpcOriginFluentBuilder
Constructs a fluent builder for the CreateVpcOrigin operation.
- The fluent builder is configurable:
vpc_origin_endpoint_config(VpcOriginEndpointConfig)/set_vpc_origin_endpoint_config(Option<VpcOriginEndpointConfig>):
required: trueThe VPC origin endpoint configuration.
tags(Tags)/set_tags(Option<Tags>):
required: falseA complex type that contains zero or more
Tagelements.
- On success, responds with
CreateVpcOriginOutputwith field(s):vpc_origin(Option<VpcOrigin>):The VPC origin.
location(Option<String>):The VPC origin location.
e_tag(Option<String>):The VPC origin ETag.
- On failure, responds with
SdkError<CreateVpcOriginError>
Source§impl Client
impl Client
Sourcepub fn delete_anycast_ip_list(&self) -> DeleteAnycastIpListFluentBuilder
pub fn delete_anycast_ip_list(&self) -> DeleteAnycastIpListFluentBuilder
Constructs a fluent builder for the DeleteAnycastIpList operation.
- The fluent builder is configurable:
id(impl Into<String>)/set_id(Option<String>):
required: trueThe ID of the Anycast static IP list.
if_match(impl Into<String>)/set_if_match(Option<String>):
required: trueThe current version (
ETagvalue) of the Anycast static IP list that you are deleting.
- On success, responds with
DeleteAnycastIpListOutput - On failure, responds with
SdkError<DeleteAnycastIpListError>
Source§impl Client
impl Client
Sourcepub fn delete_cache_policy(&self) -> DeleteCachePolicyFluentBuilder
pub fn delete_cache_policy(&self) -> DeleteCachePolicyFluentBuilder
Constructs a fluent builder for the DeleteCachePolicy operation.
- The fluent builder is configurable:
id(impl Into<String>)/set_id(Option<String>):
required: trueThe unique identifier for the cache policy that you are deleting. To get the identifier, you can use
ListCachePolicies.if_match(impl Into<String>)/set_if_match(Option<String>):
required: falseThe version of the cache policy that you are deleting. The version is the cache policy’s
ETagvalue, which you can get usingListCachePolicies,GetCachePolicy, orGetCachePolicyConfig.
- On success, responds with
DeleteCachePolicyOutput - On failure, responds with
SdkError<DeleteCachePolicyError>
Source§impl Client
impl Client
Sourcepub fn delete_cloud_front_origin_access_identity(
&self,
) -> DeleteCloudFrontOriginAccessIdentityFluentBuilder
pub fn delete_cloud_front_origin_access_identity( &self, ) -> DeleteCloudFrontOriginAccessIdentityFluentBuilder
Constructs a fluent builder for the DeleteCloudFrontOriginAccessIdentity operation.
- The fluent builder is configurable:
id(impl Into<String>)/set_id(Option<String>):
required: trueThe origin access identity’s ID.
if_match(impl Into<String>)/set_if_match(Option<String>):
required: falseThe value of the
ETagheader you received from a previousGETorPUTrequest. For example:E2QWRUHAPOMQZL.
- On success, responds with
DeleteCloudFrontOriginAccessIdentityOutput - On failure, responds with
SdkError<DeleteCloudFrontOriginAccessIdentityError>
Source§impl Client
impl Client
Sourcepub fn delete_continuous_deployment_policy(
&self,
) -> DeleteContinuousDeploymentPolicyFluentBuilder
pub fn delete_continuous_deployment_policy( &self, ) -> DeleteContinuousDeploymentPolicyFluentBuilder
Constructs a fluent builder for the DeleteContinuousDeploymentPolicy operation.
- The fluent builder is configurable:
id(impl Into<String>)/set_id(Option<String>):
required: trueThe identifier of the continuous deployment policy that you are deleting.
if_match(impl Into<String>)/set_if_match(Option<String>):
required: falseThe current version (
ETagvalue) of the continuous deployment policy that you are deleting.
- On success, responds with
DeleteContinuousDeploymentPolicyOutput - On failure, responds with
SdkError<DeleteContinuousDeploymentPolicyError>
Source§impl Client
impl Client
Sourcepub fn delete_distribution(&self) -> DeleteDistributionFluentBuilder
pub fn delete_distribution(&self) -> DeleteDistributionFluentBuilder
Constructs a fluent builder for the DeleteDistribution operation.
- The fluent builder is configurable:
id(impl Into<String>)/set_id(Option<String>):
required: trueThe distribution ID.
if_match(impl Into<String>)/set_if_match(Option<String>):
required: falseThe value of the
ETagheader that you received when you disabled the distribution. For example:E2QWRUHAPOMQZL.
- On success, responds with
DeleteDistributionOutput - On failure, responds with
SdkError<DeleteDistributionError>
Source§impl Client
impl Client
Sourcepub fn delete_field_level_encryption_config(
&self,
) -> DeleteFieldLevelEncryptionConfigFluentBuilder
pub fn delete_field_level_encryption_config( &self, ) -> DeleteFieldLevelEncryptionConfigFluentBuilder
Constructs a fluent builder for the DeleteFieldLevelEncryptionConfig operation.
- The fluent builder is configurable:
id(impl Into<String>)/set_id(Option<String>):
required: trueThe ID of the configuration you want to delete from CloudFront.
if_match(impl Into<String>)/set_if_match(Option<String>):
required: falseThe value of the
ETagheader that you received when retrieving the configuration identity to delete. For example:E2QWRUHAPOMQZL.
- On success, responds with
DeleteFieldLevelEncryptionConfigOutput - On failure, responds with
SdkError<DeleteFieldLevelEncryptionConfigError>
Source§impl Client
impl Client
Sourcepub fn delete_field_level_encryption_profile(
&self,
) -> DeleteFieldLevelEncryptionProfileFluentBuilder
pub fn delete_field_level_encryption_profile( &self, ) -> DeleteFieldLevelEncryptionProfileFluentBuilder
Constructs a fluent builder for the DeleteFieldLevelEncryptionProfile operation.
- The fluent builder is configurable:
id(impl Into<String>)/set_id(Option<String>):
required: trueRequest the ID of the profile you want to delete from CloudFront.
if_match(impl Into<String>)/set_if_match(Option<String>):
required: falseThe value of the
ETagheader that you received when retrieving the profile to delete. For example:E2QWRUHAPOMQZL.
- On success, responds with
DeleteFieldLevelEncryptionProfileOutput - On failure, responds with
SdkError<DeleteFieldLevelEncryptionProfileError>
Source§impl Client
impl Client
Sourcepub fn delete_function(&self) -> DeleteFunctionFluentBuilder
pub fn delete_function(&self) -> DeleteFunctionFluentBuilder
Constructs a fluent builder for the DeleteFunction operation.
- The fluent builder is configurable:
name(impl Into<String>)/set_name(Option<String>):
required: trueThe name of the function that you are deleting.
if_match(impl Into<String>)/set_if_match(Option<String>):
required: trueThe current version (
ETagvalue) of the function that you are deleting, which you can get usingDescribeFunction.
- On success, responds with
DeleteFunctionOutput - On failure, responds with
SdkError<DeleteFunctionError>
Source§impl Client
impl Client
Sourcepub fn delete_key_group(&self) -> DeleteKeyGroupFluentBuilder
pub fn delete_key_group(&self) -> DeleteKeyGroupFluentBuilder
Constructs a fluent builder for the DeleteKeyGroup operation.
- The fluent builder is configurable:
id(impl Into<String>)/set_id(Option<String>):
required: trueThe identifier of the key group that you are deleting. To get the identifier, use
ListKeyGroups.if_match(impl Into<String>)/set_if_match(Option<String>):
required: falseThe version of the key group that you are deleting. The version is the key group’s
ETagvalue. To get theETag, useGetKeyGrouporGetKeyGroupConfig.
- On success, responds with
DeleteKeyGroupOutput - On failure, responds with
SdkError<DeleteKeyGroupError>
Source§impl Client
impl Client
Sourcepub fn delete_key_value_store(&self) -> DeleteKeyValueStoreFluentBuilder
pub fn delete_key_value_store(&self) -> DeleteKeyValueStoreFluentBuilder
Constructs a fluent builder for the DeleteKeyValueStore operation.
- The fluent builder is configurable:
name(impl Into<String>)/set_name(Option<String>):
required: trueThe name of the key value store.
if_match(impl Into<String>)/set_if_match(Option<String>):
required: trueThe key value store to delete, if a match occurs.
- On success, responds with
DeleteKeyValueStoreOutput - On failure, responds with
SdkError<DeleteKeyValueStoreError>
Source§impl Client
impl Client
Sourcepub fn delete_monitoring_subscription(
&self,
) -> DeleteMonitoringSubscriptionFluentBuilder
pub fn delete_monitoring_subscription( &self, ) -> DeleteMonitoringSubscriptionFluentBuilder
Constructs a fluent builder for the DeleteMonitoringSubscription operation.
- The fluent builder is configurable:
distribution_id(impl Into<String>)/set_distribution_id(Option<String>):
required: trueThe ID of the distribution that you are disabling metrics for.
- On success, responds with
DeleteMonitoringSubscriptionOutput - On failure, responds with
SdkError<DeleteMonitoringSubscriptionError>
Source§impl Client
impl Client
Sourcepub fn delete_origin_access_control(
&self,
) -> DeleteOriginAccessControlFluentBuilder
pub fn delete_origin_access_control( &self, ) -> DeleteOriginAccessControlFluentBuilder
Constructs a fluent builder for the DeleteOriginAccessControl operation.
- The fluent builder is configurable:
id(impl Into<String>)/set_id(Option<String>):
required: trueThe unique identifier of the origin access control that you are deleting.
if_match(impl Into<String>)/set_if_match(Option<String>):
required: falseThe current version (
ETagvalue) of the origin access control that you are deleting.
- On success, responds with
DeleteOriginAccessControlOutput - On failure, responds with
SdkError<DeleteOriginAccessControlError>
Source§impl Client
impl Client
Sourcepub fn delete_origin_request_policy(
&self,
) -> DeleteOriginRequestPolicyFluentBuilder
pub fn delete_origin_request_policy( &self, ) -> DeleteOriginRequestPolicyFluentBuilder
Constructs a fluent builder for the DeleteOriginRequestPolicy operation.
- The fluent builder is configurable:
id(impl Into<String>)/set_id(Option<String>):
required: trueThe unique identifier for the origin request policy that you are deleting. To get the identifier, you can use
ListOriginRequestPolicies.if_match(impl Into<String>)/set_if_match(Option<String>):
required: falseThe version of the origin request policy that you are deleting. The version is the origin request policy’s
ETagvalue, which you can get usingListOriginRequestPolicies,GetOriginRequestPolicy, orGetOriginRequestPolicyConfig.
- On success, responds with
DeleteOriginRequestPolicyOutput - On failure, responds with
SdkError<DeleteOriginRequestPolicyError>
Source§impl Client
impl Client
Sourcepub fn delete_public_key(&self) -> DeletePublicKeyFluentBuilder
pub fn delete_public_key(&self) -> DeletePublicKeyFluentBuilder
Constructs a fluent builder for the DeletePublicKey operation.
- The fluent builder is configurable:
id(impl Into<String>)/set_id(Option<String>):
required: trueThe ID of the public key you want to remove from CloudFront.
if_match(impl Into<String>)/set_if_match(Option<String>):
required: falseThe value of the
ETagheader that you received when retrieving the public key identity to delete. For example:E2QWRUHAPOMQZL.
- On success, responds with
DeletePublicKeyOutput - On failure, responds with
SdkError<DeletePublicKeyError>
Source§impl Client
impl Client
Sourcepub fn delete_realtime_log_config(&self) -> DeleteRealtimeLogConfigFluentBuilder
pub fn delete_realtime_log_config(&self) -> DeleteRealtimeLogConfigFluentBuilder
Constructs a fluent builder for the DeleteRealtimeLogConfig operation.
- The fluent builder is configurable:
name(impl Into<String>)/set_name(Option<String>):
required: falseThe name of the real-time log configuration to delete.
arn(impl Into<String>)/set_arn(Option<String>):
required: falseThe Amazon Resource Name (ARN) of the real-time log configuration to delete.
- On success, responds with
DeleteRealtimeLogConfigOutput - On failure, responds with
SdkError<DeleteRealtimeLogConfigError>
Source§impl Client
impl Client
Sourcepub fn delete_response_headers_policy(
&self,
) -> DeleteResponseHeadersPolicyFluentBuilder
pub fn delete_response_headers_policy( &self, ) -> DeleteResponseHeadersPolicyFluentBuilder
Constructs a fluent builder for the DeleteResponseHeadersPolicy operation.
- The fluent builder is configurable:
id(impl Into<String>)/set_id(Option<String>):
required: trueThe identifier for the response headers policy that you are deleting.
To get the identifier, you can use
ListResponseHeadersPolicies.if_match(impl Into<String>)/set_if_match(Option<String>):
required: falseThe version of the response headers policy that you are deleting.
The version is the response headers policy’s
ETagvalue, which you can get usingListResponseHeadersPolicies,GetResponseHeadersPolicy, orGetResponseHeadersPolicyConfig.
- On success, responds with
DeleteResponseHeadersPolicyOutput - On failure, responds with
SdkError<DeleteResponseHeadersPolicyError>
Source§impl Client
impl Client
Sourcepub fn delete_streaming_distribution(
&self,
) -> DeleteStreamingDistributionFluentBuilder
pub fn delete_streaming_distribution( &self, ) -> DeleteStreamingDistributionFluentBuilder
Constructs a fluent builder for the DeleteStreamingDistribution operation.
- The fluent builder is configurable:
id(impl Into<String>)/set_id(Option<String>):
required: trueThe distribution ID.
if_match(impl Into<String>)/set_if_match(Option<String>):
required: falseThe value of the
ETagheader that you received when you disabled the streaming distribution. For example:E2QWRUHAPOMQZL.
- On success, responds with
DeleteStreamingDistributionOutput - On failure, responds with
SdkError<DeleteStreamingDistributionError>
Source§impl Client
impl Client
Sourcepub fn delete_vpc_origin(&self) -> DeleteVpcOriginFluentBuilder
pub fn delete_vpc_origin(&self) -> DeleteVpcOriginFluentBuilder
Constructs a fluent builder for the DeleteVpcOrigin operation.
- The fluent builder is configurable:
id(impl Into<String>)/set_id(Option<String>):
required: trueThe VPC origin ID.
if_match(impl Into<String>)/set_if_match(Option<String>):
required: trueThe version identifier of the VPC origin to delete. This is the
ETagvalue returned in the response toGetVpcOrigin.
- On success, responds with
DeleteVpcOriginOutputwith field(s):vpc_origin(Option<VpcOrigin>):The VPC origin.
e_tag(Option<String>):The VPC origin ETag.
- On failure, responds with
SdkError<DeleteVpcOriginError>
Source§impl Client
impl Client
Sourcepub fn describe_function(&self) -> DescribeFunctionFluentBuilder
pub fn describe_function(&self) -> DescribeFunctionFluentBuilder
Constructs a fluent builder for the DescribeFunction operation.
- The fluent builder is configurable:
name(impl Into<String>)/set_name(Option<String>):
required: trueThe name of the function that you are getting information about.
stage(FunctionStage)/set_stage(Option<FunctionStage>):
required: falseThe function’s stage, either
DEVELOPMENTorLIVE.
- On success, responds with
DescribeFunctionOutputwith field(s):function_summary(Option<FunctionSummary>):Contains configuration information and metadata about a CloudFront function.
e_tag(Option<String>):The version identifier for the current version of the CloudFront function.
- On failure, responds with
SdkError<DescribeFunctionError>
Source§impl Client
impl Client
Sourcepub fn describe_key_value_store(&self) -> DescribeKeyValueStoreFluentBuilder
pub fn describe_key_value_store(&self) -> DescribeKeyValueStoreFluentBuilder
Constructs a fluent builder for the DescribeKeyValueStore operation.
- The fluent builder is configurable:
name(impl Into<String>)/set_name(Option<String>):
required: trueThe name of the key value store.
- On success, responds with
DescribeKeyValueStoreOutputwith field(s):key_value_store(Option<KeyValueStore>):The resulting key value store.
e_tag(Option<String>):The
ETagof the resulting key value store.
- On failure, responds with
SdkError<DescribeKeyValueStoreError>
Source§impl Client
impl Client
Sourcepub fn get_anycast_ip_list(&self) -> GetAnycastIpListFluentBuilder
pub fn get_anycast_ip_list(&self) -> GetAnycastIpListFluentBuilder
Constructs a fluent builder for the GetAnycastIpList operation.
- The fluent builder is configurable:
id(impl Into<String>)/set_id(Option<String>):
required: trueThe ID of the Anycast static IP list.
- On success, responds with
GetAnycastIpListOutputwith field(s):anycast_ip_list(Option<AnycastIpList>):The Anycast static IP list details.
e_tag(Option<String>):The version identifier for the current version of the Anycast static IP list.
- On failure, responds with
SdkError<GetAnycastIpListError>
Source§impl Client
impl Client
Sourcepub fn get_cache_policy(&self) -> GetCachePolicyFluentBuilder
pub fn get_cache_policy(&self) -> GetCachePolicyFluentBuilder
Constructs a fluent builder for the GetCachePolicy operation.
- The fluent builder is configurable:
id(impl Into<String>)/set_id(Option<String>):
required: trueThe unique identifier for the cache policy. If the cache policy is attached to a distribution’s cache behavior, you can get the policy’s identifier using
ListDistributionsorGetDistribution. If the cache policy is not attached to a cache behavior, you can get the identifier usingListCachePolicies.
- On success, responds with
GetCachePolicyOutputwith field(s):cache_policy(Option<CachePolicy>):The cache policy.
e_tag(Option<String>):The current version of the cache policy.
- On failure, responds with
SdkError<GetCachePolicyError>
Source§impl Client
impl Client
Sourcepub fn get_cache_policy_config(&self) -> GetCachePolicyConfigFluentBuilder
pub fn get_cache_policy_config(&self) -> GetCachePolicyConfigFluentBuilder
Constructs a fluent builder for the GetCachePolicyConfig operation.
- The fluent builder is configurable:
id(impl Into<String>)/set_id(Option<String>):
required: trueThe unique identifier for the cache policy. If the cache policy is attached to a distribution’s cache behavior, you can get the policy’s identifier using
ListDistributionsorGetDistribution. If the cache policy is not attached to a cache behavior, you can get the identifier usingListCachePolicies.
- On success, responds with
GetCachePolicyConfigOutputwith field(s):cache_policy_config(Option<CachePolicyConfig>):The cache policy configuration.
e_tag(Option<String>):The current version of the cache policy.
- On failure, responds with
SdkError<GetCachePolicyConfigError>
Source§impl Client
impl Client
Sourcepub fn get_cloud_front_origin_access_identity(
&self,
) -> GetCloudFrontOriginAccessIdentityFluentBuilder
pub fn get_cloud_front_origin_access_identity( &self, ) -> GetCloudFrontOriginAccessIdentityFluentBuilder
Constructs a fluent builder for the GetCloudFrontOriginAccessIdentity operation.
- The fluent builder is configurable:
id(impl Into<String>)/set_id(Option<String>):
required: trueThe identity’s ID.
- On success, responds with
GetCloudFrontOriginAccessIdentityOutputwith field(s):cloud_front_origin_access_identity(Option<CloudFrontOriginAccessIdentity>):The origin access identity’s information.
e_tag(Option<String>):The current version of the origin access identity’s information. For example:
E2QWRUHAPOMQZL.
- On failure, responds with
SdkError<GetCloudFrontOriginAccessIdentityError>
Source§impl Client
impl Client
Sourcepub fn get_cloud_front_origin_access_identity_config(
&self,
) -> GetCloudFrontOriginAccessIdentityConfigFluentBuilder
pub fn get_cloud_front_origin_access_identity_config( &self, ) -> GetCloudFrontOriginAccessIdentityConfigFluentBuilder
Constructs a fluent builder for the GetCloudFrontOriginAccessIdentityConfig operation.
- The fluent builder is configurable:
id(impl Into<String>)/set_id(Option<String>):
required: trueThe identity’s ID.
- On success, responds with
GetCloudFrontOriginAccessIdentityConfigOutputwith field(s):cloud_front_origin_access_identity_config(Option<CloudFrontOriginAccessIdentityConfig>):The origin access identity’s configuration information.
e_tag(Option<String>):The current version of the configuration. For example:
E2QWRUHAPOMQZL.
- On failure, responds with
SdkError<GetCloudFrontOriginAccessIdentityConfigError>
Source§impl Client
impl Client
Sourcepub fn get_continuous_deployment_policy(
&self,
) -> GetContinuousDeploymentPolicyFluentBuilder
pub fn get_continuous_deployment_policy( &self, ) -> GetContinuousDeploymentPolicyFluentBuilder
Constructs a fluent builder for the GetContinuousDeploymentPolicy operation.
- The fluent builder is configurable:
id(impl Into<String>)/set_id(Option<String>):
required: trueThe identifier of the continuous deployment policy that you are getting.
- On success, responds with
GetContinuousDeploymentPolicyOutputwith field(s):continuous_deployment_policy(Option<ContinuousDeploymentPolicy>):A continuous deployment policy.
e_tag(Option<String>):The version identifier for the current version of the continuous deployment policy.
- On failure, responds with
SdkError<GetContinuousDeploymentPolicyError>
Source§impl Client
impl Client
Sourcepub fn get_continuous_deployment_policy_config(
&self,
) -> GetContinuousDeploymentPolicyConfigFluentBuilder
pub fn get_continuous_deployment_policy_config( &self, ) -> GetContinuousDeploymentPolicyConfigFluentBuilder
Constructs a fluent builder for the GetContinuousDeploymentPolicyConfig operation.
- The fluent builder is configurable:
id(impl Into<String>)/set_id(Option<String>):
required: trueThe identifier of the continuous deployment policy whose configuration you are getting.
- On success, responds with
GetContinuousDeploymentPolicyConfigOutputwith field(s):continuous_deployment_policy_config(Option<ContinuousDeploymentPolicyConfig>):Contains the configuration for a continuous deployment policy.
e_tag(Option<String>):The version identifier for the current version of the continuous deployment policy.
- On failure, responds with
SdkError<GetContinuousDeploymentPolicyConfigError>
Source§impl Client
impl Client
Sourcepub fn get_distribution(&self) -> GetDistributionFluentBuilder
pub fn get_distribution(&self) -> GetDistributionFluentBuilder
Constructs a fluent builder for the GetDistribution operation.
- The fluent builder is configurable:
id(impl Into<String>)/set_id(Option<String>):
required: trueThe distribution’s ID. If the ID is empty, an empty distribution configuration is returned.
- On success, responds with
GetDistributionOutputwith field(s):distribution(Option<Distribution>):The distribution’s information.
e_tag(Option<String>):The current version of the distribution’s information. For example:
E2QWRUHAPOMQZL.
- On failure, responds with
SdkError<GetDistributionError>
Source§impl Client
impl Client
Sourcepub fn get_distribution_config(&self) -> GetDistributionConfigFluentBuilder
pub fn get_distribution_config(&self) -> GetDistributionConfigFluentBuilder
Constructs a fluent builder for the GetDistributionConfig operation.
- The fluent builder is configurable:
id(impl Into<String>)/set_id(Option<String>):
required: trueThe distribution’s ID. If the ID is empty, an empty distribution configuration is returned.
- On success, responds with
GetDistributionConfigOutputwith field(s):distribution_config(Option<DistributionConfig>):The distribution’s configuration information.
e_tag(Option<String>):The current version of the configuration. For example:
E2QWRUHAPOMQZL.
- On failure, responds with
SdkError<GetDistributionConfigError>
Source§impl Client
impl Client
Sourcepub fn get_field_level_encryption(&self) -> GetFieldLevelEncryptionFluentBuilder
pub fn get_field_level_encryption(&self) -> GetFieldLevelEncryptionFluentBuilder
Constructs a fluent builder for the GetFieldLevelEncryption operation.
- The fluent builder is configurable:
id(impl Into<String>)/set_id(Option<String>):
required: trueRequest the ID for the field-level encryption configuration information.
- On success, responds with
GetFieldLevelEncryptionOutputwith field(s):field_level_encryption(Option<FieldLevelEncryption>):Return the field-level encryption configuration information.
e_tag(Option<String>):The current version of the field level encryption configuration. For example:
E2QWRUHAPOMQZL.
- On failure, responds with
SdkError<GetFieldLevelEncryptionError>
Source§impl Client
impl Client
Sourcepub fn get_field_level_encryption_config(
&self,
) -> GetFieldLevelEncryptionConfigFluentBuilder
pub fn get_field_level_encryption_config( &self, ) -> GetFieldLevelEncryptionConfigFluentBuilder
Constructs a fluent builder for the GetFieldLevelEncryptionConfig operation.
- The fluent builder is configurable:
id(impl Into<String>)/set_id(Option<String>):
required: trueRequest the ID for the field-level encryption configuration information.
- On success, responds with
GetFieldLevelEncryptionConfigOutputwith field(s):field_level_encryption_config(Option<FieldLevelEncryptionConfig>):Return the field-level encryption configuration information.
e_tag(Option<String>):The current version of the field level encryption configuration. For example:
E2QWRUHAPOMQZL.
- On failure, responds with
SdkError<GetFieldLevelEncryptionConfigError>
Source§impl Client
impl Client
Sourcepub fn get_field_level_encryption_profile(
&self,
) -> GetFieldLevelEncryptionProfileFluentBuilder
pub fn get_field_level_encryption_profile( &self, ) -> GetFieldLevelEncryptionProfileFluentBuilder
Constructs a fluent builder for the GetFieldLevelEncryptionProfile operation.
- The fluent builder is configurable:
id(impl Into<String>)/set_id(Option<String>):
required: trueGet the ID for the field-level encryption profile information.
- On success, responds with
GetFieldLevelEncryptionProfileOutputwith field(s):field_level_encryption_profile(Option<FieldLevelEncryptionProfile>):Return the field-level encryption profile information.
e_tag(Option<String>):The current version of the field level encryption profile. For example:
E2QWRUHAPOMQZL.
- On failure, responds with
SdkError<GetFieldLevelEncryptionProfileError>
Source§impl Client
impl Client
Sourcepub fn get_field_level_encryption_profile_config(
&self,
) -> GetFieldLevelEncryptionProfileConfigFluentBuilder
pub fn get_field_level_encryption_profile_config( &self, ) -> GetFieldLevelEncryptionProfileConfigFluentBuilder
Constructs a fluent builder for the GetFieldLevelEncryptionProfileConfig operation.
- The fluent builder is configurable:
id(impl Into<String>)/set_id(Option<String>):
required: trueGet the ID for the field-level encryption profile configuration information.
- On success, responds with
GetFieldLevelEncryptionProfileConfigOutputwith field(s):field_level_encryption_profile_config(Option<FieldLevelEncryptionProfileConfig>):Return the field-level encryption profile configuration information.
e_tag(Option<String>):The current version of the field-level encryption profile configuration result. For example:
E2QWRUHAPOMQZL.
- On failure, responds with
SdkError<GetFieldLevelEncryptionProfileConfigError>
Source§impl Client
impl Client
Sourcepub fn get_function(&self) -> GetFunctionFluentBuilder
pub fn get_function(&self) -> GetFunctionFluentBuilder
Constructs a fluent builder for the GetFunction operation.
- The fluent builder is configurable:
name(impl Into<String>)/set_name(Option<String>):
required: trueThe name of the function whose code you are getting.
stage(FunctionStage)/set_stage(Option<FunctionStage>):
required: falseThe function’s stage, either
DEVELOPMENTorLIVE.
- On success, responds with
GetFunctionOutputwith field(s):function_code(Option<Blob>):The function code of a CloudFront function.
e_tag(Option<String>):The version identifier for the current version of the CloudFront function.
content_type(Option<String>):The content type (media type) of the response.
- On failure, responds with
SdkError<GetFunctionError>
Source§impl Client
impl Client
Sourcepub fn get_invalidation(&self) -> GetInvalidationFluentBuilder
pub fn get_invalidation(&self) -> GetInvalidationFluentBuilder
Constructs a fluent builder for the GetInvalidation operation.
- The fluent builder is configurable:
distribution_id(impl Into<String>)/set_distribution_id(Option<String>):
required: trueThe distribution’s ID.
id(impl Into<String>)/set_id(Option<String>):
required: trueThe identifier for the invalidation request, for example,
IDFDVBD632BHDS5.
- On success, responds with
GetInvalidationOutputwith field(s):invalidation(Option<Invalidation>):The invalidation’s information. For more information, see Invalidation Complex Type.
- On failure, responds with
SdkError<GetInvalidationError>
Source§impl Client
impl Client
Sourcepub fn get_key_group(&self) -> GetKeyGroupFluentBuilder
pub fn get_key_group(&self) -> GetKeyGroupFluentBuilder
Constructs a fluent builder for the GetKeyGroup operation.
- The fluent builder is configurable:
id(impl Into<String>)/set_id(Option<String>):
required: trueThe identifier of the key group that you are getting. To get the identifier, use
ListKeyGroups.
- On success, responds with
GetKeyGroupOutputwith field(s):key_group(Option<KeyGroup>):The key group.
e_tag(Option<String>):The identifier for this version of the key group.
- On failure, responds with
SdkError<GetKeyGroupError>
Source§impl Client
impl Client
Sourcepub fn get_key_group_config(&self) -> GetKeyGroupConfigFluentBuilder
pub fn get_key_group_config(&self) -> GetKeyGroupConfigFluentBuilder
Constructs a fluent builder for the GetKeyGroupConfig operation.
- The fluent builder is configurable:
id(impl Into<String>)/set_id(Option<String>):
required: trueThe identifier of the key group whose configuration you are getting. To get the identifier, use
ListKeyGroups.
- On success, responds with
GetKeyGroupConfigOutputwith field(s):key_group_config(Option<KeyGroupConfig>):The key group configuration.
e_tag(Option<String>):The identifier for this version of the key group.
- On failure, responds with
SdkError<GetKeyGroupConfigError>
Source§impl Client
impl Client
Sourcepub fn get_monitoring_subscription(
&self,
) -> GetMonitoringSubscriptionFluentBuilder
pub fn get_monitoring_subscription( &self, ) -> GetMonitoringSubscriptionFluentBuilder
Constructs a fluent builder for the GetMonitoringSubscription operation.
- The fluent builder is configurable:
distribution_id(impl Into<String>)/set_distribution_id(Option<String>):
required: trueThe ID of the distribution that you are getting metrics information for.
- On success, responds with
GetMonitoringSubscriptionOutputwith field(s):monitoring_subscription(Option<MonitoringSubscription>):A monitoring subscription. This structure contains information about whether additional CloudWatch metrics are enabled for a given CloudFront distribution.
- On failure, responds with
SdkError<GetMonitoringSubscriptionError>
Source§impl Client
impl Client
Sourcepub fn get_origin_access_control(&self) -> GetOriginAccessControlFluentBuilder
pub fn get_origin_access_control(&self) -> GetOriginAccessControlFluentBuilder
Constructs a fluent builder for the GetOriginAccessControl operation.
- The fluent builder is configurable:
id(impl Into<String>)/set_id(Option<String>):
required: trueThe unique identifier of the origin access control.
- On success, responds with
GetOriginAccessControlOutputwith field(s):origin_access_control(Option<OriginAccessControl>):Contains an origin access control, including its unique identifier.
e_tag(Option<String>):The version identifier for the current version of the origin access control.
- On failure, responds with
SdkError<GetOriginAccessControlError>
Source§impl Client
impl Client
Sourcepub fn get_origin_access_control_config(
&self,
) -> GetOriginAccessControlConfigFluentBuilder
pub fn get_origin_access_control_config( &self, ) -> GetOriginAccessControlConfigFluentBuilder
Constructs a fluent builder for the GetOriginAccessControlConfig operation.
- The fluent builder is configurable:
id(impl Into<String>)/set_id(Option<String>):
required: trueThe unique identifier of the origin access control.
- On success, responds with
GetOriginAccessControlConfigOutputwith field(s):origin_access_control_config(Option<OriginAccessControlConfig>):Contains an origin access control configuration.
e_tag(Option<String>):The version identifier for the current version of the origin access control.
- On failure, responds with
SdkError<GetOriginAccessControlConfigError>
Source§impl Client
impl Client
Sourcepub fn get_origin_request_policy(&self) -> GetOriginRequestPolicyFluentBuilder
pub fn get_origin_request_policy(&self) -> GetOriginRequestPolicyFluentBuilder
Constructs a fluent builder for the GetOriginRequestPolicy operation.
- The fluent builder is configurable:
id(impl Into<String>)/set_id(Option<String>):
required: trueThe unique identifier for the origin request policy. If the origin request policy is attached to a distribution’s cache behavior, you can get the policy’s identifier using
ListDistributionsorGetDistribution. If the origin request policy is not attached to a cache behavior, you can get the identifier usingListOriginRequestPolicies.
- On success, responds with
GetOriginRequestPolicyOutputwith field(s):origin_request_policy(Option<OriginRequestPolicy>):The origin request policy.
e_tag(Option<String>):The current version of the origin request policy.
- On failure, responds with
SdkError<GetOriginRequestPolicyError>
Source§impl Client
impl Client
Sourcepub fn get_origin_request_policy_config(
&self,
) -> GetOriginRequestPolicyConfigFluentBuilder
pub fn get_origin_request_policy_config( &self, ) -> GetOriginRequestPolicyConfigFluentBuilder
Constructs a fluent builder for the GetOriginRequestPolicyConfig operation.
- The fluent builder is configurable:
id(impl Into<String>)/set_id(Option<String>):
required: trueThe unique identifier for the origin request policy. If the origin request policy is attached to a distribution’s cache behavior, you can get the policy’s identifier using
ListDistributionsorGetDistribution. If the origin request policy is not attached to a cache behavior, you can get the identifier usingListOriginRequestPolicies.
- On success, responds with
GetOriginRequestPolicyConfigOutputwith field(s):origin_request_policy_config(Option<OriginRequestPolicyConfig>):The origin request policy configuration.
e_tag(Option<String>):The current version of the origin request policy.
- On failure, responds with
SdkError<GetOriginRequestPolicyConfigError>
Source§impl Client
impl Client
Sourcepub fn get_public_key(&self) -> GetPublicKeyFluentBuilder
pub fn get_public_key(&self) -> GetPublicKeyFluentBuilder
Constructs a fluent builder for the GetPublicKey operation.
- The fluent builder is configurable:
id(impl Into<String>)/set_id(Option<String>):
required: trueThe identifier of the public key you are getting.
- On success, responds with
GetPublicKeyOutputwith field(s):public_key(Option<PublicKey>):The public key.
e_tag(Option<String>):The identifier for this version of the public key.
- On failure, responds with
SdkError<GetPublicKeyError>
Source§impl Client
impl Client
Sourcepub fn get_public_key_config(&self) -> GetPublicKeyConfigFluentBuilder
pub fn get_public_key_config(&self) -> GetPublicKeyConfigFluentBuilder
Constructs a fluent builder for the GetPublicKeyConfig operation.
- The fluent builder is configurable:
id(impl Into<String>)/set_id(Option<String>):
required: trueThe identifier of the public key whose configuration you are getting.
- On success, responds with
GetPublicKeyConfigOutputwith field(s):public_key_config(Option<PublicKeyConfig>):A public key configuration.
e_tag(Option<String>):The identifier for this version of the public key configuration.
- On failure, responds with
SdkError<GetPublicKeyConfigError>
Source§impl Client
impl Client
Sourcepub fn get_realtime_log_config(&self) -> GetRealtimeLogConfigFluentBuilder
pub fn get_realtime_log_config(&self) -> GetRealtimeLogConfigFluentBuilder
Constructs a fluent builder for the GetRealtimeLogConfig operation.
- The fluent builder is configurable:
name(impl Into<String>)/set_name(Option<String>):
required: falseThe name of the real-time log configuration to get.
arn(impl Into<String>)/set_arn(Option<String>):
required: falseThe Amazon Resource Name (ARN) of the real-time log configuration to get.
- On success, responds with
GetRealtimeLogConfigOutputwith field(s):realtime_log_config(Option<RealtimeLogConfig>):A real-time log configuration.
- On failure, responds with
SdkError<GetRealtimeLogConfigError>
Source§impl Client
impl Client
Sourcepub fn get_response_headers_policy(
&self,
) -> GetResponseHeadersPolicyFluentBuilder
pub fn get_response_headers_policy( &self, ) -> GetResponseHeadersPolicyFluentBuilder
Constructs a fluent builder for the GetResponseHeadersPolicy operation.
- The fluent builder is configurable:
id(impl Into<String>)/set_id(Option<String>):
required: trueThe identifier for the response headers policy.
If the response headers policy is attached to a distribution’s cache behavior, you can get the policy’s identifier using
ListDistributionsorGetDistribution. If the response headers policy is not attached to a cache behavior, you can get the identifier usingListResponseHeadersPolicies.
- On success, responds with
GetResponseHeadersPolicyOutputwith field(s):response_headers_policy(Option<ResponseHeadersPolicy>):Contains a response headers policy.
e_tag(Option<String>):The version identifier for the current version of the response headers policy.
- On failure, responds with
SdkError<GetResponseHeadersPolicyError>
Source§impl Client
impl Client
Sourcepub fn get_response_headers_policy_config(
&self,
) -> GetResponseHeadersPolicyConfigFluentBuilder
pub fn get_response_headers_policy_config( &self, ) -> GetResponseHeadersPolicyConfigFluentBuilder
Constructs a fluent builder for the GetResponseHeadersPolicyConfig operation.
- The fluent builder is configurable:
id(impl Into<String>)/set_id(Option<String>):
required: trueThe identifier for the response headers policy.
If the response headers policy is attached to a distribution’s cache behavior, you can get the policy’s identifier using
ListDistributionsorGetDistribution. If the response headers policy is not attached to a cache behavior, you can get the identifier usingListResponseHeadersPolicies.
- On success, responds with
GetResponseHeadersPolicyConfigOutputwith field(s):response_headers_policy_config(Option<ResponseHeadersPolicyConfig>):Contains a response headers policy.
e_tag(Option<String>):The version identifier for the current version of the response headers policy.
- On failure, responds with
SdkError<GetResponseHeadersPolicyConfigError>
Source§impl Client
impl Client
Sourcepub fn get_streaming_distribution(
&self,
) -> GetStreamingDistributionFluentBuilder
pub fn get_streaming_distribution( &self, ) -> GetStreamingDistributionFluentBuilder
Constructs a fluent builder for the GetStreamingDistribution operation.
- The fluent builder is configurable:
id(impl Into<String>)/set_id(Option<String>):
required: trueThe streaming distribution’s ID.
- On success, responds with
GetStreamingDistributionOutputwith field(s):streaming_distribution(Option<StreamingDistribution>):The streaming distribution’s information.
e_tag(Option<String>):The current version of the streaming distribution’s information. For example:
E2QWRUHAPOMQZL.
- On failure, responds with
SdkError<GetStreamingDistributionError>
Source§impl Client
impl Client
Sourcepub fn get_streaming_distribution_config(
&self,
) -> GetStreamingDistributionConfigFluentBuilder
pub fn get_streaming_distribution_config( &self, ) -> GetStreamingDistributionConfigFluentBuilder
Constructs a fluent builder for the GetStreamingDistributionConfig operation.
- The fluent builder is configurable:
id(impl Into<String>)/set_id(Option<String>):
required: trueThe streaming distribution’s ID.
- On success, responds with
GetStreamingDistributionConfigOutputwith field(s):streaming_distribution_config(Option<StreamingDistributionConfig>):The streaming distribution’s configuration information.
e_tag(Option<String>):The current version of the configuration. For example:
E2QWRUHAPOMQZL.
- On failure, responds with
SdkError<GetStreamingDistributionConfigError>
Source§impl Client
impl Client
Sourcepub fn get_vpc_origin(&self) -> GetVpcOriginFluentBuilder
pub fn get_vpc_origin(&self) -> GetVpcOriginFluentBuilder
Constructs a fluent builder for the GetVpcOrigin operation.
- The fluent builder is configurable:
id(impl Into<String>)/set_id(Option<String>):
required: trueThe VPC origin ID.
- On success, responds with
GetVpcOriginOutputwith field(s):vpc_origin(Option<VpcOrigin>):The VPC origin.
e_tag(Option<String>):The VPC origin ETag.
- On failure, responds with
SdkError<GetVpcOriginError>
Source§impl Client
impl Client
Sourcepub fn list_anycast_ip_lists(&self) -> ListAnycastIpListsFluentBuilder
pub fn list_anycast_ip_lists(&self) -> ListAnycastIpListsFluentBuilder
Constructs a fluent builder for the ListAnycastIpLists operation.
- The fluent builder is configurable:
marker(impl Into<String>)/set_marker(Option<String>):
required: falseUse this field when paginating results to indicate where to begin in your list. The response includes items in the list that occur after the marker. To get the next page of the list, set this field’s value to the value of
NextMarkerfrom the current page’s response.max_items(i32)/set_max_items(Option<i32>):
required: falseThe maximum number of Anycast static IP lists that you want returned in the response.
- On success, responds with
ListAnycastIpListsOutputwith field(s):anycast_ip_lists(Option<AnycastIpListCollection>):Root level tag for the
AnycastIpListsparameters.
- On failure, responds with
SdkError<ListAnycastIpListsError>
Source§impl Client
impl Client
Sourcepub fn list_cache_policies(&self) -> ListCachePoliciesFluentBuilder
pub fn list_cache_policies(&self) -> ListCachePoliciesFluentBuilder
Constructs a fluent builder for the ListCachePolicies operation.
- The fluent builder is configurable:
r#type(CachePolicyType)/set_type(Option<CachePolicyType>):
required: falseA filter to return only the specified kinds of cache policies. Valid values are:
-
managed– Returns only the managed policies created by Amazon Web Services. -
custom– Returns only the custom policies created in your Amazon Web Services account.
-
marker(impl Into<String>)/set_marker(Option<String>):
required: falseUse this field when paginating results to indicate where to begin in your list of cache policies. The response includes cache policies in the list that occur after the marker. To get the next page of the list, set this field’s value to the value of
NextMarkerfrom the current page’s response.max_items(i32)/set_max_items(Option<i32>):
required: falseThe maximum number of cache policies that you want in the response.
- On success, responds with
ListCachePoliciesOutputwith field(s):cache_policy_list(Option<CachePolicyList>):A list of cache policies.
- On failure, responds with
SdkError<ListCachePoliciesError>
Source§impl Client
impl Client
Sourcepub fn list_cloud_front_origin_access_identities(
&self,
) -> ListCloudFrontOriginAccessIdentitiesFluentBuilder
pub fn list_cloud_front_origin_access_identities( &self, ) -> ListCloudFrontOriginAccessIdentitiesFluentBuilder
Constructs a fluent builder for the ListCloudFrontOriginAccessIdentities operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
marker(impl Into<String>)/set_marker(Option<String>):
required: falseUse this when paginating results to indicate where to begin in your list of origin access identities. The results include identities in the list that occur after the marker. To get the next page of results, set the
Markerto the value of theNextMarkerfrom the current page’s response (which is also the ID of the last identity on that page).max_items(i32)/set_max_items(Option<i32>):
required: falseThe maximum number of origin access identities you want in the response body.
- On success, responds with
ListCloudFrontOriginAccessIdentitiesOutputwith field(s):cloud_front_origin_access_identity_list(Option<CloudFrontOriginAccessIdentityList>):The
CloudFrontOriginAccessIdentityListtype.
- On failure, responds with
SdkError<ListCloudFrontOriginAccessIdentitiesError>
Source§impl Client
impl Client
Sourcepub fn list_conflicting_aliases(&self) -> ListConflictingAliasesFluentBuilder
pub fn list_conflicting_aliases(&self) -> ListConflictingAliasesFluentBuilder
Constructs a fluent builder for the ListConflictingAliases operation.
- The fluent builder is configurable:
distribution_id(impl Into<String>)/set_distribution_id(Option<String>):
required: trueThe ID of a distribution in your account that has an attached SSL/TLS certificate that includes the provided alias.
alias(impl Into<String>)/set_alias(Option<String>):
required: trueThe alias (also called a CNAME) to search for conflicting aliases.
marker(impl Into<String>)/set_marker(Option<String>):
required: falseUse this field when paginating results to indicate where to begin in the list of conflicting aliases. The response includes conflicting aliases in the list that occur after the marker. To get the next page of the list, set this field’s value to the value of
NextMarkerfrom the current page’s response.max_items(i32)/set_max_items(Option<i32>):
required: falseThe maximum number of conflicting aliases that you want in the response.
- On success, responds with
ListConflictingAliasesOutputwith field(s):conflicting_aliases_list(Option<ConflictingAliasesList>):A list of conflicting aliases.
- On failure, responds with
SdkError<ListConflictingAliasesError>
Source§impl Client
impl Client
Sourcepub fn list_continuous_deployment_policies(
&self,
) -> ListContinuousDeploymentPoliciesFluentBuilder
pub fn list_continuous_deployment_policies( &self, ) -> ListContinuousDeploymentPoliciesFluentBuilder
Constructs a fluent builder for the ListContinuousDeploymentPolicies operation.
- The fluent builder is configurable:
marker(impl Into<String>)/set_marker(Option<String>):
required: falseUse this field when paginating results to indicate where to begin in your list of continuous deployment policies. The response includes policies in the list that occur after the marker. To get the next page of the list, set this field’s value to the value of
NextMarkerfrom the current page’s response.max_items(i32)/set_max_items(Option<i32>):
required: falseThe maximum number of continuous deployment policies that you want returned in the response.
- On success, responds with
ListContinuousDeploymentPoliciesOutputwith field(s):continuous_deployment_policy_list(Option<ContinuousDeploymentPolicyList>):A list of continuous deployment policies.
- On failure, responds with
SdkError<ListContinuousDeploymentPoliciesError>
Source§impl Client
impl Client
Sourcepub fn list_distributions(&self) -> ListDistributionsFluentBuilder
pub fn list_distributions(&self) -> ListDistributionsFluentBuilder
Constructs a fluent builder for the ListDistributions operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
marker(impl Into<String>)/set_marker(Option<String>):
required: falseUse this when paginating results to indicate where to begin in your list of distributions. The results include distributions in the list that occur after the marker. To get the next page of results, set the
Markerto the value of theNextMarkerfrom the current page’s response (which is also the ID of the last distribution on that page).max_items(i32)/set_max_items(Option<i32>):
required: falseThe maximum number of distributions you want in the response body.
- On success, responds with
ListDistributionsOutputwith field(s):distribution_list(Option<DistributionList>):The
DistributionListtype.
- On failure, responds with
SdkError<ListDistributionsError>
Source§impl Client
impl Client
Sourcepub fn list_distributions_by_anycast_ip_list_id(
&self,
) -> ListDistributionsByAnycastIpListIdFluentBuilder
pub fn list_distributions_by_anycast_ip_list_id( &self, ) -> ListDistributionsByAnycastIpListIdFluentBuilder
Constructs a fluent builder for the ListDistributionsByAnycastIpListId operation.
- The fluent builder is configurable:
marker(impl Into<String>)/set_marker(Option<String>):
required: falseUse this field when paginating results to indicate where to begin in your list. The response includes items in the list that occur after the marker. To get the next page of the list, set this field’s value to the value of
NextMarkerfrom the current page’s response.max_items(i32)/set_max_items(Option<i32>):
required: falseThe maximum number of distributions that you want returned in the response.
anycast_ip_list_id(impl Into<String>)/set_anycast_ip_list_id(Option<String>):
required: trueThe ID of the Anycast static IP list.
- On success, responds with
ListDistributionsByAnycastIpListIdOutputwith field(s):distribution_list(Option<DistributionList>):A distribution list.
- On failure, responds with
SdkError<ListDistributionsByAnycastIpListIdError>
Source§impl Client
impl Client
Sourcepub fn list_distributions_by_cache_policy_id(
&self,
) -> ListDistributionsByCachePolicyIdFluentBuilder
pub fn list_distributions_by_cache_policy_id( &self, ) -> ListDistributionsByCachePolicyIdFluentBuilder
Constructs a fluent builder for the ListDistributionsByCachePolicyId operation.
- The fluent builder is configurable:
marker(impl Into<String>)/set_marker(Option<String>):
required: falseUse this field when paginating results to indicate where to begin in your list of distribution IDs. The response includes distribution IDs in the list that occur after the marker. To get the next page of the list, set this field’s value to the value of
NextMarkerfrom the current page’s response.max_items(i32)/set_max_items(Option<i32>):
required: falseThe maximum number of distribution IDs that you want in the response.
cache_policy_id(impl Into<String>)/set_cache_policy_id(Option<String>):
required: trueThe ID of the cache policy whose associated distribution IDs you want to list.
- On success, responds with
ListDistributionsByCachePolicyIdOutputwith field(s):distribution_id_list(Option<DistributionIdList>):A list of distribution IDs.
- On failure, responds with
SdkError<ListDistributionsByCachePolicyIdError>
Source§impl Client
impl Client
Sourcepub fn list_distributions_by_key_group(
&self,
) -> ListDistributionsByKeyGroupFluentBuilder
pub fn list_distributions_by_key_group( &self, ) -> ListDistributionsByKeyGroupFluentBuilder
Constructs a fluent builder for the ListDistributionsByKeyGroup operation.
- The fluent builder is configurable:
marker(impl Into<String>)/set_marker(Option<String>):
required: falseUse this field when paginating results to indicate where to begin in your list of distribution IDs. The response includes distribution IDs in the list that occur after the marker. To get the next page of the list, set this field’s value to the value of
NextMarkerfrom the current page’s response.max_items(i32)/set_max_items(Option<i32>):
required: falseThe maximum number of distribution IDs that you want in the response.
key_group_id(impl Into<String>)/set_key_group_id(Option<String>):
required: trueThe ID of the key group whose associated distribution IDs you are listing.
- On success, responds with
ListDistributionsByKeyGroupOutputwith field(s):distribution_id_list(Option<DistributionIdList>):A list of distribution IDs.
- On failure, responds with
SdkError<ListDistributionsByKeyGroupError>
Source§impl Client
impl Client
Sourcepub fn list_distributions_by_origin_request_policy_id(
&self,
) -> ListDistributionsByOriginRequestPolicyIdFluentBuilder
pub fn list_distributions_by_origin_request_policy_id( &self, ) -> ListDistributionsByOriginRequestPolicyIdFluentBuilder
Constructs a fluent builder for the ListDistributionsByOriginRequestPolicyId operation.
- The fluent builder is configurable:
marker(impl Into<String>)/set_marker(Option<String>):
required: falseUse this field when paginating results to indicate where to begin in your list of distribution IDs. The response includes distribution IDs in the list that occur after the marker. To get the next page of the list, set this field’s value to the value of
NextMarkerfrom the current page’s response.max_items(i32)/set_max_items(Option<i32>):
required: falseThe maximum number of distribution IDs that you want in the response.
origin_request_policy_id(impl Into<String>)/set_origin_request_policy_id(Option<String>):
required: trueThe ID of the origin request policy whose associated distribution IDs you want to list.
- On success, responds with
ListDistributionsByOriginRequestPolicyIdOutputwith field(s):distribution_id_list(Option<DistributionIdList>):A list of distribution IDs.
- On failure, responds with
SdkError<ListDistributionsByOriginRequestPolicyIdError>
Source§impl Client
impl Client
Sourcepub fn list_distributions_by_realtime_log_config(
&self,
) -> ListDistributionsByRealtimeLogConfigFluentBuilder
pub fn list_distributions_by_realtime_log_config( &self, ) -> ListDistributionsByRealtimeLogConfigFluentBuilder
Constructs a fluent builder for the ListDistributionsByRealtimeLogConfig operation.
- The fluent builder is configurable:
marker(impl Into<String>)/set_marker(Option<String>):
required: falseUse this field when paginating results to indicate where to begin in your list of distributions. The response includes distributions in the list that occur after the marker. To get the next page of the list, set this field’s value to the value of
NextMarkerfrom the current page’s response.max_items(i32)/set_max_items(Option<i32>):
required: falseThe maximum number of distributions that you want in the response.
realtime_log_config_name(impl Into<String>)/set_realtime_log_config_name(Option<String>):
required: falseThe name of the real-time log configuration whose associated distributions you want to list.
realtime_log_config_arn(impl Into<String>)/set_realtime_log_config_arn(Option<String>):
required: falseThe Amazon Resource Name (ARN) of the real-time log configuration whose associated distributions you want to list.
- On success, responds with
ListDistributionsByRealtimeLogConfigOutputwith field(s):distribution_list(Option<DistributionList>):A distribution list.
- On failure, responds with
SdkError<ListDistributionsByRealtimeLogConfigError>
Source§impl Client
impl Client
Sourcepub fn list_distributions_by_response_headers_policy_id(
&self,
) -> ListDistributionsByResponseHeadersPolicyIdFluentBuilder
pub fn list_distributions_by_response_headers_policy_id( &self, ) -> ListDistributionsByResponseHeadersPolicyIdFluentBuilder
Constructs a fluent builder for the ListDistributionsByResponseHeadersPolicyId operation.
- The fluent builder is configurable:
marker(impl Into<String>)/set_marker(Option<String>):
required: falseUse this field when paginating results to indicate where to begin in your list of distribution IDs. The response includes distribution IDs in the list that occur after the marker. To get the next page of the list, set this field’s value to the value of
NextMarkerfrom the current page’s response.max_items(i32)/set_max_items(Option<i32>):
required: falseThe maximum number of distribution IDs that you want to get in the response.
response_headers_policy_id(impl Into<String>)/set_response_headers_policy_id(Option<String>):
required: trueThe ID of the response headers policy whose associated distribution IDs you want to list.
- On success, responds with
ListDistributionsByResponseHeadersPolicyIdOutputwith field(s):distribution_id_list(Option<DistributionIdList>):A list of distribution IDs.
- On failure, responds with
SdkError<ListDistributionsByResponseHeadersPolicyIdError>
Source§impl Client
impl Client
Sourcepub fn list_distributions_by_vpc_origin_id(
&self,
) -> ListDistributionsByVpcOriginIdFluentBuilder
pub fn list_distributions_by_vpc_origin_id( &self, ) -> ListDistributionsByVpcOriginIdFluentBuilder
Constructs a fluent builder for the ListDistributionsByVpcOriginId operation.
- The fluent builder is configurable:
marker(impl Into<String>)/set_marker(Option<String>):
required: falseThe marker associated with the VPC origin distributions list.
max_items(i32)/set_max_items(Option<i32>):
required: falseThe maximum number of items included in the list.
vpc_origin_id(impl Into<String>)/set_vpc_origin_id(Option<String>):
required: trueThe VPC origin ID.
- On success, responds with
ListDistributionsByVpcOriginIdOutputwith field(s):distribution_id_list(Option<DistributionIdList>):A list of distribution IDs.
- On failure, responds with
SdkError<ListDistributionsByVpcOriginIdError>
Source§impl Client
impl Client
Sourcepub fn list_distributions_by_web_acl_id(
&self,
) -> ListDistributionsByWebACLIdFluentBuilder
pub fn list_distributions_by_web_acl_id( &self, ) -> ListDistributionsByWebACLIdFluentBuilder
Constructs a fluent builder for the ListDistributionsByWebACLId operation.
- The fluent builder is configurable:
marker(impl Into<String>)/set_marker(Option<String>):
required: falseUse
MarkerandMaxItemsto control pagination of results. If you have more thanMaxItemsdistributions that satisfy the request, the response includes aNextMarkerelement. To get the next page of results, submit another request. For the value ofMarker, specify the value ofNextMarkerfrom the last response. (For the first request, omitMarker.)max_items(i32)/set_max_items(Option<i32>):
required: falseThe maximum number of distributions that you want CloudFront to return in the response body. The maximum and default values are both 100.
web_acl_id(impl Into<String>)/set_web_acl_id(Option<String>):
required: trueThe ID of the WAF web ACL that you want to list the associated distributions. If you specify “null” for the ID, the request returns a list of the distributions that aren’t associated with a web ACL.
For WAFV2, this is the ARN of the web ACL, such as
arn:aws:wafv2:us-east-1:123456789012:global/webacl/ExampleWebACL/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111.For WAF Classic, this is the ID of the web ACL, such as
a1b2c3d4-5678-90ab-cdef-EXAMPLE11111.
- On success, responds with
ListDistributionsByWebAclIdOutputwith field(s):distribution_list(Option<DistributionList>):The
DistributionListtype.
- On failure, responds with
SdkError<ListDistributionsByWebACLIdError>
Source§impl Client
impl Client
Sourcepub fn list_field_level_encryption_configs(
&self,
) -> ListFieldLevelEncryptionConfigsFluentBuilder
pub fn list_field_level_encryption_configs( &self, ) -> ListFieldLevelEncryptionConfigsFluentBuilder
Constructs a fluent builder for the ListFieldLevelEncryptionConfigs operation.
- The fluent builder is configurable:
marker(impl Into<String>)/set_marker(Option<String>):
required: falseUse this when paginating results to indicate where to begin in your list of configurations. The results include configurations in the list that occur after the marker. To get the next page of results, set the
Markerto the value of theNextMarkerfrom the current page’s response (which is also the ID of the last configuration on that page).max_items(i32)/set_max_items(Option<i32>):
required: falseThe maximum number of field-level encryption configurations you want in the response body.
- On success, responds with
ListFieldLevelEncryptionConfigsOutputwith field(s):field_level_encryption_list(Option<FieldLevelEncryptionList>):Returns a list of all field-level encryption configurations that have been created in CloudFront for this account.
- On failure, responds with
SdkError<ListFieldLevelEncryptionConfigsError>
Source§impl Client
impl Client
Sourcepub fn list_field_level_encryption_profiles(
&self,
) -> ListFieldLevelEncryptionProfilesFluentBuilder
pub fn list_field_level_encryption_profiles( &self, ) -> ListFieldLevelEncryptionProfilesFluentBuilder
Constructs a fluent builder for the ListFieldLevelEncryptionProfiles operation.
- The fluent builder is configurable:
marker(impl Into<String>)/set_marker(Option<String>):
required: falseUse this when paginating results to indicate where to begin in your list of profiles. The results include profiles in the list that occur after the marker. To get the next page of results, set the
Markerto the value of theNextMarkerfrom the current page’s response (which is also the ID of the last profile on that page).max_items(i32)/set_max_items(Option<i32>):
required: falseThe maximum number of field-level encryption profiles you want in the response body.
- On success, responds with
ListFieldLevelEncryptionProfilesOutputwith field(s):field_level_encryption_profile_list(Option<FieldLevelEncryptionProfileList>):Returns a list of the field-level encryption profiles that have been created in CloudFront for this account.
- On failure, responds with
SdkError<ListFieldLevelEncryptionProfilesError>
Source§impl Client
impl Client
Sourcepub fn list_functions(&self) -> ListFunctionsFluentBuilder
pub fn list_functions(&self) -> ListFunctionsFluentBuilder
Constructs a fluent builder for the ListFunctions operation.
- The fluent builder is configurable:
marker(impl Into<String>)/set_marker(Option<String>):
required: falseUse this field when paginating results to indicate where to begin in your list of functions. The response includes functions in the list that occur after the marker. To get the next page of the list, set this field’s value to the value of
NextMarkerfrom the current page’s response.max_items(i32)/set_max_items(Option<i32>):
required: falseThe maximum number of functions that you want in the response.
stage(FunctionStage)/set_stage(Option<FunctionStage>):
required: falseAn optional filter to return only the functions that are in the specified stage, either
DEVELOPMENTorLIVE.
- On success, responds with
ListFunctionsOutputwith field(s):function_list(Option<FunctionList>):A list of CloudFront functions.
- On failure, responds with
SdkError<ListFunctionsError>
Source§impl Client
impl Client
Sourcepub fn list_invalidations(&self) -> ListInvalidationsFluentBuilder
pub fn list_invalidations(&self) -> ListInvalidationsFluentBuilder
Constructs a fluent builder for the ListInvalidations operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
distribution_id(impl Into<String>)/set_distribution_id(Option<String>):
required: trueThe distribution’s ID.
marker(impl Into<String>)/set_marker(Option<String>):
required: falseUse this parameter when paginating results to indicate where to begin in your list of invalidation batches. Because the results are returned in decreasing order from most recent to oldest, the most recent results are on the first page, the second page will contain earlier results, and so on. To get the next page of results, set
Markerto the value of theNextMarkerfrom the current page’s response. This value is the same as the ID of the last invalidation batch on that page.max_items(i32)/set_max_items(Option<i32>):
required: falseThe maximum number of invalidation batches that you want in the response body.
- On success, responds with
ListInvalidationsOutputwith field(s):invalidation_list(Option<InvalidationList>):Information about invalidation batches.
- On failure, responds with
SdkError<ListInvalidationsError>
Source§impl Client
impl Client
Sourcepub fn list_key_groups(&self) -> ListKeyGroupsFluentBuilder
pub fn list_key_groups(&self) -> ListKeyGroupsFluentBuilder
Constructs a fluent builder for the ListKeyGroups operation.
- The fluent builder is configurable:
marker(impl Into<String>)/set_marker(Option<String>):
required: falseUse this field when paginating results to indicate where to begin in your list of key groups. The response includes key groups in the list that occur after the marker. To get the next page of the list, set this field’s value to the value of
NextMarkerfrom the current page’s response.max_items(i32)/set_max_items(Option<i32>):
required: falseThe maximum number of key groups that you want in the response.
- On success, responds with
ListKeyGroupsOutputwith field(s):key_group_list(Option<KeyGroupList>):A list of key groups.
- On failure, responds with
SdkError<ListKeyGroupsError>
Source§impl Client
impl Client
Sourcepub fn list_key_value_stores(&self) -> ListKeyValueStoresFluentBuilder
pub fn list_key_value_stores(&self) -> ListKeyValueStoresFluentBuilder
Constructs a fluent builder for the ListKeyValueStores operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
marker(impl Into<String>)/set_marker(Option<String>):
required: falseThe marker associated with the key value stores list.
max_items(i32)/set_max_items(Option<i32>):
required: falseThe maximum number of items in the key value stores list.
status(impl Into<String>)/set_status(Option<String>):
required: falseThe status of the request for the key value stores list.
- On success, responds with
ListKeyValueStoresOutputwith field(s):key_value_store_list(Option<KeyValueStoreList>):The resulting key value stores list.
- On failure, responds with
SdkError<ListKeyValueStoresError>
Source§impl Client
impl Client
Sourcepub fn list_origin_access_controls(
&self,
) -> ListOriginAccessControlsFluentBuilder
pub fn list_origin_access_controls( &self, ) -> ListOriginAccessControlsFluentBuilder
Constructs a fluent builder for the ListOriginAccessControls operation.
- The fluent builder is configurable:
marker(impl Into<String>)/set_marker(Option<String>):
required: falseUse this field when paginating results to indicate where to begin in your list of origin access controls. The response includes the items in the list that occur after the marker. To get the next page of the list, set this field’s value to the value of
NextMarkerfrom the current page’s response.max_items(i32)/set_max_items(Option<i32>):
required: falseThe maximum number of origin access controls that you want in the response.
- On success, responds with
ListOriginAccessControlsOutputwith field(s):origin_access_control_list(Option<OriginAccessControlList>):A list of origin access controls.
- On failure, responds with
SdkError<ListOriginAccessControlsError>
Source§impl Client
impl Client
Sourcepub fn list_origin_request_policies(
&self,
) -> ListOriginRequestPoliciesFluentBuilder
pub fn list_origin_request_policies( &self, ) -> ListOriginRequestPoliciesFluentBuilder
Constructs a fluent builder for the ListOriginRequestPolicies operation.
- The fluent builder is configurable:
r#type(OriginRequestPolicyType)/set_type(Option<OriginRequestPolicyType>):
required: falseA filter to return only the specified kinds of origin request policies. Valid values are:
-
managed– Returns only the managed policies created by Amazon Web Services. -
custom– Returns only the custom policies created in your Amazon Web Services account.
-
marker(impl Into<String>)/set_marker(Option<String>):
required: falseUse this field when paginating results to indicate where to begin in your list of origin request policies. The response includes origin request policies in the list that occur after the marker. To get the next page of the list, set this field’s value to the value of
NextMarkerfrom the current page’s response.max_items(i32)/set_max_items(Option<i32>):
required: falseThe maximum number of origin request policies that you want in the response.
- On success, responds with
ListOriginRequestPoliciesOutputwith field(s):origin_request_policy_list(Option<OriginRequestPolicyList>):A list of origin request policies.
- On failure, responds with
SdkError<ListOriginRequestPoliciesError>
Source§impl Client
impl Client
Sourcepub fn list_public_keys(&self) -> ListPublicKeysFluentBuilder
pub fn list_public_keys(&self) -> ListPublicKeysFluentBuilder
Constructs a fluent builder for the ListPublicKeys operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
marker(impl Into<String>)/set_marker(Option<String>):
required: falseUse this when paginating results to indicate where to begin in your list of public keys. The results include public keys in the list that occur after the marker. To get the next page of results, set the
Markerto the value of theNextMarkerfrom the current page’s response (which is also the ID of the last public key on that page).max_items(i32)/set_max_items(Option<i32>):
required: falseThe maximum number of public keys you want in the response body.
- On success, responds with
ListPublicKeysOutputwith field(s):public_key_list(Option<PublicKeyList>):Returns a list of all public keys that have been added to CloudFront for this account.
- On failure, responds with
SdkError<ListPublicKeysError>
Source§impl Client
impl Client
Sourcepub fn list_realtime_log_configs(&self) -> ListRealtimeLogConfigsFluentBuilder
pub fn list_realtime_log_configs(&self) -> ListRealtimeLogConfigsFluentBuilder
Constructs a fluent builder for the ListRealtimeLogConfigs operation.
- The fluent builder is configurable:
max_items(i32)/set_max_items(Option<i32>):
required: falseThe maximum number of real-time log configurations that you want in the response.
marker(impl Into<String>)/set_marker(Option<String>):
required: falseUse this field when paginating results to indicate where to begin in your list of real-time log configurations. The response includes real-time log configurations in the list that occur after the marker. To get the next page of the list, set this field’s value to the value of
NextMarkerfrom the current page’s response.
- On success, responds with
ListRealtimeLogConfigsOutputwith field(s):realtime_log_configs(Option<RealtimeLogConfigs>):A list of real-time log configurations.
- On failure, responds with
SdkError<ListRealtimeLogConfigsError>
Source§impl Client
impl Client
Sourcepub fn list_response_headers_policies(
&self,
) -> ListResponseHeadersPoliciesFluentBuilder
pub fn list_response_headers_policies( &self, ) -> ListResponseHeadersPoliciesFluentBuilder
Constructs a fluent builder for the ListResponseHeadersPolicies operation.
- The fluent builder is configurable:
r#type(ResponseHeadersPolicyType)/set_type(Option<ResponseHeadersPolicyType>):
required: falseA filter to get only the specified kind of response headers policies. Valid values are:
-
managed– Gets only the managed policies created by Amazon Web Services. -
custom– Gets only the custom policies created in your Amazon Web Services account.
-
marker(impl Into<String>)/set_marker(Option<String>):
required: falseUse this field when paginating results to indicate where to begin in your list of response headers policies. The response includes response headers policies in the list that occur after the marker. To get the next page of the list, set this field’s value to the value of
NextMarkerfrom the current page’s response.max_items(i32)/set_max_items(Option<i32>):
required: falseThe maximum number of response headers policies that you want to get in the response.
- On success, responds with
ListResponseHeadersPoliciesOutputwith field(s):response_headers_policy_list(Option<ResponseHeadersPolicyList>):A list of response headers policies.
- On failure, responds with
SdkError<ListResponseHeadersPoliciesError>
Source§impl Client
impl Client
Sourcepub fn list_streaming_distributions(
&self,
) -> ListStreamingDistributionsFluentBuilder
pub fn list_streaming_distributions( &self, ) -> ListStreamingDistributionsFluentBuilder
Constructs a fluent builder for the ListStreamingDistributions operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
marker(impl Into<String>)/set_marker(Option<String>):
required: falseThe value that you provided for the
Markerrequest parameter.max_items(i32)/set_max_items(Option<i32>):
required: falseThe value that you provided for the
MaxItemsrequest parameter.
- On success, responds with
ListStreamingDistributionsOutputwith field(s):streaming_distribution_list(Option<StreamingDistributionList>):The
StreamingDistributionListtype.
- On failure, responds with
SdkError<ListStreamingDistributionsError>
Source§impl Client
impl Client
Constructs a fluent builder for the ListTagsForResource operation.
- The fluent builder is configurable:
resource(impl Into<String>)/set_resource(Option<String>):
required: trueAn ARN of a CloudFront resource.
- On success, responds with
ListTagsForResourceOutputwith field(s):tags(Option<Tags>):A complex type that contains zero or more
Tagelements.
- On failure, responds with
SdkError<ListTagsForResourceError>
Source§impl Client
impl Client
Sourcepub fn list_vpc_origins(&self) -> ListVpcOriginsFluentBuilder
pub fn list_vpc_origins(&self) -> ListVpcOriginsFluentBuilder
Constructs a fluent builder for the ListVpcOrigins operation.
- The fluent builder is configurable:
marker(impl Into<String>)/set_marker(Option<String>):
required: falseThe marker associated with the VPC origins list.
max_items(i32)/set_max_items(Option<i32>):
required: falseThe maximum number of items included in the list.
- On success, responds with
ListVpcOriginsOutputwith field(s):vpc_origin_list(Option<VpcOriginList>):List of VPC origins.
- On failure, responds with
SdkError<ListVpcOriginsError>
Source§impl Client
impl Client
Sourcepub fn publish_function(&self) -> PublishFunctionFluentBuilder
pub fn publish_function(&self) -> PublishFunctionFluentBuilder
Constructs a fluent builder for the PublishFunction operation.
- The fluent builder is configurable:
name(impl Into<String>)/set_name(Option<String>):
required: trueThe name of the function that you are publishing.
if_match(impl Into<String>)/set_if_match(Option<String>):
required: trueThe current version (
ETagvalue) of the function that you are publishing, which you can get usingDescribeFunction.
- On success, responds with
PublishFunctionOutputwith field(s):function_summary(Option<FunctionSummary>):Contains configuration information and metadata about a CloudFront function.
- On failure, responds with
SdkError<PublishFunctionError>
Source§impl Client
impl Client
Sourcepub fn tag_resource(&self) -> TagResourceFluentBuilder
pub fn tag_resource(&self) -> TagResourceFluentBuilder
Constructs a fluent builder for the TagResource operation.
- The fluent builder is configurable:
resource(impl Into<String>)/set_resource(Option<String>):
required: trueAn ARN of a CloudFront resource.
tags(Tags)/set_tags(Option<Tags>):
required: trueA complex type that contains zero or more
Tagelements.
- On success, responds with
TagResourceOutput - On failure, responds with
SdkError<TagResourceError>
Source§impl Client
impl Client
Sourcepub fn test_function(&self) -> TestFunctionFluentBuilder
pub fn test_function(&self) -> TestFunctionFluentBuilder
Constructs a fluent builder for the TestFunction operation.
- The fluent builder is configurable:
name(impl Into<String>)/set_name(Option<String>):
required: trueThe name of the function that you are testing.
if_match(impl Into<String>)/set_if_match(Option<String>):
required: trueThe current version (
ETagvalue) of the function that you are testing, which you can get usingDescribeFunction.stage(FunctionStage)/set_stage(Option<FunctionStage>):
required: falseThe stage of the function that you are testing, either
DEVELOPMENTorLIVE.event_object(Blob)/set_event_object(Option<Blob>):
required: trueThe event object to test the function with. For more information about the structure of the event object, see Testing functions in the Amazon CloudFront Developer Guide.
- On success, responds with
TestFunctionOutputwith field(s):test_result(Option<TestResult>):An object that represents the result of running the function with the provided event object.
- On failure, responds with
SdkError<TestFunctionError>
Source§impl Client
impl Client
Sourcepub fn untag_resource(&self) -> UntagResourceFluentBuilder
pub fn untag_resource(&self) -> UntagResourceFluentBuilder
Constructs a fluent builder for the UntagResource operation.
- The fluent builder is configurable:
resource(impl Into<String>)/set_resource(Option<String>):
required: trueAn ARN of a CloudFront resource.
tag_keys(TagKeys)/set_tag_keys(Option<TagKeys>):
required: trueA complex type that contains zero or more
Tagkey elements.
- On success, responds with
UntagResourceOutput - On failure, responds with
SdkError<UntagResourceError>
Source§impl Client
impl Client
Sourcepub fn update_cache_policy(&self) -> UpdateCachePolicyFluentBuilder
pub fn update_cache_policy(&self) -> UpdateCachePolicyFluentBuilder
Constructs a fluent builder for the UpdateCachePolicy operation.
- The fluent builder is configurable:
cache_policy_config(CachePolicyConfig)/set_cache_policy_config(Option<CachePolicyConfig>):
required: trueA cache policy configuration.
id(impl Into<String>)/set_id(Option<String>):
required: trueThe unique identifier for the cache policy that you are updating. The identifier is returned in a cache behavior’s
CachePolicyIdfield in the response toGetDistributionConfig.if_match(impl Into<String>)/set_if_match(Option<String>):
required: falseThe version of the cache policy that you are updating. The version is returned in the cache policy’s
ETagfield in the response toGetCachePolicyConfig.
- On success, responds with
UpdateCachePolicyOutputwith field(s):cache_policy(Option<CachePolicy>):A cache policy.
e_tag(Option<String>):The current version of the cache policy.
- On failure, responds with
SdkError<UpdateCachePolicyError>
Source§impl Client
impl Client
Sourcepub fn update_cloud_front_origin_access_identity(
&self,
) -> UpdateCloudFrontOriginAccessIdentityFluentBuilder
pub fn update_cloud_front_origin_access_identity( &self, ) -> UpdateCloudFrontOriginAccessIdentityFluentBuilder
Constructs a fluent builder for the UpdateCloudFrontOriginAccessIdentity operation.
- The fluent builder is configurable:
cloud_front_origin_access_identity_config(CloudFrontOriginAccessIdentityConfig)/set_cloud_front_origin_access_identity_config(Option<CloudFrontOriginAccessIdentityConfig>):
required: trueThe identity’s configuration information.
id(impl Into<String>)/set_id(Option<String>):
required: trueThe identity’s id.
if_match(impl Into<String>)/set_if_match(Option<String>):
required: falseThe value of the
ETagheader that you received when retrieving the identity’s configuration. For example:E2QWRUHAPOMQZL.
- On success, responds with
UpdateCloudFrontOriginAccessIdentityOutputwith field(s):cloud_front_origin_access_identity(Option<CloudFrontOriginAccessIdentity>):The origin access identity’s information.
e_tag(Option<String>):The current version of the configuration. For example:
E2QWRUHAPOMQZL.
- On failure, responds with
SdkError<UpdateCloudFrontOriginAccessIdentityError>
Source§impl Client
impl Client
Sourcepub fn update_continuous_deployment_policy(
&self,
) -> UpdateContinuousDeploymentPolicyFluentBuilder
pub fn update_continuous_deployment_policy( &self, ) -> UpdateContinuousDeploymentPolicyFluentBuilder
Constructs a fluent builder for the UpdateContinuousDeploymentPolicy operation.
- The fluent builder is configurable:
continuous_deployment_policy_config(ContinuousDeploymentPolicyConfig)/set_continuous_deployment_policy_config(Option<ContinuousDeploymentPolicyConfig>):
required: trueThe continuous deployment policy configuration.
id(impl Into<String>)/set_id(Option<String>):
required: trueThe identifier of the continuous deployment policy that you are updating.
if_match(impl Into<String>)/set_if_match(Option<String>):
required: falseThe current version (
ETagvalue) of the continuous deployment policy that you are updating.
- On success, responds with
UpdateContinuousDeploymentPolicyOutputwith field(s):continuous_deployment_policy(Option<ContinuousDeploymentPolicy>):A continuous deployment policy.
e_tag(Option<String>):The version identifier for the current version of the continuous deployment policy.
- On failure, responds with
SdkError<UpdateContinuousDeploymentPolicyError>
Source§impl Client
impl Client
Sourcepub fn update_distribution(&self) -> UpdateDistributionFluentBuilder
pub fn update_distribution(&self) -> UpdateDistributionFluentBuilder
Constructs a fluent builder for the UpdateDistribution operation.
- The fluent builder is configurable:
distribution_config(DistributionConfig)/set_distribution_config(Option<DistributionConfig>):
required: trueThe distribution’s configuration information.
id(impl Into<String>)/set_id(Option<String>):
required: trueThe distribution’s id.
if_match(impl Into<String>)/set_if_match(Option<String>):
required: falseThe value of the
ETagheader that you received when retrieving the distribution’s configuration. For example:E2QWRUHAPOMQZL.
- On success, responds with
UpdateDistributionOutputwith field(s):distribution(Option<Distribution>):The distribution’s information.
e_tag(Option<String>):The current version of the configuration. For example:
E2QWRUHAPOMQZL.
- On failure, responds with
SdkError<UpdateDistributionError>
Source§impl Client
impl Client
Sourcepub fn update_distribution_with_staging_config(
&self,
) -> UpdateDistributionWithStagingConfigFluentBuilder
pub fn update_distribution_with_staging_config( &self, ) -> UpdateDistributionWithStagingConfigFluentBuilder
Constructs a fluent builder for the UpdateDistributionWithStagingConfig operation.
- The fluent builder is configurable:
id(impl Into<String>)/set_id(Option<String>):
required: trueThe identifier of the primary distribution to which you are copying a staging distribution’s configuration.
staging_distribution_id(impl Into<String>)/set_staging_distribution_id(Option<String>):
required: falseThe identifier of the staging distribution whose configuration you are copying to the primary distribution.
if_match(impl Into<String>)/set_if_match(Option<String>):
required: falseThe current versions (
ETagvalues) of both primary and staging distributions. Provide these in the following format:<primary ETag>, <staging ETag>
- On success, responds with
UpdateDistributionWithStagingConfigOutputwith field(s):distribution(Option<Distribution>):A distribution tells CloudFront where you want content to be delivered from, and the details about how to track and manage content delivery.
e_tag(Option<String>):The current version of the primary distribution (after it’s updated).
- On failure, responds with
SdkError<UpdateDistributionWithStagingConfigError>
Source§impl Client
impl Client
Sourcepub fn update_field_level_encryption_config(
&self,
) -> UpdateFieldLevelEncryptionConfigFluentBuilder
pub fn update_field_level_encryption_config( &self, ) -> UpdateFieldLevelEncryptionConfigFluentBuilder
Constructs a fluent builder for the UpdateFieldLevelEncryptionConfig operation.
- The fluent builder is configurable:
field_level_encryption_config(FieldLevelEncryptionConfig)/set_field_level_encryption_config(Option<FieldLevelEncryptionConfig>):
required: trueRequest to update a field-level encryption configuration.
id(impl Into<String>)/set_id(Option<String>):
required: trueThe ID of the configuration you want to update.
if_match(impl Into<String>)/set_if_match(Option<String>):
required: falseThe value of the
ETagheader that you received when retrieving the configuration identity to update. For example:E2QWRUHAPOMQZL.
- On success, responds with
UpdateFieldLevelEncryptionConfigOutputwith field(s):field_level_encryption(Option<FieldLevelEncryption>):Return the results of updating the configuration.
e_tag(Option<String>):The value of the
ETagheader that you received when updating the configuration. For example:E2QWRUHAPOMQZL.
- On failure, responds with
SdkError<UpdateFieldLevelEncryptionConfigError>
Source§impl Client
impl Client
Sourcepub fn update_field_level_encryption_profile(
&self,
) -> UpdateFieldLevelEncryptionProfileFluentBuilder
pub fn update_field_level_encryption_profile( &self, ) -> UpdateFieldLevelEncryptionProfileFluentBuilder
Constructs a fluent builder for the UpdateFieldLevelEncryptionProfile operation.
- The fluent builder is configurable:
field_level_encryption_profile_config(FieldLevelEncryptionProfileConfig)/set_field_level_encryption_profile_config(Option<FieldLevelEncryptionProfileConfig>):
required: trueRequest to update a field-level encryption profile.
id(impl Into<String>)/set_id(Option<String>):
required: trueThe ID of the field-level encryption profile request.
if_match(impl Into<String>)/set_if_match(Option<String>):
required: falseThe value of the
ETagheader that you received when retrieving the profile identity to update. For example:E2QWRUHAPOMQZL.
- On success, responds with
UpdateFieldLevelEncryptionProfileOutputwith field(s):field_level_encryption_profile(Option<FieldLevelEncryptionProfile>):Return the results of updating the profile.
e_tag(Option<String>):The result of the field-level encryption profile request.
- On failure, responds with
SdkError<UpdateFieldLevelEncryptionProfileError>
Source§impl Client
impl Client
Sourcepub fn update_function(&self) -> UpdateFunctionFluentBuilder
pub fn update_function(&self) -> UpdateFunctionFluentBuilder
Constructs a fluent builder for the UpdateFunction operation.
- The fluent builder is configurable:
name(impl Into<String>)/set_name(Option<String>):
required: trueThe name of the function that you are updating.
if_match(impl Into<String>)/set_if_match(Option<String>):
required: trueThe current version (
ETagvalue) of the function that you are updating, which you can get usingDescribeFunction.function_config(FunctionConfig)/set_function_config(Option<FunctionConfig>):
required: trueConfiguration information about the function.
function_code(Blob)/set_function_code(Option<Blob>):
required: trueThe function code. For more information about writing a CloudFront function, see Writing function code for CloudFront Functions in the Amazon CloudFront Developer Guide.
- On success, responds with
UpdateFunctionOutputwith field(s):function_summary(Option<FunctionSummary>):Contains configuration information and metadata about a CloudFront function.
e_tag(Option<String>):The version identifier for the current version of the CloudFront function.
- On failure, responds with
SdkError<UpdateFunctionError>
Source§impl Client
impl Client
Sourcepub fn update_key_group(&self) -> UpdateKeyGroupFluentBuilder
pub fn update_key_group(&self) -> UpdateKeyGroupFluentBuilder
Constructs a fluent builder for the UpdateKeyGroup operation.
- The fluent builder is configurable:
key_group_config(KeyGroupConfig)/set_key_group_config(Option<KeyGroupConfig>):
required: trueThe key group configuration.
id(impl Into<String>)/set_id(Option<String>):
required: trueThe identifier of the key group that you are updating.
if_match(impl Into<String>)/set_if_match(Option<String>):
required: falseThe version of the key group that you are updating. The version is the key group’s
ETagvalue.
- On success, responds with
UpdateKeyGroupOutputwith field(s):key_group(Option<KeyGroup>):The key group that was just updated.
e_tag(Option<String>):The identifier for this version of the key group.
- On failure, responds with
SdkError<UpdateKeyGroupError>
Source§impl Client
impl Client
Sourcepub fn update_key_value_store(&self) -> UpdateKeyValueStoreFluentBuilder
pub fn update_key_value_store(&self) -> UpdateKeyValueStoreFluentBuilder
Constructs a fluent builder for the UpdateKeyValueStore operation.
- The fluent builder is configurable:
name(impl Into<String>)/set_name(Option<String>):
required: trueThe name of the key value store to update.
comment(impl Into<String>)/set_comment(Option<String>):
required: trueThe comment of the key value store to update.
if_match(impl Into<String>)/set_if_match(Option<String>):
required: trueThe key value store to update, if a match occurs.
- On success, responds with
UpdateKeyValueStoreOutputwith field(s):key_value_store(Option<KeyValueStore>):The resulting key value store to update.
e_tag(Option<String>):The
ETagof the resulting key value store.
- On failure, responds with
SdkError<UpdateKeyValueStoreError>
Source§impl Client
impl Client
Sourcepub fn update_origin_access_control(
&self,
) -> UpdateOriginAccessControlFluentBuilder
pub fn update_origin_access_control( &self, ) -> UpdateOriginAccessControlFluentBuilder
Constructs a fluent builder for the UpdateOriginAccessControl operation.
- The fluent builder is configurable:
origin_access_control_config(OriginAccessControlConfig)/set_origin_access_control_config(Option<OriginAccessControlConfig>):
required: trueAn origin access control.
id(impl Into<String>)/set_id(Option<String>):
required: trueThe unique identifier of the origin access control that you are updating.
if_match(impl Into<String>)/set_if_match(Option<String>):
required: falseThe current version (
ETagvalue) of the origin access control that you are updating.
- On success, responds with
UpdateOriginAccessControlOutputwith field(s):origin_access_control(Option<OriginAccessControl>):The origin access control after it has been updated.
e_tag(Option<String>):The new version of the origin access control after it has been updated.
- On failure, responds with
SdkError<UpdateOriginAccessControlError>
Source§impl Client
impl Client
Sourcepub fn update_origin_request_policy(
&self,
) -> UpdateOriginRequestPolicyFluentBuilder
pub fn update_origin_request_policy( &self, ) -> UpdateOriginRequestPolicyFluentBuilder
Constructs a fluent builder for the UpdateOriginRequestPolicy operation.
- The fluent builder is configurable:
origin_request_policy_config(OriginRequestPolicyConfig)/set_origin_request_policy_config(Option<OriginRequestPolicyConfig>):
required: trueAn origin request policy configuration.
id(impl Into<String>)/set_id(Option<String>):
required: trueThe unique identifier for the origin request policy that you are updating. The identifier is returned in a cache behavior’s
OriginRequestPolicyIdfield in the response toGetDistributionConfig.if_match(impl Into<String>)/set_if_match(Option<String>):
required: falseThe version of the origin request policy that you are updating. The version is returned in the origin request policy’s
ETagfield in the response toGetOriginRequestPolicyConfig.
- On success, responds with
UpdateOriginRequestPolicyOutputwith field(s):origin_request_policy(Option<OriginRequestPolicy>):An origin request policy.
e_tag(Option<String>):The current version of the origin request policy.
- On failure, responds with
SdkError<UpdateOriginRequestPolicyError>
Source§impl Client
impl Client
Sourcepub fn update_public_key(&self) -> UpdatePublicKeyFluentBuilder
pub fn update_public_key(&self) -> UpdatePublicKeyFluentBuilder
Constructs a fluent builder for the UpdatePublicKey operation.
- The fluent builder is configurable:
public_key_config(PublicKeyConfig)/set_public_key_config(Option<PublicKeyConfig>):
required: trueA public key configuration.
id(impl Into<String>)/set_id(Option<String>):
required: trueThe identifier of the public key that you are updating.
if_match(impl Into<String>)/set_if_match(Option<String>):
required: falseThe value of the
ETagheader that you received when retrieving the public key to update. For example:E2QWRUHAPOMQZL.
- On success, responds with
UpdatePublicKeyOutputwith field(s):public_key(Option<PublicKey>):The public key.
e_tag(Option<String>):The identifier of the current version of the public key.
- On failure, responds with
SdkError<UpdatePublicKeyError>
Source§impl Client
impl Client
Sourcepub fn update_realtime_log_config(&self) -> UpdateRealtimeLogConfigFluentBuilder
pub fn update_realtime_log_config(&self) -> UpdateRealtimeLogConfigFluentBuilder
Constructs a fluent builder for the UpdateRealtimeLogConfig operation.
- The fluent builder is configurable:
end_points(EndPoint)/set_end_points(Option<Vec::<EndPoint>>):
required: falseContains information about the Amazon Kinesis data stream where you are sending real-time log data.
fields(impl Into<String>)/set_fields(Option<Vec::<String>>):
required: falseA list of fields to include in each real-time log record.
For more information about fields, see Real-time log configuration fields in the Amazon CloudFront Developer Guide.
name(impl Into<String>)/set_name(Option<String>):
required: falseThe name for this real-time log configuration.
arn(impl Into<String>)/set_arn(Option<String>):
required: falseThe Amazon Resource Name (ARN) for this real-time log configuration.
sampling_rate(i64)/set_sampling_rate(Option<i64>):
required: falseThe sampling rate for this real-time log configuration. The sampling rate determines the percentage of viewer requests that are represented in the real-time log data. You must provide an integer between 1 and 100, inclusive.
- On success, responds with
UpdateRealtimeLogConfigOutputwith field(s):realtime_log_config(Option<RealtimeLogConfig>):A real-time log configuration.
- On failure, responds with
SdkError<UpdateRealtimeLogConfigError>
Source§impl Client
impl Client
Sourcepub fn update_response_headers_policy(
&self,
) -> UpdateResponseHeadersPolicyFluentBuilder
pub fn update_response_headers_policy( &self, ) -> UpdateResponseHeadersPolicyFluentBuilder
Constructs a fluent builder for the UpdateResponseHeadersPolicy operation.
- The fluent builder is configurable:
response_headers_policy_config(ResponseHeadersPolicyConfig)/set_response_headers_policy_config(Option<ResponseHeadersPolicyConfig>):
required: trueA response headers policy configuration.
id(impl Into<String>)/set_id(Option<String>):
required: trueThe identifier for the response headers policy that you are updating.
if_match(impl Into<String>)/set_if_match(Option<String>):
required: falseThe version of the response headers policy that you are updating.
The version is returned in the cache policy’s
ETagfield in the response toGetResponseHeadersPolicyConfig.
- On success, responds with
UpdateResponseHeadersPolicyOutputwith field(s):response_headers_policy(Option<ResponseHeadersPolicy>):A response headers policy.
e_tag(Option<String>):The current version of the response headers policy.
- On failure, responds with
SdkError<UpdateResponseHeadersPolicyError>
Source§impl Client
impl Client
Sourcepub fn update_streaming_distribution(
&self,
) -> UpdateStreamingDistributionFluentBuilder
pub fn update_streaming_distribution( &self, ) -> UpdateStreamingDistributionFluentBuilder
Constructs a fluent builder for the UpdateStreamingDistribution operation.
- The fluent builder is configurable:
streaming_distribution_config(StreamingDistributionConfig)/set_streaming_distribution_config(Option<StreamingDistributionConfig>):
required: trueThe streaming distribution’s configuration information.
id(impl Into<String>)/set_id(Option<String>):
required: trueThe streaming distribution’s id.
if_match(impl Into<String>)/set_if_match(Option<String>):
required: falseThe value of the
ETagheader that you received when retrieving the streaming distribution’s configuration. For example:E2QWRUHAPOMQZL.
- On success, responds with
UpdateStreamingDistributionOutputwith field(s):streaming_distribution(Option<StreamingDistribution>):The streaming distribution’s information.
e_tag(Option<String>):The current version of the configuration. For example:
E2QWRUHAPOMQZL.
- On failure, responds with
SdkError<UpdateStreamingDistributionError>
Source§impl Client
impl Client
Sourcepub fn update_vpc_origin(&self) -> UpdateVpcOriginFluentBuilder
pub fn update_vpc_origin(&self) -> UpdateVpcOriginFluentBuilder
Constructs a fluent builder for the UpdateVpcOrigin operation.
- The fluent builder is configurable:
vpc_origin_endpoint_config(VpcOriginEndpointConfig)/set_vpc_origin_endpoint_config(Option<VpcOriginEndpointConfig>):
required: trueThe VPC origin endpoint configuration.
id(impl Into<String>)/set_id(Option<String>):
required: trueThe VPC origin ID.
if_match(impl Into<String>)/set_if_match(Option<String>):
required: trueThe VPC origin to update, if a match occurs.
- On success, responds with
UpdateVpcOriginOutputwith field(s):vpc_origin(Option<VpcOrigin>):The VPC origin.
e_tag(Option<String>):The VPC origin ETag.
- On failure, responds with
SdkError<UpdateVpcOriginError>
Source§impl Client
impl Client
Sourcepub fn from_conf(conf: Config) -> Self
pub fn from_conf(conf: Config) -> Self
Creates a new client from the service Config.
§Panics
This method will panic in the following cases:
- Retries or timeouts are enabled without a
sleep_implconfigured. - Identity caching is enabled without a
sleep_implandtime_sourceconfigured. - No
behavior_versionis provided.
The panic message for each of these will have instructions on how to resolve them.
Source§impl Client
impl Client
Sourcepub fn new(sdk_config: &SdkConfig) -> Self
pub fn new(sdk_config: &SdkConfig) -> Self
Creates a new client from an SDK Config.
§Panics
- This method will panic if the
sdk_configis missing an async sleep implementation. If you experience this panic, set thesleep_implon the Config passed into this function to fix it. - This method will panic if the
sdk_configis missing an HTTP connector. If you experience this panic, set thehttp_connectoron the Config passed into this function to fix it. - This method will panic if no
BehaviorVersionis provided. If you experience this panic, setbehavior_versionon the Config or enable thebehavior-version-latestCargo feature.
Trait Implementations§
Source§impl Waiters for Client
impl Waiters for Client
Source§fn wait_until_distribution_deployed(&self) -> DistributionDeployedFluentBuilder
fn wait_until_distribution_deployed(&self) -> DistributionDeployedFluentBuilder
Source§fn wait_until_invalidation_completed(
&self,
) -> InvalidationCompletedFluentBuilder
fn wait_until_invalidation_completed( &self, ) -> InvalidationCompletedFluentBuilder
Source§fn wait_until_streaming_distribution_deployed(
&self,
) -> StreamingDistributionDeployedFluentBuilder
fn wait_until_streaming_distribution_deployed( &self, ) -> StreamingDistributionDeployedFluentBuilder
Auto Trait Implementations§
impl Freeze for Client
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
Source§fn fg(&self, value: Color) -> Painted<&T>
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the foreground set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red() and
green(), which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg():
use yansi::{Paint, Color};
painted.fg(Color::White);Set foreground color to white using white().
use yansi::Paint;
painted.white();Source§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
Source§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
Source§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
Source§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
Source§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
Source§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
Source§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
Source§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
Source§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the background set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red() and
on_green(), which have the same functionality but
are pithier.
§Example
Set background color to red using fg():
use yansi::{Paint, Color};
painted.bg(Color::Red);Set background color to red using on_red().
use yansi::Paint;
painted.on_red();Source§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
Source§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
Source§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
Source§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
Source§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
Source§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
Source§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
Source§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
Source§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
Source§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
Source§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling Attribute value.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold() and
underline(), which have the same functionality
but are pithier.
§Example
Make text bold using attr():
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);Make text bold using using bold().
use yansi::Paint;
painted.bold();Source§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
Source§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi Quirk value.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask() and
wrap(), which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk():
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);Enable wrapping using wrap().
use yansi::Paint;
painted.wrap();Source§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear().
The clear() method will be removed in a future release.
fn clear(&self) -> Painted<&T>
resetting() due to conflicts with Vec::clear().
The clear() method will be removed in a future release.Source§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the Condition value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted only when both stdout and stderr are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);