1. Packages
  2. AWS Native
  3. API Docs
  4. cloudformation
  5. HookDefaultVersion

We recommend new projects start with resources from the AWS provider.

AWS Native v0.126.0 published on Monday, Sep 30, 2024 by Pulumi

aws-native.cloudformation.HookDefaultVersion

Explore with Pulumi AI

aws-native logo

We recommend new projects start with resources from the AWS provider.

AWS Native v0.126.0 published on Monday, Sep 30, 2024 by Pulumi

    Set a version as default version for a hook in CloudFormation Registry.

    Example Usage

    Example

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AwsNative = Pulumi.AwsNative;
    
    return await Deployment.RunAsync(() => 
    {
        var hookDefaultVersion = new AwsNative.CloudFormation.HookDefaultVersion("hookDefaultVersion", new()
        {
            TypeVersionArn = "arn:aws:cloudformation:us-west-2:123456789012:type/hook/My-Sample-Hook/00000001",
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws-native/sdk/go/aws/cloudformation"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := cloudformation.NewHookDefaultVersion(ctx, "hookDefaultVersion", &cloudformation.HookDefaultVersionArgs{
    			TypeVersionArn: pulumi.String("arn:aws:cloudformation:us-west-2:123456789012:type/hook/My-Sample-Hook/00000001"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    

    Coming soon!

    import pulumi
    import pulumi_aws_native as aws_native
    
    hook_default_version = aws_native.cloudformation.HookDefaultVersion("hookDefaultVersion", type_version_arn="arn:aws:cloudformation:us-west-2:123456789012:type/hook/My-Sample-Hook/00000001")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as aws_native from "@pulumi/aws-native";
    
    const hookDefaultVersion = new aws_native.cloudformation.HookDefaultVersion("hookDefaultVersion", {typeVersionArn: "arn:aws:cloudformation:us-west-2:123456789012:type/hook/My-Sample-Hook/00000001"});
    

    Coming soon!

    Example

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AwsNative = Pulumi.AwsNative;
    
    return await Deployment.RunAsync(() => 
    {
        var hookDefaultVersion = new AwsNative.CloudFormation.HookDefaultVersion("hookDefaultVersion", new()
        {
            TypeVersionArn = "arn:aws:cloudformation:us-west-2:123456789012:type/hook/My-Sample-Hook/00000001",
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws-native/sdk/go/aws/cloudformation"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := cloudformation.NewHookDefaultVersion(ctx, "hookDefaultVersion", &cloudformation.HookDefaultVersionArgs{
    			TypeVersionArn: pulumi.String("arn:aws:cloudformation:us-west-2:123456789012:type/hook/My-Sample-Hook/00000001"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    

    Coming soon!

    import pulumi
    import pulumi_aws_native as aws_native
    
    hook_default_version = aws_native.cloudformation.HookDefaultVersion("hookDefaultVersion", type_version_arn="arn:aws:cloudformation:us-west-2:123456789012:type/hook/My-Sample-Hook/00000001")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as aws_native from "@pulumi/aws-native";
    
    const hookDefaultVersion = new aws_native.cloudformation.HookDefaultVersion("hookDefaultVersion", {typeVersionArn: "arn:aws:cloudformation:us-west-2:123456789012:type/hook/My-Sample-Hook/00000001"});
    

    Coming soon!

    Example

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AwsNative = Pulumi.AwsNative;
    
    return await Deployment.RunAsync(() => 
    {
        var hookDefaultVersion = new AwsNative.CloudFormation.HookDefaultVersion("hookDefaultVersion", new()
        {
            TypeName = "My::Sample::Hook",
            VersionId = "1",
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws-native/sdk/go/aws/cloudformation"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := cloudformation.NewHookDefaultVersion(ctx, "hookDefaultVersion", &cloudformation.HookDefaultVersionArgs{
    			TypeName:  pulumi.String("My::Sample::Hook"),
    			VersionId: pulumi.String("1"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    

    Coming soon!

    import pulumi
    import pulumi_aws_native as aws_native
    
    hook_default_version = aws_native.cloudformation.HookDefaultVersion("hookDefaultVersion",
        type_name="My::Sample::Hook",
        version_id="1")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as aws_native from "@pulumi/aws-native";
    
    const hookDefaultVersion = new aws_native.cloudformation.HookDefaultVersion("hookDefaultVersion", {
        typeName: "My::Sample::Hook",
        versionId: "1",
    });
    

    Coming soon!

    Example

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AwsNative = Pulumi.AwsNative;
    
    return await Deployment.RunAsync(() => 
    {
        var hookDefaultVersion = new AwsNative.CloudFormation.HookDefaultVersion("hookDefaultVersion", new()
        {
            TypeName = "My::Sample::Hook",
            VersionId = "1",
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws-native/sdk/go/aws/cloudformation"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := cloudformation.NewHookDefaultVersion(ctx, "hookDefaultVersion", &cloudformation.HookDefaultVersionArgs{
    			TypeName:  pulumi.String("My::Sample::Hook"),
    			VersionId: pulumi.String("1"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    

    Coming soon!

    import pulumi
    import pulumi_aws_native as aws_native
    
    hook_default_version = aws_native.cloudformation.HookDefaultVersion("hookDefaultVersion",
        type_name="My::Sample::Hook",
        version_id="1")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as aws_native from "@pulumi/aws-native";
    
    const hookDefaultVersion = new aws_native.cloudformation.HookDefaultVersion("hookDefaultVersion", {
        typeName: "My::Sample::Hook",
        versionId: "1",
    });
    

    Coming soon!

    Create HookDefaultVersion Resource

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

    Constructor syntax

    new HookDefaultVersion(name: string, args?: HookDefaultVersionArgs, opts?: CustomResourceOptions);
    @overload
    def HookDefaultVersion(resource_name: str,
                           args: Optional[HookDefaultVersionArgs] = None,
                           opts: Optional[ResourceOptions] = None)
    
    @overload
    def HookDefaultVersion(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           type_name: Optional[str] = None,
                           type_version_arn: Optional[str] = None,
                           version_id: Optional[str] = None)
    func NewHookDefaultVersion(ctx *Context, name string, args *HookDefaultVersionArgs, opts ...ResourceOption) (*HookDefaultVersion, error)
    public HookDefaultVersion(string name, HookDefaultVersionArgs? args = null, CustomResourceOptions? opts = null)
    public HookDefaultVersion(String name, HookDefaultVersionArgs args)
    public HookDefaultVersion(String name, HookDefaultVersionArgs args, CustomResourceOptions options)
    
    type: aws-native:cloudformation:HookDefaultVersion
    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 HookDefaultVersionArgs
    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 HookDefaultVersionArgs
    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 HookDefaultVersionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args HookDefaultVersionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args HookDefaultVersionArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    TypeName string

    The name of the type being registered.

    We recommend that type names adhere to the following pattern: company_or_organization::service::type.

    TypeVersionArn string
    The Amazon Resource Name (ARN) of the type version.
    VersionId string
    The ID of an existing version of the hook to set as the default.
    TypeName string

    The name of the type being registered.

    We recommend that type names adhere to the following pattern: company_or_organization::service::type.

    TypeVersionArn string
    The Amazon Resource Name (ARN) of the type version.
    VersionId string
    The ID of an existing version of the hook to set as the default.
    typeName String

    The name of the type being registered.

    We recommend that type names adhere to the following pattern: company_or_organization::service::type.

    typeVersionArn String
    The Amazon Resource Name (ARN) of the type version.
    versionId String
    The ID of an existing version of the hook to set as the default.
    typeName string

    The name of the type being registered.

    We recommend that type names adhere to the following pattern: company_or_organization::service::type.

    typeVersionArn string
    The Amazon Resource Name (ARN) of the type version.
    versionId string
    The ID of an existing version of the hook to set as the default.
    type_name str

    The name of the type being registered.

    We recommend that type names adhere to the following pattern: company_or_organization::service::type.

    type_version_arn str
    The Amazon Resource Name (ARN) of the type version.
    version_id str
    The ID of an existing version of the hook to set as the default.
    typeName String

    The name of the type being registered.

    We recommend that type names adhere to the following pattern: company_or_organization::service::type.

    typeVersionArn String
    The Amazon Resource Name (ARN) of the type version.
    versionId String
    The ID of an existing version of the hook to set as the default.

    Outputs

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

    Arn string
    The Amazon Resource Name (ARN) of the type. This is used to uniquely identify a HookDefaultVersion
    Id string
    The provider-assigned unique ID for this managed resource.
    Arn string
    The Amazon Resource Name (ARN) of the type. This is used to uniquely identify a HookDefaultVersion
    Id string
    The provider-assigned unique ID for this managed resource.
    arn String
    The Amazon Resource Name (ARN) of the type. This is used to uniquely identify a HookDefaultVersion
    id String
    The provider-assigned unique ID for this managed resource.
    arn string
    The Amazon Resource Name (ARN) of the type. This is used to uniquely identify a HookDefaultVersion
    id string
    The provider-assigned unique ID for this managed resource.
    arn str
    The Amazon Resource Name (ARN) of the type. This is used to uniquely identify a HookDefaultVersion
    id str
    The provider-assigned unique ID for this managed resource.
    arn String
    The Amazon Resource Name (ARN) of the type. This is used to uniquely identify a HookDefaultVersion
    id String
    The provider-assigned unique ID for this managed resource.

    Package Details

    Repository
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo

    We recommend new projects start with resources from the AWS provider.

    AWS Native v0.126.0 published on Monday, Sep 30, 2024 by Pulumi