mgn / Client / create_connector

create_connector#

mgn.Client.create_connector(**kwargs)#

Create Connector.

See also: AWS API Documentation

Request Syntax

response = client.create_connector(
    name='string',
    ssmCommandConfig={
        'cloudWatchLogGroupName': 'string',
        'cloudWatchOutputEnabled': True|False,
        'outputS3BucketName': 'string',
        's3OutputEnabled': True|False
    },
    ssmInstanceID='string',
    tags={
        'string': 'string'
    }
)
Parameters:
  • name (string) –

    [REQUIRED]

    Create Connector request name.

  • ssmCommandConfig (dict) –

    Create Connector request SSM command config.

    • cloudWatchLogGroupName (string) –

      Connector SSM command config CloudWatch log group name.

    • cloudWatchOutputEnabled (boolean) – [REQUIRED]

      Connector SSM command config CloudWatch output enabled.

    • outputS3BucketName (string) –

      Connector SSM command config output S3 bucket name.

    • s3OutputEnabled (boolean) – [REQUIRED]

      Connector SSM command config S3 output enabled.

  • ssmInstanceID (string) –

    [REQUIRED]

    Create Connector request SSM instance ID.

  • tags (dict) –

    Create Connector request tags.

    • (string) –

      • (string) –

Return type:

dict

Returns:

Response Syntax

{
    'arn': 'string',
    'connectorID': 'string',
    'name': 'string',
    'ssmCommandConfig': {
        'cloudWatchLogGroupName': 'string',
        'cloudWatchOutputEnabled': True|False,
        'outputS3BucketName': 'string',
        's3OutputEnabled': True|False
    },
    'ssmInstanceID': 'string',
    'tags': {
        'string': 'string'
    }
}

Response Structure

  • (dict) –

    • arn (string) –

      Connector arn.

    • connectorID (string) –

      Connector ID.

    • name (string) –

      Connector name.

    • ssmCommandConfig (dict) –

      Connector SSM command config.

      • cloudWatchLogGroupName (string) –

        Connector SSM command config CloudWatch log group name.

      • cloudWatchOutputEnabled (boolean) –

        Connector SSM command config CloudWatch output enabled.

      • outputS3BucketName (string) –

        Connector SSM command config output S3 bucket name.

      • s3OutputEnabled (boolean) –

        Connector SSM command config S3 output enabled.

    • ssmInstanceID (string) –

      Connector SSM instance ID.

    • tags (dict) –

      Connector tags.

      • (string) –

        • (string) –

Exceptions