Skip to content
v2.277.0

AuthModeProperty Struct ​

Describes an authorization configuration.

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

Example ​

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
# 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
// 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();
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"
};
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 ​

authTypeoptionalstringauth_typeoptionalstrauthTypeoptionalStringAuthTypeoptionalstringAuthTypeoptional*string #
The authorization type.