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
Examples
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
--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.