Kafka / Paginator / ListClusterOperations

ListClusterOperations#

class Kafka.Paginator.ListClusterOperations#
paginator = client.get_paginator('list_cluster_operations')
paginate(**kwargs)#

Creates an iterator that will paginate through responses from Kafka.Client.list_cluster_operations().

See also: AWS API Documentation

Request Syntax

response_iterator = paginator.paginate(
    ClusterArn='string',
    PaginationConfig={
        'MaxItems': 123,
        'PageSize': 123,
        'StartingToken': 'string'
    }
)
Parameters:
  • ClusterArn (string) –

    [REQUIRED]

    The Amazon Resource Name (ARN) that uniquely identifies the cluster.

  • PaginationConfig (dict) –

    A dictionary that provides parameters to control pagination.

    • MaxItems (integer) –

      The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken will be provided in the output that you can use to resume pagination.

    • PageSize (integer) –

      The size of each page.

    • StartingToken (string) –

      A token to specify where to start paginating. This is the NextToken from a previous response.

Return type:

dict

Returns:

Response Syntax

{
    'ClusterOperationInfoList': [
        {
            'ClientRequestId': 'string',
            'ClusterArn': 'string',
            'CreationTime': datetime(2015, 1, 1),
            'EndTime': datetime(2015, 1, 1),
            'ErrorInfo': {
                'ErrorCode': 'string',
                'ErrorString': 'string'
            },
            'OperationArn': 'string',
            'OperationState': 'string',
            'OperationSteps': [
                {
                    'StepInfo': {
                        'StepStatus': 'string'
                    },
                    'StepName': 'string'
                },
            ],
            'OperationType': 'string',
            'SourceClusterInfo': {
                'BrokerEBSVolumeInfo': [
                    {
                        'KafkaBrokerNodeId': 'string',
                        'ProvisionedThroughput': {
                            'Enabled': True|False,
                            'VolumeThroughput': 123
                        },
                        'VolumeSizeGB': 123
                    },
                ],
                'ConfigurationInfo': {
                    'Arn': 'string',
                    'Revision': 123
                },
                'NumberOfBrokerNodes': 123,
                'EnhancedMonitoring': 'DEFAULT'|'PER_BROKER'|'PER_TOPIC_PER_BROKER'|'PER_TOPIC_PER_PARTITION',
                'OpenMonitoring': {
                    'Prometheus': {
                        'JmxExporter': {
                            'EnabledInBroker': True|False
                        },
                        'NodeExporter': {
                            'EnabledInBroker': True|False
                        }
                    }
                },
                'KafkaVersion': 'string',
                'LoggingInfo': {
                    'BrokerLogs': {
                        'CloudWatchLogs': {
                            'Enabled': True|False,
                            'LogGroup': 'string'
                        },
                        'Firehose': {
                            'DeliveryStream': 'string',
                            'Enabled': True|False
                        },
                        'S3': {
                            'Bucket': 'string',
                            'Enabled': True|False,
                            'Prefix': 'string'
                        }
                    }
                },
                'InstanceType': 'string',
                'ClientAuthentication': {
                    'Sasl': {
                        'Scram': {
                            'Enabled': True|False
                        },
                        'Iam': {
                            'Enabled': True|False
                        }
                    },
                    'Tls': {
                        'CertificateAuthorityArnList': [
                            'string',
                        ],
                        'Enabled': True|False
                    },
                    'Unauthenticated': {
                        'Enabled': True|False
                    }
                },
                'EncryptionInfo': {
                    'EncryptionAtRest': {
                        'DataVolumeKMSKeyId': 'string'
                    },
                    'EncryptionInTransit': {
                        'ClientBroker': 'TLS'|'TLS_PLAINTEXT'|'PLAINTEXT',
                        'InCluster': True|False
                    }
                },
                'ConnectivityInfo': {
                    'PublicAccess': {
                        'Type': 'string'
                    }
                },
                'StorageMode': 'LOCAL'|'TIERED'
            },
            'TargetClusterInfo': {
                'BrokerEBSVolumeInfo': [
                    {
                        'KafkaBrokerNodeId': 'string',
                        'ProvisionedThroughput': {
                            'Enabled': True|False,
                            'VolumeThroughput': 123
                        },
                        'VolumeSizeGB': 123
                    },
                ],
                'ConfigurationInfo': {
                    'Arn': 'string',
                    'Revision': 123
                },
                'NumberOfBrokerNodes': 123,
                'EnhancedMonitoring': 'DEFAULT'|'PER_BROKER'|'PER_TOPIC_PER_BROKER'|'PER_TOPIC_PER_PARTITION',
                'OpenMonitoring': {
                    'Prometheus': {
                        'JmxExporter': {
                            'EnabledInBroker': True|False
                        },
                        'NodeExporter': {
                            'EnabledInBroker': True|False
                        }
                    }
                },
                'KafkaVersion': 'string',
                'LoggingInfo': {
                    'BrokerLogs': {
                        'CloudWatchLogs': {
                            'Enabled': True|False,
                            'LogGroup': 'string'
                        },
                        'Firehose': {
                            'DeliveryStream': 'string',
                            'Enabled': True|False
                        },
                        'S3': {
                            'Bucket': 'string',
                            'Enabled': True|False,
                            'Prefix': 'string'
                        }
                    }
                },
                'InstanceType': 'string',
                'ClientAuthentication': {
                    'Sasl': {
                        'Scram': {
                            'Enabled': True|False
                        },
                        'Iam': {
                            'Enabled': True|False
                        }
                    },
                    'Tls': {
                        'CertificateAuthorityArnList': [
                            'string',
                        ],
                        'Enabled': True|False
                    },
                    'Unauthenticated': {
                        'Enabled': True|False
                    }
                },
                'EncryptionInfo': {
                    'EncryptionAtRest': {
                        'DataVolumeKMSKeyId': 'string'
                    },
                    'EncryptionInTransit': {
                        'ClientBroker': 'TLS'|'TLS_PLAINTEXT'|'PLAINTEXT',
                        'InCluster': True|False
                    }
                },
                'ConnectivityInfo': {
                    'PublicAccess': {
                        'Type': 'string'
                    }
                },
                'StorageMode': 'LOCAL'|'TIERED'
            }
        },
    ],

}

