CloudFrontClient
Index > CloudFront > CloudFrontClient
Auto-generated documentation for CloudFront type annotations stubs module mypy-boto3-cloudfront.
CloudFrontClient
Type annotations and code completion for boto3.client("cloudfront")
.
boto3 documentation
from boto3.session import Session
from mypy_boto3_cloudfront.client import CloudFrontClient
def get_cloudfront_client() -> CloudFrontClient:
return Session().client("cloudfront")
Exceptions
boto3
client exceptions are generated in runtime.
This class provides code completion for boto3.client("cloudfront").exceptions
structure.
client = boto3.client("cloudfront")
try:
do_something(client)
except (
client.AccessDenied,
client.BatchTooLarge,
client.CNAMEAlreadyExists,
client.CachePolicyAlreadyExists,
client.CachePolicyInUse,
client.CannotChangeImmutablePublicKeyFields,
client.ClientError,
client.CloudFrontOriginAccessIdentityAlreadyExists,
client.CloudFrontOriginAccessIdentityInUse,
client.ContinuousDeploymentPolicyAlreadyExists,
client.ContinuousDeploymentPolicyInUse,
client.DistributionAlreadyExists,
client.DistributionNotDisabled,
client.FieldLevelEncryptionConfigAlreadyExists,
client.FieldLevelEncryptionConfigInUse,
client.FieldLevelEncryptionProfileAlreadyExists,
client.FieldLevelEncryptionProfileInUse,
client.FieldLevelEncryptionProfileSizeExceeded,
client.FunctionAlreadyExists,
client.FunctionInUse,
client.FunctionSizeLimitExceeded,
client.IllegalDelete,
client.IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior,
client.IllegalOriginAccessConfiguration,
client.IllegalUpdate,
client.InconsistentQuantities,
client.InvalidArgument,
client.InvalidDefaultRootObject,
client.InvalidDomainNameForOriginAccessControl,
client.InvalidErrorCode,
client.InvalidForwardCookies,
client.InvalidFunctionAssociation,
client.InvalidGeoRestrictionParameter,
client.InvalidHeadersForS3Origin,
client.InvalidIfMatchVersion,
client.InvalidLambdaFunctionAssociation,
client.InvalidLocationCode,
client.InvalidMinimumProtocolVersion,
client.InvalidOrigin,
client.InvalidOriginAccessControl,
client.InvalidOriginAccessIdentity,
client.InvalidOriginKeepaliveTimeout,
client.InvalidOriginReadTimeout,
client.InvalidProtocolSettings,
client.InvalidQueryStringParameters,
client.InvalidRelativePath,
client.InvalidRequiredProtocol,
client.InvalidResponseCode,
client.InvalidTTLOrder,
client.InvalidTagging,
client.InvalidViewerCertificate,
client.InvalidWebACLId,
client.KeyGroupAlreadyExists,
client.MissingBody,
client.MonitoringSubscriptionAlreadyExists,
client.NoSuchCachePolicy,
client.NoSuchCloudFrontOriginAccessIdentity,
client.NoSuchContinuousDeploymentPolicy,
client.NoSuchDistribution,
client.NoSuchFieldLevelEncryptionConfig,
client.NoSuchFieldLevelEncryptionProfile,
client.NoSuchFunctionExists,
client.NoSuchInvalidation,
client.NoSuchMonitoringSubscription,
client.NoSuchOrigin,
client.NoSuchOriginAccessControl,
client.NoSuchOriginRequestPolicy,
client.NoSuchPublicKey,
client.NoSuchRealtimeLogConfig,
client.NoSuchResource,
client.NoSuchResponseHeadersPolicy,
client.NoSuchStreamingDistribution,
client.OriginAccessControlAlreadyExists,
client.OriginAccessControlInUse,
client.OriginRequestPolicyAlreadyExists,
client.OriginRequestPolicyInUse,
client.PreconditionFailed,
client.PublicKeyAlreadyExists,
client.PublicKeyInUse,
client.QueryArgProfileEmpty,
client.RealtimeLogConfigAlreadyExists,
client.RealtimeLogConfigInUse,
client.RealtimeLogConfigOwnerMismatch,
client.ResourceInUse,
client.ResponseHeadersPolicyAlreadyExists,
client.ResponseHeadersPolicyInUse,
client.StagingDistributionInUse,
client.StreamingDistributionAlreadyExists,
client.StreamingDistributionNotDisabled,
client.TestFunctionFailed,
client.TooLongCSPInResponseHeadersPolicy,
client.TooManyCacheBehaviors,
client.TooManyCachePolicies,
client.TooManyCertificates,
client.TooManyCloudFrontOriginAccessIdentities,
client.TooManyContinuousDeploymentPolicies,
client.TooManyCookieNamesInWhiteList,
client.TooManyCookiesInCachePolicy,
client.TooManyCookiesInOriginRequestPolicy,
client.TooManyCustomHeadersInResponseHeadersPolicy,
client.TooManyDistributionCNAMEs,
client.TooManyDistributions,
client.TooManyDistributionsAssociatedToCachePolicy,
client.TooManyDistributionsAssociatedToFieldLevelEncryptionConfig,
client.TooManyDistributionsAssociatedToKeyGroup,
client.TooManyDistributionsAssociatedToOriginAccessControl,
client.TooManyDistributionsAssociatedToOriginRequestPolicy,
client.TooManyDistributionsAssociatedToResponseHeadersPolicy,
client.TooManyDistributionsWithFunctionAssociations,
client.TooManyDistributionsWithLambdaAssociations,
client.TooManyDistributionsWithSingleFunctionARN,
client.TooManyFieldLevelEncryptionConfigs,
client.TooManyFieldLevelEncryptionContentTypeProfiles,
client.TooManyFieldLevelEncryptionEncryptionEntities,
client.TooManyFieldLevelEncryptionFieldPatterns,
client.TooManyFieldLevelEncryptionProfiles,
client.TooManyFieldLevelEncryptionQueryArgProfiles,
client.TooManyFunctionAssociations,
client.TooManyFunctions,
client.TooManyHeadersInCachePolicy,
client.TooManyHeadersInForwardedValues,
client.TooManyHeadersInOriginRequestPolicy,
client.TooManyInvalidationsInProgress,
client.TooManyKeyGroups,
client.TooManyKeyGroupsAssociatedToDistribution,
client.TooManyLambdaFunctionAssociations,
client.TooManyOriginAccessControls,
client.TooManyOriginCustomHeaders,
client.TooManyOriginGroupsPerDistribution,
client.TooManyOriginRequestPolicies,
client.TooManyOrigins,
client.TooManyPublicKeys,
client.TooManyPublicKeysInKeyGroup,
client.TooManyQueryStringParameters,
client.TooManyQueryStringsInCachePolicy,
client.TooManyQueryStringsInOriginRequestPolicy,
client.TooManyRealtimeLogConfigs,
client.TooManyRemoveHeadersInResponseHeadersPolicy,
client.TooManyResponseHeadersPolicies,
client.TooManyStreamingDistributionCNAMEs,
client.TooManyStreamingDistributions,
client.TooManyTrustedSigners,
client.TrustedKeyGroupDoesNotExist,
client.TrustedSignerDoesNotExist,
client.UnsupportedOperation,
) as e:
print(e)
from mypy_boto3_cloudfront.client import Exceptions
def handle_error(exc: Exceptions.AccessDenied) -> None:
...
Methods
associate_alias
Associates an alias (also known as a CNAME or an alternate domain name) with a CloudFront distribution.
Type annotations and code completion for boto3.client("cloudfront").associate_alias
method.
boto3 documentation
def associate_alias(
self,
*,
TargetDistributionId: str,
Alias: str,
) -> EmptyResponseMetadataTypeDef: # (1)
...
kwargs: AssociateAliasRequestRequestTypeDef = { # (1)
"TargetDistributionId": ...,
"Alias": ...,
}
parent.associate_alias(**kwargs)
can_paginate
Check if an operation can be paginated.
Type annotations and code completion for boto3.client("cloudfront").can_paginate
method.
boto3 documentation
close
Closes underlying endpoint connections.
Type annotations and code completion for boto3.client("cloudfront").close
method.
boto3 documentation
copy_distribution
Creates a staging distribution using the configuration of the provided primary distribution.
Type annotations and code completion for boto3.client("cloudfront").copy_distribution
method.
boto3 documentation
def copy_distribution(
self,
*,
PrimaryDistributionId: str,
CallerReference: str,
Staging: bool = ...,
IfMatch: str = ...,
) -> CopyDistributionResultTypeDef: # (1)
...
kwargs: CopyDistributionRequestRequestTypeDef = { # (1)
"PrimaryDistributionId": ...,
"CallerReference": ...,
}
parent.copy_distribution(**kwargs)
create_cache_policy
Creates a cache policy.
Type annotations and code completion for boto3.client("cloudfront").create_cache_policy
method.
boto3 documentation
def create_cache_policy(
self,
*,
CachePolicyConfig: CachePolicyConfigTypeDef, # (1)
) -> CreateCachePolicyResultTypeDef: # (2)
...
kwargs: CreateCachePolicyRequestRequestTypeDef = { # (1)
"CachePolicyConfig": ...,
}
parent.create_cache_policy(**kwargs)
create_cloud_front_origin_access_identity
Creates a new origin access identity.
Type annotations and code completion for boto3.client("cloudfront").create_cloud_front_origin_access_identity
method.
boto3 documentation
def create_cloud_front_origin_access_identity(
self,
*,
CloudFrontOriginAccessIdentityConfig: CloudFrontOriginAccessIdentityConfigTypeDef, # (1)
) -> CreateCloudFrontOriginAccessIdentityResultTypeDef: # (2)
...
- See CloudFrontOriginAccessIdentityConfigTypeDef
- See CreateCloudFrontOriginAccessIdentityResultTypeDef
kwargs: CreateCloudFrontOriginAccessIdentityRequestRequestTypeDef = { # (1)
"CloudFrontOriginAccessIdentityConfig": ...,
}
parent.create_cloud_front_origin_access_identity(**kwargs)
create_continuous_deployment_policy
Creates a continuous deployment policy that distributes traffic for a custom domain name to two different CloudFront distributions.
Type annotations and code completion for boto3.client("cloudfront").create_continuous_deployment_policy
method.
boto3 documentation
def create_continuous_deployment_policy(
self,
*,
ContinuousDeploymentPolicyConfig: ContinuousDeploymentPolicyConfigTypeDef, # (1)
) -> CreateContinuousDeploymentPolicyResultTypeDef: # (2)
...
kwargs: CreateContinuousDeploymentPolicyRequestRequestTypeDef = { # (1)
"ContinuousDeploymentPolicyConfig": ...,
}
parent.create_continuous_deployment_policy(**kwargs)
create_distribution
Creates a CloudFront distribution.
Type annotations and code completion for boto3.client("cloudfront").create_distribution
method.
boto3 documentation
def create_distribution(
self,
*,
DistributionConfig: DistributionConfigTypeDef, # (1)
) -> CreateDistributionResultTypeDef: # (2)
...
kwargs: CreateDistributionRequestRequestTypeDef = { # (1)
"DistributionConfig": ...,
}
parent.create_distribution(**kwargs)
create_distribution_with_tags
Create a new distribution with tags.
Type annotations and code completion for boto3.client("cloudfront").create_distribution_with_tags
method.
boto3 documentation
def create_distribution_with_tags(
self,
*,
DistributionConfigWithTags: DistributionConfigWithTagsTypeDef, # (1)
) -> CreateDistributionWithTagsResultTypeDef: # (2)
...
kwargs: CreateDistributionWithTagsRequestRequestTypeDef = { # (1)
"DistributionConfigWithTags": ...,
}
parent.create_distribution_with_tags(**kwargs)
create_field_level_encryption_config
Create a new field-level encryption configuration.
Type annotations and code completion for boto3.client("cloudfront").create_field_level_encryption_config
method.
boto3 documentation
def create_field_level_encryption_config(
self,
*,
FieldLevelEncryptionConfig: FieldLevelEncryptionConfigTypeDef, # (1)
) -> CreateFieldLevelEncryptionConfigResultTypeDef: # (2)
...
kwargs: CreateFieldLevelEncryptionConfigRequestRequestTypeDef = { # (1)
"FieldLevelEncryptionConfig": ...,
}
parent.create_field_level_encryption_config(**kwargs)
create_field_level_encryption_profile
Create a field-level encryption profile.
Type annotations and code completion for boto3.client("cloudfront").create_field_level_encryption_profile
method.
boto3 documentation
def create_field_level_encryption_profile(
self,
*,
FieldLevelEncryptionProfileConfig: FieldLevelEncryptionProfileConfigTypeDef, # (1)
) -> CreateFieldLevelEncryptionProfileResultTypeDef: # (2)
...
kwargs: CreateFieldLevelEncryptionProfileRequestRequestTypeDef = { # (1)
"FieldLevelEncryptionProfileConfig": ...,
}
parent.create_field_level_encryption_profile(**kwargs)
create_function
Creates a CloudFront function.
Type annotations and code completion for boto3.client("cloudfront").create_function
method.
boto3 documentation
def create_function(
self,
*,
Name: str,
FunctionConfig: FunctionConfigTypeDef, # (1)
FunctionCode: Union[str, bytes, IO[Any], StreamingBody],
) -> CreateFunctionResultTypeDef: # (2)
...
kwargs: CreateFunctionRequestRequestTypeDef = { # (1)
"Name": ...,
"FunctionConfig": ...,
"FunctionCode": ...,
}
parent.create_function(**kwargs)
create_invalidation
Create a new invalidation.
Type annotations and code completion for boto3.client("cloudfront").create_invalidation
method.
boto3 documentation
def create_invalidation(
self,
*,
DistributionId: str,
InvalidationBatch: InvalidationBatchTypeDef, # (1)
) -> CreateInvalidationResultTypeDef: # (2)
...
kwargs: CreateInvalidationRequestRequestTypeDef = { # (1)
"DistributionId": ...,
"InvalidationBatch": ...,
}
parent.create_invalidation(**kwargs)
create_key_group
Creates a key group that you can use with CloudFront signed URLs and signed cookies_.
Type annotations and code completion for boto3.client("cloudfront").create_key_group
method.
boto3 documentation
def create_key_group(
self,
*,
KeyGroupConfig: KeyGroupConfigTypeDef, # (1)
) -> CreateKeyGroupResultTypeDef: # (2)
...
kwargs: CreateKeyGroupRequestRequestTypeDef = { # (1)
"KeyGroupConfig": ...,
}
parent.create_key_group(**kwargs)
create_monitoring_subscription
Enables additional CloudWatch metrics for the specified CloudFront distribution.
Type annotations and code completion for boto3.client("cloudfront").create_monitoring_subscription
method.
boto3 documentation
def create_monitoring_subscription(
self,
*,
DistributionId: str,
MonitoringSubscription: MonitoringSubscriptionTypeDef, # (1)
) -> CreateMonitoringSubscriptionResultTypeDef: # (2)
...
kwargs: CreateMonitoringSubscriptionRequestRequestTypeDef = { # (1)
"DistributionId": ...,
"MonitoringSubscription": ...,
}
parent.create_monitoring_subscription(**kwargs)
create_origin_access_control
Creates a new origin access control in CloudFront.
Type annotations and code completion for boto3.client("cloudfront").create_origin_access_control
method.
boto3 documentation
def create_origin_access_control(
self,
*,
OriginAccessControlConfig: OriginAccessControlConfigTypeDef, # (1)
) -> CreateOriginAccessControlResultTypeDef: # (2)
...
kwargs: CreateOriginAccessControlRequestRequestTypeDef = { # (1)
"OriginAccessControlConfig": ...,
}
parent.create_origin_access_control(**kwargs)
create_origin_request_policy
Creates an origin request policy.
Type annotations and code completion for boto3.client("cloudfront").create_origin_request_policy
method.
boto3 documentation
def create_origin_request_policy(
self,
*,
OriginRequestPolicyConfig: OriginRequestPolicyConfigTypeDef, # (1)
) -> CreateOriginRequestPolicyResultTypeDef: # (2)
...
kwargs: CreateOriginRequestPolicyRequestRequestTypeDef = { # (1)
"OriginRequestPolicyConfig": ...,
}
parent.create_origin_request_policy(**kwargs)
create_public_key
Uploads a public key to CloudFront that you can use with signed URLs and signed
cookies_,
or with field-level encryption
<https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/field-level-
enc...
.
Type annotations and code completion for boto3.client("cloudfront").create_public_key
method.
boto3 documentation
def create_public_key(
self,
*,
PublicKeyConfig: PublicKeyConfigTypeDef, # (1)
) -> CreatePublicKeyResultTypeDef: # (2)
...
kwargs: CreatePublicKeyRequestRequestTypeDef = { # (1)
"PublicKeyConfig": ...,
}
parent.create_public_key(**kwargs)
create_realtime_log_config
Creates a real-time log configuration.
Type annotations and code completion for boto3.client("cloudfront").create_realtime_log_config
method.
boto3 documentation
def create_realtime_log_config(
self,
*,
EndPoints: Sequence[EndPointTypeDef], # (1)
Fields: Sequence[str],
Name: str,
SamplingRate: int,
) -> CreateRealtimeLogConfigResultTypeDef: # (2)
...
kwargs: CreateRealtimeLogConfigRequestRequestTypeDef = { # (1)
"EndPoints": ...,
"Fields": ...,
"Name": ...,
"SamplingRate": ...,
}
parent.create_realtime_log_config(**kwargs)
create_response_headers_policy
Creates a response headers policy.
Type annotations and code completion for boto3.client("cloudfront").create_response_headers_policy
method.
boto3 documentation
def create_response_headers_policy(
self,
*,
ResponseHeadersPolicyConfig: ResponseHeadersPolicyConfigTypeDef, # (1)
) -> CreateResponseHeadersPolicyResultTypeDef: # (2)
...
kwargs: CreateResponseHeadersPolicyRequestRequestTypeDef = { # (1)
"ResponseHeadersPolicyConfig": ...,
}
parent.create_response_headers_policy(**kwargs)
create_streaming_distribution
This API is deprecated.
Type annotations and code completion for boto3.client("cloudfront").create_streaming_distribution
method.
boto3 documentation
def create_streaming_distribution(
self,
*,
StreamingDistributionConfig: StreamingDistributionConfigTypeDef, # (1)
) -> CreateStreamingDistributionResultTypeDef: # (2)
...
kwargs: CreateStreamingDistributionRequestRequestTypeDef = { # (1)
"StreamingDistributionConfig": ...,
}
parent.create_streaming_distribution(**kwargs)
create_streaming_distribution_with_tags
This API is deprecated.
Type annotations and code completion for boto3.client("cloudfront").create_streaming_distribution_with_tags
method.
boto3 documentation
def create_streaming_distribution_with_tags(
self,
*,
StreamingDistributionConfigWithTags: StreamingDistributionConfigWithTagsTypeDef, # (1)
) -> CreateStreamingDistributionWithTagsResultTypeDef: # (2)
...
kwargs: CreateStreamingDistributionWithTagsRequestRequestTypeDef = { # (1)
"StreamingDistributionConfigWithTags": ...,
}
parent.create_streaming_distribution_with_tags(**kwargs)
delete_cache_policy
Deletes a cache policy.
Type annotations and code completion for boto3.client("cloudfront").delete_cache_policy
method.
boto3 documentation
def delete_cache_policy(
self,
*,
Id: str,
IfMatch: str = ...,
) -> EmptyResponseMetadataTypeDef: # (1)
...
kwargs: DeleteCachePolicyRequestRequestTypeDef = { # (1)
"Id": ...,
}
parent.delete_cache_policy(**kwargs)
delete_cloud_front_origin_access_identity
Delete an origin access identity.
Type annotations and code completion for boto3.client("cloudfront").delete_cloud_front_origin_access_identity
method.
boto3 documentation
def delete_cloud_front_origin_access_identity(
self,
*,
Id: str,
IfMatch: str = ...,
) -> EmptyResponseMetadataTypeDef: # (1)
...
kwargs: DeleteCloudFrontOriginAccessIdentityRequestRequestTypeDef = { # (1)
"Id": ...,
}
parent.delete_cloud_front_origin_access_identity(**kwargs)
delete_continuous_deployment_policy
Deletes a continuous deployment policy.
Type annotations and code completion for boto3.client("cloudfront").delete_continuous_deployment_policy
method.
boto3 documentation
def delete_continuous_deployment_policy(
self,
*,
Id: str,
IfMatch: str = ...,
) -> EmptyResponseMetadataTypeDef: # (1)
...
kwargs: DeleteContinuousDeploymentPolicyRequestRequestTypeDef = { # (1)
"Id": ...,
}
parent.delete_continuous_deployment_policy(**kwargs)
delete_distribution
Delete a distribution.
Type annotations and code completion for boto3.client("cloudfront").delete_distribution
method.
boto3 documentation
def delete_distribution(
self,
*,
Id: str,
IfMatch: str = ...,
) -> EmptyResponseMetadataTypeDef: # (1)
...
kwargs: DeleteDistributionRequestRequestTypeDef = { # (1)
"Id": ...,
}
parent.delete_distribution(**kwargs)
delete_field_level_encryption_config
Remove a field-level encryption configuration.
Type annotations and code completion for boto3.client("cloudfront").delete_field_level_encryption_config
method.
boto3 documentation
def delete_field_level_encryption_config(
self,
*,
Id: str,
IfMatch: str = ...,
) -> EmptyResponseMetadataTypeDef: # (1)
...
kwargs: DeleteFieldLevelEncryptionConfigRequestRequestTypeDef = { # (1)
"Id": ...,
}
parent.delete_field_level_encryption_config(**kwargs)
delete_field_level_encryption_profile
Remove a field-level encryption profile.
Type annotations and code completion for boto3.client("cloudfront").delete_field_level_encryption_profile
method.
boto3 documentation
def delete_field_level_encryption_profile(
self,
*,
Id: str,
IfMatch: str = ...,
) -> EmptyResponseMetadataTypeDef: # (1)
...
kwargs: DeleteFieldLevelEncryptionProfileRequestRequestTypeDef = { # (1)
"Id": ...,
}
parent.delete_field_level_encryption_profile(**kwargs)
delete_function
Deletes a CloudFront function.
Type annotations and code completion for boto3.client("cloudfront").delete_function
method.
boto3 documentation
def delete_function(
self,
*,
Name: str,
IfMatch: str,
) -> EmptyResponseMetadataTypeDef: # (1)
...
kwargs: DeleteFunctionRequestRequestTypeDef = { # (1)
"Name": ...,
"IfMatch": ...,
}
parent.delete_function(**kwargs)
delete_key_group
Deletes a key group.
Type annotations and code completion for boto3.client("cloudfront").delete_key_group
method.
boto3 documentation
def delete_key_group(
self,
*,
Id: str,
IfMatch: str = ...,
) -> EmptyResponseMetadataTypeDef: # (1)
...
kwargs: DeleteKeyGroupRequestRequestTypeDef = { # (1)
"Id": ...,
}
parent.delete_key_group(**kwargs)
delete_monitoring_subscription
Disables additional CloudWatch metrics for the specified CloudFront distribution.
Type annotations and code completion for boto3.client("cloudfront").delete_monitoring_subscription
method.
boto3 documentation
def delete_monitoring_subscription(
self,
*,
DistributionId: str,
) -> Dict[str, Any]:
...
kwargs: DeleteMonitoringSubscriptionRequestRequestTypeDef = { # (1)
"DistributionId": ...,
}
parent.delete_monitoring_subscription(**kwargs)
delete_origin_access_control
Deletes a CloudFront origin access control.
Type annotations and code completion for boto3.client("cloudfront").delete_origin_access_control
method.
boto3 documentation
def delete_origin_access_control(
self,
*,
Id: str,
IfMatch: str = ...,
) -> EmptyResponseMetadataTypeDef: # (1)
...
kwargs: DeleteOriginAccessControlRequestRequestTypeDef = { # (1)
"Id": ...,
}
parent.delete_origin_access_control(**kwargs)
delete_origin_request_policy
Deletes an origin request policy.
Type annotations and code completion for boto3.client("cloudfront").delete_origin_request_policy
method.
boto3 documentation
def delete_origin_request_policy(
self,
*,
Id: str,
IfMatch: str = ...,
) -> EmptyResponseMetadataTypeDef: # (1)
...
kwargs: DeleteOriginRequestPolicyRequestRequestTypeDef = { # (1)
"Id": ...,
}
parent.delete_origin_request_policy(**kwargs)
delete_public_key
Remove a public key you previously added to CloudFront.
Type annotations and code completion for boto3.client("cloudfront").delete_public_key
method.
boto3 documentation
def delete_public_key(
self,
*,
Id: str,
IfMatch: str = ...,
) -> EmptyResponseMetadataTypeDef: # (1)
...
kwargs: DeletePublicKeyRequestRequestTypeDef = { # (1)
"Id": ...,
}
parent.delete_public_key(**kwargs)
delete_realtime_log_config
Deletes a real-time log configuration.
Type annotations and code completion for boto3.client("cloudfront").delete_realtime_log_config
method.
boto3 documentation
def delete_realtime_log_config(
self,
*,
Name: str = ...,
ARN: str = ...,
) -> EmptyResponseMetadataTypeDef: # (1)
...
kwargs: DeleteRealtimeLogConfigRequestRequestTypeDef = { # (1)
"Name": ...,
}
parent.delete_realtime_log_config(**kwargs)
delete_response_headers_policy
Deletes a response headers policy.
Type annotations and code completion for boto3.client("cloudfront").delete_response_headers_policy
method.
boto3 documentation
def delete_response_headers_policy(
self,
*,
Id: str,
IfMatch: str = ...,
) -> EmptyResponseMetadataTypeDef: # (1)
...
kwargs: DeleteResponseHeadersPolicyRequestRequestTypeDef = { # (1)
"Id": ...,
}
parent.delete_response_headers_policy(**kwargs)
delete_streaming_distribution
Delete a streaming distribution.
Type annotations and code completion for boto3.client("cloudfront").delete_streaming_distribution
method.
boto3 documentation
def delete_streaming_distribution(
self,
*,
Id: str,
IfMatch: str = ...,
) -> EmptyResponseMetadataTypeDef: # (1)
...
kwargs: DeleteStreamingDistributionRequestRequestTypeDef = { # (1)
"Id": ...,
}
parent.delete_streaming_distribution(**kwargs)
describe_function
Gets configuration information and metadata about a CloudFront function, but not the function's code.
Type annotations and code completion for boto3.client("cloudfront").describe_function
method.
boto3 documentation
def describe_function(
self,
*,
Name: str,
Stage: FunctionStageType = ..., # (1)
) -> DescribeFunctionResultTypeDef: # (2)
...
kwargs: DescribeFunctionRequestRequestTypeDef = { # (1)
"Name": ...,
}
parent.describe_function(**kwargs)
generate_presigned_url
Generate a presigned url given a client, its method, and arguments.
Type annotations and code completion for boto3.client("cloudfront").generate_presigned_url
method.
boto3 documentation
def generate_presigned_url(
self,
ClientMethod: str,
Params: Mapping[str, Any] = ...,
ExpiresIn: int = 3600,
HttpMethod: str = ...,
) -> str:
...
get_cache_policy
Gets a cache policy, including the following metadata * The policy's identifier.
Type annotations and code completion for boto3.client("cloudfront").get_cache_policy
method.
boto3 documentation
def get_cache_policy(
self,
*,
Id: str,
) -> GetCachePolicyResultTypeDef: # (1)
...
kwargs: GetCachePolicyRequestRequestTypeDef = { # (1)
"Id": ...,
}
parent.get_cache_policy(**kwargs)
get_cache_policy_config
Gets a cache policy configuration.
Type annotations and code completion for boto3.client("cloudfront").get_cache_policy_config
method.
boto3 documentation
def get_cache_policy_config(
self,
*,
Id: str,
) -> GetCachePolicyConfigResultTypeDef: # (1)
...
kwargs: GetCachePolicyConfigRequestRequestTypeDef = { # (1)
"Id": ...,
}
parent.get_cache_policy_config(**kwargs)
get_cloud_front_origin_access_identity
Get the information about an origin access identity.
Type annotations and code completion for boto3.client("cloudfront").get_cloud_front_origin_access_identity
method.
boto3 documentation
def get_cloud_front_origin_access_identity(
self,
*,
Id: str,
) -> GetCloudFrontOriginAccessIdentityResultTypeDef: # (1)
...
kwargs: GetCloudFrontOriginAccessIdentityRequestRequestTypeDef = { # (1)
"Id": ...,
}
parent.get_cloud_front_origin_access_identity(**kwargs)
get_cloud_front_origin_access_identity_config
Get the configuration information about an origin access identity.
Type annotations and code completion for boto3.client("cloudfront").get_cloud_front_origin_access_identity_config
method.
boto3 documentation
def get_cloud_front_origin_access_identity_config(
self,
*,
Id: str,
) -> GetCloudFrontOriginAccessIdentityConfigResultTypeDef: # (1)
...
kwargs: GetCloudFrontOriginAccessIdentityConfigRequestRequestTypeDef = { # (1)
"Id": ...,
}
parent.get_cloud_front_origin_access_identity_config(**kwargs)
get_continuous_deployment_policy
Gets a continuous deployment policy, including metadata (the policy's identifier and the date and time when the policy was last modified).
Type annotations and code completion for boto3.client("cloudfront").get_continuous_deployment_policy
method.
boto3 documentation
def get_continuous_deployment_policy(
self,
*,
Id: str,
) -> GetContinuousDeploymentPolicyResultTypeDef: # (1)
...
kwargs: GetContinuousDeploymentPolicyRequestRequestTypeDef = { # (1)
"Id": ...,
}
parent.get_continuous_deployment_policy(**kwargs)
get_continuous_deployment_policy_config
Gets configuration information about a continuous deployment policy.
Type annotations and code completion for boto3.client("cloudfront").get_continuous_deployment_policy_config
method.
boto3 documentation
def get_continuous_deployment_policy_config(
self,
*,
Id: str,
) -> GetContinuousDeploymentPolicyConfigResultTypeDef: # (1)
...
kwargs: GetContinuousDeploymentPolicyConfigRequestRequestTypeDef = { # (1)
"Id": ...,
}
parent.get_continuous_deployment_policy_config(**kwargs)
get_distribution
Get the information about a distribution.
Type annotations and code completion for boto3.client("cloudfront").get_distribution
method.
boto3 documentation
def get_distribution(
self,
*,
Id: str,
) -> GetDistributionResultTypeDef: # (1)
...
kwargs: GetDistributionRequestRequestTypeDef = { # (1)
"Id": ...,
}
parent.get_distribution(**kwargs)
get_distribution_config
Get the configuration information about a distribution.
Type annotations and code completion for boto3.client("cloudfront").get_distribution_config
method.
boto3 documentation
def get_distribution_config(
self,
*,
Id: str,
) -> GetDistributionConfigResultTypeDef: # (1)
...
kwargs: GetDistributionConfigRequestRequestTypeDef = { # (1)
"Id": ...,
}
parent.get_distribution_config(**kwargs)
get_field_level_encryption
Get the field-level encryption configuration information.
Type annotations and code completion for boto3.client("cloudfront").get_field_level_encryption
method.
boto3 documentation
def get_field_level_encryption(
self,
*,
Id: str,
) -> GetFieldLevelEncryptionResultTypeDef: # (1)
...
kwargs: GetFieldLevelEncryptionRequestRequestTypeDef = { # (1)
"Id": ...,
}
parent.get_field_level_encryption(**kwargs)
get_field_level_encryption_config
Get the field-level encryption configuration information.
Type annotations and code completion for boto3.client("cloudfront").get_field_level_encryption_config
method.
boto3 documentation
def get_field_level_encryption_config(
self,
*,
Id: str,
) -> GetFieldLevelEncryptionConfigResultTypeDef: # (1)
...
kwargs: GetFieldLevelEncryptionConfigRequestRequestTypeDef = { # (1)
"Id": ...,
}
parent.get_field_level_encryption_config(**kwargs)
get_field_level_encryption_profile
Get the field-level encryption profile information.
Type annotations and code completion for boto3.client("cloudfront").get_field_level_encryption_profile
method.
boto3 documentation
def get_field_level_encryption_profile(
self,
*,
Id: str,
) -> GetFieldLevelEncryptionProfileResultTypeDef: # (1)
...
kwargs: GetFieldLevelEncryptionProfileRequestRequestTypeDef = { # (1)
"Id": ...,
}
parent.get_field_level_encryption_profile(**kwargs)
get_field_level_encryption_profile_config
Get the field-level encryption profile configuration information.
Type annotations and code completion for boto3.client("cloudfront").get_field_level_encryption_profile_config
method.
boto3 documentation
def get_field_level_encryption_profile_config(
self,
*,
Id: str,
) -> GetFieldLevelEncryptionProfileConfigResultTypeDef: # (1)
...
kwargs: GetFieldLevelEncryptionProfileConfigRequestRequestTypeDef = { # (1)
"Id": ...,
}
parent.get_field_level_encryption_profile_config(**kwargs)
get_function
Gets the code of a CloudFront function.
Type annotations and code completion for boto3.client("cloudfront").get_function
method.
boto3 documentation
def get_function(
self,
*,
Name: str,
Stage: FunctionStageType = ..., # (1)
) -> GetFunctionResultTypeDef: # (2)
...
kwargs: GetFunctionRequestRequestTypeDef = { # (1)
"Name": ...,
}
parent.get_function(**kwargs)
get_invalidation
Get the information about an invalidation.
Type annotations and code completion for boto3.client("cloudfront").get_invalidation
method.
boto3 documentation
def get_invalidation(
self,
*,
DistributionId: str,
Id: str,
) -> GetInvalidationResultTypeDef: # (1)
...
kwargs: GetInvalidationRequestRequestTypeDef = { # (1)
"DistributionId": ...,
"Id": ...,
}
parent.get_invalidation(**kwargs)
get_key_group
Gets a key group, including the date and time when the key group was last modified.
Type annotations and code completion for boto3.client("cloudfront").get_key_group
method.
boto3 documentation
kwargs: GetKeyGroupRequestRequestTypeDef = { # (1)
"Id": ...,
}
parent.get_key_group(**kwargs)
get_key_group_config
Gets a key group configuration.
Type annotations and code completion for boto3.client("cloudfront").get_key_group_config
method.
boto3 documentation
def get_key_group_config(
self,
*,
Id: str,
) -> GetKeyGroupConfigResultTypeDef: # (1)
...
kwargs: GetKeyGroupConfigRequestRequestTypeDef = { # (1)
"Id": ...,
}
parent.get_key_group_config(**kwargs)
get_monitoring_subscription
Gets information about whether additional CloudWatch metrics are enabled for the specified CloudFront distribution.
Type annotations and code completion for boto3.client("cloudfront").get_monitoring_subscription
method.
boto3 documentation
def get_monitoring_subscription(
self,
*,
DistributionId: str,
) -> GetMonitoringSubscriptionResultTypeDef: # (1)
...
kwargs: GetMonitoringSubscriptionRequestRequestTypeDef = { # (1)
"DistributionId": ...,
}
parent.get_monitoring_subscription(**kwargs)
get_origin_access_control
Gets a CloudFront origin access control, including its unique identifier.
Type annotations and code completion for boto3.client("cloudfront").get_origin_access_control
method.
boto3 documentation
def get_origin_access_control(
self,
*,
Id: str,
) -> GetOriginAccessControlResultTypeDef: # (1)
...
kwargs: GetOriginAccessControlRequestRequestTypeDef = { # (1)
"Id": ...,
}
parent.get_origin_access_control(**kwargs)
get_origin_access_control_config
Gets a CloudFront origin access control configuration.
Type annotations and code completion for boto3.client("cloudfront").get_origin_access_control_config
method.
boto3 documentation
def get_origin_access_control_config(
self,
*,
Id: str,
) -> GetOriginAccessControlConfigResultTypeDef: # (1)
...
kwargs: GetOriginAccessControlConfigRequestRequestTypeDef = { # (1)
"Id": ...,
}
parent.get_origin_access_control_config(**kwargs)
get_origin_request_policy
Gets an origin request policy, including the following metadata * The policy's identifier.
Type annotations and code completion for boto3.client("cloudfront").get_origin_request_policy
method.
boto3 documentation
def get_origin_request_policy(
self,
*,
Id: str,
) -> GetOriginRequestPolicyResultTypeDef: # (1)
...
kwargs: GetOriginRequestPolicyRequestRequestTypeDef = { # (1)
"Id": ...,
}
parent.get_origin_request_policy(**kwargs)
get_origin_request_policy_config
Gets an origin request policy configuration.
Type annotations and code completion for boto3.client("cloudfront").get_origin_request_policy_config
method.
boto3 documentation
def get_origin_request_policy_config(
self,
*,
Id: str,
) -> GetOriginRequestPolicyConfigResultTypeDef: # (1)
...
kwargs: GetOriginRequestPolicyConfigRequestRequestTypeDef = { # (1)
"Id": ...,
}
parent.get_origin_request_policy_config(**kwargs)
get_public_key
Gets a public key.
Type annotations and code completion for boto3.client("cloudfront").get_public_key
method.
boto3 documentation
kwargs: GetPublicKeyRequestRequestTypeDef = { # (1)
"Id": ...,
}
parent.get_public_key(**kwargs)
get_public_key_config
Gets a public key configuration.
Type annotations and code completion for boto3.client("cloudfront").get_public_key_config
method.
boto3 documentation
def get_public_key_config(
self,
*,
Id: str,
) -> GetPublicKeyConfigResultTypeDef: # (1)
...
kwargs: GetPublicKeyConfigRequestRequestTypeDef = { # (1)
"Id": ...,
}
parent.get_public_key_config(**kwargs)
get_realtime_log_config
Gets a real-time log configuration.
Type annotations and code completion for boto3.client("cloudfront").get_realtime_log_config
method.
boto3 documentation
def get_realtime_log_config(
self,
*,
Name: str = ...,
ARN: str = ...,
) -> GetRealtimeLogConfigResultTypeDef: # (1)
...
kwargs: GetRealtimeLogConfigRequestRequestTypeDef = { # (1)
"Name": ...,
}
parent.get_realtime_log_config(**kwargs)
get_response_headers_policy
Gets a response headers policy, including metadata (the policy's identifier and the date and time when the policy was last modified).
Type annotations and code completion for boto3.client("cloudfront").get_response_headers_policy
method.
boto3 documentation
def get_response_headers_policy(
self,
*,
Id: str,
) -> GetResponseHeadersPolicyResultTypeDef: # (1)
...
kwargs: GetResponseHeadersPolicyRequestRequestTypeDef = { # (1)
"Id": ...,
}
parent.get_response_headers_policy(**kwargs)
get_response_headers_policy_config
Gets a response headers policy configuration.
Type annotations and code completion for boto3.client("cloudfront").get_response_headers_policy_config
method.
boto3 documentation
def get_response_headers_policy_config(
self,
*,
Id: str,
) -> GetResponseHeadersPolicyConfigResultTypeDef: # (1)
...
kwargs: GetResponseHeadersPolicyConfigRequestRequestTypeDef = { # (1)
"Id": ...,
}
parent.get_response_headers_policy_config(**kwargs)
get_streaming_distribution
Gets information about a specified RTMP distribution, including the distribution configuration.
Type annotations and code completion for boto3.client("cloudfront").get_streaming_distribution
method.
boto3 documentation
def get_streaming_distribution(
self,
*,
Id: str,
) -> GetStreamingDistributionResultTypeDef: # (1)
...
kwargs: GetStreamingDistributionRequestRequestTypeDef = { # (1)
"Id": ...,
}
parent.get_streaming_distribution(**kwargs)
get_streaming_distribution_config
Get the configuration information about a streaming distribution.
Type annotations and code completion for boto3.client("cloudfront").get_streaming_distribution_config
method.
boto3 documentation
def get_streaming_distribution_config(
self,
*,
Id: str,
) -> GetStreamingDistributionConfigResultTypeDef: # (1)
...
kwargs: GetStreamingDistributionConfigRequestRequestTypeDef = { # (1)
"Id": ...,
}
parent.get_streaming_distribution_config(**kwargs)
list_cache_policies
Gets a list of cache policies.
Type annotations and code completion for boto3.client("cloudfront").list_cache_policies
method.
boto3 documentation
def list_cache_policies(
self,
*,
Type: CachePolicyTypeType = ..., # (1)
Marker: str = ...,
MaxItems: str = ...,
) -> ListCachePoliciesResultTypeDef: # (2)
...
kwargs: ListCachePoliciesRequestRequestTypeDef = { # (1)
"Type": ...,
}
parent.list_cache_policies(**kwargs)
list_cloud_front_origin_access_identities
Lists origin access identities.
Type annotations and code completion for boto3.client("cloudfront").list_cloud_front_origin_access_identities
method.
boto3 documentation
def list_cloud_front_origin_access_identities(
self,
*,
Marker: str = ...,
MaxItems: str = ...,
) -> ListCloudFrontOriginAccessIdentitiesResultTypeDef: # (1)
...
kwargs: ListCloudFrontOriginAccessIdentitiesRequestRequestTypeDef = { # (1)
"Marker": ...,
}
parent.list_cloud_front_origin_access_identities(**kwargs)
list_conflicting_aliases
Gets a list of aliases (also called CNAMEs or alternate domain names) that conflict or overlap with the provided alias, and the associated CloudFront distributions and Amazon Web Services accounts for each conflicting alias.
Type annotations and code completion for boto3.client("cloudfront").list_conflicting_aliases
method.
boto3 documentation
def list_conflicting_aliases(
self,
*,
DistributionId: str,
Alias: str,
Marker: str = ...,
MaxItems: int = ...,
) -> ListConflictingAliasesResultTypeDef: # (1)
...
kwargs: ListConflictingAliasesRequestRequestTypeDef = { # (1)
"DistributionId": ...,
"Alias": ...,
}
parent.list_conflicting_aliases(**kwargs)
list_continuous_deployment_policies
Gets a list of the continuous deployment policies in your Amazon Web Services account.
Type annotations and code completion for boto3.client("cloudfront").list_continuous_deployment_policies
method.
boto3 documentation
def list_continuous_deployment_policies(
self,
*,
Marker: str = ...,
MaxItems: str = ...,
) -> ListContinuousDeploymentPoliciesResultTypeDef: # (1)
...
kwargs: ListContinuousDeploymentPoliciesRequestRequestTypeDef = { # (1)
"Marker": ...,
}
parent.list_continuous_deployment_policies(**kwargs)
list_distributions
List CloudFront distributions.
Type annotations and code completion for boto3.client("cloudfront").list_distributions
method.
boto3 documentation
def list_distributions(
self,
*,
Marker: str = ...,
MaxItems: str = ...,
) -> ListDistributionsResultTypeDef: # (1)
...
kwargs: ListDistributionsRequestRequestTypeDef = { # (1)
"Marker": ...,
}
parent.list_distributions(**kwargs)
list_distributions_by_cache_policy_id
Gets a list of distribution IDs for distributions that have a cache behavior that's associated with the specified cache policy.
Type annotations and code completion for boto3.client("cloudfront").list_distributions_by_cache_policy_id
method.
boto3 documentation
def list_distributions_by_cache_policy_id(
self,
*,
CachePolicyId: str,
Marker: str = ...,
MaxItems: str = ...,
) -> ListDistributionsByCachePolicyIdResultTypeDef: # (1)
...
kwargs: ListDistributionsByCachePolicyIdRequestRequestTypeDef = { # (1)
"CachePolicyId": ...,
}
parent.list_distributions_by_cache_policy_id(**kwargs)
list_distributions_by_key_group
Gets a list of distribution IDs for distributions that have a cache behavior that references the specified key group.
Type annotations and code completion for boto3.client("cloudfront").list_distributions_by_key_group
method.
boto3 documentation
def list_distributions_by_key_group(
self,
*,
KeyGroupId: str,
Marker: str = ...,
MaxItems: str = ...,
) -> ListDistributionsByKeyGroupResultTypeDef: # (1)
...
kwargs: ListDistributionsByKeyGroupRequestRequestTypeDef = { # (1)
"KeyGroupId": ...,
}
parent.list_distributions_by_key_group(**kwargs)
list_distributions_by_origin_request_policy_id
Gets a list of distribution IDs for distributions that have a cache behavior that's associated with the specified origin request policy.
Type annotations and code completion for boto3.client("cloudfront").list_distributions_by_origin_request_policy_id
method.
boto3 documentation
def list_distributions_by_origin_request_policy_id(
self,
*,
OriginRequestPolicyId: str,
Marker: str = ...,
MaxItems: str = ...,
) -> ListDistributionsByOriginRequestPolicyIdResultTypeDef: # (1)
...
kwargs: ListDistributionsByOriginRequestPolicyIdRequestRequestTypeDef = { # (1)
"OriginRequestPolicyId": ...,
}
parent.list_distributions_by_origin_request_policy_id(**kwargs)
list_distributions_by_realtime_log_config
Gets a list of distributions that have a cache behavior that's associated with the specified real-time log configuration.
Type annotations and code completion for boto3.client("cloudfront").list_distributions_by_realtime_log_config
method.
boto3 documentation
def list_distributions_by_realtime_log_config(
self,
*,
Marker: str = ...,
MaxItems: str = ...,
RealtimeLogConfigName: str = ...,
RealtimeLogConfigArn: str = ...,
) -> ListDistributionsByRealtimeLogConfigResultTypeDef: # (1)
...
kwargs: ListDistributionsByRealtimeLogConfigRequestRequestTypeDef = { # (1)
"Marker": ...,
}
parent.list_distributions_by_realtime_log_config(**kwargs)
list_distributions_by_response_headers_policy_id
Gets a list of distribution IDs for distributions that have a cache behavior that's associated with the specified response headers policy.
Type annotations and code completion for boto3.client("cloudfront").list_distributions_by_response_headers_policy_id
method.
boto3 documentation
def list_distributions_by_response_headers_policy_id(
self,
*,
ResponseHeadersPolicyId: str,
Marker: str = ...,
MaxItems: str = ...,
) -> ListDistributionsByResponseHeadersPolicyIdResultTypeDef: # (1)
...
kwargs: ListDistributionsByResponseHeadersPolicyIdRequestRequestTypeDef = { # (1)
"ResponseHeadersPolicyId": ...,
}
parent.list_distributions_by_response_headers_policy_id(**kwargs)
list_distributions_by_web_acl_id
List the distributions that are associated with a specified WAF web ACL.
Type annotations and code completion for boto3.client("cloudfront").list_distributions_by_web_acl_id
method.
boto3 documentation
def list_distributions_by_web_acl_id(
self,
*,
WebACLId: str,
Marker: str = ...,
MaxItems: str = ...,
) -> ListDistributionsByWebACLIdResultTypeDef: # (1)
...
kwargs: ListDistributionsByWebACLIdRequestRequestTypeDef = { # (1)
"WebACLId": ...,
}
parent.list_distributions_by_web_acl_id(**kwargs)
list_field_level_encryption_configs
List all field-level encryption configurations that have been created in CloudFront for this account.
Type annotations and code completion for boto3.client("cloudfront").list_field_level_encryption_configs
method.
boto3 documentation
def list_field_level_encryption_configs(
self,
*,
Marker: str = ...,
MaxItems: str = ...,
) -> ListFieldLevelEncryptionConfigsResultTypeDef: # (1)
...
kwargs: ListFieldLevelEncryptionConfigsRequestRequestTypeDef = { # (1)
"Marker": ...,
}
parent.list_field_level_encryption_configs(**kwargs)
list_field_level_encryption_profiles
Request a list of field-level encryption profiles that have been created in CloudFront for this account.
Type annotations and code completion for boto3.client("cloudfront").list_field_level_encryption_profiles
method.
boto3 documentation
def list_field_level_encryption_profiles(
self,
*,
Marker: str = ...,
MaxItems: str = ...,
) -> ListFieldLevelEncryptionProfilesResultTypeDef: # (1)
...
kwargs: ListFieldLevelEncryptionProfilesRequestRequestTypeDef = { # (1)
"Marker": ...,
}
parent.list_field_level_encryption_profiles(**kwargs)
list_functions
Gets a list of all CloudFront functions in your Amazon Web Services account.
Type annotations and code completion for boto3.client("cloudfront").list_functions
method.
boto3 documentation
def list_functions(
self,
*,
Marker: str = ...,
MaxItems: str = ...,
Stage: FunctionStageType = ..., # (1)
) -> ListFunctionsResultTypeDef: # (2)
...
kwargs: ListFunctionsRequestRequestTypeDef = { # (1)
"Marker": ...,
}
parent.list_functions(**kwargs)
list_invalidations
Lists invalidation batches.
Type annotations and code completion for boto3.client("cloudfront").list_invalidations
method.
boto3 documentation
def list_invalidations(
self,
*,
DistributionId: str,
Marker: str = ...,
MaxItems: str = ...,
) -> ListInvalidationsResultTypeDef: # (1)
...
kwargs: ListInvalidationsRequestRequestTypeDef = { # (1)
"DistributionId": ...,
}
parent.list_invalidations(**kwargs)
list_key_groups
Gets a list of key groups.
Type annotations and code completion for boto3.client("cloudfront").list_key_groups
method.
boto3 documentation
def list_key_groups(
self,
*,
Marker: str = ...,
MaxItems: str = ...,
) -> ListKeyGroupsResultTypeDef: # (1)
...
kwargs: ListKeyGroupsRequestRequestTypeDef = { # (1)
"Marker": ...,
}
parent.list_key_groups(**kwargs)
list_origin_access_controls
Gets the list of CloudFront origin access controls in this Amazon Web Services account.
Type annotations and code completion for boto3.client("cloudfront").list_origin_access_controls
method.
boto3 documentation
def list_origin_access_controls(
self,
*,
Marker: str = ...,
MaxItems: str = ...,
) -> ListOriginAccessControlsResultTypeDef: # (1)
...
kwargs: ListOriginAccessControlsRequestRequestTypeDef = { # (1)
"Marker": ...,
}
parent.list_origin_access_controls(**kwargs)
list_origin_request_policies
Gets a list of origin request policies.
Type annotations and code completion for boto3.client("cloudfront").list_origin_request_policies
method.
boto3 documentation
def list_origin_request_policies(
self,
*,
Type: OriginRequestPolicyTypeType = ..., # (1)
Marker: str = ...,
MaxItems: str = ...,
) -> ListOriginRequestPoliciesResultTypeDef: # (2)
...
kwargs: ListOriginRequestPoliciesRequestRequestTypeDef = { # (1)
"Type": ...,
}
parent.list_origin_request_policies(**kwargs)
list_public_keys
List all public keys that have been added to CloudFront for this account.
Type annotations and code completion for boto3.client("cloudfront").list_public_keys
method.
boto3 documentation
def list_public_keys(
self,
*,
Marker: str = ...,
MaxItems: str = ...,
) -> ListPublicKeysResultTypeDef: # (1)
...
kwargs: ListPublicKeysRequestRequestTypeDef = { # (1)
"Marker": ...,
}
parent.list_public_keys(**kwargs)
list_realtime_log_configs
Gets a list of real-time log configurations.
Type annotations and code completion for boto3.client("cloudfront").list_realtime_log_configs
method.
boto3 documentation
def list_realtime_log_configs(
self,
*,
MaxItems: str = ...,
Marker: str = ...,
) -> ListRealtimeLogConfigsResultTypeDef: # (1)
...
kwargs: ListRealtimeLogConfigsRequestRequestTypeDef = { # (1)
"MaxItems": ...,
}
parent.list_realtime_log_configs(**kwargs)
list_response_headers_policies
Gets a list of response headers policies.
Type annotations and code completion for boto3.client("cloudfront").list_response_headers_policies
method.
boto3 documentation
def list_response_headers_policies(
self,
*,
Type: ResponseHeadersPolicyTypeType = ..., # (1)
Marker: str = ...,
MaxItems: str = ...,
) -> ListResponseHeadersPoliciesResultTypeDef: # (2)
...
kwargs: ListResponseHeadersPoliciesRequestRequestTypeDef = { # (1)
"Type": ...,
}
parent.list_response_headers_policies(**kwargs)
list_streaming_distributions
List streaming distributions.
Type annotations and code completion for boto3.client("cloudfront").list_streaming_distributions
method.
boto3 documentation
def list_streaming_distributions(
self,
*,
Marker: str = ...,
MaxItems: str = ...,
) -> ListStreamingDistributionsResultTypeDef: # (1)
...
kwargs: ListStreamingDistributionsRequestRequestTypeDef = { # (1)
"Marker": ...,
}
parent.list_streaming_distributions(**kwargs)
list_tags_for_resource
List tags for a CloudFront resource.
Type annotations and code completion for boto3.client("cloudfront").list_tags_for_resource
method.
boto3 documentation
def list_tags_for_resource(
self,
*,
Resource: str,
) -> ListTagsForResourceResultTypeDef: # (1)
...
kwargs: ListTagsForResourceRequestRequestTypeDef = { # (1)
"Resource": ...,
}
parent.list_tags_for_resource(**kwargs)
publish_function
Publishes a CloudFront function by copying the function code from the
DEVELOPMENT
stage to LIVE
.
Type annotations and code completion for boto3.client("cloudfront").publish_function
method.
boto3 documentation
def publish_function(
self,
*,
Name: str,
IfMatch: str,
) -> PublishFunctionResultTypeDef: # (1)
...
kwargs: PublishFunctionRequestRequestTypeDef = { # (1)
"Name": ...,
"IfMatch": ...,
}
parent.publish_function(**kwargs)
tag_resource
Add tags to a CloudFront resource.
Type annotations and code completion for boto3.client("cloudfront").tag_resource
method.
boto3 documentation
def tag_resource(
self,
*,
Resource: str,
Tags: TagsTypeDef, # (1)
) -> EmptyResponseMetadataTypeDef: # (2)
...
kwargs: TagResourceRequestRequestTypeDef = { # (1)
"Resource": ...,
"Tags": ...,
}
parent.tag_resource(**kwargs)
test_function
Tests a CloudFront function.
Type annotations and code completion for boto3.client("cloudfront").test_function
method.
boto3 documentation
def test_function(
self,
*,
Name: str,
IfMatch: str,
EventObject: Union[str, bytes, IO[Any], StreamingBody],
Stage: FunctionStageType = ..., # (1)
) -> TestFunctionResultTypeDef: # (2)
...
kwargs: TestFunctionRequestRequestTypeDef = { # (1)
"Name": ...,
"IfMatch": ...,
"EventObject": ...,
}
parent.test_function(**kwargs)
untag_resource
Remove tags from a CloudFront resource.
Type annotations and code completion for boto3.client("cloudfront").untag_resource
method.
boto3 documentation
def untag_resource(
self,
*,
Resource: str,
TagKeys: TagKeysTypeDef, # (1)
) -> EmptyResponseMetadataTypeDef: # (2)
...
kwargs: UntagResourceRequestRequestTypeDef = { # (1)
"Resource": ...,
"TagKeys": ...,
}
parent.untag_resource(**kwargs)
update_cache_policy
Updates a cache policy configuration.
Type annotations and code completion for boto3.client("cloudfront").update_cache_policy
method.
boto3 documentation
def update_cache_policy(
self,
*,
CachePolicyConfig: CachePolicyConfigTypeDef, # (1)
Id: str,
IfMatch: str = ...,
) -> UpdateCachePolicyResultTypeDef: # (2)
...
kwargs: UpdateCachePolicyRequestRequestTypeDef = { # (1)
"CachePolicyConfig": ...,
"Id": ...,
}
parent.update_cache_policy(**kwargs)
update_cloud_front_origin_access_identity
Update an origin access identity.
Type annotations and code completion for boto3.client("cloudfront").update_cloud_front_origin_access_identity
method.
boto3 documentation
def update_cloud_front_origin_access_identity(
self,
*,
CloudFrontOriginAccessIdentityConfig: CloudFrontOriginAccessIdentityConfigTypeDef, # (1)
Id: str,
IfMatch: str = ...,
) -> UpdateCloudFrontOriginAccessIdentityResultTypeDef: # (2)
...
- See CloudFrontOriginAccessIdentityConfigTypeDef
- See UpdateCloudFrontOriginAccessIdentityResultTypeDef
kwargs: UpdateCloudFrontOriginAccessIdentityRequestRequestTypeDef = { # (1)
"CloudFrontOriginAccessIdentityConfig": ...,
"Id": ...,
}
parent.update_cloud_front_origin_access_identity(**kwargs)
update_continuous_deployment_policy
Updates a continuous deployment policy.
Type annotations and code completion for boto3.client("cloudfront").update_continuous_deployment_policy
method.
boto3 documentation
def update_continuous_deployment_policy(
self,
*,
ContinuousDeploymentPolicyConfig: ContinuousDeploymentPolicyConfigTypeDef, # (1)
Id: str,
IfMatch: str = ...,
) -> UpdateContinuousDeploymentPolicyResultTypeDef: # (2)
...
kwargs: UpdateContinuousDeploymentPolicyRequestRequestTypeDef = { # (1)
"ContinuousDeploymentPolicyConfig": ...,
"Id": ...,
}
parent.update_continuous_deployment_policy(**kwargs)
update_distribution
Updates the configuration for a CloudFront distribution.
Type annotations and code completion for boto3.client("cloudfront").update_distribution
method.
boto3 documentation
def update_distribution(
self,
*,
DistributionConfig: DistributionConfigTypeDef, # (1)
Id: str,
IfMatch: str = ...,
) -> UpdateDistributionResultTypeDef: # (2)
...
kwargs: UpdateDistributionRequestRequestTypeDef = { # (1)
"DistributionConfig": ...,
"Id": ...,
}
parent.update_distribution(**kwargs)
update_distribution_with_staging_config
Copies the staging distribution's configuration to its corresponding primary distribution.
Type annotations and code completion for boto3.client("cloudfront").update_distribution_with_staging_config
method.
boto3 documentation
def update_distribution_with_staging_config(
self,
*,
Id: str,
StagingDistributionId: str = ...,
IfMatch: str = ...,
) -> UpdateDistributionWithStagingConfigResultTypeDef: # (1)
...
kwargs: UpdateDistributionWithStagingConfigRequestRequestTypeDef = { # (1)
"Id": ...,
}
parent.update_distribution_with_staging_config(**kwargs)
update_field_level_encryption_config
Update a field-level encryption configuration.
Type annotations and code completion for boto3.client("cloudfront").update_field_level_encryption_config
method.
boto3 documentation
def update_field_level_encryption_config(
self,
*,
FieldLevelEncryptionConfig: FieldLevelEncryptionConfigTypeDef, # (1)
Id: str,
IfMatch: str = ...,
) -> UpdateFieldLevelEncryptionConfigResultTypeDef: # (2)
...
kwargs: UpdateFieldLevelEncryptionConfigRequestRequestTypeDef = { # (1)
"FieldLevelEncryptionConfig": ...,
"Id": ...,
}
parent.update_field_level_encryption_config(**kwargs)
update_field_level_encryption_profile
Update a field-level encryption profile.
Type annotations and code completion for boto3.client("cloudfront").update_field_level_encryption_profile
method.
boto3 documentation
def update_field_level_encryption_profile(
self,
*,
FieldLevelEncryptionProfileConfig: FieldLevelEncryptionProfileConfigTypeDef, # (1)
Id: str,
IfMatch: str = ...,
) -> UpdateFieldLevelEncryptionProfileResultTypeDef: # (2)
...
kwargs: UpdateFieldLevelEncryptionProfileRequestRequestTypeDef = { # (1)
"FieldLevelEncryptionProfileConfig": ...,
"Id": ...,
}
parent.update_field_level_encryption_profile(**kwargs)
update_function
Updates a CloudFront function.
Type annotations and code completion for boto3.client("cloudfront").update_function
method.
boto3 documentation
def update_function(
self,
*,
Name: str,
IfMatch: str,
FunctionConfig: FunctionConfigTypeDef, # (1)
FunctionCode: Union[str, bytes, IO[Any], StreamingBody],
) -> UpdateFunctionResultTypeDef: # (2)
...
kwargs: UpdateFunctionRequestRequestTypeDef = { # (1)
"Name": ...,
"IfMatch": ...,
"FunctionConfig": ...,
"FunctionCode": ...,
}
parent.update_function(**kwargs)
update_key_group
Updates a key group.
Type annotations and code completion for boto3.client("cloudfront").update_key_group
method.
boto3 documentation
def update_key_group(
self,
*,
KeyGroupConfig: KeyGroupConfigTypeDef, # (1)
Id: str,
IfMatch: str = ...,
) -> UpdateKeyGroupResultTypeDef: # (2)
...
kwargs: UpdateKeyGroupRequestRequestTypeDef = { # (1)
"KeyGroupConfig": ...,
"Id": ...,
}
parent.update_key_group(**kwargs)
update_origin_access_control
Updates a CloudFront origin access control.
Type annotations and code completion for boto3.client("cloudfront").update_origin_access_control
method.
boto3 documentation
def update_origin_access_control(
self,
*,
OriginAccessControlConfig: OriginAccessControlConfigTypeDef, # (1)
Id: str,
IfMatch: str = ...,
) -> UpdateOriginAccessControlResultTypeDef: # (2)
...
kwargs: UpdateOriginAccessControlRequestRequestTypeDef = { # (1)
"OriginAccessControlConfig": ...,
"Id": ...,
}
parent.update_origin_access_control(**kwargs)
update_origin_request_policy
Updates an origin request policy configuration.
Type annotations and code completion for boto3.client("cloudfront").update_origin_request_policy
method.
boto3 documentation
def update_origin_request_policy(
self,
*,
OriginRequestPolicyConfig: OriginRequestPolicyConfigTypeDef, # (1)
Id: str,
IfMatch: str = ...,
) -> UpdateOriginRequestPolicyResultTypeDef: # (2)
...
kwargs: UpdateOriginRequestPolicyRequestRequestTypeDef = { # (1)
"OriginRequestPolicyConfig": ...,
"Id": ...,
}
parent.update_origin_request_policy(**kwargs)
update_public_key
Update public key information.
Type annotations and code completion for boto3.client("cloudfront").update_public_key
method.
boto3 documentation
def update_public_key(
self,
*,
PublicKeyConfig: PublicKeyConfigTypeDef, # (1)
Id: str,
IfMatch: str = ...,
) -> UpdatePublicKeyResultTypeDef: # (2)
...
kwargs: UpdatePublicKeyRequestRequestTypeDef = { # (1)
"PublicKeyConfig": ...,
"Id": ...,
}
parent.update_public_key(**kwargs)
update_realtime_log_config
Updates a real-time log configuration.
Type annotations and code completion for boto3.client("cloudfront").update_realtime_log_config
method.
boto3 documentation
def update_realtime_log_config(
self,
*,
EndPoints: Sequence[EndPointTypeDef] = ..., # (1)
Fields: Sequence[str] = ...,
Name: str = ...,
ARN: str = ...,
SamplingRate: int = ...,
) -> UpdateRealtimeLogConfigResultTypeDef: # (2)
...
kwargs: UpdateRealtimeLogConfigRequestRequestTypeDef = { # (1)
"EndPoints": ...,
}
parent.update_realtime_log_config(**kwargs)
update_response_headers_policy
Updates a response headers policy.
Type annotations and code completion for boto3.client("cloudfront").update_response_headers_policy
method.
boto3 documentation
def update_response_headers_policy(
self,
*,
ResponseHeadersPolicyConfig: ResponseHeadersPolicyConfigTypeDef, # (1)
Id: str,
IfMatch: str = ...,
) -> UpdateResponseHeadersPolicyResultTypeDef: # (2)
...
kwargs: UpdateResponseHeadersPolicyRequestRequestTypeDef = { # (1)
"ResponseHeadersPolicyConfig": ...,
"Id": ...,
}
parent.update_response_headers_policy(**kwargs)
update_streaming_distribution
Update a streaming distribution.
Type annotations and code completion for boto3.client("cloudfront").update_streaming_distribution
method.
boto3 documentation
def update_streaming_distribution(
self,
*,
StreamingDistributionConfig: StreamingDistributionConfigTypeDef, # (1)
Id: str,
IfMatch: str = ...,
) -> UpdateStreamingDistributionResultTypeDef: # (2)
...
kwargs: UpdateStreamingDistributionRequestRequestTypeDef = { # (1)
"StreamingDistributionConfig": ...,
"Id": ...,
}
parent.update_streaming_distribution(**kwargs)
get_paginator
Type annotations and code completion for boto3.client("cloudfront").get_paginator
method with overloads.
client.get_paginator("list_cloud_front_origin_access_identities")
-> ListCloudFrontOriginAccessIdentitiesPaginatorclient.get_paginator("list_distributions")
-> ListDistributionsPaginatorclient.get_paginator("list_invalidations")
-> ListInvalidationsPaginatorclient.get_paginator("list_streaming_distributions")
-> ListStreamingDistributionsPaginator
get_waiter
Type annotations and code completion for boto3.client("cloudfront").get_waiter
method with overloads.
client.get_waiter("distribution_deployed")
-> DistributionDeployedWaiterclient.get_waiter("invalidation_completed")
-> InvalidationCompletedWaiterclient.get_waiter("streaming_distribution_deployed")
-> StreamingDistributionDeployedWaiter