404

[ Avaa Bypassed ]




Upload:

Command:

botdev@18.217.203.133: ~ $
**Example 1: To rename a policy**

The following ``update-policy`` example renames a policy and gives it a new description. ::

    aws organizations update-policy \
        --policy-id p-examplepolicyid111 \
        --name Renamed-Policy \
        --description "This description replaces the original."

The output shows the new name and description. ::

    {
        "Policy": {
            "Content": "{\n  \"Version\":\"2012-10-17\",\n  \"Statement\":{\n    \"Effect\":\"Allow\",\n    \"Action\":\"ec2:*\",\n    \"Resource\":\"*\"\n  }\n}\n",
            "PolicySummary": {
                "Id": "p-examplepolicyid111",
                "AwsManaged": false,
                "Arn":"arn:aws:organizations::111111111111:policy/o-exampleorgid/service_control_policy/p-examplepolicyid111",
                "Description": "This description replaces the original.",
                "Name": "Renamed-Policy",
                "Type": "SERVICE_CONTROL_POLICY"
            }    
        }
    }

**Example 2: To replace a policy's JSON text content**

The following example shows you how to replace the JSON text of the SCP in the previous example with a new JSON policy text string that allows S3 instead of EC2: ::

    aws organizations update-policy \
        --policy-id p-examplepolicyid111 \
        --content "{\"Version\":\"2012-10-17\",\"Statement\":{\"Effect\":\"Allow\",\"Action\":\"s3:*\",\"Resource\":\"*\"}}"

The output shows the new content::

    {
        "Policy": {
            "Content": "{ \"Version\": \"2012-10-17\", \"Statement\": { \"Effect\": \"Allow\", \"Action\": \"s3:*\", \"Resource\": \"*\" } }",
            "PolicySummary": {    
                "Arn": "arn:aws:organizations::111111111111:policy/o-exampleorgid/service_control_policy/p-examplepolicyid111",
                "AwsManaged": false;
                "Description": "This description replaces the original.",
                "Id": "p-examplepolicyid111",
                "Name": "Renamed-Policy",
                "Type": "SERVICE_CONTROL_POLICY"
            }
        }
    }

Filemanager

Name Type Size Permission Actions
accept-handshake.rst File 1.23 KB 0755
attach-policy.rst File 484 B 0755
cancel-handshake.rst File 1.43 KB 0755
create-account.rst File 1.42 KB 0755
create-organization.rst File 1.87 KB 0755
create-organizational-unit.rst File 517 B 0755
create-policy.rst File 1.82 KB 0755
decline-handshake.rst File 1.36 KB 0755
delete-organization.rst File 337 B 0755
delete-organizational-unit.rst File 268 B 0755
delete-policy.rst File 245 B 0755
describe-account.rst File 541 B 0755
describe-create-account-status.rst File 831 B 0755
describe-handshake.rst File 1.25 KB 0755
describe-organization.rst File 720 B 0755
describe-organizational-unit.rst File 516 B 0755
describe-policy.rst File 799 B 0755
detach-policy.rst File 234 B 0755
disable-policy-type.rst File 531 B 0755
enable-all-features.rst File 1.23 KB 0755
enable-policy-type.rst File 623 B 0755
invite-account-to-organization.rst File 1.33 KB 0755
leave-organization.rst File 224 B 0755
list-accounts-for-parent.rst File 899 B 0755
list-accounts.rst File 1.37 KB 0755
list-children.rst File 562 B 0755
list-create-account-status.rst File 1.22 KB 0755
list-handshakes-for-account.rst File 1.25 KB 0755
list-handshakes-for-organization.rst File 2.39 KB 0755
list-organizational-units-for-parent.rst File 664 B 0755
list-parents.rst File 425 B 0755
list-policies-for-target.rst File 956 B 0755
list-policies.rst File 1.32 KB 0755
list-roots.rst File 521 B 0755
list-targets-for-policy.rst File 1.01 KB 0755
move-account.rst File 310 B 0755
remove-account-from-organization.rst File 233 B 0755
update-organizational-unit.rst File 493 B 0755
update-policy.rst File 2.02 KB 0755