CfnOriginEndpointPolicyPropsMixin
- class aws_cdk.mixins_preview.aws_mediapackagev2.mixins.CfnOriginEndpointPolicyPropsMixin(props, *, strategy=None)
Bases:
MixinSpecifies the configuration parameters of a policy associated with a MediaPackage V2 origin endpoint.
- See:
- CloudformationResource:
AWS::MediaPackageV2::OriginEndpointPolicy
- Mixin:
true
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview import mixins from aws_cdk.mixins_preview.aws_mediapackagev2 import mixins as mediapackagev2_mixins # policy: Any cfn_origin_endpoint_policy_props_mixin = mediapackagev2_mixins.CfnOriginEndpointPolicyPropsMixin(mediapackagev2_mixins.CfnOriginEndpointPolicyMixinProps( cdn_auth_configuration=mediapackagev2_mixins.CfnOriginEndpointPolicyPropsMixin.CdnAuthConfigurationProperty( cdn_identifier_secret_arns=["cdnIdentifierSecretArns"], secrets_role_arn="secretsRoleArn" ), channel_group_name="channelGroupName", channel_name="channelName", origin_endpoint_name="originEndpointName", policy=policy ), strategy=mixins.PropertyMergeStrategy.OVERRIDE )
Create a mixin to apply properties to
AWS::MediaPackageV2::OriginEndpointPolicy.- Parameters:
props (
Union[CfnOriginEndpointPolicyMixinProps,Dict[str,Any]]) – L1 properties to apply.strategy (
Optional[PropertyMergeStrategy]) – (experimental) Strategy for merging nested properties. Default: - PropertyMergeStrategy.MERGE
Methods
- apply_to(construct)
Apply the mixin properties to the construct.
- Parameters:
construct (
IConstruct)- Return type:
- supports(construct)
Check if this mixin supports the given construct.
- Parameters:
construct (
IConstruct)- Return type:
bool
Attributes
- CFN_PROPERTY_KEYS = ['cdnAuthConfiguration', 'channelGroupName', 'channelName', 'originEndpointName', 'policy']
Static Methods
- classmethod is_mixin(x)
(experimental) Checks if
xis a Mixin.- Parameters:
x (
Any) – Any object.- Return type:
bool- Returns:
true if
xis an object created from a class which extendsMixin.- Stability:
experimental
CdnAuthConfigurationProperty
- class CfnOriginEndpointPolicyPropsMixin.CdnAuthConfigurationProperty(*, cdn_identifier_secret_arns=None, secrets_role_arn=None)
Bases:
objectThe settings to enable CDN authorization headers in MediaPackage.
- Parameters:
cdn_identifier_secret_arns (
Optional[Sequence[str]]) – The ARN for the secret in Secrets Manager that your CDN uses for authorization to access the endpoint.secrets_role_arn (
Optional[str]) – The ARN for the IAM role that gives MediaPackage read access to Secrets Manager and AWS for CDN authorization.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_mediapackagev2 import mixins as mediapackagev2_mixins cdn_auth_configuration_property = mediapackagev2_mixins.CfnOriginEndpointPolicyPropsMixin.CdnAuthConfigurationProperty( cdn_identifier_secret_arns=["cdnIdentifierSecretArns"], secrets_role_arn="secretsRoleArn" )
Attributes
- cdn_identifier_secret_arns
The ARN for the secret in Secrets Manager that your CDN uses for authorization to access the endpoint.
- secrets_role_arn
The ARN for the IAM role that gives MediaPackage read access to Secrets Manager and AWS for CDN authorization.