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.CfnApi.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.CfnApi.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();
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.