Kafka / Client / update_security
update_security#
- Kafka.Client.update_security(**kwargs)#
Updates the security settings for the cluster. You can use this operation to specify encryption and authentication on existing clusters.
See also: AWS API Documentation
Request Syntax
response = client.update_security( ClientAuthentication={ 'Sasl': { 'Scram': { 'Enabled': True|False }, 'Iam': { 'Enabled': True|False } }, 'Tls': { 'CertificateAuthorityArnList': [ 'string', ], 'Enabled': True|False }, 'Unauthenticated': { 'Enabled': True|False } }, ClusterArn='string', CurrentVersion='string', EncryptionInfo={ 'EncryptionAtRest': { 'DataVolumeKMSKeyId': 'string' }, 'EncryptionInTransit': { 'ClientBroker': 'TLS'|'TLS_PLAINTEXT'|'PLAINTEXT', 'InCluster': True|False } } )
- Parameters:
ClientAuthentication (dict) –
Includes all client authentication related information.
Sasl (dict) –
Details for ClientAuthentication using SASL.
Scram (dict) –
Details for SASL/SCRAM client authentication.
Enabled (boolean) –
SASL/SCRAM authentication is enabled or not.
Iam (dict) –
Indicates whether IAM access control is enabled.
Enabled (boolean) –
Indicates whether IAM access control is enabled.
Tls (dict) –
Details for ClientAuthentication using TLS.
CertificateAuthorityArnList (list) –
List of ACM Certificate Authority ARNs.
(string) –
Enabled (boolean) –
Specifies whether you want to turn on or turn off TLS authentication.
Unauthenticated (dict) –
Contains information about unauthenticated traffic to the cluster.
Enabled (boolean) –
Specifies whether you want to turn on or turn off unauthenticated traffic to your cluster.
ClusterArn (string) –
[REQUIRED]
The Amazon Resource Name (ARN) that uniquely identifies the cluster.
CurrentVersion (string) –
[REQUIRED]
The version of the MSK cluster to update. Cluster versions aren’t simple numbers. You can describe an MSK cluster to find its version. When this update operation is successful, it generates a new cluster version.
EncryptionInfo (dict) –
Includes all encryption-related information.
EncryptionAtRest (dict) –
The data-volume encryption details.
DataVolumeKMSKeyId (string) – [REQUIRED]
The ARN of the AWS KMS key for encrypting data at rest. If you don’t specify a KMS key, MSK creates one for you and uses it.
EncryptionInTransit (dict) –
The details for encryption in transit.
ClientBroker (string) –
Indicates the encryption setting for data in transit between clients and brokers. The following are the possible values.
TLS means that client-broker communication is enabled with TLS only.
TLS_PLAINTEXT means that client-broker communication is enabled for both TLS-encrypted, as well as plaintext data.
PLAINTEXT means that client-broker communication is enabled in plaintext only.
The default value is TLS_PLAINTEXT.
InCluster (boolean) –
When set to true, it indicates that data communication among the broker nodes of the cluster is encrypted. When set to false, the communication happens in plaintext.
The default value is true.
- Return type:
dict
- Returns:
Response Syntax
{ 'ClusterArn': 'string', 'ClusterOperationArn': 'string' }
Response Structure
(dict) –
ClusterArn (string) –
The Amazon Resource Name (ARN) of the cluster.
ClusterOperationArn (string) –
The Amazon Resource Name (ARN) of the cluster operation.
Exceptions