Policies¶
Client¶
-
class
Policies.
Client
¶ A client object representing ‘Policies’ Service:
import almdrlib client = almdrlib.client('policies')
Available methods:
-
get_policy
(**kwargs)¶ Returns the policy matching account_id and policy_id specified
Request Syntax
response = client.get_policy( account_id='string' policy_id='string' )
- Parameters
account_id (string) – [REQUIRED]
policy_id (string) – [REQUIRED]
- Return type
dict
- Returns
Response Syntax
{ 'features': [ { 'type': 'string' } ], 'id': 'string', 'name': 'string', 'product_family': 'string' }
Response Definitions
features (list) –
(dict) –
type (string) –
id (string) –
name (string) –
product_family (string) –
-
list_policies
(**kwargs)¶ Lists policies belonging to a particular account
Request Syntax
response = client.list_policies( account_id='string' )
- Parameters
account_id (string) – [REQUIRED]
- Return type
list
- Returns
Response Syntax
[ { 'features': [ { 'type': 'string' } ], 'id': 'string', 'name': 'string', 'product_family': 'string' } ]
Response Definitions
(dict) –
features (list) –
(dict) –
type (string) –
id (string) –
name (string) –
product_family (string) –
-