EC2 / Client / delete_ipam_policy
delete_ipam_policy¶
- EC2.Client.delete_ipam_policy(**kwargs)¶
Deletes an IPAM policy.
An IPAM policy is a set of rules that define how public IPv4 addresses from IPAM pools are allocated to Amazon Web Services resources. Each rule maps an Amazon Web Services service to IPAM pools that the service will use to get IP addresses. A single policy can have multiple rules and be applied to multiple Amazon Web Services Regions. If the IPAM pool run out of addresses then the services fallback to Amazon-provided IP addresses. A policy can be applied to an individual Amazon Web Services account or an entity within Amazon Web Services Organizations.
See also: AWS API Documentation
Request Syntax
response = client.delete_ipam_policy( DryRun=True|False, IpamPolicyId='string' )
- Parameters:
DryRun (boolean) – A check for whether you have the required permissions for the action without actually making the request and provides an error response. If you have the required permissions, the error response is
DryRunOperation. Otherwise, it isUnauthorizedOperation.IpamPolicyId (string) –
[REQUIRED]
The ID of the IPAM policy to delete.
- Return type:
dict
- Returns:
Response Syntax
{ 'IpamPolicy': { 'OwnerId': 'string', 'IpamPolicyId': 'string', 'IpamPolicyArn': 'string', 'IpamPolicyRegion': 'string', 'State': 'create-in-progress'|'create-complete'|'create-failed'|'modify-in-progress'|'modify-complete'|'modify-failed'|'delete-in-progress'|'delete-complete'|'delete-failed'|'isolate-in-progress'|'isolate-complete'|'restore-in-progress', 'StateMessage': 'string', 'Tags': [ { 'Key': 'string', 'Value': 'string' }, ], 'IpamId': 'string' } }
Response Structure
(dict) –
IpamPolicy (dict) –
Information about the deleted IPAM policy.
An IPAM policy is a set of rules that define how public IPv4 addresses from IPAM pools are allocated to Amazon Web Services resources. Each rule maps an Amazon Web Services service to IPAM pools that the service will use to get IP addresses. A single policy can have multiple rules and be applied to multiple Amazon Web Services Regions. If the IPAM pool run out of addresses then the services fallback to Amazon-provided IP addresses. A policy can be applied to an individual Amazon Web Services account or an entity within Amazon Web Services Organizations.
OwnerId (string) –
The account ID that owns the IPAM policy.
IpamPolicyId (string) –
The ID of the IPAM policy.
IpamPolicyArn (string) –
The Amazon Resource Name (ARN) of the IPAM policy.
IpamPolicyRegion (string) –
The Region of the IPAM policy.
State (string) –
The state of the IPAM policy.
StateMessage (string) –
A message about the state of the IPAM policy.
Tags (list) –
The tags assigned to the IPAM policy.
(dict) –
Describes a tag.
Key (string) –
The key of the tag.
Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode characters. May not begin with
aws:.Value (string) –
The value of the tag.
Constraints: Tag values are case-sensitive and accept a maximum of 256 Unicode characters.
IpamId (string) –
The ID of the IPAM this policy belongs to.