Show / Hide Table of Contents

Interface IAwsIamConfig

The authorization config in case the HTTP endpoint requires authorization.

Namespace: Amazon.CDK.AWS.AppSync
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IAwsIamConfig
Syntax (vb)
Public Interface IAwsIamConfig
Remarks

ExampleMetadata: infused

Examples
var api = new GraphqlApi(this, "api", new GraphqlApiProps {
                Name = "api",
                Definition = Definition.FromFile(Join(__dirname, "schema.graphql"))
            });

            var httpDs = api.AddHttpDataSource("ds", "https://states.amazonaws.com", new HttpDataSourceOptions {
                Name = "httpDsWithStepF",
                Description = "from appsync to StepFunctions Workflow",
                AuthorizationConfig = new AwsIamConfig {
                    SigningRegion = "us-east-1",
                    SigningServiceName = "states"
                }
            });

            httpDs.CreateResolver("MutationCallStepFunctionResolver", new BaseResolverProps {
                TypeName = "Mutation",
                FieldName = "callStepFunction",
                RequestMappingTemplate = MappingTemplate.FromFile("request.vtl"),
                ResponseMappingTemplate = MappingTemplate.FromFile("response.vtl")
            });

Synopsis

Properties

SigningRegion

The signing region for AWS IAM authorization.

SigningServiceName

The signing service name for AWS IAM authorization.

Properties

SigningRegion

The signing region for AWS IAM authorization.

string SigningRegion { get; }
Property Value

string

Remarks

ExampleMetadata: infused

SigningServiceName

The signing service name for AWS IAM authorization.

string SigningServiceName { get; }
Property Value

string

Remarks

ExampleMetadata: infused

Back to top Generated by DocFX