Skip to main content

ipam_resource_discoveries

Used to retrieve a list of ipam_resource_discoveries in a region or to create or delete a ipam_resource_discoveries resource, use ipam_resource_discovery to read or update an individual resource.

Overview

Nameipam_resource_discoveries
TypeResource
DescriptionResource Schema of AWS::EC2::IPAMResourceDiscovery Type
Idaws.ec2.ipam_resource_discoveries

Fields

NameDatatypeDescription
ipam_resource_discovery_idstringId of the IPAM Pool.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERT, region
delete_resourceDELETEdata__Identifier, region
list_resourceSELECTregion

SELECT Example

SELECT
region,
ipam_resource_discovery_id
FROM aws.ec2.ipam_resource_discoveries
WHERE region = 'us-east-1';

INSERT Example

Use the following StackQL query and manifest file to create a new ipam_resource_discovery resource, using stack-deploy.

/*+ create */
INSERT INTO aws.ec2.ipam_resource_discoveries (
,
region
)
SELECT
'{{ }}',
'{{ region }}';

DELETE Example

/*+ delete */
DELETE FROM aws.ec2.ipam_resource_discoveries
WHERE data__Identifier = '<IpamResourceDiscoveryId>'
AND region = 'us-east-1';

Permissions

To operate on the ipam_resource_discoveries resource, the following permissions are required:

Create

ec2:CreateIpamResourceDiscovery,
ec2:DescribeIpamResourceDiscoveries,
ec2:CreateTags

Delete

ec2:DeleteIpamResourceDiscovery,
ec2:DescribeIpamResourceDiscoveries,
ec2:DeleteTags

List

ec2:DescribeIpamResourceDiscoveries