# HttpConfigProperty

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

`HttpConfig` is a property of the [AWS::AppSync::DataSource](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appsync-datasource.html) resource.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## 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 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:

```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:

```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();
```

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 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"
        }
    }
};
```

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"

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

- `authorizationConfig`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnDataSource.AuthorizationConfigProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_appsync.CfnDataSource.AuthorizationConfigProperty.html) — The authorization configuration.

- `endpoint`: string (required) — The endpoint.
