aws.ec2.VpcIpamResourceDiscoveryAssociation
Explore with Pulumi AI
Provides an association between an Amazon IP Address Manager (IPAM) and a IPAM Resource Discovery. IPAM Resource Discoveries are resources meant for multi-organization customers. If you wish to use a single IPAM across multiple orgs, a resource discovery can be created and shared from a subordinate organization to the management organizations IPAM delegated admin account.
Once an association is created between two organizations via IPAM & a IPAM Resource Discovery, IPAM Pools can be shared via Resource Access Manager (RAM) to accounts in the subordinate organization; these RAM shares must be accepted by the end user account. Pools can then also discover and monitor IPAM resources in the subordinate organization.
Example Usage
Basic usage:
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const test = new aws.ec2.VpcIpamResourceDiscoveryAssociation("test", {
ipamId: testAwsVpcIpam.id,
ipamResourceDiscoveryId: testAwsVpcIpamResourceDiscovery.id,
tags: {
Name: "test",
},
});
import pulumi
import pulumi_aws as aws
test = aws.ec2.VpcIpamResourceDiscoveryAssociation("test",
ipam_id=test_aws_vpc_ipam["id"],
ipam_resource_discovery_id=test_aws_vpc_ipam_resource_discovery["id"],
tags={
"Name": "test",
})
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/ec2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ec2.NewVpcIpamResourceDiscoveryAssociation(ctx, "test", &ec2.VpcIpamResourceDiscoveryAssociationArgs{
IpamId: pulumi.Any(testAwsVpcIpam.Id),
IpamResourceDiscoveryId: pulumi.Any(testAwsVpcIpamResourceDiscovery.Id),
Tags: pulumi.StringMap{
"Name": pulumi.String("test"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var test = new Aws.Ec2.VpcIpamResourceDiscoveryAssociation("test", new()
{
IpamId = testAwsVpcIpam.Id,
IpamResourceDiscoveryId = testAwsVpcIpamResourceDiscovery.Id,
Tags =
{
{ "Name", "test" },
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ec2.VpcIpamResourceDiscoveryAssociation;
import com.pulumi.aws.ec2.VpcIpamResourceDiscoveryAssociationArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var test = new VpcIpamResourceDiscoveryAssociation("test", VpcIpamResourceDiscoveryAssociationArgs.builder()
.ipamId(testAwsVpcIpam.id())
.ipamResourceDiscoveryId(testAwsVpcIpamResourceDiscovery.id())
.tags(Map.of("Name", "test"))
.build());
}
}
resources:
test:
type: aws:ec2:VpcIpamResourceDiscoveryAssociation
properties:
ipamId: ${testAwsVpcIpam.id}
ipamResourceDiscoveryId: ${testAwsVpcIpamResourceDiscovery.id}
tags:
Name: test
Create VpcIpamResourceDiscoveryAssociation Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new VpcIpamResourceDiscoveryAssociation(name: string, args: VpcIpamResourceDiscoveryAssociationArgs, opts?: CustomResourceOptions);
@overload
def VpcIpamResourceDiscoveryAssociation(resource_name: str,
args: VpcIpamResourceDiscoveryAssociationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def VpcIpamResourceDiscoveryAssociation(resource_name: str,
opts: Optional[ResourceOptions] = None,
ipam_id: Optional[str] = None,
ipam_resource_discovery_id: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None)
func NewVpcIpamResourceDiscoveryAssociation(ctx *Context, name string, args VpcIpamResourceDiscoveryAssociationArgs, opts ...ResourceOption) (*VpcIpamResourceDiscoveryAssociation, error)
public VpcIpamResourceDiscoveryAssociation(string name, VpcIpamResourceDiscoveryAssociationArgs args, CustomResourceOptions? opts = null)
public VpcIpamResourceDiscoveryAssociation(String name, VpcIpamResourceDiscoveryAssociationArgs args)
public VpcIpamResourceDiscoveryAssociation(String name, VpcIpamResourceDiscoveryAssociationArgs args, CustomResourceOptions options)
type: aws:ec2:VpcIpamResourceDiscoveryAssociation
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args VpcIpamResourceDiscoveryAssociationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args VpcIpamResourceDiscoveryAssociationArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args VpcIpamResourceDiscoveryAssociationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args VpcIpamResourceDiscoveryAssociationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args VpcIpamResourceDiscoveryAssociationArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var vpcIpamResourceDiscoveryAssociationResource = new Aws.Ec2.VpcIpamResourceDiscoveryAssociation("vpcIpamResourceDiscoveryAssociationResource", new()
{
IpamId = "string",
IpamResourceDiscoveryId = "string",
Tags =
{
{ "string", "string" },
},
});
example, err := ec2.NewVpcIpamResourceDiscoveryAssociation(ctx, "vpcIpamResourceDiscoveryAssociationResource", &ec2.VpcIpamResourceDiscoveryAssociationArgs{
IpamId: pulumi.String("string"),
IpamResourceDiscoveryId: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var vpcIpamResourceDiscoveryAssociationResource = new VpcIpamResourceDiscoveryAssociation("vpcIpamResourceDiscoveryAssociationResource", VpcIpamResourceDiscoveryAssociationArgs.builder()
.ipamId("string")
.ipamResourceDiscoveryId("string")
.tags(Map.of("string", "string"))
.build());
vpc_ipam_resource_discovery_association_resource = aws.ec2.VpcIpamResourceDiscoveryAssociation("vpcIpamResourceDiscoveryAssociationResource",
ipam_id="string",
ipam_resource_discovery_id="string",
tags={
"string": "string",
})
const vpcIpamResourceDiscoveryAssociationResource = new aws.ec2.VpcIpamResourceDiscoveryAssociation("vpcIpamResourceDiscoveryAssociationResource", {
ipamId: "string",
ipamResourceDiscoveryId: "string",
tags: {
string: "string",
},
});
type: aws:ec2:VpcIpamResourceDiscoveryAssociation
properties:
ipamId: string
ipamResourceDiscoveryId: string
tags:
string: string
VpcIpamResourceDiscoveryAssociation Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The VpcIpamResourceDiscoveryAssociation resource accepts the following input properties:
- Ipam
Id string - The ID of the IPAM to associate.
- Ipam
Resource stringDiscovery Id - The ID of the Resource Discovery to associate.
- Dictionary<string, string>
- A map of tags to add to the IPAM resource discovery association resource.
- Ipam
Id string - The ID of the IPAM to associate.
- Ipam
Resource stringDiscovery Id - The ID of the Resource Discovery to associate.
- map[string]string
- A map of tags to add to the IPAM resource discovery association resource.
- ipam
Id String - The ID of the IPAM to associate.
- ipam
Resource StringDiscovery Id - The ID of the Resource Discovery to associate.
- Map<String,String>
- A map of tags to add to the IPAM resource discovery association resource.
- ipam
Id string - The ID of the IPAM to associate.
- ipam
Resource stringDiscovery Id - The ID of the Resource Discovery to associate.
- {[key: string]: string}
- A map of tags to add to the IPAM resource discovery association resource.
- ipam_
id str - The ID of the IPAM to associate.
- ipam_
resource_ strdiscovery_ id - The ID of the Resource Discovery to associate.
- Mapping[str, str]
- A map of tags to add to the IPAM resource discovery association resource.
- ipam
Id String - The ID of the IPAM to associate.
- ipam
Resource StringDiscovery Id - The ID of the Resource Discovery to associate.
- Map<String>
- A map of tags to add to the IPAM resource discovery association resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the VpcIpamResourceDiscoveryAssociation resource produces the following output properties:
- Arn string
- The Amazon Resource Name (ARN) of IPAM Resource Discovery Association.
- Id string
- The provider-assigned unique ID for this managed resource.
- Ipam
Arn string - The Amazon Resource Name (ARN) of the IPAM.
- Ipam
Region string - The home region of the IPAM.
- Is
Default bool - A boolean to identify if the Resource Discovery is the accounts default resource discovery.
- Owner
Id string - The account ID for the account that manages the Resource Discovery
- State string
- The lifecycle state of the association when you associate or disassociate a resource discovery.
- Dictionary<string, string>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- Arn string
- The Amazon Resource Name (ARN) of IPAM Resource Discovery Association.
- Id string
- The provider-assigned unique ID for this managed resource.
- Ipam
Arn string - The Amazon Resource Name (ARN) of the IPAM.
- Ipam
Region string - The home region of the IPAM.
- Is
Default bool - A boolean to identify if the Resource Discovery is the accounts default resource discovery.
- Owner
Id string - The account ID for the account that manages the Resource Discovery
- State string
- The lifecycle state of the association when you associate or disassociate a resource discovery.
- map[string]string
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn String
- The Amazon Resource Name (ARN) of IPAM Resource Discovery Association.
- id String
- The provider-assigned unique ID for this managed resource.
- ipam
Arn String - The Amazon Resource Name (ARN) of the IPAM.
- ipam
Region String - The home region of the IPAM.
- is
Default Boolean - A boolean to identify if the Resource Discovery is the accounts default resource discovery.
- owner
Id String - The account ID for the account that manages the Resource Discovery
- state String
- The lifecycle state of the association when you associate or disassociate a resource discovery.
- Map<String,String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn string
- The Amazon Resource Name (ARN) of IPAM Resource Discovery Association.
- id string
- The provider-assigned unique ID for this managed resource.
- ipam
Arn string - The Amazon Resource Name (ARN) of the IPAM.
- ipam
Region string - The home region of the IPAM.
- is
Default boolean - A boolean to identify if the Resource Discovery is the accounts default resource discovery.
- owner
Id string - The account ID for the account that manages the Resource Discovery
- state string
- The lifecycle state of the association when you associate or disassociate a resource discovery.
- {[key: string]: string}
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn str
- The Amazon Resource Name (ARN) of IPAM Resource Discovery Association.
- id str
- The provider-assigned unique ID for this managed resource.
- ipam_
arn str - The Amazon Resource Name (ARN) of the IPAM.
- ipam_
region str - The home region of the IPAM.
- is_
default bool - A boolean to identify if the Resource Discovery is the accounts default resource discovery.
- owner_
id str - The account ID for the account that manages the Resource Discovery
- state str
- The lifecycle state of the association when you associate or disassociate a resource discovery.
- Mapping[str, str]
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn String
- The Amazon Resource Name (ARN) of IPAM Resource Discovery Association.
- id String
- The provider-assigned unique ID for this managed resource.
- ipam
Arn String - The Amazon Resource Name (ARN) of the IPAM.
- ipam
Region String - The home region of the IPAM.
- is
Default Boolean - A boolean to identify if the Resource Discovery is the accounts default resource discovery.
- owner
Id String - The account ID for the account that manages the Resource Discovery
- state String
- The lifecycle state of the association when you associate or disassociate a resource discovery.
- Map<String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
Look up Existing VpcIpamResourceDiscoveryAssociation Resource
Get an existing VpcIpamResourceDiscoveryAssociation resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: VpcIpamResourceDiscoveryAssociationState, opts?: CustomResourceOptions): VpcIpamResourceDiscoveryAssociation
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
arn: Optional[str] = None,
ipam_arn: Optional[str] = None,
ipam_id: Optional[str] = None,
ipam_region: Optional[str] = None,
ipam_resource_discovery_id: Optional[str] = None,
is_default: Optional[bool] = None,
owner_id: Optional[str] = None,
state: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
tags_all: Optional[Mapping[str, str]] = None) -> VpcIpamResourceDiscoveryAssociation
func GetVpcIpamResourceDiscoveryAssociation(ctx *Context, name string, id IDInput, state *VpcIpamResourceDiscoveryAssociationState, opts ...ResourceOption) (*VpcIpamResourceDiscoveryAssociation, error)
public static VpcIpamResourceDiscoveryAssociation Get(string name, Input<string> id, VpcIpamResourceDiscoveryAssociationState? state, CustomResourceOptions? opts = null)
public static VpcIpamResourceDiscoveryAssociation get(String name, Output<String> id, VpcIpamResourceDiscoveryAssociationState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Arn string
- The Amazon Resource Name (ARN) of IPAM Resource Discovery Association.
- Ipam
Arn string - The Amazon Resource Name (ARN) of the IPAM.
- Ipam
Id string - The ID of the IPAM to associate.
- Ipam
Region string - The home region of the IPAM.
- Ipam
Resource stringDiscovery Id - The ID of the Resource Discovery to associate.
- Is
Default bool - A boolean to identify if the Resource Discovery is the accounts default resource discovery.
- Owner
Id string - The account ID for the account that manages the Resource Discovery
- State string
- The lifecycle state of the association when you associate or disassociate a resource discovery.
- Dictionary<string, string>
- A map of tags to add to the IPAM resource discovery association resource.
- Dictionary<string, string>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- Arn string
- The Amazon Resource Name (ARN) of IPAM Resource Discovery Association.
- Ipam
Arn string - The Amazon Resource Name (ARN) of the IPAM.
- Ipam
Id string - The ID of the IPAM to associate.
- Ipam
Region string - The home region of the IPAM.
- Ipam
Resource stringDiscovery Id - The ID of the Resource Discovery to associate.
- Is
Default bool - A boolean to identify if the Resource Discovery is the accounts default resource discovery.
- Owner
Id string - The account ID for the account that manages the Resource Discovery
- State string
- The lifecycle state of the association when you associate or disassociate a resource discovery.
- map[string]string
- A map of tags to add to the IPAM resource discovery association resource.
- map[string]string
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn String
- The Amazon Resource Name (ARN) of IPAM Resource Discovery Association.
- ipam
Arn String - The Amazon Resource Name (ARN) of the IPAM.
- ipam
Id String - The ID of the IPAM to associate.
- ipam
Region String - The home region of the IPAM.
- ipam
Resource StringDiscovery Id - The ID of the Resource Discovery to associate.
- is
Default Boolean - A boolean to identify if the Resource Discovery is the accounts default resource discovery.
- owner
Id String - The account ID for the account that manages the Resource Discovery
- state String
- The lifecycle state of the association when you associate or disassociate a resource discovery.
- Map<String,String>
- A map of tags to add to the IPAM resource discovery association resource.
- Map<String,String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn string
- The Amazon Resource Name (ARN) of IPAM Resource Discovery Association.
- ipam
Arn string - The Amazon Resource Name (ARN) of the IPAM.
- ipam
Id string - The ID of the IPAM to associate.
- ipam
Region string - The home region of the IPAM.
- ipam
Resource stringDiscovery Id - The ID of the Resource Discovery to associate.
- is
Default boolean - A boolean to identify if the Resource Discovery is the accounts default resource discovery.
- owner
Id string - The account ID for the account that manages the Resource Discovery
- state string
- The lifecycle state of the association when you associate or disassociate a resource discovery.
- {[key: string]: string}
- A map of tags to add to the IPAM resource discovery association resource.
- {[key: string]: string}
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn str
- The Amazon Resource Name (ARN) of IPAM Resource Discovery Association.
- ipam_
arn str - The Amazon Resource Name (ARN) of the IPAM.
- ipam_
id str - The ID of the IPAM to associate.
- ipam_
region str - The home region of the IPAM.
- ipam_
resource_ strdiscovery_ id - The ID of the Resource Discovery to associate.
- is_
default bool - A boolean to identify if the Resource Discovery is the accounts default resource discovery.
- owner_
id str - The account ID for the account that manages the Resource Discovery
- state str
- The lifecycle state of the association when you associate or disassociate a resource discovery.
- Mapping[str, str]
- A map of tags to add to the IPAM resource discovery association resource.
- Mapping[str, str]
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn String
- The Amazon Resource Name (ARN) of IPAM Resource Discovery Association.
- ipam
Arn String - The Amazon Resource Name (ARN) of the IPAM.
- ipam
Id String - The ID of the IPAM to associate.
- ipam
Region String - The home region of the IPAM.
- ipam
Resource StringDiscovery Id - The ID of the Resource Discovery to associate.
- is
Default Boolean - A boolean to identify if the Resource Discovery is the accounts default resource discovery.
- owner
Id String - The account ID for the account that manages the Resource Discovery
- state String
- The lifecycle state of the association when you associate or disassociate a resource discovery.
- Map<String>
- A map of tags to add to the IPAM resource discovery association resource.
- Map<String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
Import
Using pulumi import
, import IPAMs using the IPAM resource discovery association id
. For example:
$ pulumi import aws:ec2/vpcIpamResourceDiscoveryAssociation:VpcIpamResourceDiscoveryAssociation example ipam-res-disco-assoc-0178368ad2146a492
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.