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
| Name | ipam_resource_discovery_associations |
| Type | Resource |
| Description | Resource Schema of AWS::EC2::IPAMResourceDiscoveryAssociation Type |
| Id | awscc.ec2.ipam_resource_discovery_associations |
Fields
- get (all properties)
- list (identifiers only)
| Name | Datatype | Description |
|---|---|---|
ipam_arn | string | Arn of the IPAM. |
ipam_region | string | The home region of the IPAM. |
ipam_resource_discovery_association_id | string | Id of the IPAM Resource Discovery Association. |
ipam_resource_discovery_id | string | The Amazon Resource Name (ARN) of the IPAM Resource Discovery Association. |
ipam_id | string | The Id of the IPAM this Resource Discovery is associated to. |
ipam_resource_discovery_association_arn | string | The Amazon Resource Name (ARN) of the resource discovery association is a part of. |
is_default | boolean | If the Resource Discovery Association exists due as part of CreateIpam. |
owner_id | string | The AWS Account ID for the account where the shared IPAM exists. |
state | string | The operational state of the Resource Discovery Association. Related to Create/Delete activities. |
resource_discovery_status | string | The status of the resource discovery. |
tags | array | An array of key-value pairs to apply to this resource. |
region | string | AWS region. |
| Name | Datatype | Description |
|---|---|---|
ipam_resource_discovery_association_id | string | Id of the IPAM Resource Discovery Association. |
region | string | AWS region. |
For more information, see AWS::EC2::IPAMResourceDiscoveryAssociation.
Methods
| Name | Resource | Accessible by | Required Params |
|---|---|---|---|
create_resource | ipam_resource_discovery_associations | INSERT | IpamId, IpamResourceDiscoveryId, region |
delete_resource | ipam_resource_discovery_associations | DELETE | Identifier, region |
update_resource | ipam_resource_discovery_associations | UPDATE | Identifier, PatchDocument, region |
list_resources | ipam_resource_discovery_associations_list_only | SELECT | region |
get_resource | ipam_resource_discovery_associations | SELECT | Identifier, region |
SELECT examples
- get (all properties)
- list (identifiers only)
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 }}';
Lists all ipam_resource_discovery_associations in a region.
SELECT
region,
ipam_resource_discovery_association_id
FROM awscc.ec2.ipam_resource_discovery_associations_list_only
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.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO awscc.ec2.ipam_resource_discovery_associations (
IpamResourceDiscoveryId,
IpamId,
region
)
SELECT
'{{ ipam_resource_discovery_id }}',
'{{ ipam_id }}',
'{{ region }}';
/*+ create */
INSERT INTO awscc.ec2.ipam_resource_discovery_associations (
IpamResourceDiscoveryId,
IpamId,
Tags,
region
)
SELECT
'{{ ipam_resource_discovery_id }}',
'{{ ipam_id }}',
'{{ tags }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: ipam_resource_discovery_association
props:
- name: ipam_resource_discovery_id
value: '{{ ipam_resource_discovery_id }}'
- name: ipam_id
value: '{{ ipam_id }}'
- name: tags
value:
- key: '{{ key }}'
value: '{{ value }}'
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:
- Create
- Read
- Update
- Delete
- List
ec2:AssociateIpamResourceDiscovery,
ec2:DescribeIpamResourceDiscoveryAssociations,
ec2:CreateTags
ec2:DescribeIpamResourceDiscoveryAssociations
ec2:DescribeIpamResourceDiscoveryAssociations,
ec2:CreateTags,
ec2:DeleteTags
ec2:DisassociateIpamResourceDiscovery,
ec2:DescribeIpamResourceDiscoveryAssociations,
ec2:DeleteTags
ec2:DescribeIpamResourceDiscoveryAssociations