Skip to main content

ipam_resource_discoveries

Creates, updates, deletes, gets or lists an ipam_resource_discoveries resource.

Overview

Nameipam_resource_discoveries
TypeResource
Idaws.ec2.ipam_resource_discoveries

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
descriptionstringThe resource discovery description.
ipam_resource_discovery_arnstringThe resource discovery Amazon Resource Name (ARN).
ipam_resource_discovery_idstringThe resource discovery ID.
ipam_resource_discovery_regionstringThe resource discovery Region.
is_defaultbooleanDefines if the resource discovery is the default. The default resource discovery is the resource discovery automatically created when you create an IPAM.
operating_regionsstringThe operating Regions for the resource discovery. Operating Regions are Amazon Web Services Regions where the IPAM is allowed to manage IP address CIDRs. IPAM only discovers and monitors resources in the Amazon Web Services Regions you select as operating Regions.
organizational_unit_exclusionsstringIf your IPAM is integrated with Amazon Web Services Organizations and you add an organizational unit (OU) exclusion, IPAM will not manage the IP addresses in accounts in that OU exclusion.
owner_idstringThe ID of the owner.
statestringThe lifecycle state of the resource discovery. create-in-progress - Resource discovery is being created. create-complete - Resource discovery creation is complete. create-failed - Resource discovery creation has failed. modify-in-progress - Resource discovery is being modified. modify-complete - Resource discovery modification is complete. modify-failed - Resource discovery modification has failed. delete-in-progress - Resource discovery is being deleted. delete-complete - Resource discovery deletion is complete. delete-failed - Resource discovery deletion has failed. isolate-in-progress - Amazon Web Services account that created the resource discovery has been removed and the resource discovery is being isolated. isolate-complete - Resource discovery isolation is complete. restore-in-progress - Amazon Web Services account that created the resource discovery and was isolated has been restored.
tagsstringA tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key and an optional value. You can use tags to search and filter your resources or track your Amazon Web Services costs.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_ipam_resource_discoveriesselectregionDryRun, IpamResourceDiscoveryId, NextToken, MaxResults, FilterDescribes IPAM resource discoveries. A resource discovery is an IPAM component that enables IPAM to manage and monitor resources that belong to the owning account.
create_ipam_resource_discoveryinsertregionDryRun, Description, OperatingRegion, TagSpecification, ClientTokenCreates an IPAM resource discovery. A resource discovery is an IPAM component that enables IPAM to manage and monitor resources that belong to the owning account.
associate_ipam_resource_discoveryupdateIpamId, IpamResourceDiscoveryId, regionDryRun, TagSpecification, ClientTokenAssociates an IPAM resource discovery with an Amazon VPC IPAM. A resource discovery is an IPAM component that enables IPAM to manage and monitor resources that belong to the owning account.
disassociate_ipam_resource_discoveryupdateIpamResourceDiscoveryAssociationId, regionDryRunDisassociates a resource discovery from an Amazon VPC IPAM. A resource discovery is an IPAM component that enables IPAM to manage and monitor resources that belong to the owning account.
modify_ipam_resource_discoveryupdateIpamResourceDiscoveryId, regionDryRun, Description, AddOperatingRegion, RemoveOperatingRegion, AddOrganizationalUnitExclusion, RemoveOrganizationalUnitExclusionModifies a resource discovery. A resource discovery is an IPAM component that enables IPAM to manage and monitor resources that belong to the owning account.
delete_ipam_resource_discoverydeleteIpamResourceDiscoveryId, regionDryRunDeletes an IPAM resource discovery. A resource discovery is an IPAM component that enables IPAM to manage and monitor resources that belong to the owning account.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
IpamIdstringAn IPAM ID.
IpamResourceDiscoveryAssociationIdstringA resource discovery association ID.
IpamResourceDiscoveryIdstringThe IPAM resource discovery ID.
regionstringAWS region (default: us-east-1)
AddOperatingRegionarrayAdd operating Regions to the resource discovery. Operating Regions are Amazon Web Services Regions where the IPAM is allowed to manage IP address CIDRs. IPAM only discovers and monitors resources in the Amazon Web Services Regions you select as operating Regions.
AddOrganizationalUnitExclusionarrayAdd an Organizational Unit (OU) exclusion to your IPAM. If your IPAM is integrated with Amazon Web Services Organizations and you add an organizational unit (OU) exclusion, IPAM will not manage the IP addresses in accounts in that OU exclusion. There is a limit on the number of exclusions you can create. For more information, see Quotas for your IPAM in the Amazon VPC IPAM User Guide. The resulting set of exclusions must not result in "overlap", meaning two or more OU exclusions must not exclude the same OU. For more information and examples, see the Amazon Web Services CLI request process in Add or remove OU exclusions in the Amazon VPC User Guide.
ClientTokenstringA client token.
DescriptionstringA resource discovery description.
DryRunbooleanA 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 is UnauthorizedOperation.
FilterarrayThe resource discovery filters.
IpamResourceDiscoveryIdarrayThe IPAM resource discovery IDs.
MaxResultsintegerThe maximum number of resource discoveries to return in one page of results.
NextTokenstringThe token for the next page of results.
OperatingRegionarrayOperating Regions for the IPAM resource discovery. Operating Regions are Amazon Web Services Regions where the IPAM is allowed to manage IP address CIDRs. IPAM only discovers and monitors resources in the Amazon Web Services Regions you select as operating Regions.
RemoveOperatingRegionarrayRemove operating Regions.
RemoveOrganizationalUnitExclusionarrayRemove an Organizational Unit (OU) exclusion to your IPAM. If your IPAM is integrated with Amazon Web Services Organizations and you add an organizational unit (OU) exclusion, IPAM will not manage the IP addresses in accounts in that OU exclusion. There is a limit on the number of exclusions you can create. For more information, see Quotas for your IPAM in the Amazon VPC IPAM User Guide. The resulting set of exclusions must not result in "overlap", meaning two or more OU exclusions must not exclude the same OU. For more information and examples, see the Amazon Web Services CLI request process in Add or remove OU exclusions in the Amazon VPC User Guide.
TagSpecificationarrayTag specifications.

