Skip to main content

ipam_resource_discovery_associations

Creates, updates, deletes or gets an ipam_resource_discovery_association resource or lists ipam_resource_discovery_associations in a region

Overview

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

Fields

NameDatatypeDescription
ipam_arnstringArn of the IPAM.
ipam_regionstringThe home region of the IPAM.
ipam_resource_discovery_association_idstringId of the IPAM Resource Discovery Association.
ipam_resource_discovery_idstringThe Amazon Resource Name (ARN) of the IPAM Resource Discovery Association.
ipam_idstringThe Id of the IPAM this Resource Discovery is associated to.
ipam_resource_discovery_association_arnstringThe Amazon Resource Name (ARN) of the resource discovery association is a part of.
is_defaultbooleanIf the Resource Discovery Association exists due as part of CreateIpam.
owner_idstringThe AWS Account ID for the account where the shared IPAM exists.
statestringThe operational state of the Resource Discovery Association. Related to Create/Delete activities.
resource_discovery_statusstringThe status of the resource discovery.
tagsarrayAn array of key-value pairs to apply to this resource.
regionstringAWS region.

For more information, see AWS::EC2::IPAMResourceDiscoveryAssociation.

Methods

NameResourceAccessible byRequired Params
create_resourceipam_resource_discovery_associationsINSERTIpamId, IpamResourceDiscoveryId, region
delete_resourceipam_resource_discovery_associationsDELETEIdentifier, region
update_resourceipam_resource_discovery_associationsUPDATEIdentifier, PatchDocument, region
list_resourcesipam_resource_discovery_associations_list_onlySELECTregion
get_resourceipam_resource_discovery_associationsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual ipam_resource_discovery_association.

SELECT
region,
ipam_arn,
ipam_region,
ipam_resource_discovery_association_id,
ipam_resource_discovery_id,
ipam_id,
ipam_resource_discovery_association_arn,
is_default,
owner_id,
state,
resource_discovery_status,
tags
FROM awscc.ec2.ipam_resource_discovery_associations
WHERE
region = 'us-east-1' AND
Identifier = '{{ ipam_resource_discovery_association_id }}';

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 awscc.ec2.ipam_resource_discovery_associations (
IpamResourceDiscoveryId,
IpamId,
region
)
SELECT
'{{ ipam_resource_discovery_id }}',
'{{ ipam_id }}',
'{{ region }}';

UPDATE example

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

/*+ update */
UPDATE awscc.ec2.ipam_resource_discovery_associations
SET PatchDocument = string('{{ {
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ ipam_resource_discovery_association_id }}';

DELETE example

/*+ delete */
DELETE FROM awscc.ec2.ipam_resource_discovery_associations
WHERE
Identifier = '{{ ipam_resource_discovery_association_id }}' AND
region = 'us-east-1';

Permissions

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

ec2:AssociateIpamResourceDiscovery,
ec2:DescribeIpamResourceDiscoveryAssociations,
ec2:CreateTags