CfnServerlessClusterPropsMixin
- class aws_cdk.mixins_preview.aws_msk.mixins.CfnServerlessClusterPropsMixin(props, *, strategy=None)
Bases:
MixinSpecifies the properties required for creating a serverless cluster.
- See:
- 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.mixins_preview import mixins from aws_cdk.mixins_preview.aws_msk import mixins as msk_mixins cfn_serverless_cluster_props_mixin = msk_mixins.CfnServerlessClusterPropsMixin(msk_mixins.CfnServerlessClusterMixinProps( client_authentication=msk_mixins.CfnServerlessClusterPropsMixin.ClientAuthenticationProperty( sasl=msk_mixins.CfnServerlessClusterPropsMixin.SaslProperty( iam=msk_mixins.CfnServerlessClusterPropsMixin.IamProperty( enabled=False ) ) ), cluster_name="clusterName", tags={ "tags_key": "tags" }, vpc_configs=[msk_mixins.CfnServerlessClusterPropsMixin.VpcConfigProperty( security_groups=["securityGroups"], subnet_ids=["subnetIds"] )] ), strategy=mixins.PropertyMergeStrategy.OVERRIDE )
Create a mixin to apply properties to
AWS::MSK::ServerlessCluster.- Parameters:
props (
Union[CfnServerlessClusterMixinProps,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 = ['clientAuthentication', 'clusterName', 'tags', 'vpcConfigs']
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
ClientAuthenticationProperty
- class CfnServerlessClusterPropsMixin.ClientAuthenticationProperty(*, sasl=None)
Bases:
objectIncludes 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 onEncryptionInTransitby settinginClusterto true. You must setclientBrokerto eitherTLSorTLS_PLAINTEXT. If you chooseTLS_PLAINTEXT, then you must also setunauthenticatedto true.- 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_msk import mixins as msk_mixins client_authentication_property = msk_mixins.CfnServerlessClusterPropsMixin.ClientAuthenticationProperty( sasl=msk_mixins.CfnServerlessClusterPropsMixin.SaslProperty( iam=msk_mixins.CfnServerlessClusterPropsMixin.IamProperty( enabled=False ) ) )
Attributes
- sasl
Details for client authentication using SASL.
To turn on SASL, you must also turn on
EncryptionInTransitby settinginClusterto true. You must setclientBrokerto eitherTLSorTLS_PLAINTEXT. If you chooseTLS_PLAINTEXT, then you must also setunauthenticatedto true.
IamProperty
- class CfnServerlessClusterPropsMixin.IamProperty(*, enabled=None)
Bases:
objectDetails for SASL/IAM client authentication.
- Parameters:
enabled (
Union[bool,IResolvable,None]) – SASL/IAM authentication is enabled or not.- 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_msk import mixins as msk_mixins iam_property = msk_mixins.CfnServerlessClusterPropsMixin.IamProperty( enabled=False )
Attributes
- enabled
SASL/IAM authentication is enabled or not.
SaslProperty
- class CfnServerlessClusterPropsMixin.SaslProperty(*, iam=None)
Bases:
objectDetails for client authentication using SASL.
To turn on SASL, you must also turn on
EncryptionInTransitby settinginClusterto true. You must setclientBrokerto eitherTLSorTLS_PLAINTEXT. If you chooseTLS_PLAINTEXT, then you must also setunauthenticatedto true.- Parameters:
iam (
Union[IResolvable,IamProperty,Dict[str,Any],None]) – Details for ClientAuthentication using IAM.- 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_msk import mixins as msk_mixins sasl_property = msk_mixins.CfnServerlessClusterPropsMixin.SaslProperty( iam=msk_mixins.CfnServerlessClusterPropsMixin.IamProperty( enabled=False ) )
Attributes
- iam
Details for ClientAuthentication using IAM.
VpcConfigProperty
- class CfnServerlessClusterPropsMixin.VpcConfigProperty(*, security_groups=None, subnet_ids=None)
Bases:
object- Parameters:
security_groups (
Optional[Sequence[str]])subnet_ids (
Optional[Sequence[str]])
- 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_msk import mixins as msk_mixins vpc_config_property = msk_mixins.CfnServerlessClusterPropsMixin.VpcConfigProperty( security_groups=["securityGroups"], subnet_ids=["subnetIds"] )
Attributes
- security_groups
-
- Type:
see