CfnSchemaPropsMixin

class aws_cdk.cfn_property_mixins.aws_glue.CfnSchemaPropsMixin(props, *, strategy=None)

Bases: Mixin

The AWS::Glue::Schema is an AWS Glue resource type that manages schemas in the AWS Glue Schema Registry.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-schema.html

CloudformationResource:

AWS::Glue::Schema

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.cfn_property_mixins import aws_glue as glue
import aws_cdk as cdk

# merge_strategy: cdk.IMergeStrategy

cfn_schema_props_mixin = glue.CfnSchemaPropsMixin(glue.CfnSchemaMixinProps(
    checkpoint_version=glue.CfnSchemaPropsMixin.SchemaVersionProperty(
        is_latest=False,
        version_number=123
    ),
    compatibility="compatibility",
    data_format="dataFormat",
    description="description",
    name="name",
    registry=glue.CfnSchemaPropsMixin.RegistryProperty(
        arn="arn",
        name="name"
    ),
    schema_definition="schemaDefinition",
    tags=[cdk.CfnTag(
        key="key",
        value="value"
    )]
),
    strategy=merge_strategy
)

Create a mixin to apply properties to AWS::Glue::Schema.

Parameters:
  • props (Union[CfnSchemaMixinProps, Dict[str, Any]]) – L1 properties to apply.

  • strategy (Optional[IMergeStrategy]) – Strategy for merging nested properties. Default: - PropertyMergeStrategy.combine()

Methods

apply_to(construct)

Apply the mixin properties to the construct.

Parameters:

construct (IConstruct)

Return type:

None

supports(construct)

Check if this mixin supports the given construct.

Parameters:

construct (IConstruct)

Return type:

bool

Attributes

CFN_PROPERTY_KEYS = ['checkpointVersion', 'compatibility', 'dataFormat', 'description', 'name', 'registry', 'schemaDefinition', 'tags']

Static Methods

classmethod is_mixin(x)

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.

RegistryProperty

class CfnSchemaPropsMixin.RegistryProperty(*, arn=None, name=None)

Bases: object

Specifies a registry in the AWS Glue Schema Registry.

Parameters:
  • arn (Union[str, IRegistryRef, None]) – The Amazon Resource Name (ARN) of the registry.

  • name (Optional[str]) – The name of the registry.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-schema-registry.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.cfn_property_mixins import aws_glue as glue

registry_property = glue.CfnSchemaPropsMixin.RegistryProperty(
    arn="arn",
    name="name"
)

Attributes

arn

The Amazon Resource Name (ARN) of the registry.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-schema-registry.html#cfn-glue-schema-registry-arn

name

The name of the registry.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-schema-registry.html#cfn-glue-schema-registry-name

SchemaVersionProperty

class CfnSchemaPropsMixin.SchemaVersionProperty(*, is_latest=None, version_number=None)

Bases: object

Specifies the version of a schema.

Parameters:
  • is_latest (Union[bool, IResolvable, None]) – Indicates if this version is the latest version of the schema.

  • version_number (Union[int, float, None]) – The version number of the schema.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-schema-schemaversion.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.cfn_property_mixins import aws_glue as glue

schema_version_property = glue.CfnSchemaPropsMixin.SchemaVersionProperty(
    is_latest=False,
    version_number=123
)

Attributes

is_latest

Indicates if this version is the latest version of the schema.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-schema-schemaversion.html#cfn-glue-schema-schemaversion-islatest

version_number

The version number of the schema.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-schema-schemaversion.html#cfn-glue-schema-schemaversion-versionnumber