CmdID

CmdID / aws / aws greengrass

aws greengrass create-resource-definition-version

Creates a version of a resource definition that has already been defined. AWS CLI reference

1 example 3 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 version of a resource definition

The following create-resource-definition-version example creates a new version of a TwilioAuthToken.

aws greengrass create-resource-definition-version --resource-definition-id "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111" --resources "[{\"Id\": \"TwilioAuthToken\",\"Name\": \"MyTwilioAuthToken\",\"ResourceDataContainer\": {\"SecretsManagerSecretResourceData\": {\"ARN\": \"arn:aws:secretsmanager:us-west-2:123456789012:secret:greengrass-TwilioAuthToken-ntSlp6\"}}}]"Identify
--resource-definition-idThe ID of the resource definition.
--resourcesA list of resources.
Its output
{
    "Arn": "arn:aws:greengrass:us-west-2:123456789012:/greengrass/definition/resources/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111/versions/a1b2c3d4-5678-90ab-cdef-EXAMPLE22222",
    "CreationTimestamp": "2019-06-24T21:17:25.623Z",
    "Id": "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111",
    "Version": "a1b2c3d4-5678-90ab-cdef-EXAMPLE22222"
}

For more information, see Deploy secrets to the AWS IoT Greengrass core in the AWS IoT Greengrass Developer Guide.

Options

3 in the AWS CLI reference
--amzn-client-tokenA client token used to correlate requests and responses.
--resource-definition-idThe ID of the resource definition.
--resourcesA list of resources.