404

[ Avaa Bypassed ]




Upload:

Command:

botdev@3.136.11.217: ~ $
**Example 1: To associate a resource with a resource share**

The following ``associate-resource-share`` example adds a license configuration to the specified resource share. ::

    aws ram associate-resource-share \
        --resource-share arn:aws:ram:us-west-2:123456789012:resource-share/27d09b4b-5e12-41d1-a4f2-19dedEXAMPLE \
        --resource-arns arn:aws:license-manager:us-west-2:123456789012:license-configuration:lic-36be0485f5ae379cc74cf8e92EXAMPLE

Output::

    {
        "resourceShareAssociations": [
            {
               "resourceShareArn": "arn:aws:ram:us-west-2:123456789012:resource-share/27d09b4b-5e12-41d1-a4f2-19dedEXAMPLE",
               "associatedEntity": "arn:aws:license-manager:us-west-2:123456789012:license-configuration:lic-36be0485f5ae379cc74cf8e92EXAMPLE",
               "associationType": "RESOURCE",
               "status": "ASSOCIATING",
               "external": false
            }
        ]
    }

**Example 2: To associate a principal with a resource share**

The following ``associate-resource-share`` example grants access for the specified resource share to all accounts in the specified organizational unit. ::

    aws ram associate-resource-share \
        --resource-share-arn arn:aws:ram:us-west-2:123456789012:resource-share/27d09b4b-5e12-41d1-a4f2-19dedEXAMPLE \
        --principals arn:aws:organizations::123456789012:ou/o-63bEXAMPLE/ou-46xi-rEXAMPLE

Output::

    {
        "resourceShareAssociations": [
            {
                "status": "ASSOCIATING",
                "associationType": "PRINCIPAL",
                "associatedEntity": "arn:aws:organizations::123456789012:ou/o-63bEXAMPLE/ou-46xi-rEXAMPLE",
                "external": false,
                "resourceShareArn": "arn:aws:ram:us-west-2:123456789012:resource-share/27d09b4b-5e12-41d1-a4f2-19dedEXAMPLE"
            }
        ]
    }

Filemanager

Name Type Size Permission Actions
accept-resource-share-invitation.rst File 1016 B 0644
associate-resource-share-permission.rst File 660 B 0644
associate-resource-share.rst File 1.83 KB 0644
create-resource-share.rst File 2.15 KB 0644
delete-resource-share.rst File 357 B 0644
disassociate-resource-share-permission.rst File 566 B 0644
disassociate-resource-share.rst File 960 B 0644
enable-sharing-with-aws-organization.rst File 333 B 0644
get-permission.rst File 1.27 KB 0644
get-resource-policies.rst File 693 B 0644
get-resource-share-associations.rst File 2.45 KB 0644
get-resource-share-invitations.rst File 827 B 0644
get-resource-shares.rst File 1.66 KB 0644
list-pending-invitation-resources.rst File 1.38 KB 0644
list-permissions.rst File 3.92 KB 0644
list-principals.rst File 710 B 0644
list-resource-share-permissions.rst File 1.07 KB 0644
list-resource-types.rst File 865 B 0644
list-resources.rst File 853 B 0644
promote-resource-share-created-from-policy.rst File 582 B 0644
reject-resource-share-invitation.rst File 916 B 0644
tag-resource.rst File 386 B 0644
untag-resource.rst File 382 B 0644
update-resource-share.rst File 814 B 0644