CfnServerlessClusterPropsMixin

class aws_cdk.cfn_property_mixins.aws_msk.CfnServerlessClusterPropsMixin(props, *, strategy=None)

Bases: Mixin

Specifies the properties required for creating a serverless cluster.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-serverlesscluster.html

CloudformationResource:

AWS::MSK::ServerlessCluster

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_msk as msk
import aws_cdk as cdk

# merge_strategy: cdk.IMergeStrategy

cfn_serverless_cluster_props_mixin = msk.CfnServerlessClusterPropsMixin(msk.CfnServerlessClusterMixinProps(
    client_authentication=msk.CfnServerlessClusterPropsMixin.ClientAuthenticationProperty(
        sasl=msk.CfnServerlessClusterPropsMixin.SaslProperty(
            iam=msk.CfnServerlessClusterPropsMixin.IamProperty(
                enabled=False
            )
        )
    ),
    cluster_name="clusterName",
    tags={
        "tags_key": "tags"
    },
    vpc_configs=[msk.CfnServerlessClusterPropsMixin.VpcConfigProperty(
        security_groups=["securityGroups"],
        subnet_ids=["subnetIds"]
    )]
),
    strategy=merge_strategy
)

Create a mixin to apply properties to AWS::MSK::ServerlessCluster.

Parameters:

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 = ['clientAuthentication', 'clusterName', 'tags', 'vpcConfigs']

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.

ClientAuthenticationProperty

class CfnServerlessClusterPropsMixin.ClientAuthenticationProperty(*, sasl=None)

Bases: object

Includes all client authentication information.

Parameters:

sasl (Union[IResolvable, SaslProperty, Dict[str, Any], None]) – Details for client authentication using SASL. To turn on SASL, you must also turn on EncryptionInTransit by setting inCluster to true. You must set clientBroker to either TLS or TLS_PLAINTEXT . If you choose TLS_PLAINTEXT , then you must also set unauthenticated to true.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-serverlesscluster-clientauthentication.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_msk as msk

client_authentication_property = msk.CfnServerlessClusterPropsMixin.ClientAuthenticationProperty(
    sasl=msk.CfnServerlessClusterPropsMixin.SaslProperty(
        iam=msk.CfnServerlessClusterPropsMixin.IamProperty(
            enabled=False
        )
    )
)

Attributes

sasl

Details for client authentication using SASL.

To turn on SASL, you must also turn on EncryptionInTransit by setting inCluster to true. You must set clientBroker to either TLS or TLS_PLAINTEXT . If you choose TLS_PLAINTEXT , then you must also set unauthenticated to true.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-serverlesscluster-clientauthentication.html#cfn-msk-serverlesscluster-clientauthentication-sasl

IamProperty

class CfnServerlessClusterPropsMixin.IamProperty(*, enabled=None)

Bases: object

Details for SASL/IAM client authentication.

Parameters:

enabled (Union[bool, IResolvable, None]) – SASL/IAM authentication is enabled or not.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-serverlesscluster-iam.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_msk as msk

iam_property = msk.CfnServerlessClusterPropsMixin.IamProperty(
    enabled=False
)

Attributes

enabled

SASL/IAM authentication is enabled or not.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-serverlesscluster-iam.html#cfn-msk-serverlesscluster-iam-enabled

SaslProperty

class CfnServerlessClusterPropsMixin.SaslProperty(*, iam=None)

Bases: object

Details for client authentication using SASL.

To turn on SASL, you must also turn on EncryptionInTransit by setting inCluster to true. You must set clientBroker to either TLS or TLS_PLAINTEXT . If you choose TLS_PLAINTEXT , then you must also set unauthenticated to true.

Parameters:

iam (Union[IResolvable, IamProperty, Dict[str, Any], None]) – Details for ClientAuthentication using IAM.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-serverlesscluster-sasl.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_msk as msk

sasl_property = msk.CfnServerlessClusterPropsMixin.SaslProperty(
    iam=msk.CfnServerlessClusterPropsMixin.IamProperty(
        enabled=False
    )
)

Attributes

iam

Details for ClientAuthentication using IAM.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-serverlesscluster-sasl.html#cfn-msk-serverlesscluster-sasl-iam

VpcConfigProperty

class CfnServerlessClusterPropsMixin.VpcConfigProperty(*, security_groups=None, subnet_ids=None)

Bases: object

Parameters:
See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-serverlesscluster-vpcconfig.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_msk as msk

vpc_config_property = msk.CfnServerlessClusterPropsMixin.VpcConfigProperty(
    security_groups=["securityGroups"],
    subnet_ids=["subnetIds"]
)

Attributes

security_groups

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-serverlesscluster-vpcconfig.html#cfn-msk-serverlesscluster-vpcconfig-securitygroups

Type:

see

subnet_ids

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-serverlesscluster-vpcconfig.html#cfn-msk-serverlesscluster-vpcconfig-subnetids

Type:

see