ResilienceHubV2 / Client / list_input_sources

list_input_sources

ResilienceHubV2.Client.list_input_sources(**kwargs)

Lists input sources for a service.

See also: AWS API Documentation

Request Syntax

response = client.list_input_sources(
    serviceArn='string',
    type='CFN_STACK'|'TAGS'|'EKS'|'TERRAFORM'|'DESIGN_FILE'|'MONITORING',
    maxResults=123,
    nextToken='string'
)
Parameters:
  • serviceArn (string) –

    [REQUIRED]

    ARN identifier.

  • type (string) – Filter input sources by type.

  • maxResults (integer) – Pagination page size.

  • nextToken (string) – Pagination token.

Return type:

dict

Returns:

Response Syntax

{
    'inputSourceSummaries': [
        {
            'inputSourceId': 'string',
            'type': 'CFN_STACK'|'TAGS'|'EKS'|'TERRAFORM'|'DESIGN_FILE'|'MONITORING',
            'resourceTags': [
                {
                    'key': 'string',
                    'values': [
                        'string',
                    ]
                },
            ],
            'cfnStackArn': 'string',
            'tfStateFileUrl': 'string',
            'eks': {
                'clusterArn': 'string',
                'namespaces': [
                    'string',
                ],
                'labelSelector': {
                    'matchLabels': {
                        'string': 'string'
                    },
                    'matchExpressions': [
                        {
                            'key': 'string',
                            'operator': 'IN'|'NOT_IN'|'EXISTS'|'DOES_NOT_EXIST',
                            'values': [
                                'string',
                            ]
                        },
                    ]
                }
            },
            'designFileS3Url': 'string',
            'createdAt': datetime(2015, 1, 1)
        },
    ],
    'nextToken': 'string'
}

Response Structure

  • (dict) –

    • inputSourceSummaries (list) –

      The list of input source summaries.

      • (dict) –

        Contains summary information about an input source for a service.

        • inputSourceId (string) –

          The unique identifier of the input source.

        • type (string) –

          The type of the input source.

        • resourceTags (list) –

          The resource tags used for discovery, if this input source uses tags.

          • (dict) –

            A tag key-value pair used for resource discovery.

            • key (string) –

              Tag key.

            • values (list) –

              The list of tag values.

              • (string) –

                Tag value.

        • cfnStackArn (string) –

          ARN identifier.

        • tfStateFileUrl (string) –

          S3 URL — virtual hosted-style or s3:// URI.

        • eks (dict) –

          The Amazon EKS configuration, if this input source uses EKS.

          • clusterArn (string) –

            ARN identifier.

          • namespaces (list) –

            The list of Kubernetes namespaces within the EKS cluster.

            • (string) –

              Kubernetes namespace name (RFC 1123 Label).

          • labelSelector (dict) –

            Filters discovery to the Kubernetes objects whose labels match the selector. When omitted, all supported objects in the specified namespaces are discovered.

            • matchLabels (dict) –

              The label key-value pairs that an object must have. All pairs must match for the object to be selected.

              • (string) –

                A Kubernetes label key. It can include an optional DNS subdomain prefix.

                • (string) –

                  A Kubernetes label value. This value can be empty.

            • matchExpressions (list) –

              The label requirements that an object must satisfy. All requirements in the list must match for the object to be selected.

              • (dict) –

                A single label requirement in a label selector, expressed as a key, an operator, and an optional list of values.

                • key (string) –

                  The label key that the requirement applies to.

                • operator (string) –

                  The operator that relates the label key to the values.

                • values (list) –

                  The label values to compare against. Specify values when the operator is IN or NOT_IN. Leave this empty when the operator is EXISTS or DOES_NOT_EXIST.

                  • (string) –

                    A Kubernetes label value. This value can be empty.

        • designFileS3Url (string) –

          S3 URL — virtual hosted-style or s3:// URI.

        • createdAt (datetime) –

          The timestamp when the input source was created.

    • nextToken (string) –

      Pagination token.

Exceptions