Skip to main content

ipam_resource_discovery_associations

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

Overview

Nameipam_resource_discovery_associations
TypeResource
DescriptionResource Schema of AWS::EC2::IPAMResourceDiscoveryAssociation Type
Idaws.ec2.ipam_resource_discovery_associations

Fields

NameDatatypeDescription
ipam_resource_discovery_association_idstringId of the IPAM Resource Discovery Association.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTIpamId, IpamResourceDiscoveryId, region
delete_resourceDELETEdata__Identifier, region
list_resourceSELECTregion

SELECT Example

SELECT
region,
ipam_resource_discovery_association_id
FROM aws.ec2.ipam_resource_discovery_associations
WHERE region = 'us-east-1';

INSERT Example

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

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

DELETE Example

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

Permissions

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

Create

ec2:AssociateIpamResourceDiscovery,
ec2:DescribeIpamResourceDiscoveryAssociations,
ec2:CreateTags

Delete

ec2:DisassociateIpamResourceDiscovery,
ec2:DescribeIpamResourceDiscoveryAssociations,
ec2:DeleteTags

List

ec2:DescribeIpamResourceDiscoveryAssociations