SELECT examples

Describes IPAM resource discoveries. A resource discovery is an IPAM component that enables IPAM to manage and monitor resources that belong to the owning account.

SELECT
description,
ipam_resource_discovery_arn,
ipam_resource_discovery_id,
ipam_resource_discovery_region,
is_default,
operating_regions,
organizational_unit_exclusions,
owner_id,
state,
tags
FROM aws.ec2.ipam_resource_discoveries
WHERE region = '{{ region }}' -- required
AND DryRun = '{{ DryRun }}'
AND IpamResourceDiscoveryId = '{{ IpamResourceDiscoveryId }}'
AND NextToken = '{{ NextToken }}'
AND MaxResults = '{{ MaxResults }}'
AND Filter = '{{ Filter }}'
;

INSERT examples

Creates an IPAM resource discovery. A resource discovery is an IPAM component that enables IPAM to manage and monitor resources that belong to the owning account.

INSERT INTO aws.ec2.ipam_resource_discoveries (
region,
DryRun,
Description,
OperatingRegion,
TagSpecification,
ClientToken
)
SELECT
'{{ region }}',
'{{ DryRun }}',
'{{ Description }}',
'{{ OperatingRegion }}',
'{{ TagSpecification }}',
'{{ ClientToken }}'
RETURNING
description,
ipam_resource_discovery_arn,
ipam_resource_discovery_id,
ipam_resource_discovery_region,
is_default,
operating_regions,
organizational_unit_exclusions,
owner_id,
state,
tags
;

UPDATE examples

Associates an IPAM resource discovery with an Amazon VPC IPAM. A resource discovery is an IPAM component that enables IPAM to manage and monitor resources that belong to the owning account.

UPDATE aws.ec2.ipam_resource_discoveries
SET
-- No updatable properties
WHERE
IpamId = '{{ IpamId }}' --required
AND IpamResourceDiscoveryId = '{{ IpamResourceDiscoveryId }}' --required
AND region = '{{ region }}' --required
AND DryRun = {{ DryRun}}
AND TagSpecification = '{{ TagSpecification}}'
AND ClientToken = '{{ ClientToken}}'
RETURNING
ipam_arn,
ipam_id,
ipam_region,
ipam_resource_discovery_association_arn,
ipam_resource_discovery_association_id,
ipam_resource_discovery_id,
is_default,
owner_id,
resource_discovery_status,
state,
tags;

DELETE examples

Deletes an IPAM resource discovery. A resource discovery is an IPAM component that enables IPAM to manage and monitor resources that belong to the owning account.

DELETE FROM aws.ec2.ipam_resource_discoveries
WHERE IpamResourceDiscoveryId = '{{ IpamResourceDiscoveryId }}' --required
AND region = '{{ region }}' --required
AND DryRun = '{{ DryRun }}'
;