Skip to content
v2.277.0

ClientAuthenticationProperty Struct ​

Includes all client authentication information.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_msk as msk } from 'aws-cdk-lib';
const clientAuthenticationProperty: msk.CfnServerlessCluster.ClientAuthenticationProperty = {
  sasl: {
    iam: {
      enabled: false,
    },
  },
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_msk as msk

client_authentication_property = msk.CfnServerlessCluster.ClientAuthenticationProperty(
    sasl=msk.CfnServerlessCluster.SaslProperty(
        iam=msk.CfnServerlessCluster.IamProperty(
            enabled=False
        )
    )
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.msk.*;

ClientAuthenticationProperty clientAuthenticationProperty = ClientAuthenticationProperty.builder()
        .sasl(SaslProperty.builder()
                .iam(IamProperty.builder()
                        .enabled(false)
                        .build())
                .build())
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.MSK;

var clientAuthenticationProperty = new ClientAuthenticationProperty {
    Sasl = new SaslProperty {
        Iam = new IamProperty {
            Enabled = false
        }
    }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

clientAuthenticationProperty := &ClientAuthenticationProperty{
	Sasl: &SaslProperty{
		Iam: &IamProperty{
			Enabled: jsii.Boolean(false),
		},
	},
}

Properties ​

saslIResolvable | CfnServerlessCluster.SaslPropertysasltyping.Union[IResolvable, SaslProperty]saslIResolvableSaslIResolvableSaslinterface{} required #
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.