# AuthorizationConfigProperty

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](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-datasource-httpconfig.html) property type.

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

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:

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

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 authorizationConfigProperty = 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"

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

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

## Properties

- `authorizationType`: string (required) — The authorization type that the HTTP endpoint requires.

  - *AWS_IAM* : The authorization type is Signature Version 4 (SigV4).

- `awsIamConfig`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnDataSource.AwsIamConfigProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_appsync.CfnDataSource.AwsIamConfigProperty.html) — The AWS Identity and Access Management settings.
