Skip to content
v2.277.0

AuthorizationConfigProperty Struct ​

The AuthorizationConfig property type specifies the authorization type and configuration for an AWS AppSync http data source.

AuthorizationConfig is a property of the AWS AppSync DataSource HttpConfig property type.

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 authorizationConfigProperty: appsync.CfnDataSource.AuthorizationConfigProperty = {
  authorizationType: 'authorizationType',

  // the properties below are optional
  awsIamConfig: {
    signingRegion: 'signingRegion',
    signingServiceName: 'signingServiceName',
  },
};
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

authorization_config_property = appsync.CfnDataSource.AuthorizationConfigProperty(
    authorization_type="authorizationType",

    # the properties below are optional
    aws_iam_config=appsync.CfnDataSource.AwsIamConfigProperty(
        signing_region="signingRegion",
        signing_service_name="signingServiceName"
    )
)
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.*;

AuthorizationConfigProperty authorizationConfigProperty = AuthorizationConfigProperty.builder()
        .authorizationType("authorizationType")

        // the properties below are optional
        .awsIamConfig(AwsIamConfigProperty.builder()
                .signingRegion("signingRegion")
                .signingServiceName("signingServiceName")
                .build())
        .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 authorizationConfigProperty = new AuthorizationConfigProperty {
    AuthorizationType = "authorizationType",

    // the properties below are optional
    AwsIamConfig = new AwsIamConfigProperty {
        SigningRegion = "signingRegion",
        SigningServiceName = "signingServiceName"
    }
};
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"

authorizationConfigProperty := &AuthorizationConfigProperty{
	AuthorizationType: jsii.String("authorizationType"),

	// the properties below are optional
	AwsIamConfig: &AwsIamConfigProperty{
		SigningRegion: jsii.String("signingRegion"),
		SigningServiceName: jsii.String("signingServiceName"),
	},
}

Properties ​

authorizationTypestringauthorization_typestrauthorizationTypeStringAuthorizationTypestringAuthorizationType*string required #
The authorization type that the HTTP endpoint requires.
  • AWS_IAM : The authorization type is Signature Version 4 (SigV4).
awsIamConfigoptionalIResolvable | CfnDataSource.AwsIamConfigPropertyaws_iam_configoptionaltyping.Union[IResolvable, AwsIamConfigProperty]awsIamConfigoptionalIResolvableAwsIamConfigoptionalIResolvableAwsIamConfigoptionalinterface{} #
The AWS Identity and Access Management settings.