Struct aws_sdk_cloudfront::client::Client
source · [−]pub struct Client<C = DynConnector, M = DefaultMiddleware, R = Standard> { /* private fields */ }
Expand description
Client for Amazon CloudFront
Client for invoking operations on Amazon CloudFront. Each operation on Amazon CloudFront is a method on this
this struct. .send()
MUST be invoked on the generated operations to dispatch the request to the service.
Examples
Constructing a client and invoking an operation
// create a shared configuration. This can be used & shared between multiple service clients.
let shared_config = aws_config::load_from_env().await;
let client = aws_sdk_cloudfront::Client::new(&shared_config);
// invoke an operation
/* let rsp = client
.<operation_name>().
.<param>("some value")
.send().await; */
Constructing a client with custom configuration
use aws_config::RetryConfig;
let shared_config = aws_config::load_from_env().await;
let config = aws_sdk_cloudfront::config::Builder::from(&shared_config)
.retry_config(RetryConfig::disabled())
.build();
let client = aws_sdk_cloudfront::Client::from_conf(config);
Implementations
impl<C, M, R> Client<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> Client<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
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>)
:The ID of the distribution that you’re associating the alias with.
alias(impl Into<String>)
/set_alias(Option<String>)
:The alias (also known as a CNAME) to add to the target distribution.
- On success, responds with
AssociateAliasOutput
- On failure, responds with
SdkError<AssociateAliasError>
Constructs a fluent builder for the CreateCachePolicy
operation.
- The fluent builder is configurable:
cache_policy_config(CachePolicyConfig)
/set_cache_policy_config(Option<CachePolicyConfig>)
:A cache policy configuration.
- On success, responds with
CreateCachePolicyOutput
with 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>
pub fn create_cloud_front_origin_access_identity(
&self
) -> CreateCloudFrontOriginAccessIdentity<C, M, R>
pub fn create_cloud_front_origin_access_identity(
&self
) -> CreateCloudFrontOriginAccessIdentity<C, M, R>
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>)
:The current configuration information for the identity.
- On success, responds with
CreateCloudFrontOriginAccessIdentityOutput
with 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>
Constructs a fluent builder for the CreateDistribution
operation.
- The fluent builder is configurable:
distribution_config(DistributionConfig)
/set_distribution_config(Option<DistributionConfig>)
:The distribution’s configuration information.
- On success, responds with
CreateDistributionOutput
with 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>
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>)
:The distribution’s configuration information.
- On success, responds with
CreateDistributionWithTagsOutput
with 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>
pub fn create_field_level_encryption_config(
&self
) -> CreateFieldLevelEncryptionConfig<C, M, R>
pub fn create_field_level_encryption_config(
&self
) -> CreateFieldLevelEncryptionConfig<C, M, R>
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>)
:The request to create a new field-level encryption configuration.
- On success, responds with
CreateFieldLevelEncryptionConfigOutput
with 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>
pub fn create_field_level_encryption_profile(
&self
) -> CreateFieldLevelEncryptionProfile<C, M, R>
pub fn create_field_level_encryption_profile(
&self
) -> CreateFieldLevelEncryptionProfile<C, M, R>
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>)
:The request to create a field-level encryption profile.
- On success, responds with
CreateFieldLevelEncryptionProfileOutput
with 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>
Constructs a fluent builder for the CreateFunction
operation.
- The fluent builder is configurable:
name(impl Into<String>)
/set_name(Option<String>)
:A name to identify the function.
function_config(FunctionConfig)
/set_function_config(Option<FunctionConfig>)
:Configuration information about the function, including an optional comment and the function’s runtime.
function_code(Blob)
/set_function_code(Option<Blob>)
:The 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
CreateFunctionOutput
with 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>
Constructs a fluent builder for the CreateInvalidation
operation.
- The fluent builder is configurable:
distribution_id(impl Into<String>)
/set_distribution_id(Option<String>)
:The distribution’s id.
invalidation_batch(InvalidationBatch)
/set_invalidation_batch(Option<InvalidationBatch>)
:The batch information for the invalidation.
- On success, responds with
CreateInvalidationOutput
with 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>
Constructs a fluent builder for the CreateKeyGroup
operation.
- The fluent builder is configurable:
key_group_config(KeyGroupConfig)
/set_key_group_config(Option<KeyGroupConfig>)
:A key group configuration.
- On success, responds with
CreateKeyGroupOutput
with 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>
Constructs a fluent builder for the CreateMonitoringSubscription
operation.
- The fluent builder is configurable:
distribution_id(impl Into<String>)
/set_distribution_id(Option<String>)
:The ID of the distribution that you are enabling metrics for.
monitoring_subscription(MonitoringSubscription)
/set_monitoring_subscription(Option<MonitoringSubscription>)
:A monitoring subscription. This structure contains information about whether additional CloudWatch metrics are enabled for a given CloudFront distribution.
- On success, responds with
CreateMonitoringSubscriptionOutput
with 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>
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>)
:An origin request policy configuration.
- On success, responds with
CreateOriginRequestPolicyOutput
with 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>
Constructs a fluent builder for the CreatePublicKey
operation.
- The fluent builder is configurable:
public_key_config(PublicKeyConfig)
/set_public_key_config(Option<PublicKeyConfig>)
:A CloudFront public key configuration.
- On success, responds with
CreatePublicKeyOutput
with 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>
Constructs a fluent builder for the CreateRealtimeLogConfig
operation.
- The fluent builder is configurable:
end_points(Vec<EndPoint>)
/set_end_points(Option<Vec<EndPoint>>)
:Contains information about the Amazon Kinesis data stream where you are sending real-time log data.
fields(Vec<String>)
/set_fields(Option<Vec<String>>)
:A 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>)
:A unique name to identify this real-time log configuration.
sampling_rate(i64)
/set_sampling_rate(Option<i64>)
:The 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
CreateRealtimeLogConfigOutput
with field(s):realtime_log_config(Option<RealtimeLogConfig>)
:A real-time log configuration.
- On failure, responds with
SdkError<CreateRealtimeLogConfigError>
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>)
:Contains metadata about the response headers policy, and a set of configurations that specify the response headers.
- On success, responds with
CreateResponseHeadersPolicyOutput
with 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>
Constructs a fluent builder for the CreateStreamingDistribution
operation.
- The fluent builder is configurable:
streaming_distribution_config(StreamingDistributionConfig)
/set_streaming_distribution_config(Option<StreamingDistributionConfig>)
:The streaming distribution’s configuration information.
- On success, responds with
CreateStreamingDistributionOutput
with 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>
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>)
:The streaming distribution’s configuration information.
- On success, responds with
CreateStreamingDistributionWithTagsOutput
with 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>
Constructs a fluent builder for the DeleteCachePolicy
operation.
- The fluent builder is configurable:
id(impl Into<String>)
/set_id(Option<String>)
:The 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>)
:The version of the cache policy that you are deleting. The version is the cache policy’s
ETag
value, which you can get usingListCachePolicies
,GetCachePolicy
, orGetCachePolicyConfig
.
- On success, responds with
DeleteCachePolicyOutput
- On failure, responds with
SdkError<DeleteCachePolicyError>
pub fn delete_cloud_front_origin_access_identity(
&self
) -> DeleteCloudFrontOriginAccessIdentity<C, M, R>
pub fn delete_cloud_front_origin_access_identity(
&self
) -> DeleteCloudFrontOriginAccessIdentity<C, M, R>
Constructs a fluent builder for the DeleteCloudFrontOriginAccessIdentity
operation.
- The fluent builder is configurable:
id(impl Into<String>)
/set_id(Option<String>)
:The origin access identity’s ID.
if_match(impl Into<String>)
/set_if_match(Option<String>)
:The value of the
ETag
header you received from a previousGET
orPUT
request. For example:E2QWRUHAPOMQZL
.
- On success, responds with
DeleteCloudFrontOriginAccessIdentityOutput
- On failure, responds with
SdkError<DeleteCloudFrontOriginAccessIdentityError>
Constructs a fluent builder for the DeleteDistribution
operation.
- The fluent builder is configurable:
id(impl Into<String>)
/set_id(Option<String>)
:The distribution ID.
if_match(impl Into<String>)
/set_if_match(Option<String>)
:The value of the
ETag
header that you received when you disabled the distribution. For example:E2QWRUHAPOMQZL
.
- On success, responds with
DeleteDistributionOutput
- On failure, responds with
SdkError<DeleteDistributionError>
pub fn delete_field_level_encryption_config(
&self
) -> DeleteFieldLevelEncryptionConfig<C, M, R>
pub fn delete_field_level_encryption_config(
&self
) -> DeleteFieldLevelEncryptionConfig<C, M, R>
Constructs a fluent builder for the DeleteFieldLevelEncryptionConfig
operation.
- The fluent builder is configurable:
id(impl Into<String>)
/set_id(Option<String>)
:The ID of the configuration you want to delete from CloudFront.
if_match(impl Into<String>)
/set_if_match(Option<String>)
:The value of the
ETag
header that you received when retrieving the configuration identity to delete. For example:E2QWRUHAPOMQZL
.
- On success, responds with
DeleteFieldLevelEncryptionConfigOutput
- On failure, responds with
SdkError<DeleteFieldLevelEncryptionConfigError>
pub fn delete_field_level_encryption_profile(
&self
) -> DeleteFieldLevelEncryptionProfile<C, M, R>
pub fn delete_field_level_encryption_profile(
&self
) -> DeleteFieldLevelEncryptionProfile<C, M, R>
Constructs a fluent builder for the DeleteFieldLevelEncryptionProfile
operation.
- The fluent builder is configurable:
id(impl Into<String>)
/set_id(Option<String>)
:Request the ID of the profile you want to delete from CloudFront.
if_match(impl Into<String>)
/set_if_match(Option<String>)
:The value of the
ETag
header that you received when retrieving the profile to delete. For example:E2QWRUHAPOMQZL
.
- On success, responds with
DeleteFieldLevelEncryptionProfileOutput
- On failure, responds with
SdkError<DeleteFieldLevelEncryptionProfileError>
Constructs a fluent builder for the DeleteFunction
operation.
- The fluent builder is configurable:
name(impl Into<String>)
/set_name(Option<String>)
:The name of the function that you are deleting.
if_match(impl Into<String>)
/set_if_match(Option<String>)
:The current version (
ETag
value) of the function that you are deleting, which you can get usingDescribeFunction
.
- On success, responds with
DeleteFunctionOutput
- On failure, responds with
SdkError<DeleteFunctionError>
Constructs a fluent builder for the DeleteKeyGroup
operation.
- The fluent builder is configurable:
id(impl Into<String>)
/set_id(Option<String>)
:The 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>)
:The version of the key group that you are deleting. The version is the key group’s
ETag
value. To get theETag
, useGetKeyGroup
orGetKeyGroupConfig
.
- On success, responds with
DeleteKeyGroupOutput
- On failure, responds with
SdkError<DeleteKeyGroupError>
Constructs a fluent builder for the DeleteMonitoringSubscription
operation.
- The fluent builder is configurable:
distribution_id(impl Into<String>)
/set_distribution_id(Option<String>)
:The ID of the distribution that you are disabling metrics for.
- On success, responds with
DeleteMonitoringSubscriptionOutput
- On failure, responds with
SdkError<DeleteMonitoringSubscriptionError>
Constructs a fluent builder for the DeleteOriginRequestPolicy
operation.
- The fluent builder is configurable:
id(impl Into<String>)
/set_id(Option<String>)
:The 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>)
:The version of the origin request policy that you are deleting. The version is the origin request policy’s
ETag
value, which you can get usingListOriginRequestPolicies
,GetOriginRequestPolicy
, orGetOriginRequestPolicyConfig
.
- On success, responds with
DeleteOriginRequestPolicyOutput
- On failure, responds with
SdkError<DeleteOriginRequestPolicyError>
Constructs a fluent builder for the DeletePublicKey
operation.
- The fluent builder is configurable:
id(impl Into<String>)
/set_id(Option<String>)
:The ID of the public key you want to remove from CloudFront.
if_match(impl Into<String>)
/set_if_match(Option<String>)
:The value of the
ETag
header 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>
Constructs a fluent builder for the DeleteRealtimeLogConfig
operation.
- The fluent builder is configurable:
name(impl Into<String>)
/set_name(Option<String>)
:The name of the real-time log configuration to delete.
arn(impl Into<String>)
/set_arn(Option<String>)
:The Amazon Resource Name (ARN) of the real-time log configuration to delete.
- On success, responds with
DeleteRealtimeLogConfigOutput
- On failure, responds with
SdkError<DeleteRealtimeLogConfigError>
Constructs a fluent builder for the DeleteResponseHeadersPolicy
operation.
- The fluent builder is configurable:
id(impl Into<String>)
/set_id(Option<String>)
:The 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>)
:The version of the response headers policy that you are deleting.
The version is the response headers policy’s
ETag
value, which you can get usingListResponseHeadersPolicies
,GetResponseHeadersPolicy
, orGetResponseHeadersPolicyConfig
.
- On success, responds with
DeleteResponseHeadersPolicyOutput
- On failure, responds with
SdkError<DeleteResponseHeadersPolicyError>
Constructs a fluent builder for the DeleteStreamingDistribution
operation.
- The fluent builder is configurable:
id(impl Into<String>)
/set_id(Option<String>)
:The distribution ID.
if_match(impl Into<String>)
/set_if_match(Option<String>)
:The value of the
ETag
header that you received when you disabled the streaming distribution. For example:E2QWRUHAPOMQZL
.
- On success, responds with
DeleteStreamingDistributionOutput
- On failure, responds with
SdkError<DeleteStreamingDistributionError>
Constructs a fluent builder for the DescribeFunction
operation.
- The fluent builder is configurable:
name(impl Into<String>)
/set_name(Option<String>)
:The name of the function that you are getting information about.
stage(FunctionStage)
/set_stage(Option<FunctionStage>)
:The function’s stage, either
DEVELOPMENT
orLIVE
.
- On success, responds with
DescribeFunctionOutput
with 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>
Constructs a fluent builder for the GetCachePolicy
operation.
- The fluent builder is configurable:
id(impl Into<String>)
/set_id(Option<String>)
:The 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
ListDistributions
orGetDistribution
. If the cache policy is not attached to a cache behavior, you can get the identifier usingListCachePolicies
.
- On success, responds with
GetCachePolicyOutput
with 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>
Constructs a fluent builder for the GetCachePolicyConfig
operation.
- The fluent builder is configurable:
id(impl Into<String>)
/set_id(Option<String>)
:The 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
ListDistributions
orGetDistribution
. If the cache policy is not attached to a cache behavior, you can get the identifier usingListCachePolicies
.
- On success, responds with
GetCachePolicyConfigOutput
with 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>
pub fn get_cloud_front_origin_access_identity(
&self
) -> GetCloudFrontOriginAccessIdentity<C, M, R>
pub fn get_cloud_front_origin_access_identity(
&self
) -> GetCloudFrontOriginAccessIdentity<C, M, R>
Constructs a fluent builder for the GetCloudFrontOriginAccessIdentity
operation.
- The fluent builder is configurable:
id(impl Into<String>)
/set_id(Option<String>)
:The identity’s ID.
- On success, responds with
GetCloudFrontOriginAccessIdentityOutput
with 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>
pub fn get_cloud_front_origin_access_identity_config(
&self
) -> GetCloudFrontOriginAccessIdentityConfig<C, M, R>
pub fn get_cloud_front_origin_access_identity_config(
&self
) -> GetCloudFrontOriginAccessIdentityConfig<C, M, R>
Constructs a fluent builder for the GetCloudFrontOriginAccessIdentityConfig
operation.
- The fluent builder is configurable:
id(impl Into<String>)
/set_id(Option<String>)
:The identity’s ID.
- On success, responds with
GetCloudFrontOriginAccessIdentityConfigOutput
with 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>
Constructs a fluent builder for the GetDistribution
operation.
- The fluent builder is configurable:
id(impl Into<String>)
/set_id(Option<String>)
:The distribution’s ID. If the ID is empty, an empty distribution configuration is returned.
- On success, responds with
GetDistributionOutput
with 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>
Constructs a fluent builder for the GetDistributionConfig
operation.
- The fluent builder is configurable:
id(impl Into<String>)
/set_id(Option<String>)
:The distribution’s ID. If the ID is empty, an empty distribution configuration is returned.
- On success, responds with
GetDistributionConfigOutput
with 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>
Constructs a fluent builder for the GetFieldLevelEncryption
operation.
- The fluent builder is configurable:
id(impl Into<String>)
/set_id(Option<String>)
:Request the ID for the field-level encryption configuration information.
- On success, responds with
GetFieldLevelEncryptionOutput
with 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>
Constructs a fluent builder for the GetFieldLevelEncryptionConfig
operation.
- The fluent builder is configurable:
id(impl Into<String>)
/set_id(Option<String>)
:Request the ID for the field-level encryption configuration information.
- On success, responds with
GetFieldLevelEncryptionConfigOutput
with 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>
Constructs a fluent builder for the GetFieldLevelEncryptionProfile
operation.
- The fluent builder is configurable:
id(impl Into<String>)
/set_id(Option<String>)
:Get the ID for the field-level encryption profile information.
- On success, responds with
GetFieldLevelEncryptionProfileOutput
with 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>
pub fn get_field_level_encryption_profile_config(
&self
) -> GetFieldLevelEncryptionProfileConfig<C, M, R>
pub fn get_field_level_encryption_profile_config(
&self
) -> GetFieldLevelEncryptionProfileConfig<C, M, R>
Constructs a fluent builder for the GetFieldLevelEncryptionProfileConfig
operation.
- The fluent builder is configurable:
id(impl Into<String>)
/set_id(Option<String>)
:Get the ID for the field-level encryption profile configuration information.
- On success, responds with
GetFieldLevelEncryptionProfileConfigOutput
with 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>
Constructs a fluent builder for the GetFunction
operation.
- The fluent builder is configurable:
name(impl Into<String>)
/set_name(Option<String>)
:The name of the function whose code you are getting.
stage(FunctionStage)
/set_stage(Option<FunctionStage>)
:The function’s stage, either
DEVELOPMENT
orLIVE
.
- On success, responds with
GetFunctionOutput
with 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>
Constructs a fluent builder for the GetInvalidation
operation.
- The fluent builder is configurable:
distribution_id(impl Into<String>)
/set_distribution_id(Option<String>)
:The distribution’s ID.
id(impl Into<String>)
/set_id(Option<String>)
:The identifier for the invalidation request, for example,
IDFDVBD632BHDS5
.
- On success, responds with
GetInvalidationOutput
with field(s):invalidation(Option<Invalidation>)
:The invalidation’s information. For more information, see Invalidation Complex Type.
- On failure, responds with
SdkError<GetInvalidationError>
Constructs a fluent builder for the GetKeyGroup
operation.
- The fluent builder is configurable:
id(impl Into<String>)
/set_id(Option<String>)
:The identifier of the key group that you are getting. To get the identifier, use
ListKeyGroups
.
- On success, responds with
GetKeyGroupOutput
with 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>
Constructs a fluent builder for the GetKeyGroupConfig
operation.
- The fluent builder is configurable:
id(impl Into<String>)
/set_id(Option<String>)
:The identifier of the key group whose configuration you are getting. To get the identifier, use
ListKeyGroups
.
- On success, responds with
GetKeyGroupConfigOutput
with 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>
Constructs a fluent builder for the GetMonitoringSubscription
operation.
- The fluent builder is configurable:
distribution_id(impl Into<String>)
/set_distribution_id(Option<String>)
:The ID of the distribution that you are getting metrics information for.
- On success, responds with
GetMonitoringSubscriptionOutput
with 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>
Constructs a fluent builder for the GetOriginRequestPolicy
operation.
- The fluent builder is configurable:
id(impl Into<String>)
/set_id(Option<String>)
:The 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
ListDistributions
orGetDistribution
. If the origin request policy is not attached to a cache behavior, you can get the identifier usingListOriginRequestPolicies
.
- On success, responds with
GetOriginRequestPolicyOutput
with 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>
Constructs a fluent builder for the GetOriginRequestPolicyConfig
operation.
- The fluent builder is configurable:
id(impl Into<String>)
/set_id(Option<String>)
:The 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
ListDistributions
orGetDistribution
. If the origin request policy is not attached to a cache behavior, you can get the identifier usingListOriginRequestPolicies
.
- On success, responds with
GetOriginRequestPolicyConfigOutput
with 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>
Constructs a fluent builder for the GetPublicKey
operation.
- The fluent builder is configurable:
id(impl Into<String>)
/set_id(Option<String>)
:The identifier of the public key you are getting.
- On success, responds with
GetPublicKeyOutput
with 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>
Constructs a fluent builder for the GetPublicKeyConfig
operation.
- The fluent builder is configurable:
id(impl Into<String>)
/set_id(Option<String>)
:The identifier of the public key whose configuration you are getting.
- On success, responds with
GetPublicKeyConfigOutput
with 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>
Constructs a fluent builder for the GetRealtimeLogConfig
operation.
- The fluent builder is configurable:
name(impl Into<String>)
/set_name(Option<String>)
:The name of the real-time log configuration to get.
arn(impl Into<String>)
/set_arn(Option<String>)
:The Amazon Resource Name (ARN) of the real-time log configuration to get.
- On success, responds with
GetRealtimeLogConfigOutput
with field(s):realtime_log_config(Option<RealtimeLogConfig>)
:A real-time log configuration.
- On failure, responds with
SdkError<GetRealtimeLogConfigError>
Constructs a fluent builder for the GetResponseHeadersPolicy
operation.
- The fluent builder is configurable:
id(impl Into<String>)
/set_id(Option<String>)
:The 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
ListDistributions
orGetDistribution
. If the response headers policy is not attached to a cache behavior, you can get the identifier usingListResponseHeadersPolicies
.
- On success, responds with
GetResponseHeadersPolicyOutput
with 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>
Constructs a fluent builder for the GetResponseHeadersPolicyConfig
operation.
- The fluent builder is configurable:
id(impl Into<String>)
/set_id(Option<String>)
:The 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
ListDistributions
orGetDistribution
. If the response headers policy is not attached to a cache behavior, you can get the identifier usingListResponseHeadersPolicies
.
- On success, responds with
GetResponseHeadersPolicyConfigOutput
with 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>
Constructs a fluent builder for the GetStreamingDistribution
operation.
- The fluent builder is configurable:
id(impl Into<String>)
/set_id(Option<String>)
:The streaming distribution’s ID.
- On success, responds with
GetStreamingDistributionOutput
with 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>
Constructs a fluent builder for the GetStreamingDistributionConfig
operation.
- The fluent builder is configurable:
id(impl Into<String>)
/set_id(Option<String>)
:The streaming distribution’s ID.
- On success, responds with
GetStreamingDistributionConfigOutput
with 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>
Constructs a fluent builder for the ListCachePolicies
operation.
- The fluent builder is configurable:
r#type(CachePolicyType)
/set_type(Option<CachePolicyType>)
:A 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>)
:Use 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
NextMarker
from the current page’s response.max_items(i32)
/set_max_items(Option<i32>)
:The maximum number of cache policies that you want in the response.
- On success, responds with
ListCachePoliciesOutput
with field(s):cache_policy_list(Option<CachePolicyList>)
:A list of cache policies.
- On failure, responds with
SdkError<ListCachePoliciesError>
pub fn list_cloud_front_origin_access_identities(
&self
) -> ListCloudFrontOriginAccessIdentities<C, M, R>
pub fn list_cloud_front_origin_access_identities(
&self
) -> ListCloudFrontOriginAccessIdentities<C, M, R>
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>)
:Use 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
Marker
to the value of theNextMarker
from 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>)
:The maximum number of origin access identities you want in the response body.
- On success, responds with
ListCloudFrontOriginAccessIdentitiesOutput
with field(s):cloud_front_origin_access_identity_list(Option<CloudFrontOriginAccessIdentityList>)
:The
CloudFrontOriginAccessIdentityList
type.
- On failure, responds with
SdkError<ListCloudFrontOriginAccessIdentitiesError>
Constructs a fluent builder for the ListConflictingAliases
operation.
- The fluent builder is configurable:
distribution_id(impl Into<String>)
/set_distribution_id(Option<String>)
:The 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>)
:The alias (also called a CNAME) to search for conflicting aliases.
marker(impl Into<String>)
/set_marker(Option<String>)
:Use 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
NextMarker
from the current page’s response.max_items(i32)
/set_max_items(Option<i32>)
:The maximum number of conflicting aliases that you want in the response.
- On success, responds with
ListConflictingAliasesOutput
with field(s):conflicting_aliases_list(Option<ConflictingAliasesList>)
:A list of conflicting aliases.
- On failure, responds with
SdkError<ListConflictingAliasesError>
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>)
:Use 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
Marker
to the value of theNextMarker
from 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>)
:The maximum number of distributions you want in the response body.
- On success, responds with
ListDistributionsOutput
with field(s):distribution_list(Option<DistributionList>)
:The
DistributionList
type.
- On failure, responds with
SdkError<ListDistributionsError>
pub fn list_distributions_by_cache_policy_id(
&self
) -> ListDistributionsByCachePolicyId<C, M, R>
pub fn list_distributions_by_cache_policy_id(
&self
) -> ListDistributionsByCachePolicyId<C, M, R>
Constructs a fluent builder for the ListDistributionsByCachePolicyId
operation.
- The fluent builder is configurable:
marker(impl Into<String>)
/set_marker(Option<String>)
:Use 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
NextMarker
from the current page’s response.max_items(i32)
/set_max_items(Option<i32>)
:The maximum number of distribution IDs that you want in the response.
cache_policy_id(impl Into<String>)
/set_cache_policy_id(Option<String>)
:The ID of the cache policy whose associated distribution IDs you want to list.
- On success, responds with
ListDistributionsByCachePolicyIdOutput
with field(s):distribution_id_list(Option<DistributionIdList>)
:A list of distribution IDs.
- On failure, responds with
SdkError<ListDistributionsByCachePolicyIdError>
Constructs a fluent builder for the ListDistributionsByKeyGroup
operation.
- The fluent builder is configurable:
marker(impl Into<String>)
/set_marker(Option<String>)
:Use 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
NextMarker
from the current page’s response.max_items(i32)
/set_max_items(Option<i32>)
:The maximum number of distribution IDs that you want in the response.
key_group_id(impl Into<String>)
/set_key_group_id(Option<String>)
:The ID of the key group whose associated distribution IDs you are listing.
- On success, responds with
ListDistributionsByKeyGroupOutput
with field(s):distribution_id_list(Option<DistributionIdList>)
:A list of distribution IDs.
- On failure, responds with
SdkError<ListDistributionsByKeyGroupError>
pub fn list_distributions_by_origin_request_policy_id(
&self
) -> ListDistributionsByOriginRequestPolicyId<C, M, R>
pub fn list_distributions_by_origin_request_policy_id(
&self
) -> ListDistributionsByOriginRequestPolicyId<C, M, R>
Constructs a fluent builder for the ListDistributionsByOriginRequestPolicyId
operation.
- The fluent builder is configurable:
marker(impl Into<String>)
/set_marker(Option<String>)
:Use 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
NextMarker
from the current page’s response.max_items(i32)
/set_max_items(Option<i32>)
:The 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>)
:The ID of the origin request policy whose associated distribution IDs you want to list.
- On success, responds with
ListDistributionsByOriginRequestPolicyIdOutput
with field(s):distribution_id_list(Option<DistributionIdList>)
:A list of distribution IDs.
- On failure, responds with
SdkError<ListDistributionsByOriginRequestPolicyIdError>
pub fn list_distributions_by_realtime_log_config(
&self
) -> ListDistributionsByRealtimeLogConfig<C, M, R>
pub fn list_distributions_by_realtime_log_config(
&self
) -> ListDistributionsByRealtimeLogConfig<C, M, R>
Constructs a fluent builder for the ListDistributionsByRealtimeLogConfig
operation.
- The fluent builder is configurable:
marker(impl Into<String>)
/set_marker(Option<String>)
:Use 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
NextMarker
from the current page’s response.max_items(i32)
/set_max_items(Option<i32>)
:The maximum number of distributions that you want in the response.
realtime_log_config_name(impl Into<String>)
/set_realtime_log_config_name(Option<String>)
:The 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>)
:The Amazon Resource Name (ARN) of the real-time log configuration whose associated distributions you want to list.
- On success, responds with
ListDistributionsByRealtimeLogConfigOutput
with field(s):distribution_list(Option<DistributionList>)
:A distribution list.
- On failure, responds with
SdkError<ListDistributionsByRealtimeLogConfigError>
pub fn list_distributions_by_response_headers_policy_id(
&self
) -> ListDistributionsByResponseHeadersPolicyId<C, M, R>
pub fn list_distributions_by_response_headers_policy_id(
&self
) -> ListDistributionsByResponseHeadersPolicyId<C, M, R>
Constructs a fluent builder for the ListDistributionsByResponseHeadersPolicyId
operation.
- The fluent builder is configurable:
marker(impl Into<String>)
/set_marker(Option<String>)
:Use 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
NextMarker
from the current page’s response.max_items(i32)
/set_max_items(Option<i32>)
:The 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>)
:The ID of the response headers policy whose associated distribution IDs you want to list.
- On success, responds with
ListDistributionsByResponseHeadersPolicyIdOutput
with field(s):distribution_id_list(Option<DistributionIdList>)
:A list of distribution IDs.
- On failure, responds with
SdkError<ListDistributionsByResponseHeadersPolicyIdError>
Constructs a fluent builder for the ListDistributionsByWebACLId
operation.
- The fluent builder is configurable:
marker(impl Into<String>)
/set_marker(Option<String>)
:Use
Marker
andMaxItems
to control pagination of results. If you have more thanMaxItems
distributions that satisfy the request, the response includes aNextMarker
element. To get the next page of results, submit another request. For the value ofMarker
, specify the value ofNextMarker
from the last response. (For the first request, omitMarker
.)max_items(i32)
/set_max_items(Option<i32>)
:The 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>)
:The 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.
- On success, responds with
ListDistributionsByWebAclIdOutput
with field(s):distribution_list(Option<DistributionList>)
:The
DistributionList
type.
- On failure, responds with
SdkError<ListDistributionsByWebACLIdError>
pub fn list_field_level_encryption_configs(
&self
) -> ListFieldLevelEncryptionConfigs<C, M, R>
pub fn list_field_level_encryption_configs(
&self
) -> ListFieldLevelEncryptionConfigs<C, M, R>
Constructs a fluent builder for the ListFieldLevelEncryptionConfigs
operation.
- The fluent builder is configurable:
marker(impl Into<String>)
/set_marker(Option<String>)
:Use 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
Marker
to the value of theNextMarker
from 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>)
:The maximum number of field-level encryption configurations you want in the response body.
- On success, responds with
ListFieldLevelEncryptionConfigsOutput
with 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>
pub fn list_field_level_encryption_profiles(
&self
) -> ListFieldLevelEncryptionProfiles<C, M, R>
pub fn list_field_level_encryption_profiles(
&self
) -> ListFieldLevelEncryptionProfiles<C, M, R>
Constructs a fluent builder for the ListFieldLevelEncryptionProfiles
operation.
- The fluent builder is configurable:
marker(impl Into<String>)
/set_marker(Option<String>)
:Use 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
Marker
to the value of theNextMarker
from 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>)
:The maximum number of field-level encryption profiles you want in the response body.
- On success, responds with
ListFieldLevelEncryptionProfilesOutput
with 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>
Constructs a fluent builder for the ListFunctions
operation.
- The fluent builder is configurable:
marker(impl Into<String>)
/set_marker(Option<String>)
:Use 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
NextMarker
from the current page’s response.max_items(i32)
/set_max_items(Option<i32>)
:The maximum number of functions that you want in the response.
stage(FunctionStage)
/set_stage(Option<FunctionStage>)
:An optional filter to return only the functions that are in the specified stage, either
DEVELOPMENT
orLIVE
.
- On success, responds with
ListFunctionsOutput
with field(s):function_list(Option<FunctionList>)
:A list of CloudFront functions.
- On failure, responds with
SdkError<ListFunctionsError>
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>)
:The distribution’s ID.
marker(impl Into<String>)
/set_marker(Option<String>)
:Use 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
Marker
to the value of theNextMarker
from 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>)
:The maximum number of invalidation batches that you want in the response body.
- On success, responds with
ListInvalidationsOutput
with field(s):invalidation_list(Option<InvalidationList>)
:Information about invalidation batches.
- On failure, responds with
SdkError<ListInvalidationsError>
Constructs a fluent builder for the ListKeyGroups
operation.
- The fluent builder is configurable:
marker(impl Into<String>)
/set_marker(Option<String>)
:Use 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
NextMarker
from the current page’s response.max_items(i32)
/set_max_items(Option<i32>)
:The maximum number of key groups that you want in the response.
- On success, responds with
ListKeyGroupsOutput
with field(s):key_group_list(Option<KeyGroupList>)
:A list of key groups.
- On failure, responds with
SdkError<ListKeyGroupsError>
Constructs a fluent builder for the ListOriginRequestPolicies
operation.
- The fluent builder is configurable:
r#type(OriginRequestPolicyType)
/set_type(Option<OriginRequestPolicyType>)
:A 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>)
:Use 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
NextMarker
from the current page’s response.max_items(i32)
/set_max_items(Option<i32>)
:The maximum number of origin request policies that you want in the response.
- On success, responds with
ListOriginRequestPoliciesOutput
with field(s):origin_request_policy_list(Option<OriginRequestPolicyList>)
:A list of origin request policies.
- On failure, responds with
SdkError<ListOriginRequestPoliciesError>
Constructs a fluent builder for the ListPublicKeys
operation.
- The fluent builder is configurable:
marker(impl Into<String>)
/set_marker(Option<String>)
:Use 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
Marker
to the value of theNextMarker
from 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>)
:The maximum number of public keys you want in the response body.
- On success, responds with
ListPublicKeysOutput
with 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>
Constructs a fluent builder for the ListRealtimeLogConfigs
operation.
- The fluent builder is configurable:
max_items(i32)
/set_max_items(Option<i32>)
:The maximum number of real-time log configurations that you want in the response.
marker(impl Into<String>)
/set_marker(Option<String>)
:Use 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
NextMarker
from the current page’s response.
- On success, responds with
ListRealtimeLogConfigsOutput
with field(s):realtime_log_configs(Option<RealtimeLogConfigs>)
:A list of real-time log configurations.
- On failure, responds with
SdkError<ListRealtimeLogConfigsError>
Constructs a fluent builder for the ListResponseHeadersPolicies
operation.
- The fluent builder is configurable:
r#type(ResponseHeadersPolicyType)
/set_type(Option<ResponseHeadersPolicyType>)
:A 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>)
:Use 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
NextMarker
from the current page’s response.max_items(i32)
/set_max_items(Option<i32>)
:The maximum number of response headers policies that you want to get in the response.
- On success, responds with
ListResponseHeadersPoliciesOutput
with field(s):response_headers_policy_list(Option<ResponseHeadersPolicyList>)
:A list of response headers policies.
- On failure, responds with
SdkError<ListResponseHeadersPoliciesError>
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>)
:The value that you provided for the
Marker
request parameter.max_items(i32)
/set_max_items(Option<i32>)
:The value that you provided for the
MaxItems
request parameter.
- On success, responds with
ListStreamingDistributionsOutput
with field(s):streaming_distribution_list(Option<StreamingDistributionList>)
:The
StreamingDistributionList
type.
- On failure, responds with
SdkError<ListStreamingDistributionsError>
Constructs a fluent builder for the ListTagsForResource
operation.
- The fluent builder is configurable:
resource(impl Into<String>)
/set_resource(Option<String>)
:An ARN of a CloudFront resource.
- On success, responds with
ListTagsForResourceOutput
with field(s):tags(Option<Tags>)
:A complex type that contains zero or more
Tag
elements.
- On failure, responds with
SdkError<ListTagsForResourceError>
Constructs a fluent builder for the PublishFunction
operation.
- The fluent builder is configurable:
name(impl Into<String>)
/set_name(Option<String>)
:The name of the function that you are publishing.
if_match(impl Into<String>)
/set_if_match(Option<String>)
:The current version (
ETag
value) of the function that you are publishing, which you can get usingDescribeFunction
.
- On success, responds with
PublishFunctionOutput
with field(s):function_summary(Option<FunctionSummary>)
:Contains configuration information and metadata about a CloudFront function.
- On failure, responds with
SdkError<PublishFunctionError>
Constructs a fluent builder for the TagResource
operation.
- The fluent builder is configurable:
resource(impl Into<String>)
/set_resource(Option<String>)
:An ARN of a CloudFront resource.
tags(Tags)
/set_tags(Option<Tags>)
:A complex type that contains zero or more
Tag
elements.
- On success, responds with
TagResourceOutput
- On failure, responds with
SdkError<TagResourceError>
Constructs a fluent builder for the TestFunction
operation.
- The fluent builder is configurable:
name(impl Into<String>)
/set_name(Option<String>)
:The name of the function that you are testing.
if_match(impl Into<String>)
/set_if_match(Option<String>)
:The current version (
ETag
value) of the function that you are testing, which you can get usingDescribeFunction
.stage(FunctionStage)
/set_stage(Option<FunctionStage>)
:The stage of the function that you are testing, either
DEVELOPMENT
orLIVE
.event_object(Blob)
/set_event_object(Option<Blob>)
:The 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
TestFunctionOutput
with 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>
Constructs a fluent builder for the UntagResource
operation.
- The fluent builder is configurable:
resource(impl Into<String>)
/set_resource(Option<String>)
:An ARN of a CloudFront resource.
tag_keys(TagKeys)
/set_tag_keys(Option<TagKeys>)
:A complex type that contains zero or more
Tag
key elements.
- On success, responds with
UntagResourceOutput
- On failure, responds with
SdkError<UntagResourceError>
Constructs a fluent builder for the UpdateCachePolicy
operation.
- The fluent builder is configurable:
cache_policy_config(CachePolicyConfig)
/set_cache_policy_config(Option<CachePolicyConfig>)
:A cache policy configuration.
id(impl Into<String>)
/set_id(Option<String>)
:The unique identifier for the cache policy that you are updating. The identifier is returned in a cache behavior’s
CachePolicyId
field in the response toGetDistributionConfig
.if_match(impl Into<String>)
/set_if_match(Option<String>)
:The version of the cache policy that you are updating. The version is returned in the cache policy’s
ETag
field in the response toGetCachePolicyConfig
.
- On success, responds with
UpdateCachePolicyOutput
with 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>
pub fn update_cloud_front_origin_access_identity(
&self
) -> UpdateCloudFrontOriginAccessIdentity<C, M, R>
pub fn update_cloud_front_origin_access_identity(
&self
) -> UpdateCloudFrontOriginAccessIdentity<C, M, R>
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>)
:The identity’s configuration information.
id(impl Into<String>)
/set_id(Option<String>)
:The identity’s id.
if_match(impl Into<String>)
/set_if_match(Option<String>)
:The value of the
ETag
header that you received when retrieving the identity’s configuration. For example:E2QWRUHAPOMQZL
.
- On success, responds with
UpdateCloudFrontOriginAccessIdentityOutput
with 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>
Constructs a fluent builder for the UpdateDistribution
operation.
- The fluent builder is configurable:
distribution_config(DistributionConfig)
/set_distribution_config(Option<DistributionConfig>)
:The distribution’s configuration information.
id(impl Into<String>)
/set_id(Option<String>)
:The distribution’s id.
if_match(impl Into<String>)
/set_if_match(Option<String>)
:The value of the
ETag
header that you received when retrieving the distribution’s configuration. For example:E2QWRUHAPOMQZL
.
- On success, responds with
UpdateDistributionOutput
with 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>
pub fn update_field_level_encryption_config(
&self
) -> UpdateFieldLevelEncryptionConfig<C, M, R>
pub fn update_field_level_encryption_config(
&self
) -> UpdateFieldLevelEncryptionConfig<C, M, R>
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>)
:Request to update a field-level encryption configuration.
id(impl Into<String>)
/set_id(Option<String>)
:The ID of the configuration you want to update.
if_match(impl Into<String>)
/set_if_match(Option<String>)
:The value of the
ETag
header that you received when retrieving the configuration identity to update. For example:E2QWRUHAPOMQZL
.
- On success, responds with
UpdateFieldLevelEncryptionConfigOutput
with field(s):field_level_encryption(Option<FieldLevelEncryption>)
:Return the results of updating the configuration.
e_tag(Option<String>)
:The value of the
ETag
header that you received when updating the configuration. For example:E2QWRUHAPOMQZL
.
- On failure, responds with
SdkError<UpdateFieldLevelEncryptionConfigError>
pub fn update_field_level_encryption_profile(
&self
) -> UpdateFieldLevelEncryptionProfile<C, M, R>
pub fn update_field_level_encryption_profile(
&self
) -> UpdateFieldLevelEncryptionProfile<C, M, R>
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>)
:Request to update a field-level encryption profile.
id(impl Into<String>)
/set_id(Option<String>)
:The ID of the field-level encryption profile request.
if_match(impl Into<String>)
/set_if_match(Option<String>)
:The value of the
ETag
header that you received when retrieving the profile identity to update. For example:E2QWRUHAPOMQZL
.
- On success, responds with
UpdateFieldLevelEncryptionProfileOutput
with 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>
Constructs a fluent builder for the UpdateFunction
operation.
- The fluent builder is configurable:
name(impl Into<String>)
/set_name(Option<String>)
:The name of the function that you are updating.
if_match(impl Into<String>)
/set_if_match(Option<String>)
:The current version (
ETag
value) of the function that you are updating, which you can get usingDescribeFunction
.function_config(FunctionConfig)
/set_function_config(Option<FunctionConfig>)
:Configuration information about the function.
function_code(Blob)
/set_function_code(Option<Blob>)
:The 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
UpdateFunctionOutput
with 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>
Constructs a fluent builder for the UpdateKeyGroup
operation.
- The fluent builder is configurable:
key_group_config(KeyGroupConfig)
/set_key_group_config(Option<KeyGroupConfig>)
:The key group configuration.
id(impl Into<String>)
/set_id(Option<String>)
:The identifier of the key group that you are updating.
if_match(impl Into<String>)
/set_if_match(Option<String>)
:The version of the key group that you are updating. The version is the key group’s
ETag
value.
- On success, responds with
UpdateKeyGroupOutput
with 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>
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>)
:An origin request policy configuration.
id(impl Into<String>)
/set_id(Option<String>)
:The unique identifier for the origin request policy that you are updating. The identifier is returned in a cache behavior’s
OriginRequestPolicyId
field in the response toGetDistributionConfig
.if_match(impl Into<String>)
/set_if_match(Option<String>)
:The version of the origin request policy that you are updating. The version is returned in the origin request policy’s
ETag
field in the response toGetOriginRequestPolicyConfig
.
- On success, responds with
UpdateOriginRequestPolicyOutput
with 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>
Constructs a fluent builder for the UpdatePublicKey
operation.
- The fluent builder is configurable:
public_key_config(PublicKeyConfig)
/set_public_key_config(Option<PublicKeyConfig>)
:A public key configuration.
id(impl Into<String>)
/set_id(Option<String>)
:The identifier of the public key that you are updating.
if_match(impl Into<String>)
/set_if_match(Option<String>)
:The value of the
ETag
header that you received when retrieving the public key to update. For example:E2QWRUHAPOMQZL
.
- On success, responds with
UpdatePublicKeyOutput
with 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>
Constructs a fluent builder for the UpdateRealtimeLogConfig
operation.
- The fluent builder is configurable:
end_points(Vec<EndPoint>)
/set_end_points(Option<Vec<EndPoint>>)
:Contains information about the Amazon Kinesis data stream where you are sending real-time log data.
fields(Vec<String>)
/set_fields(Option<Vec<String>>)
:A 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>)
:The name for this real-time log configuration.
arn(impl Into<String>)
/set_arn(Option<String>)
:The Amazon Resource Name (ARN) for this real-time log configuration.
sampling_rate(i64)
/set_sampling_rate(Option<i64>)
:The 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
UpdateRealtimeLogConfigOutput
with field(s):realtime_log_config(Option<RealtimeLogConfig>)
:A real-time log configuration.
- On failure, responds with
SdkError<UpdateRealtimeLogConfigError>
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>)
:A response headers policy configuration.
id(impl Into<String>)
/set_id(Option<String>)
:The identifier for the response headers policy that you are updating.
if_match(impl Into<String>)
/set_if_match(Option<String>)
:The version of the response headers policy that you are updating.
The version is returned in the cache policy’s
ETag
field in the response toGetResponseHeadersPolicyConfig
.
- On success, responds with
UpdateResponseHeadersPolicyOutput
with 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>
Constructs a fluent builder for the UpdateStreamingDistribution
operation.
- The fluent builder is configurable:
streaming_distribution_config(StreamingDistributionConfig)
/set_streaming_distribution_config(Option<StreamingDistributionConfig>)
:The streaming distribution’s configuration information.
id(impl Into<String>)
/set_id(Option<String>)
:The streaming distribution’s id.
if_match(impl Into<String>)
/set_if_match(Option<String>)
:The value of the
ETag
header that you received when retrieving the streaming distribution’s configuration. For example:E2QWRUHAPOMQZL
.
- On success, responds with
UpdateStreamingDistributionOutput
with 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>
Creates a client with the given service config and connector override.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !RefUnwindSafe for Client<C, M, R>
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !UnwindSafe for Client<C, M, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more