CmdID

CmdID / aws / aws greengrass

aws greengrass create-connector-definition

Creates a connector definition. AWS CLI reference

1 example 4 options Its page in the AWS CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from aws-cli, each command read by CmdID

To create a connector definition

The following create-connector-definition example example creates a connector definition and an initial connector definition version. The initial version contains one connector. All connectors in a version define values for their parameters.

aws greengrass create-connector-definition --name MySNSConnector --initial-version "{\"Connectors\": [{\"Id\":\"MySNSConnector\",\"ConnectorArn\":\"arn:aws:greengrass:us-west-2::/connectors/SNS/versions/1\",\"Parameters\": {\"DefaultSNSArn\":\"arn:aws:sns:us-west-2:123456789012:GGConnectorTopic\"}}]}"Identify
--nameThe name of the connector definition.
--initial-versionInformation about the initial version of the connector definition.
Its output
{
    "Arn": "arn:aws:greengrass:us-west-2:123456789012:/greengrass/definition/connectors/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111",
    "CreationTimestamp": "2019-06-19T19:30:01.300Z",
    "Id": "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111",
    "LastUpdatedTimestamp": "2019-06-19T19:30:01.300Z",
    "LatestVersion": "a1b2c3d4-5678-90ab-cdef-EXAMPLE22222",
    "LatestVersionArn": "arn:aws:greengrass:us-west-2:123456789012:/greengrass/definition/connectors/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111/versions/a1b2c3d4-5678-90ab-cdef-EXAMPLE22222",
    "Name": "MySNSConnector"
}

For more information, see Getting started with Greengrass connectors (CLI) in the AWS IoT Greengrass Developer Guide.

Options

4 in the AWS CLI reference
--amzn-client-tokenA client token used to correlate requests and responses.
--initial-versionInformation about the initial version of the connector definition.
--nameThe name of the connector definition.
--tagsTag(s) to add to the new resource.