CfnPackagingGroupPropsMixin

class aws_cdk.mixins_preview.aws_mediapackage.mixins.CfnPackagingGroupPropsMixin(props, *, strategy=None)

Bases: Mixin

Creates a packaging group.

The packaging group holds one or more packaging configurations. When you create an asset, you specify the packaging group associated with the asset. The asset has playback endpoints for each packaging configuration within the group.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediapackage-packaginggroup.html

CloudformationResource:

AWS::MediaPackage::PackagingGroup

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_mediapackage import mixins as mediapackage_mixins

cfn_packaging_group_props_mixin = mediapackage_mixins.CfnPackagingGroupPropsMixin(mediapackage_mixins.CfnPackagingGroupMixinProps(
    authorization=mediapackage_mixins.CfnPackagingGroupPropsMixin.AuthorizationProperty(
        cdn_identifier_secret="cdnIdentifierSecret",
        secrets_role_arn="secretsRoleArn"
    ),
    egress_access_logs=mediapackage_mixins.CfnPackagingGroupPropsMixin.LogConfigurationProperty(
        log_group_name="logGroupName"
    ),
    id="id",
    tags=[CfnTag(
        key="key",
        value="value"
    )]
),
    strategy=mixins.PropertyMergeStrategy.OVERRIDE
)

Create a mixin to apply properties to AWS::MediaPackage::PackagingGroup.

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 = ['authorization', 'egressAccessLogs', 'id', 'tags']

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

AuthorizationProperty

class CfnPackagingGroupPropsMixin.AuthorizationProperty(*, cdn_identifier_secret=None, secrets_role_arn=None)

Bases: object

Parameters for enabling CDN authorization.

Parameters:
  • cdn_identifier_secret (Optional[str]) – The Amazon Resource Name (ARN) for the secret in AWS Secrets Manager that is used for CDN authorization.

  • secrets_role_arn (Optional[str]) – The Amazon Resource Name (ARN) for the IAM role that allows AWS Elemental MediaPackage to communicate with AWS Secrets Manager .

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackage-packaginggroup-authorization.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_mediapackage import mixins as mediapackage_mixins

authorization_property = mediapackage_mixins.CfnPackagingGroupPropsMixin.AuthorizationProperty(
    cdn_identifier_secret="cdnIdentifierSecret",
    secrets_role_arn="secretsRoleArn"
)

Attributes

cdn_identifier_secret

The Amazon Resource Name (ARN) for the secret in AWS Secrets Manager that is used for CDN authorization.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackage-packaginggroup-authorization.html#cfn-mediapackage-packaginggroup-authorization-cdnidentifiersecret

secrets_role_arn

The Amazon Resource Name (ARN) for the IAM role that allows AWS Elemental MediaPackage to communicate with AWS Secrets Manager .

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackage-packaginggroup-authorization.html#cfn-mediapackage-packaginggroup-authorization-secretsrolearn

LogConfigurationProperty

class CfnPackagingGroupPropsMixin.LogConfigurationProperty(*, log_group_name=None)

Bases: object

Sets a custom Amazon CloudWatch log group name for egress logs.

If a log group name isn’t specified, the default name is used: /aws/MediaPackage/EgressAccessLogs.

Parameters:

log_group_name (Optional[str]) – Sets a custom Amazon CloudWatch log group name for egress logs. If a log group name isn’t specified, the default name is used: /aws/MediaPackage/EgressAccessLogs.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackage-packaginggroup-logconfiguration.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_mediapackage import mixins as mediapackage_mixins

log_configuration_property = mediapackage_mixins.CfnPackagingGroupPropsMixin.LogConfigurationProperty(
    log_group_name="logGroupName"
)

Attributes

log_group_name

Sets a custom Amazon CloudWatch log group name for egress logs.

If a log group name isn’t specified, the default name is used: /aws/MediaPackage/EgressAccessLogs.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackage-packaginggroup-logconfiguration.html#cfn-mediapackage-packaginggroup-logconfiguration-loggroupname