Skip to main content

ipam_resource_discoveries

Creates, updates, deletes or gets an ipam_resource_discovery resource or lists ipam_resource_discoveries in a region

Overview

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

Fields

NameDatatypeDescription
ipam_resource_discovery_idstringId of the IPAM Pool.
owner_idstringOwner Account ID of the Resource Discovery
operating_regionsarrayThe regions Resource Discovery is enabled for. Allows resource discoveries to be created in these regions, as well as enabling monitoring
ipam_resource_discovery_regionstringThe region the resource discovery is setup in.
descriptionstring
organizational_unit_exclusionsarrayA set of organizational unit (OU) exclusions for this resource.
is_defaultbooleanDetermines whether or not address space from this pool is publicly advertised. Must be set if and only if the pool is IPv6.
ipam_resource_discovery_arnstringAmazon Resource Name (Arn) for the Resource Discovery.
statestringThe state of this Resource Discovery.
tagsarrayAn array of key-value pairs to apply to this resource.
regionstringAWS region.

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

Methods

NameResourceAccessible byRequired Params
create_resourceipam_resource_discoveriesINSERT, region
delete_resourceipam_resource_discoveriesDELETEIdentifier, region
update_resourceipam_resource_discoveriesUPDATEIdentifier, PatchDocument, region
list_resourcesipam_resource_discoveries_list_onlySELECTregion
get_resourceipam_resource_discoveriesSELECTIdentifier, region

SELECT examples

Gets all properties from an individual ipam_resource_discovery.

SELECT
region,
ipam_resource_discovery_id,
owner_id,
operating_regions,
ipam_resource_discovery_region,
description,
organizational_unit_exclusions,
is_default,
ipam_resource_discovery_arn,
state,
tags
FROM awscc.ec2.ipam_resource_discoveries
WHERE
region = 'us-east-1' AND
Identifier = '{{ ipam_resource_discovery_id }}';

INSERT example

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

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

UPDATE example

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

/*+ update */
UPDATE awscc.ec2.ipam_resource_discoveries
SET PatchDocument = string('{{ {
"OperatingRegions": operating_regions,
"Description": description,
"OrganizationalUnitExclusions": organizational_unit_exclusions,
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ ipam_resource_discovery_id }}';

DELETE example

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

Permissions

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

ec2:CreateIpamResourceDiscovery,
ec2:DescribeIpamResourceDiscoveries,
ec2:ModifyIpamResourceDiscovery,
ec2:CreateTags,
iam:CreateServiceLinkedRole