CloudFront module#
Index > CloudFront
Auto-generated documentation for CloudFront type annotations stubs module mypy-boto3-cloudfront.
How to install#
VSCode extension#
Add AWS Boto3
extension to your VSCode and run AWS boto3: Quick Start
command.
Click Modify
and select boto3 common
and CloudFront
.
From PyPI with pip#
Install boto3-stubs
for CloudFront
service.
# install with boto3 type annotations
python -m pip install 'boto3-stubs[cloudfront]'
# Lite version does not provide session.client/resource overloads
# it is more RAM-friendly, but requires explicit type annotations
python -m pip install 'boto3-stubs-lite[cloudfront]'
# standalone installation
python -m pip install mypy-boto3-cloudfront
How to uninstall#
python -m pip uninstall -y mypy-boto3-cloudfront
Usage#
Code samples can be found in Examples.
CloudFrontClient#
Type annotations and code completion for boto3.client("cloudfront")
as CloudFrontClient
boto3 documentation
# CloudFrontClient usage example
from boto3.session import Session
from mypy_boto3_cloudfront.client import CloudFrontClient
def get_client() -> CloudFrontClient:
return Session().client("cloudfront")
Paginators#
Type annotations and code completion for paginators
from boto3.client("cloudfront").get_paginator("...")
.
# ListCloudFrontOriginAccessIdentitiesPaginator usage example
from boto3.session import Session
from mypy_boto3_cloudfront.paginator import ListCloudFrontOriginAccessIdentitiesPaginator
def get_list_cloud_front_origin_access_identities_paginator() -> ListCloudFrontOriginAccessIdentitiesPaginator:
return Session().client("cloudfront").get_paginator("list_cloud_front_origin_access_identities"))
- ListCloudFrontOriginAccessIdentitiesPaginator
- ListDistributionsPaginator
- ListInvalidationsPaginator
- ListKeyValueStoresPaginator
- ListStreamingDistributionsPaginator
Waiters#
Type annotations and code completion for waiters
from boto3.client("cloudfront").get_waiter("...")
.
# DistributionDeployedWaiter usage example
from boto3.session import Session
from mypy_boto3_cloudfront.waiter import DistributionDeployedWaiter
def get_distribution_deployed_waiter() -> DistributionDeployedWaiter:
return Session().client("cloudfront").get_waiter("distribution_deployed")
Literals#
Type annotations for literals used in methods and schema.
# CachePolicyCookieBehaviorType usage example
from mypy_boto3_cloudfront.literals import CachePolicyCookieBehaviorType
def get_value() -> CachePolicyCookieBehaviorType:
return "all"
- CachePolicyCookieBehaviorType
- CachePolicyHeaderBehaviorType
- CachePolicyQueryStringBehaviorType
- CachePolicyTypeType
- CertificateSourceType
- ContinuousDeploymentPolicyTypeType
- DistributionDeployedWaiterName
- EventTypeType
- FormatType
- FrameOptionsListType
- FunctionRuntimeType
- FunctionStageType
- GeoRestrictionTypeType
- HttpVersionType
- ICPRecordalStatusType
- ImportSourceTypeType
- InvalidationCompletedWaiterName
- ItemSelectionType
- ListCloudFrontOriginAccessIdentitiesPaginatorName
- ListDistributionsPaginatorName
- ListInvalidationsPaginatorName
- ListKeyValueStoresPaginatorName
- ListStreamingDistributionsPaginatorName
- MethodType
- MinimumProtocolVersionType
- OriginAccessControlOriginTypesType
- OriginAccessControlSigningBehaviorsType
- OriginAccessControlSigningProtocolsType
- OriginProtocolPolicyType
- OriginRequestPolicyCookieBehaviorType
- OriginRequestPolicyHeaderBehaviorType
- OriginRequestPolicyQueryStringBehaviorType
- OriginRequestPolicyTypeType
- PriceClassType
- RealtimeMetricsSubscriptionStatusType
- ReferrerPolicyListType
- ResponseHeadersPolicyAccessControlAllowMethodsValuesType
- ResponseHeadersPolicyTypeType
- SSLSupportMethodType
- SslProtocolType
- StreamingDistributionDeployedWaiterName
- ViewerProtocolPolicyType
- CloudFrontServiceName
- ServiceName
- ResourceServiceName
- PaginatorName
- WaiterName
Type definitions#
Type annotations for type definitions used in methods and schema.
- AliasICPRecordalTypeDef
- AliasesOutputTypeDef
- AliasesTypeDef
- CachedMethodsOutputTypeDef
- CachedMethodsTypeDef
- AssociateAliasRequestRequestTypeDef
- BlobTypeDef
- TrustedKeyGroupsOutputTypeDef
- TrustedSignersOutputTypeDef
- TrustedKeyGroupsTypeDef
- TrustedSignersTypeDef
- CookieNamesOutputTypeDef
- CookieNamesTypeDef
- HeadersOutputTypeDef
- HeadersTypeDef
- QueryStringNamesOutputTypeDef
- QueryStringNamesTypeDef
- CloudFrontOriginAccessIdentityConfigTypeDef
- CloudFrontOriginAccessIdentitySummaryTypeDef
- ConflictingAliasTypeDef
- ContentTypeProfileTypeDef
- StagingDistributionDnsNamesOutputTypeDef
- StagingDistributionDnsNamesTypeDef
- ContinuousDeploymentSingleHeaderConfigTypeDef
- SessionStickinessConfigTypeDef
- CopyDistributionRequestRequestTypeDef
- ResponseMetadataTypeDef
- KeyGroupConfigTypeDef
- ImportSourceTypeDef
- KeyValueStoreTypeDef
- OriginAccessControlConfigTypeDef
- PublicKeyConfigTypeDef
- CustomErrorResponseTypeDef
- OriginCustomHeaderTypeDef
- OriginSslProtocolsOutputTypeDef
- OriginSslProtocolsTypeDef
- DeleteCachePolicyRequestRequestTypeDef
- DeleteCloudFrontOriginAccessIdentityRequestRequestTypeDef
- DeleteContinuousDeploymentPolicyRequestRequestTypeDef
- DeleteDistributionRequestRequestTypeDef
- DeleteFieldLevelEncryptionConfigRequestRequestTypeDef
- DeleteFieldLevelEncryptionProfileRequestRequestTypeDef
- DeleteFunctionRequestRequestTypeDef
- DeleteKeyGroupRequestRequestTypeDef
- DeleteKeyValueStoreRequestRequestTypeDef
- DeleteMonitoringSubscriptionRequestRequestTypeDef
- DeleteOriginAccessControlRequestRequestTypeDef
- DeleteOriginRequestPolicyRequestRequestTypeDef
- DeletePublicKeyRequestRequestTypeDef
- DeleteRealtimeLogConfigRequestRequestTypeDef
- DeleteResponseHeadersPolicyRequestRequestTypeDef
- DeleteStreamingDistributionRequestRequestTypeDef
- DescribeFunctionRequestRequestTypeDef
- DescribeKeyValueStoreRequestRequestTypeDef
- LoggingConfigTypeDef
- ViewerCertificateTypeDef
- DistributionIdListTypeDef
- FieldPatternsOutputTypeDef
- FieldPatternsTypeDef
- KinesisStreamConfigTypeDef
- QueryStringCacheKeysOutputTypeDef
- QueryStringCacheKeysTypeDef
- FunctionAssociationTypeDef
- FunctionMetadataTypeDef
- GeoRestrictionOutputTypeDef
- GeoRestrictionTypeDef
- GetCachePolicyConfigRequestRequestTypeDef
- GetCachePolicyRequestRequestTypeDef
- GetCloudFrontOriginAccessIdentityConfigRequestRequestTypeDef
- GetCloudFrontOriginAccessIdentityRequestRequestTypeDef
- GetContinuousDeploymentPolicyConfigRequestRequestTypeDef
- GetContinuousDeploymentPolicyRequestRequestTypeDef
- GetDistributionConfigRequestRequestTypeDef
- WaiterConfigTypeDef
- GetDistributionRequestRequestTypeDef
- GetFieldLevelEncryptionConfigRequestRequestTypeDef
- GetFieldLevelEncryptionProfileConfigRequestRequestTypeDef
- GetFieldLevelEncryptionProfileRequestRequestTypeDef
- GetFieldLevelEncryptionRequestRequestTypeDef
- GetFunctionRequestRequestTypeDef
- GetInvalidationRequestRequestTypeDef
- GetKeyGroupConfigRequestRequestTypeDef
- KeyGroupConfigOutputTypeDef
- GetKeyGroupRequestRequestTypeDef
- GetMonitoringSubscriptionRequestRequestTypeDef
- GetOriginAccessControlConfigRequestRequestTypeDef
- GetOriginAccessControlRequestRequestTypeDef
- GetOriginRequestPolicyConfigRequestRequestTypeDef
- GetOriginRequestPolicyRequestRequestTypeDef
- GetPublicKeyConfigRequestRequestTypeDef
- GetPublicKeyRequestRequestTypeDef
- GetRealtimeLogConfigRequestRequestTypeDef
- GetResponseHeadersPolicyConfigRequestRequestTypeDef
- GetResponseHeadersPolicyRequestRequestTypeDef
- GetStreamingDistributionConfigRequestRequestTypeDef
- GetStreamingDistributionRequestRequestTypeDef
- PathsOutputTypeDef
- PathsTypeDef
- InvalidationSummaryTypeDef
- KeyPairIdsTypeDef
- KeyValueStoreAssociationTypeDef
- LambdaFunctionAssociationTypeDef
- ListCachePoliciesRequestRequestTypeDef
- PaginatorConfigTypeDef
- ListCloudFrontOriginAccessIdentitiesRequestRequestTypeDef
- ListConflictingAliasesRequestRequestTypeDef
- ListContinuousDeploymentPoliciesRequestRequestTypeDef
- ListDistributionsByCachePolicyIdRequestRequestTypeDef
- ListDistributionsByKeyGroupRequestRequestTypeDef
- ListDistributionsByOriginRequestPolicyIdRequestRequestTypeDef
- ListDistributionsByRealtimeLogConfigRequestRequestTypeDef
- ListDistributionsByResponseHeadersPolicyIdRequestRequestTypeDef
- ListDistributionsByWebACLIdRequestRequestTypeDef
- ListDistributionsRequestRequestTypeDef
- ListFieldLevelEncryptionConfigsRequestRequestTypeDef
- ListFieldLevelEncryptionProfilesRequestRequestTypeDef
- ListFunctionsRequestRequestTypeDef
- ListInvalidationsRequestRequestTypeDef
- ListKeyGroupsRequestRequestTypeDef
- ListKeyValueStoresRequestRequestTypeDef
- ListOriginAccessControlsRequestRequestTypeDef
- ListOriginRequestPoliciesRequestRequestTypeDef
- ListPublicKeysRequestRequestTypeDef
- ListRealtimeLogConfigsRequestRequestTypeDef
- ListResponseHeadersPoliciesRequestRequestTypeDef
- ListStreamingDistributionsRequestRequestTypeDef
- ListTagsForResourceRequestRequestTypeDef
- RealtimeMetricsSubscriptionConfigTypeDef
- OriginAccessControlSummaryTypeDef
- StatusCodesOutputTypeDef
- StatusCodesTypeDef
- OriginGroupMemberTypeDef
- OriginShieldTypeDef
- S3OriginConfigTypeDef
- PublicKeySummaryTypeDef
- PublishFunctionRequestRequestTypeDef
- QueryArgProfileTypeDef
- ResponseHeadersPolicyAccessControlAllowHeadersOutputTypeDef
- ResponseHeadersPolicyAccessControlAllowHeadersTypeDef
- ResponseHeadersPolicyAccessControlAllowMethodsOutputTypeDef
- ResponseHeadersPolicyAccessControlAllowMethodsTypeDef
- ResponseHeadersPolicyAccessControlAllowOriginsOutputTypeDef
- ResponseHeadersPolicyAccessControlAllowOriginsTypeDef
- ResponseHeadersPolicyAccessControlExposeHeadersOutputTypeDef
- ResponseHeadersPolicyAccessControlExposeHeadersTypeDef
- ResponseHeadersPolicyServerTimingHeadersConfigTypeDef
- ResponseHeadersPolicyContentSecurityPolicyTypeDef
- ResponseHeadersPolicyContentTypeOptionsTypeDef
- ResponseHeadersPolicyCustomHeaderTypeDef
- ResponseHeadersPolicyFrameOptionsTypeDef
- ResponseHeadersPolicyReferrerPolicyTypeDef
- ResponseHeadersPolicyRemoveHeaderTypeDef
- ResponseHeadersPolicyStrictTransportSecurityTypeDef
- ResponseHeadersPolicyXSSProtectionTypeDef
- S3OriginTypeDef
- StreamingLoggingConfigTypeDef
- TagKeysTypeDef
- TagTypeDef
- UpdateDistributionWithStagingConfigRequestRequestTypeDef
- UpdateKeyValueStoreRequestRequestTypeDef
- AllowedMethodsOutputTypeDef
- AllowedMethodsTypeDef
- TestFunctionRequestRequestTypeDef
- CachePolicyCookiesConfigOutputTypeDef
- CookiePreferenceOutputTypeDef
- OriginRequestPolicyCookiesConfigOutputTypeDef
- CachePolicyCookiesConfigTypeDef
- CookiePreferenceTypeDef
- OriginRequestPolicyCookiesConfigTypeDef
- CachePolicyHeadersConfigOutputTypeDef
- OriginRequestPolicyHeadersConfigOutputTypeDef
- CachePolicyHeadersConfigTypeDef
- OriginRequestPolicyHeadersConfigTypeDef
- CachePolicyQueryStringsConfigOutputTypeDef
- OriginRequestPolicyQueryStringsConfigOutputTypeDef
- CachePolicyQueryStringsConfigTypeDef
- OriginRequestPolicyQueryStringsConfigTypeDef
- CloudFrontOriginAccessIdentityTypeDef
- CreateCloudFrontOriginAccessIdentityRequestRequestTypeDef
- UpdateCloudFrontOriginAccessIdentityRequestRequestTypeDef
- CloudFrontOriginAccessIdentityListTypeDef
- ConflictingAliasesListTypeDef
- ContentTypeProfilesOutputTypeDef
- ContentTypeProfilesTypeDef
- ContinuousDeploymentSingleWeightConfigTypeDef
- EmptyResponseMetadataTypeDef
- GetCloudFrontOriginAccessIdentityConfigResultTypeDef
- GetFunctionResultTypeDef
- CreateKeyGroupRequestRequestTypeDef
- UpdateKeyGroupRequestRequestTypeDef
- CreateKeyValueStoreRequestRequestTypeDef
- CreateKeyValueStoreResultTypeDef
- DescribeKeyValueStoreResultTypeDef
- KeyValueStoreListTypeDef
- UpdateKeyValueStoreResultTypeDef
- CreateOriginAccessControlRequestRequestTypeDef
- GetOriginAccessControlConfigResultTypeDef
- OriginAccessControlTypeDef
- UpdateOriginAccessControlRequestRequestTypeDef
- CreatePublicKeyRequestRequestTypeDef
- GetPublicKeyConfigResultTypeDef
- PublicKeyTypeDef
- UpdatePublicKeyRequestRequestTypeDef
- CustomErrorResponsesOutputTypeDef
- CustomErrorResponsesTypeDef
- CustomHeadersOutputTypeDef
- CustomHeadersTypeDef
- CustomOriginConfigOutputTypeDef
- CustomOriginConfigTypeDef
- ListDistributionsByCachePolicyIdResultTypeDef
- ListDistributionsByKeyGroupResultTypeDef
- ListDistributionsByOriginRequestPolicyIdResultTypeDef
- ListDistributionsByResponseHeadersPolicyIdResultTypeDef
- EncryptionEntityOutputTypeDef
- EncryptionEntityTypeDef
- EndPointTypeDef
- FunctionAssociationsOutputTypeDef
- FunctionAssociationsTypeDef
- RestrictionsOutputTypeDef
- RestrictionsTypeDef
- GetDistributionRequestDistributionDeployedWaitTypeDef
- GetInvalidationRequestInvalidationCompletedWaitTypeDef
- GetStreamingDistributionRequestStreamingDistributionDeployedWaitTypeDef
- GetKeyGroupConfigResultTypeDef
- KeyGroupConfigUnionTypeDef
- KeyGroupTypeDef
- InvalidationBatchOutputTypeDef
- InvalidationBatchTypeDef
- InvalidationListTypeDef
- KGKeyPairIdsTypeDef
- SignerTypeDef
- KeyValueStoreAssociationsOutputTypeDef
- KeyValueStoreAssociationsTypeDef
- LambdaFunctionAssociationsOutputTypeDef
- LambdaFunctionAssociationsTypeDef
- ListCloudFrontOriginAccessIdentitiesRequestListCloudFrontOriginAccessIdentitiesPaginateTypeDef
- ListDistributionsRequestListDistributionsPaginateTypeDef
- ListInvalidationsRequestListInvalidationsPaginateTypeDef
- ListKeyValueStoresRequestListKeyValueStoresPaginateTypeDef
- ListStreamingDistributionsRequestListStreamingDistributionsPaginateTypeDef
- MonitoringSubscriptionTypeDef
- OriginAccessControlListTypeDef
- OriginGroupFailoverCriteriaOutputTypeDef
- OriginGroupFailoverCriteriaTypeDef
- OriginGroupMembersOutputTypeDef
- OriginGroupMembersTypeDef
- PublicKeyListTypeDef
- QueryArgProfilesOutputTypeDef
- QueryArgProfilesTypeDef
- ResponseHeadersPolicyCorsConfigOutputTypeDef
- ResponseHeadersPolicyCorsConfigTypeDef
- ResponseHeadersPolicyCustomHeadersConfigOutputTypeDef
- ResponseHeadersPolicyCustomHeadersConfigTypeDef
- ResponseHeadersPolicyRemoveHeadersConfigOutputTypeDef
- ResponseHeadersPolicyRemoveHeadersConfigTypeDef
- ResponseHeadersPolicySecurityHeadersConfigTypeDef
- StreamingDistributionSummaryTypeDef
- StreamingDistributionConfigOutputTypeDef
- StreamingDistributionConfigTypeDef
- UntagResourceRequestRequestTypeDef
- TagsOutputTypeDef
- TagsTypeDef
- ForwardedValuesOutputTypeDef
- ForwardedValuesTypeDef
- ParametersInCacheKeyAndForwardedToOriginOutputTypeDef
- OriginRequestPolicyConfigOutputTypeDef
- ParametersInCacheKeyAndForwardedToOriginTypeDef
- OriginRequestPolicyConfigTypeDef
- CreateCloudFrontOriginAccessIdentityResultTypeDef
- GetCloudFrontOriginAccessIdentityResultTypeDef
- UpdateCloudFrontOriginAccessIdentityResultTypeDef
- ListCloudFrontOriginAccessIdentitiesResultTypeDef
- ListConflictingAliasesResultTypeDef
- ContentTypeProfileConfigOutputTypeDef
- ContentTypeProfileConfigTypeDef
- TrafficConfigTypeDef
- ListKeyValueStoresResultTypeDef
- CreateOriginAccessControlResultTypeDef
- GetOriginAccessControlResultTypeDef
- UpdateOriginAccessControlResultTypeDef
- CreatePublicKeyResultTypeDef
- GetPublicKeyResultTypeDef
- UpdatePublicKeyResultTypeDef
- OriginOutputTypeDef
- OriginTypeDef
- EncryptionEntitiesOutputTypeDef
- EncryptionEntitiesTypeDef
- CreateRealtimeLogConfigRequestRequestTypeDef
- RealtimeLogConfigTypeDef
- UpdateRealtimeLogConfigRequestRequestTypeDef
- CreateKeyGroupResultTypeDef
- GetKeyGroupResultTypeDef
- KeyGroupSummaryTypeDef
- UpdateKeyGroupResultTypeDef
- InvalidationTypeDef
- CreateInvalidationRequestRequestTypeDef
- InvalidationBatchUnionTypeDef
- ListInvalidationsResultTypeDef
- ActiveTrustedKeyGroupsTypeDef
- ActiveTrustedSignersTypeDef
- FunctionConfigOutputTypeDef
- FunctionConfigTypeDef
- CreateMonitoringSubscriptionRequestRequestTypeDef
- CreateMonitoringSubscriptionResultTypeDef
- GetMonitoringSubscriptionResultTypeDef
- ListOriginAccessControlsResultTypeDef
- OriginGroupOutputTypeDef
- OriginGroupTypeDef
- ListPublicKeysResultTypeDef
- QueryArgProfileConfigOutputTypeDef
- QueryArgProfileConfigTypeDef
- ResponseHeadersPolicyConfigOutputTypeDef
- ResponseHeadersPolicyConfigTypeDef
- StreamingDistributionListTypeDef
- GetStreamingDistributionConfigResultTypeDef
- CreateStreamingDistributionRequestRequestTypeDef
- StreamingDistributionConfigUnionTypeDef
- UpdateStreamingDistributionRequestRequestTypeDef
- ListTagsForResourceResultTypeDef
- StreamingDistributionConfigWithTagsTypeDef
- TagResourceRequestRequestTypeDef
- TagsUnionTypeDef
- CacheBehaviorOutputTypeDef
- DefaultCacheBehaviorOutputTypeDef
- CacheBehaviorTypeDef
- DefaultCacheBehaviorTypeDef
- CachePolicyConfigOutputTypeDef
- GetOriginRequestPolicyConfigResultTypeDef<