1. Packages
  2. AWS Classic
  3. API Docs
  4. ec2
  5. VpcIpamScope

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.2.0 published on Monday, Sep 18, 2023 by Pulumi

aws.ec2.VpcIpamScope

Explore with Pulumi AI

aws logo

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.2.0 published on Monday, Sep 18, 2023 by Pulumi

    Creates a scope for AWS IPAM.

    Example Usage

    Basic usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var current = Aws.GetRegion.Invoke();
    
        var exampleVpcIpam = new Aws.Ec2.VpcIpam("exampleVpcIpam", new()
        {
            OperatingRegions = new[]
            {
                new Aws.Ec2.Inputs.VpcIpamOperatingRegionArgs
                {
                    RegionName = current.Apply(getRegionResult => getRegionResult.Name),
                },
            },
        });
    
        var exampleVpcIpamScope = new Aws.Ec2.VpcIpamScope("exampleVpcIpamScope", new()
        {
            IpamId = exampleVpcIpam.Id,
            Description = "Another Scope",
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws"
    	"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 {
    		current, err := aws.GetRegion(ctx, nil, nil)
    		if err != nil {
    			return err
    		}
    		exampleVpcIpam, err := ec2.NewVpcIpam(ctx, "exampleVpcIpam", &ec2.VpcIpamArgs{
    			OperatingRegions: ec2.VpcIpamOperatingRegionArray{
    				&ec2.VpcIpamOperatingRegionArgs{
    					RegionName: *pulumi.String(current.Name),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = ec2.NewVpcIpamScope(ctx, "exampleVpcIpamScope", &ec2.VpcIpamScopeArgs{
    			IpamId:      exampleVpcIpam.ID(),
    			Description: pulumi.String("Another Scope"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.AwsFunctions;
    import com.pulumi.aws.inputs.GetRegionArgs;
    import com.pulumi.aws.ec2.VpcIpam;
    import com.pulumi.aws.ec2.VpcIpamArgs;
    import com.pulumi.aws.ec2.inputs.VpcIpamOperatingRegionArgs;
    import com.pulumi.aws.ec2.VpcIpamScope;
    import com.pulumi.aws.ec2.VpcIpamScopeArgs;
    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) {
            final var current = AwsFunctions.getRegion();
    
            var exampleVpcIpam = new VpcIpam("exampleVpcIpam", VpcIpamArgs.builder()        
                .operatingRegions(VpcIpamOperatingRegionArgs.builder()
                    .regionName(current.applyValue(getRegionResult -> getRegionResult.name()))
                    .build())
                .build());
    
            var exampleVpcIpamScope = new VpcIpamScope("exampleVpcIpamScope", VpcIpamScopeArgs.builder()        
                .ipamId(exampleVpcIpam.id())
                .description("Another Scope")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_aws as aws
    
    current = aws.get_region()
    example_vpc_ipam = aws.ec2.VpcIpam("exampleVpcIpam", operating_regions=[aws.ec2.VpcIpamOperatingRegionArgs(
        region_name=current.name,
    )])
    example_vpc_ipam_scope = aws.ec2.VpcIpamScope("exampleVpcIpamScope",
        ipam_id=example_vpc_ipam.id,
        description="Another Scope")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const current = aws.getRegion({});
    const exampleVpcIpam = new aws.ec2.VpcIpam("exampleVpcIpam", {operatingRegions: [{
        regionName: current.then(current => current.name),
    }]});
    const exampleVpcIpamScope = new aws.ec2.VpcIpamScope("exampleVpcIpamScope", {
        ipamId: exampleVpcIpam.id,
        description: "Another Scope",
    });
    
    resources:
      exampleVpcIpam:
        type: aws:ec2:VpcIpam
        properties:
          operatingRegions:
            - regionName: ${current.name}
      exampleVpcIpamScope:
        type: aws:ec2:VpcIpamScope
        properties:
          ipamId: ${exampleVpcIpam.id}
          description: Another Scope
    variables:
      current:
        fn::invoke:
          Function: aws:getRegion
          Arguments: {}
    

    Create VpcIpamScope Resource

    new VpcIpamScope(name: string, args: VpcIpamScopeArgs, opts?: CustomResourceOptions);
    @overload
    def VpcIpamScope(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     description: Optional[str] = None,
                     ipam_id: Optional[str] = None,
                     tags: Optional[Mapping[str, str]] = None)
    @overload
    def VpcIpamScope(resource_name: str,
                     args: VpcIpamScopeArgs,
                     opts: Optional[ResourceOptions] = None)
    func NewVpcIpamScope(ctx *Context, name string, args VpcIpamScopeArgs, opts ...ResourceOption) (*VpcIpamScope, error)
    public VpcIpamScope(string name, VpcIpamScopeArgs args, CustomResourceOptions? opts = null)
    public VpcIpamScope(String name, VpcIpamScopeArgs args)
    public VpcIpamScope(String name, VpcIpamScopeArgs args, CustomResourceOptions options)
    
    type: aws:ec2:VpcIpamScope
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args VpcIpamScopeArgs
    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 VpcIpamScopeArgs
    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 VpcIpamScopeArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args VpcIpamScopeArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args VpcIpamScopeArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    VpcIpamScope Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The VpcIpamScope resource accepts the following input properties:

    IpamId string

    The ID of the IPAM for which you're creating this scope.

    Description string

    A description for the scope you're creating.

    Tags Dictionary<string, string>

    Key-value mapping of resource tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    IpamId string

    The ID of the IPAM for which you're creating this scope.

    Description string

    A description for the scope you're creating.

    Tags map[string]string

    Key-value mapping of resource tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    ipamId String

    The ID of the IPAM for which you're creating this scope.

    description String

    A description for the scope you're creating.

    tags Map<String,String>

    Key-value mapping of resource tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    ipamId string

    The ID of the IPAM for which you're creating this scope.

    description string

    A description for the scope you're creating.

    tags {[key: string]: string}

    Key-value mapping of resource tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    ipam_id str

    The ID of the IPAM for which you're creating this scope.

    description str

    A description for the scope you're creating.

    tags Mapping[str, str]

    Key-value mapping of resource tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    ipamId String

    The ID of the IPAM for which you're creating this scope.

    description String

    A description for the scope you're creating.

    tags Map<String>

    Key-value mapping of resource tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the VpcIpamScope resource produces the following output properties:

    Arn string

    The Amazon Resource Name (ARN) of the scope.

    Id string

    The provider-assigned unique ID for this managed resource.

    IpamArn string

    The ARN of the IPAM for which you're creating this scope.

    IpamScopeType string
    IsDefault bool

    Defines if the scope is the default scope or not.

    PoolCount int

    The number of pools in the scope.

    TagsAll Dictionary<string, string>
    Arn string

    The Amazon Resource Name (ARN) of the scope.

    Id string

    The provider-assigned unique ID for this managed resource.

    IpamArn string

    The ARN of the IPAM for which you're creating this scope.

    IpamScopeType string
    IsDefault bool

    Defines if the scope is the default scope or not.

    PoolCount int

    The number of pools in the scope.

    TagsAll map[string]string
    arn String

    The Amazon Resource Name (ARN) of the scope.

    id String

    The provider-assigned unique ID for this managed resource.

    ipamArn String

    The ARN of the IPAM for which you're creating this scope.

    ipamScopeType String
    isDefault Boolean

    Defines if the scope is the default scope or not.

    poolCount Integer

    The number of pools in the scope.

    tagsAll Map<String,String>
    arn string

    The Amazon Resource Name (ARN) of the scope.

    id string

    The provider-assigned unique ID for this managed resource.

    ipamArn string

    The ARN of the IPAM for which you're creating this scope.

    ipamScopeType string
    isDefault boolean

    Defines if the scope is the default scope or not.

    poolCount number

    The number of pools in the scope.

    tagsAll {[key: string]: string}
    arn str

    The Amazon Resource Name (ARN) of the scope.

    id str

    The provider-assigned unique ID for this managed resource.

    ipam_arn str

    The ARN of the IPAM for which you're creating this scope.

    ipam_scope_type str
    is_default bool

    Defines if the scope is the default scope or not.

    pool_count int

    The number of pools in the scope.

    tags_all Mapping[str, str]
    arn String

    The Amazon Resource Name (ARN) of the scope.

    id String

    The provider-assigned unique ID for this managed resource.

    ipamArn String

    The ARN of the IPAM for which you're creating this scope.

    ipamScopeType String
    isDefault Boolean

    Defines if the scope is the default scope or not.

    poolCount Number

    The number of pools in the scope.

    tagsAll Map<String>

    Look up Existing VpcIpamScope Resource

    Get an existing VpcIpamScope 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?: VpcIpamScopeState, opts?: CustomResourceOptions): VpcIpamScope
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            arn: Optional[str] = None,
            description: Optional[str] = None,
            ipam_arn: Optional[str] = None,
            ipam_id: Optional[str] = None,
            ipam_scope_type: Optional[str] = None,
            is_default: Optional[bool] = None,
            pool_count: Optional[int] = None,
            tags: Optional[Mapping[str, str]] = None,
            tags_all: Optional[Mapping[str, str]] = None) -> VpcIpamScope
    func GetVpcIpamScope(ctx *Context, name string, id IDInput, state *VpcIpamScopeState, opts ...ResourceOption) (*VpcIpamScope, error)
    public static VpcIpamScope Get(string name, Input<string> id, VpcIpamScopeState? state, CustomResourceOptions? opts = null)
    public static VpcIpamScope get(String name, Output<String> id, VpcIpamScopeState 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.
    The following state arguments are supported:
    Arn string

    The Amazon Resource Name (ARN) of the scope.

    Description string

    A description for the scope you're creating.

    IpamArn string

    The ARN of the IPAM for which you're creating this scope.

    IpamId string

    The ID of the IPAM for which you're creating this scope.

    IpamScopeType string
    IsDefault bool

    Defines if the scope is the default scope or not.

    PoolCount int

    The number of pools in the scope.

    Tags Dictionary<string, string>

    Key-value mapping of resource tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    TagsAll Dictionary<string, string>
    Arn string

    The Amazon Resource Name (ARN) of the scope.

    Description string

    A description for the scope you're creating.

    IpamArn string

    The ARN of the IPAM for which you're creating this scope.

    IpamId string

    The ID of the IPAM for which you're creating this scope.

    IpamScopeType string
    IsDefault bool

    Defines if the scope is the default scope or not.

    PoolCount int

    The number of pools in the scope.

    Tags map[string]string

    Key-value mapping of resource tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    TagsAll map[string]string
    arn String

    The Amazon Resource Name (ARN) of the scope.

    description String

    A description for the scope you're creating.

    ipamArn String

    The ARN of the IPAM for which you're creating this scope.

    ipamId String

    The ID of the IPAM for which you're creating this scope.

    ipamScopeType String
    isDefault Boolean

    Defines if the scope is the default scope or not.

    poolCount Integer

    The number of pools in the scope.

    tags Map<String,String>

    Key-value mapping of resource tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    tagsAll Map<String,String>
    arn string

    The Amazon Resource Name (ARN) of the scope.

    description string

    A description for the scope you're creating.

    ipamArn string

    The ARN of the IPAM for which you're creating this scope.

    ipamId string

    The ID of the IPAM for which you're creating this scope.

    ipamScopeType string
    isDefault boolean

    Defines if the scope is the default scope or not.

    poolCount number

    The number of pools in the scope.

    tags {[key: string]: string}

    Key-value mapping of resource tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    tagsAll {[key: string]: string}
    arn str

    The Amazon Resource Name (ARN) of the scope.

    description str

    A description for the scope you're creating.

    ipam_arn str

    The ARN of the IPAM for which you're creating this scope.

    ipam_id str

    The ID of the IPAM for which you're creating this scope.

    ipam_scope_type str
    is_default bool

    Defines if the scope is the default scope or not.

    pool_count int

    The number of pools in the scope.

    tags Mapping[str, str]

    Key-value mapping of resource tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    tags_all Mapping[str, str]
    arn String

    The Amazon Resource Name (ARN) of the scope.

    description String

    A description for the scope you're creating.

    ipamArn String

    The ARN of the IPAM for which you're creating this scope.

    ipamId String

    The ID of the IPAM for which you're creating this scope.

    ipamScopeType String
    isDefault Boolean

    Defines if the scope is the default scope or not.

    poolCount Number

    The number of pools in the scope.

    tags Map<String>

    Key-value mapping of resource tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    tagsAll Map<String>

    Import

    Using pulumi import, import IPAMs using the scope_id. For example:

     $ pulumi import aws:ec2/vpcIpamScope:VpcIpamScope example ipam-scope-0513c69f283d11dfb
    

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes

    This Pulumi package is based on the aws Terraform Provider.

    aws logo

    Try AWS Native preview for resources not in the classic version.

    AWS Classic v6.2.0 published on Monday, Sep 18, 2023 by Pulumi