We recommend new projects start with resources from the AWS provider.
aws-native.cloudformation.HookDefaultVersion
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The HookDefaultVersion resource accepts the following input properties:
- Type
Name string The name of the type being registered.
We recommend that type names adhere to the following pattern: company_or_organization::service::type.
- Type
Version stringArn - The Amazon Resource Name (ARN) of the type version.
- Version
Id string - The ID of an existing version of the hook to set as the default.
- Type
Name string The name of the type being registered.
We recommend that type names adhere to the following pattern: company_or_organization::service::type.
- Type
Version stringArn - The Amazon Resource Name (ARN) of the type version.
- Version
Id string - The ID of an existing version of the hook to set as the default.
- type
Name String The name of the type being registered.
We recommend that type names adhere to the following pattern: company_or_organization::service::type.
- type
Version StringArn - The Amazon Resource Name (ARN) of the type version.
- version
Id String - The ID of an existing version of the hook to set as the default.
- type
Name string The name of the type being registered.
We recommend that type names adhere to the following pattern: company_or_organization::service::type.
- type
Version stringArn - The Amazon Resource Name (ARN) of the type version.
- version
Id 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_ strarn - 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.
- type
Name String The name of the type being registered.
We recommend that type names adhere to the following pattern: company_or_organization::service::type.
- type
Version StringArn - The Amazon Resource Name (ARN) of the type version.
- version
Id 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:
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.