CmdID

CmdID / aws / aws ram

aws ram update-resource-share

Modifies some of the properties of the specified resource share. 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 update a resource share

The following update-resource-share example changes the specified resource share to allow external principals that are not in an AWS Organization.

aws ram update-resource-share --allow-external-principals --resource-share-arn arn:aws:ram:us-west-2:123456789012:resource-share/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111Identify
--allow-external-principalsSpecifies whether principals outside your organization in Organizations can be associated with a resource share.
--resource-share-arnSpecifies the Amazon Resource Name (ARN) of the resource share that you want to modify.
Its output
{
    "resourceShare": {
        "resourceShareArn": "arn:aws:ram:us-west-2:123456789012:resource-share/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111",
        "name": "my-resource-share",
        "owningAccountId": "123456789012",
        "allowExternalPrincipals": true,
        "status": "ACTIVE",
        "creationTime": 1565295733.282,
        "lastUpdatedTime": 1565303080.023
    }
}

For more information, see Update a resource share in AWS RAM in the AWS RAM User Guide.

Options

4 in the AWS CLI reference
--allow-external-principalsSpecifies whether principals outside your organization in Organizations can be associated with a resource share.
--client-tokenSpecifies a unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
--nameIf specified, the new name that you want to attach to the resource share.
--resource-share-arnSpecifies the Amazon Resource Name (ARN) of the resource share that you want to modify.