Skip to content
v2.276.0

HttpConfigProperty Struct ​

Use the HttpConfig property type to specify HttpConfig for an AWS AppSync data source.

HttpConfig is a property of the AWS::AppSync::DataSource resource.

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 httpConfigProperty: appsync.CfnDataSource.HttpConfigProperty = {
  endpoint: 'endpoint',

  // the properties below are optional
  authorizationConfig: {
    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

http_config_property = appsync.CfnDataSource.HttpConfigProperty(
    endpoint="endpoint",

    # the properties below are optional
    authorization_config=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.*;

HttpConfigProperty httpConfigProperty = HttpConfigProperty.builder()
        .endpoint("endpoint")

        // the properties below are optional
        .authorizationConfig(AuthorizationConfigProperty.builder()
                .authorizationType("authorizationType")

                // the properties below are optional
                .awsIamConfig(AwsIamConfigProperty.builder()
                        .signingRegion("signingRegion")
                        .signingServiceName("signingServiceName")
                        .build())
                .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 httpConfigProperty = new HttpConfigProperty {
    Endpoint = "endpoint",

    // the properties below are optional
    AuthorizationConfig = 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"

httpConfigProperty := &HttpConfigProperty{
	Endpoint: jsii.String("endpoint"),

	// the properties below are optional
	AuthorizationConfig: &AuthorizationConfigProperty{
		AuthorizationType: jsii.String("authorizationType"),

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

Properties ​

authorizationConfigoptionalIResolvable | CfnDataSource.AuthorizationConfigPropertyauthorization_configoptionaltyping.Union[IResolvable, AuthorizationConfigProperty]authorizationConfigoptionalIResolvableAuthorizationConfigoptionalIResolvableAuthorizationConfigoptionalinterface{}#
The authorization configuration.
endpointstringendpointstrendpointStringEndpointstringEndpoint*stringrequired#
The endpoint.