CloudWatchObservabilityAdminService / Client / put_connector_telemetry_manifest

put_connector_telemetry_manifest

CloudWatchObservabilityAdminService.Client.put_connector_telemetry_manifest(**kwargs)

Creates or replaces the telemetry manifest of a connector. The telemetry manifest declares which resources in your cloud provider to collect telemetry from and which telemetry types to collect. To avoid overwriting changes made by another caller, specify ExpectedVersion.

See also: AWS API Documentation

Request Syntax

response = client.put_connector_telemetry_manifest(
    ConnectorIdentifier='string',
    Manifest={
        'Source': {
            'Azure': [
                {
                    'TelemetryTypes': [
                        'ResourceLogs'|'Metrics'|'FlowLogs',
                    ],
                    'Scope': {
                        'Subscriptions': {
                            'All': {}
                            ,
                            'Ids': [
                                'string',
                            ]
                        },
                        'Regions': [
                            'string',
                        ],
                        'ResourceTypes': [
                            'string',
                        ],
                        'TagFilters': [
                            {
                                'Key': 'string',
                                'Values': [
                                    'string',
                                ]
                            },
                        ],
                        'Resources': [
                            {
                                'Region': 'string',
                                'ResourceIds': [
                                    'string',
                                ]
                            },
                        ]
                    }
                },
            ]
        },
        'Infrastructure': {
            'Azure': {
                'SubscriptionId': 'string',
                'EventHubs': [
                    {
                        'Tier': 'Standard'|'Premium',
                        'PartitionCount': 123
                    },
                ],
                'FlowLogs': {
                    'CustomerManaged': {
                        'StorageAccounts': [
                            {
                                'Region': 'string',
                                'StorageAccountIds': [
                                    'string',
                                ]
                            },
                        ]
                    },
                    'AwsManaged': {
                        'RetentionDays': 123
                    }
                }
            }
        }
    },
    ExpectedVersion=123,
    ClientToken='string'
)
Parameters:
  • ConnectorIdentifier (string) –

    [REQUIRED]

    The connector. Specify one of the following:

    • The Amazon Resource Name (ARN) of the connector

    • The ID of the connector

  • Manifest (dict) –

    [REQUIRED]

    The telemetry manifest.

    • Source (dict) – [REQUIRED]

      The resources to collect telemetry from and the telemetry types to collect.

      Note

      This is a Tagged Union structure. Only one of the following top level keys can be set: Azure.

      • Azure (list) –

        The Azure scope items. Each AzureScopeItem specifies a set of Azure resources and the telemetry types to collect from them. You can specify up to 100 scope items.

        • (dict) –

          The telemetry types to collect from a set of Azure resources.

          • TelemetryTypes (list) – [REQUIRED]

            The telemetry types to collect.

            • (string) –

          • Scope (dict) – [REQUIRED]

            The Azure resources to collect telemetry from.

            • Subscriptions (dict) –

              The subscriptions to find resources in: all subscriptions that the connector can read, or a list of subscriptions. Required when you use Regions and ResourceTypes.

              Note

              This is a Tagged Union structure. Only one of the following top level keys can be set: All, Ids.

              • All (dict) –

                All subscriptions that Azure role-based access control (Azure RBAC) allows the connector to read. Subscriptions that the connector can read later are included automatically.

              • Ids (list) –

                A list of 1–1000 subscription IDs.

                • (string) –

            • Regions (list) –

              The Azure Regions to find resources in. Required when you use Subscriptions and ResourceTypes.

              • (string) –

            • ResourceTypes (list) –

              The Azure resource types to find. Required when you use Subscriptions and Regions.

              • (string) –

            • TagFilters (list) –

              Limits the resources found by Subscriptions, Regions, and ResourceTypes to those that have these tags. You can specify up to 50 filters.

              • (dict) –

                A tag filter. A resource matches only if it has the tag. Filters for different tag keys must all match; for one tag key, any of the values can match.

                • Key (string) – [REQUIRED]

                  The tag key. Up to 512 characters. The characters < > % & ? / $ { } ‘ “ ` and control characters aren’t allowed.

                • Values (list) – [REQUIRED]

                  The tag values to match. A resource matches if it has any of these values for the tag key.

                  • (string) –

            • Resources (list) –

              Specific Azure resources, listed by Azure Region.

              • (dict) –

                Azure resources in one Azure Region.

                • Region (string) – [REQUIRED]

                  The Azure Region of the resources, for example eastus. Required because an Azure resource ID doesn’t include the Region.

                • ResourceIds (list) – [REQUIRED]

                  The Azure Resource Manager IDs of the resources.

                  • (string) –

    • Infrastructure (dict) –

      The choices for the infrastructure that the setup creates in your cloud provider, such as the subscription that contains the Event Hubs and their size. If you omit this value, the setup uses default settings. If an AzureScopeItem collects ResourceLogs, you must specify at least the Azure SubscriptionId.

      Note

      This is a Tagged Union structure. Only one of the following top level keys can be set: Azure.

      • Azure (dict) –

        The choices for the Azure infrastructure that the setup creates.

        • SubscriptionId (string) –

          The Azure subscription in which the setup creates the Event Hubs namespaces and, for AwsManaged Flow Logs, the Storage Accounts. You must specify this value if an AzureScopeItem collects ResourceLogs, or if you specify EventHubs or AwsManaged Flow Logs.

        • EventHubs (list) –

          The Event Hubs configuration. Specify exactly one entry, which applies to the Event Hubs in every Azure Region. This value applies only if an AzureScopeItem collects ResourceLogs. If you omit it, the setup uses default settings.

          • (dict) –

            Configuration of the Azure Event Hubs that the setup creates to deliver resource logs.

            • Tier (string) – [REQUIRED]

              The Event Hubs namespace tier.

            • PartitionCount (integer) – [REQUIRED]

              The number of partitions in each Event Hub. The Standard tier allows 1–32 partitions and the Premium tier allows 1–100. On the Standard tier, you can’t change this value after the setup creates the Event Hub.

        • FlowLogs (dict) –

          The location of your Flow Logs. You must specify this value if an AzureScopeItem collects FlowLogs, and you can specify it only in that case.

          Note

          This is a Tagged Union structure. Only one of the following top level keys can be set: CustomerManaged, AwsManaged.

          • CustomerManaged (dict) –

            Use your existing Storage Accounts that already store Flow Logs.

            • StorageAccounts (list) – [REQUIRED]

              The Storage Accounts that store your Flow Logs, listed by Azure Region. Each Region can appear only once, and each Storage Account can appear only once across all Regions.

              • (dict) –

                The Azure Storage Accounts in one Azure Region that store Flow Logs.

                • Region (string) – [REQUIRED]

                  The Azure Region of the Storage Accounts, for example eastus.

                • StorageAccountIds (list) – [REQUIRED]

                  The Azure Resource Manager IDs of the Storage Accounts.

                  • (string) –

          • AwsManaged (dict) –

            Create one Storage Account in each Azure Region that ingests Flow Logs, in the subscription specified by SubscriptionId.

            • RetentionDays (integer) – [REQUIRED]

              The number of days that the created Storage Accounts keep Flow Logs.

  • ExpectedVersion (integer) – The version of the telemetry manifest that you expect to replace, as returned by GetConnectorTelemetryManifest. Omit this value when you create the first telemetry manifest. If the value doesn’t match the current version, the request fails with a ConflictException.

  • ClientToken (string) – A unique, case-sensitive identifier that you provide to ensure the operation completes no more than one time. If you use an Amazon Web Services SDK, the SDK generates this value and reuses it on retries. If this token matches a previous request with the same telemetry manifest, the service returns the stored version without an error. If you use the same token with a different telemetry manifest, the service returns a ValidationException. This operation is idempotent when you use the same token and parameters.

Return type:

dict

Returns:

Response Syntax

{
    'Version': 123
}

Response Structure

  • (dict) –

    • Version (integer) –

      The version of the telemetry manifest after this update.

Exceptions