Response Structure

  • (dict) –

    Successful response.

    • ClusterOperationInfoList (list) –

      An array of cluster operation information objects.

      • (dict) –

        Returns information about a cluster operation.

        • ClientRequestId (string) –

          The ID of the API request that triggered this operation.

        • ClusterArn (string) –

          ARN of the cluster.

        • CreationTime (datetime) –

          The time that the operation was created.

        • EndTime (datetime) –

          The time at which the operation finished.

        • ErrorInfo (dict) –

          Describes the error if the operation fails.

          • ErrorCode (string) –

            A number describing the error programmatically.

          • ErrorString (string) –

            An optional field to provide more details about the error.

        • OperationArn (string) –

          ARN of the cluster operation.

        • OperationState (string) –

          State of the cluster operation.

        • OperationSteps (list) –

          Steps completed during the operation.

          • (dict) –

            Step taken during a cluster operation.

            • StepInfo (dict) –

              Information about the step and its status.

              • StepStatus (string) –

                The steps current status.

            • StepName (string) –

              The name of the step.

        • OperationType (string) –

          Type of the cluster operation.

        • SourceClusterInfo (dict) –

          Information about cluster attributes before a cluster is updated.

          • BrokerEBSVolumeInfo (list) –

            Specifies the size of the EBS volume and the ID of the associated broker.

            • (dict) –

              Specifies the EBS volume upgrade information. The broker identifier must be set to the keyword ALL. This means the changes apply to all the brokers in the cluster.

              • KafkaBrokerNodeId (string) –

                The ID of the broker to update.

              • ProvisionedThroughput (dict) –

                EBS volume provisioned throughput information.

                • Enabled (boolean) –

                  Provisioned throughput is enabled or not.

                • VolumeThroughput (integer) –

                  Throughput value of the EBS volumes for the data drive on each kafka broker node in MiB per second.

              • VolumeSizeGB (integer) –

                Size of the EBS volume to update.

          • ConfigurationInfo (dict) –

            Information about the changes in the configuration of the brokers.

            • Arn (string) –

              ARN of the configuration to use.

            • Revision (integer) –

              The revision of the configuration to use.

          • NumberOfBrokerNodes (integer) –

            The number of broker nodes in the cluster.

          • EnhancedMonitoring (string) –

            Specifies which Apache Kafka metrics Amazon MSK gathers and sends to Amazon CloudWatch for this cluster.

          • OpenMonitoring (dict) –

            The settings for open monitoring.

            • Prometheus (dict) –

              Prometheus settings.

              • JmxExporter (dict) –

                Indicates whether you want to turn on or turn off the JMX Exporter.

                • EnabledInBroker (boolean) –

                  Indicates whether you want to turn on or turn off the JMX Exporter.

              • NodeExporter (dict) –

                Indicates whether you want to turn on or turn off the Node Exporter.

                • EnabledInBroker (boolean) –

                  Indicates whether you want to turn on or turn off the Node Exporter.

          • KafkaVersion (string) –

            The Apache Kafka version.

          • LoggingInfo (dict) –

            You can configure your MSK cluster to send broker logs to different destination types. This is a container for the configuration details related to broker logs.

            • BrokerLogs (dict) –

              • CloudWatchLogs (dict) –

                • Enabled (boolean) –

                • LogGroup (string) –

              • Firehose (dict) –

                • DeliveryStream (string) –

                • Enabled (boolean) –

              • S3 (dict) –

                • Bucket (string) –

                • Enabled (boolean) –

                • Prefix (string) –

          • InstanceType (string) –

            Information about the Amazon MSK broker type.

          • ClientAuthentication (dict) –

            Includes all client authentication 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.

          • EncryptionInfo (dict) –

            Includes all encryption-related information.

            • EncryptionAtRest (dict) –

              The data-volume encryption details.

              • DataVolumeKMSKeyId (string) –

                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.

          • ConnectivityInfo (dict) –

            Information about the broker access configuration.

            • PublicAccess (dict) –

              Public access control for brokers.

              • Type (string) –

                The value DISABLED indicates that public access is turned off. SERVICE_PROVIDED_EIPS indicates that public access is turned on.

          • StorageMode (string) –

            This controls storage mode for supported storage tiers.

        • TargetClusterInfo (dict) –

          Information about cluster attributes after a cluster is updated.

          • BrokerEBSVolumeInfo (list) –

            Specifies the size of the EBS volume and the ID of the associated broker.

            • (dict) –

              Specifies the EBS volume upgrade information. The broker identifier must be set to the keyword ALL. This means the changes apply to all the brokers in the cluster.

              • KafkaBrokerNodeId (string) –

                The ID of the broker to update.

              • ProvisionedThroughput (dict) –

                EBS volume provisioned throughput information.

                • Enabled (boolean) –

                  Provisioned throughput is enabled or not.

                • VolumeThroughput (integer) –

                  Throughput value of the EBS volumes for the data drive on each kafka broker node in MiB per second.

              • VolumeSizeGB (integer) –

                Size of the EBS volume to update.

          • ConfigurationInfo (dict) –

            Information about the changes in the configuration of the brokers.

            • Arn (string) –

              ARN of the configuration to use.

            • Revision (integer) –

              The revision of the configuration to use.

          • NumberOfBrokerNodes (integer) –

            The number of broker nodes in the cluster.

          • EnhancedMonitoring (string) –

            Specifies which Apache Kafka metrics Amazon MSK gathers and sends to Amazon CloudWatch for this cluster.

          • OpenMonitoring (dict) –

            The settings for open monitoring.

            • Prometheus (dict) –

              Prometheus settings.

              • JmxExporter (dict) –

                Indicates whether you want to turn on or turn off the JMX Exporter.

                • EnabledInBroker (boolean) –

                  Indicates whether you want to turn on or turn off the JMX Exporter.

              • NodeExporter (dict) –

                Indicates whether you want to turn on or turn off the Node Exporter.

                • EnabledInBroker (boolean) –

                  Indicates whether you want to turn on or turn off the Node Exporter.

          • KafkaVersion (string) –

            The Apache Kafka version.

          • LoggingInfo (dict) –

            You can configure your MSK cluster to send broker logs to different destination types. This is a container for the configuration details related to broker logs.

            • BrokerLogs (dict) –

              • CloudWatchLogs (dict) –

                • Enabled (boolean) –

                • LogGroup (string) –

              • Firehose (dict) –

                • DeliveryStream (string) –

                • Enabled (boolean) –

              • S3 (dict) –

                • Bucket (string) –

                • Enabled (boolean) –

                • Prefix (string) –

          • InstanceType (string) –

            Information about the Amazon MSK broker type.

          • ClientAuthentication (dict) –

            Includes all client authentication 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.

          • EncryptionInfo (dict) –

            Includes all encryption-related information.

            • EncryptionAtRest (dict) –

              The data-volume encryption details.

              • DataVolumeKMSKeyId (string) –

                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.

          • ConnectivityInfo (dict) –

            Information about the broker access configuration.

            • PublicAccess (dict) –

              Public access control for brokers.

              • Type (string) –

                The value DISABLED indicates that public access is turned off. SERVICE_PROVIDED_EIPS indicates that public access is turned on.

          • StorageMode (string) –

            This controls storage mode for supported storage tiers.