aws-policy

aws-policy assignments-list

Usage

usage: -c aws-policy assignments-list [-h]
                                   [-f {adaptive_table,csv,json,table,value,yaml}]
                                   [-c COLUMN]
                                   [-m [NAME=VALUE [NAME=VALUE ...]]]
                                   [--max-width <integer>] [--noindent]
                                   [--quote {all,minimal,none,nonnumeric}]

Description

Lists the assignments of aws-policies to users, groups and IAM roles.

Return

None

Optional

 optional arguments:
-h, --help            show this help message and exit

aws-policy create

Usage

usage: -c aws-policy create [-h]
                         [-f {adaptive_table,json,shell,table,value,yaml}]
                         [-c COLUMN] [-m [NAME=VALUE [NAME=VALUE ...]]]
                         [--max-width <integer>] [--noindent]
                         [--prefix PREFIX] [--description DESCRIPTION]
                         [--scope-id SCOPE_ID]
                         name policy_document scope_type

Description

Creates a new AWS policy.

Return

Returns dict: A structure containing details about the new policy

Optional

 optional arguments:
-h, --help            show this help message and exit
--description DESCRIPTION
                      A friendly description of the policy
--scope-id SCOPE_ID   If scope_type is project or domain: scope_id should be the project-id or the domain-id, with the logged in scope as default
                      If scope_type is public- scope_id will be ignored

aws-policy get

Usage

usage: -c aws-policy get [-h]
                      [-f {adaptive_table,json,shell,table,value,yaml}]
                      [-c COLUMN] [-m [NAME=VALUE [NAME=VALUE ...]]]
                      [--max-width <integer>] [--noindent]
                      [--prefix PREFIX]
                      policy_id

Description

Retrieves information about the specified AWS policy.

Return

Returns dict: A structure containing details about the policy

Optional

 optional arguments:
-h, --help            show this help message and exit

aws-policy get-entities

Usage

usage: -c aws-policy get-entities [-h]
                               [-f {adaptive_table,json,shell,table,value,yaml}]
                               [-c COLUMN]
                               [-m [NAME=VALUE [NAME=VALUE ...]]]
                               [--max-width <integer>] [--noindent]
                               [--prefix PREFIX]
                               policy_id

Description

Lists all users, groups, and roles that the specified AWS policy is attached to.

Return

Returns dict: Entities that the policy is attached to

Optional

 optional arguments:
-h, --help            show this help message and exit

aws-policy list

Usage

usage: -c aws-policy list [-h] [-f {adaptive_table,csv,json,table,value,yaml}]
                       [-c COLUMN] [-m [NAME=VALUE [NAME=VALUE ...]]]
                       [--max-width <integer>] [--noindent]
                       [--quote {all,minimal,none,nonnumeric}]
                       [--name NAME]

Description

Lists all the AWS policies that are available.

Return

None

Optional

 optional arguments:
-h, --help            show this help message and exit
--name NAME           Show only the policy with the given name

aws-policy remove

Usage

usage: -c aws-policy remove [-h]
                         [-f {adaptive_table,json,shell,table,value,yaml}]
                         [-c COLUMN] [-m [NAME=VALUE [NAME=VALUE ...]]]
                         [--max-width <integer>] [--noindent]
                         [--prefix PREFIX]
                         policy_id

Description

Deletes the specified AWS policy. Before you can delete an AWS policy, you must first detach the policy from all users, groups, and roles that it is attached to.

Return

None

Optional

 optional arguments:
-h, --help            show this help message and exit

aws-policy update

Usage

usage: -c aws-policy update [-h]
                         [-f {adaptive_table,json,shell,table,value,yaml}]
                         [-c COLUMN] [-m [NAME=VALUE [NAME=VALUE ...]]]
                         [--max-width <integer>] [--noindent]
                         [--prefix PREFIX] [--name NAME]
                         [--policy-document POLICY_DOCUMENT]
                         [--description DESCRIPTION]
                         policy_id

Description

Updates the specified AWS policy.

Return

None

Optional

 optional arguments:
-h, --help            show this help message and exit
--name NAME           The name of the policy
--policy-document POLICY_DOCUMENT
                      The JSON policy document for the new policy
                      Should be of the following format: '{"Statement": [{"Action": [<actions>], "Effect": "Allow", "Resource": ["*"]}]}'
--description DESCRIPTION
                      A friendly description of the policy

aws-policy validate

Usage

usage: -c aws-policy validate [-h]
                           [-f {adaptive_table,json,shell,table,value,yaml}]
                           [-c COLUMN] [-m [NAME=VALUE [NAME=VALUE ...]]]
                           [--max-width <integer>] [--noindent]
                           [--prefix PREFIX]
                           policy_document

Description

Validate a policy document without creating a policy.

Return

Returns dict: Whether the validation was successful, and the errors if there are any

Optional

 optional arguments:
-h, --help            show this help message and exit