Class SourceApiAssociationProps
Properties for SourceApiAssociation which associates an AppSync Source API with an AppSync Merged API.
Inheritance
System.Object
SourceApiAssociationProps
Implements
Namespace: Amazon.CDK.AWS.AppSync
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class SourceApiAssociationProps : Object, ISourceApiAssociationProps
Syntax (vb)
Public Class SourceApiAssociationProps
Inherits Object
Implements ISourceApiAssociationProps
Remarks
ExampleMetadata: infused
Examples
var sourceApi = new GraphqlApi(this, "FirstSourceAPI", new GraphqlApiProps {
Name = "FirstSourceAPI",
Definition = Definition.FromFile(Join(__dirname, "appsync.merged-api-1.graphql"))
});
var importedMergedApi = GraphqlApi.FromGraphqlApiAttributes(this, "ImportedMergedApi", new GraphqlApiAttributes {
GraphqlApiId = "MyApiId",
GraphqlApiArn = "MyApiArn"
});
var importedExecutionRole = Role.FromRoleArn(this, "ExecutionRole", "arn:aws:iam::ACCOUNT:role/MyExistingRole");
new SourceApiAssociation(this, "SourceApiAssociation2", new SourceApiAssociationProps {
SourceApi = sourceApi,
MergedApi = importedMergedApi,
MergeType = MergeType.MANUAL_MERGE,
MergedApiExecutionRole = importedExecutionRole
});
Synopsis
Constructors
SourceApiAssociationProps() |
Properties
Description | The description of the source api association. |
MergedApi | The merged api to associate. |
MergedApiExecutionRole | The merged api execution role for adding the access policy for the source api. |
MergeType | The merge type for the source. |
SourceApi | The source api to associate. |
Constructors
SourceApiAssociationProps()
public SourceApiAssociationProps()
Properties
Description
The description of the source api association.
public string Description { get; set; }
Property Value
System.String
Remarks
Default: - None
MergedApi
MergedApiExecutionRole
The merged api execution role for adding the access policy for the source api.
public IRole MergedApiExecutionRole { get; set; }
Property Value
MergeType
The merge type for the source.
public Nullable<MergeType> MergeType { get; set; }
Property Value
System.Nullable<MergeType>
Remarks
Default: - AUTO_MERGE