# CfnHookTypeConfigProps

Properties for defining a `CfnHookTypeConfig`.

Used as props by: [CfnHookTypeConfig](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.CfnHookTypeConfig.html)

- Source: Generated at build time
- Type last changed: v2.88.0 · 20 Jul 2023

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as cdk from 'aws-cdk-lib';
const cfnHookTypeConfigProps: cdk.CfnHookTypeConfigProps = {
  configuration: 'configuration',

  // the properties below are optional
  configurationAlias: 'configurationAlias',
  typeArn: 'typeArn',
  typeName: 'typeName',
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk as cdk

cfn_hook_type_config_props = cdk.CfnHookTypeConfigProps(
    configuration="configuration",

    # the properties below are optional
    configuration_alias="configurationAlias",
    type_arn="typeArn",
    type_name="typeName"
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.*;

CfnHookTypeConfigProps cfnHookTypeConfigProps = CfnHookTypeConfigProps.builder()
        .configuration("configuration")

        // the properties below are optional
        .configurationAlias("configurationAlias")
        .typeArn("typeArn")
        .typeName("typeName")
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK;

var cfnHookTypeConfigProps = new CfnHookTypeConfigProps {
    Configuration = "configuration",

    // the properties below are optional
    ConfigurationAlias = "configurationAlias",
    TypeArn = "typeArn",
    TypeName = "typeName"
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import cdk "github.com/aws/aws-cdk-go/awscdk"

cfnHookTypeConfigProps := &CfnHookTypeConfigProps{
	Configuration: jsii.String("configuration"),

	// the properties below are optional
	ConfigurationAlias: jsii.String("configurationAlias"),
	TypeArn: jsii.String("typeArn"),
	TypeName: jsii.String("typeName"),
}
```

## Properties

- `configuration`: string (required) — Specifies the activated Hook type configuration, in this AWS account and AWS Region .

  You must specify either `TypeName` and `Configuration` or `TypeArn` and `Configuration` .

- `configurationAlias`: string = "default" — An alias by which to refer to this configuration data.

  Defaults to `default` alias. Hook types currently support default configuration alias.

- `typeArn`: string — The Amazon Resource Number (ARN) for the Hook to set `Configuration` for.

  You must specify either `TypeName` and `Configuration` or `TypeArn` and `Configuration` .

- `typeName`: string — The unique name for your Hook.

  Specifies a three-part namespace for your Hook, with a recommended pattern of `Organization::Service::Hook` .

  You must specify either `TypeName` and `Configuration` or `TypeArn` and `Configuration` .
