CfnServerlessClusterPropsMixin
- class aws_cdk.cfn_property_mixins.aws_msk.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.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:
props (
Union[CfnServerlessClusterMixinProps,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 = ['clientAuthentication', 'clusterName', 'tags', 'vpcConfigs']
Static Methods
- classmethod is_mixin(x)
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.
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.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
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.cfn_property_mixins import aws_msk as msk iam_property = msk.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.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.
VpcConfigProperty
- class CfnServerlessClusterPropsMixin.VpcConfigProperty(*, security_groups=None, subnet_ids=None)
Bases:
object- Parameters:
security_groups (
Optional[Sequence[Union[str,ISecurityGroupRef]]])subnet_ids (
Optional[Sequence[Union[str,ISubnetRef]]])
- 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.cfn_property_mixins import aws_msk as msk vpc_config_property = msk.CfnServerlessClusterPropsMixin.VpcConfigProperty( security_groups=["securityGroups"], subnet_ids=["subnetIds"] )
Attributes
- security_groups
-
- Type:
see