CfnOriginEndpointPolicyPropsMixin

class aws_cdk.mixins_preview.aws_mediapackagev2.mixins.CfnOriginEndpointPolicyPropsMixin(props, *, strategy=None)

Bases: Mixin

Specifies the configuration parameters of a policy associated with a MediaPackage V2 origin endpoint.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediapackagev2-originendpointpolicy.html

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:

Methods

apply_to(construct)

Apply the mixin properties to the construct.

Parameters:

construct (IConstruct)

Return type:

IConstruct

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 x is a Mixin.

Parameters:

x (Any) – Any object.

Return type:

bool

Returns:

true if x is an object created from a class which extends Mixin.

Stability:

experimental

CdnAuthConfigurationProperty

class CfnOriginEndpointPolicyPropsMixin.CdnAuthConfigurationProperty(*, cdn_identifier_secret_arns=None, secrets_role_arn=None)

Bases: object

The 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:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackagev2-originendpointpolicy-cdnauthconfiguration.html

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.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackagev2-originendpointpolicy-cdnauthconfiguration.html#cfn-mediapackagev2-originendpointpolicy-cdnauthconfiguration-cdnidentifiersecretarns

secrets_role_arn

The ARN for the IAM role that gives MediaPackage read access to Secrets Manager and AWS for CDN authorization.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackagev2-originendpointpolicy-cdnauthconfiguration.html#cfn-mediapackagev2-originendpointpolicy-cdnauthconfiguration-secretsrolearn