Class AwsIamConfig
(experimental) The authorization config in case the HTTP endpoint requires authorization.
Inheritance
System.Object
AwsIamConfig
Implements
Namespace: Amazon.CDK.AWS.AppSync
Assembly: Amazon.CDK.AWS.AppSync.dll
Syntax (csharp)
public class AwsIamConfig : Object, IAwsIamConfig
Syntax (vb)
Public Class AwsIamConfig
Inherits Object
Implements IAwsIamConfig
Remarks
Stability: Experimental
ExampleMetadata: infused
Examples
var api = new GraphqlApi(this, "api", new GraphqlApiProps {
Name = "api",
Schema = Schema.FromAsset(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(new BaseResolverProps {
TypeName = "Mutation",
FieldName = "callStepFunction",
RequestMappingTemplate = MappingTemplate.FromFile("request.vtl"),
ResponseMappingTemplate = MappingTemplate.FromFile("response.vtl")
});
Synopsis
Constructors
AwsIamConfig() |
Properties
SigningRegion | (experimental) The signing region for AWS IAM authorization. |
SigningServiceName | (experimental) The signing service name for AWS IAM authorization. |
Constructors
AwsIamConfig()
public AwsIamConfig()
Properties
SigningRegion
(experimental) The signing region for AWS IAM authorization.
public string SigningRegion { get; set; }
Property Value
System.String
Remarks
Stability: Experimental
SigningServiceName
(experimental) The signing service name for AWS IAM authorization.
public string SigningServiceName { get; set; }
Property Value
System.String
Remarks
Stability: Experimental