# AuthModeProperty

Describes an authorization configuration.

Use `AuthMode` to specify the publishing and subscription authorization configuration for an Event API.

- Source: Generated at build time
- Type last changed: v2.166.0 · 7 Nov 2024

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_appsync as appsync } from 'aws-cdk-lib';
const authModeProperty: appsync.CfnChannelNamespace.AuthModeProperty = {
  authType: 'authType',
};
```

Python:

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

auth_mode_property = appsync.CfnChannelNamespace.AuthModeProperty(
    auth_type="authType"
)
```

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.services.appsync.*;

AuthModeProperty authModeProperty = AuthModeProperty.builder()
        .authType("authType")
        .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.AWS.AppSync;

var authModeProperty = new AuthModeProperty {
    AuthType = "authType"
};
```

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 "github.com/aws/aws-cdk-go/awscdk"

authModeProperty := &AuthModeProperty{
	AuthType: jsii.String("authType"),
}
```

## Properties

- `authType`: string — The authorization type.
