1. Packages
  2. AWS
  3. API Docs
  4. servicequotas
  5. TemplateAssociation
AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi

aws.servicequotas.TemplateAssociation

Explore with Pulumi AI

aws logo
AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi

    Resource for managing an AWS Service Quotas Template Association.

    Only the management account of an organization can associate Service Quota templates, and this must be done from the us-east-1 region.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = new aws.servicequotas.TemplateAssociation("example", {});
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.servicequotas.TemplateAssociation("example")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/servicequotas"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := servicequotas.NewTemplateAssociation(ctx, "example", nil)
    		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 example = new Aws.ServiceQuotas.TemplateAssociation("example");
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.servicequotas.TemplateAssociation;
    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 example = new TemplateAssociation("example");
    
        }
    }
    
    resources:
      example:
        type: aws:servicequotas:TemplateAssociation
    

    Create TemplateAssociation Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new TemplateAssociation(name: string, args?: TemplateAssociationArgs, opts?: CustomResourceOptions);
    @overload
    def TemplateAssociation(resource_name: str,
                            args: Optional[TemplateAssociationArgs] = None,
                            opts: Optional[ResourceOptions] = None)
    
    @overload
    def TemplateAssociation(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            skip_destroy: Optional[bool] = None)
    func NewTemplateAssociation(ctx *Context, name string, args *TemplateAssociationArgs, opts ...ResourceOption) (*TemplateAssociation, error)
    public TemplateAssociation(string name, TemplateAssociationArgs? args = null, CustomResourceOptions? opts = null)
    public TemplateAssociation(String name, TemplateAssociationArgs args)
    public TemplateAssociation(String name, TemplateAssociationArgs args, CustomResourceOptions options)
    
    type: aws:servicequotas:TemplateAssociation
    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 TemplateAssociationArgs
    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 TemplateAssociationArgs
    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 TemplateAssociationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TemplateAssociationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args TemplateAssociationArgs
    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 templateAssociationResource = new Aws.ServiceQuotas.TemplateAssociation("templateAssociationResource", new()
    {
        SkipDestroy = false,
    });
    
    example, err := servicequotas.NewTemplateAssociation(ctx, "templateAssociationResource", &servicequotas.TemplateAssociationArgs{
    	SkipDestroy: pulumi.Bool(false),
    })
    
    var templateAssociationResource = new TemplateAssociation("templateAssociationResource", TemplateAssociationArgs.builder()
        .skipDestroy(false)
        .build());
    
    template_association_resource = aws.servicequotas.TemplateAssociation("templateAssociationResource", skip_destroy=False)
    
    const templateAssociationResource = new aws.servicequotas.TemplateAssociation("templateAssociationResource", {skipDestroy: false});
    
    type: aws:servicequotas:TemplateAssociation
    properties:
        skipDestroy: false
    

    TemplateAssociation 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 TemplateAssociation resource accepts the following input properties:

    skipDestroy Boolean
    skipDestroy boolean
    skipDestroy Boolean

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    Association status. Creating this resource will result in an ASSOCIATED status, and quota increase requests in the template are automatically applied to new AWS accounts in the organization.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    Association status. Creating this resource will result in an ASSOCIATED status, and quota increase requests in the template are automatically applied to new AWS accounts in the organization.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    Association status. Creating this resource will result in an ASSOCIATED status, and quota increase requests in the template are automatically applied to new AWS accounts in the organization.
    id string
    The provider-assigned unique ID for this managed resource.
    status string
    Association status. Creating this resource will result in an ASSOCIATED status, and quota increase requests in the template are automatically applied to new AWS accounts in the organization.
    id str
    The provider-assigned unique ID for this managed resource.
    status str
    Association status. Creating this resource will result in an ASSOCIATED status, and quota increase requests in the template are automatically applied to new AWS accounts in the organization.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    Association status. Creating this resource will result in an ASSOCIATED status, and quota increase requests in the template are automatically applied to new AWS accounts in the organization.

    Look up Existing TemplateAssociation Resource

    Get an existing TemplateAssociation 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?: TemplateAssociationState, opts?: CustomResourceOptions): TemplateAssociation
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            skip_destroy: Optional[bool] = None,
            status: Optional[str] = None) -> TemplateAssociation
    func GetTemplateAssociation(ctx *Context, name string, id IDInput, state *TemplateAssociationState, opts ...ResourceOption) (*TemplateAssociation, error)
    public static TemplateAssociation Get(string name, Input<string> id, TemplateAssociationState? state, CustomResourceOptions? opts = null)
    public static TemplateAssociation get(String name, Output<String> id, TemplateAssociationState 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:
    SkipDestroy bool
    Status string
    Association status. Creating this resource will result in an ASSOCIATED status, and quota increase requests in the template are automatically applied to new AWS accounts in the organization.
    SkipDestroy bool
    Status string
    Association status. Creating this resource will result in an ASSOCIATED status, and quota increase requests in the template are automatically applied to new AWS accounts in the organization.
    skipDestroy Boolean
    status String
    Association status. Creating this resource will result in an ASSOCIATED status, and quota increase requests in the template are automatically applied to new AWS accounts in the organization.
    skipDestroy boolean
    status string
    Association status. Creating this resource will result in an ASSOCIATED status, and quota increase requests in the template are automatically applied to new AWS accounts in the organization.
    skip_destroy bool
    status str
    Association status. Creating this resource will result in an ASSOCIATED status, and quota increase requests in the template are automatically applied to new AWS accounts in the organization.
    skipDestroy Boolean
    status String
    Association status. Creating this resource will result in an ASSOCIATED status, and quota increase requests in the template are automatically applied to new AWS accounts in the organization.

    Import

    Using pulumi import, import Service Quotas Template Association using the id. For example:

    $ pulumi import aws:servicequotas/templateAssociation:TemplateAssociation example 123456789012
    

    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.
    aws logo
    AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi