@Internal public static interface IGraphqlApi.Jsii$Default extends IGraphqlApi, IResource.Jsii$Default
IGraphqlApi.IGraphqlApi.Jsii$Default, IGraphqlApi.Jsii$Proxy| Modifier and Type | Method and Description |
|---|---|
default DynamoDbDataSource |
addDynamoDbDataSource(String id,
ITable table,
DataSourceOptions options)
(experimental) add a new DynamoDB data source to this API.
|
default HttpDataSource |
addHttpDataSource(String id,
String endpoint,
HttpDataSourceOptions options)
(experimental) add a new http data source to this API.
|
default LambdaDataSource |
addLambdaDataSource(String id,
IFunction lambdaFunction,
DataSourceOptions options)
(experimental) add a new Lambda data source to this API.
|
default NoneDataSource |
addNoneDataSource(String id,
DataSourceOptions options)
(experimental) add a new dummy data source to this API.
|
default RdsDataSource |
addRdsDataSource(String id,
IDatabaseCluster databaseCluster,
ISecret secretStore,
DataSourceOptions options)
(experimental) add a new Rds data source to this API.
|
default Boolean |
addSchemaDependency(CfnResource construct)
(experimental) Add schema dependency if not imported.
|
default String |
getApiId()
(experimental) an unique AWS AppSync GraphQL API identifier i.e.
|
default String |
getArn()
(experimental) the ARN of the API.
|
default ResourceEnvironment |
getEnv()
(experimental) The environment this resource belongs to.
|
default ConstructNode |
getNode()
(experimental) The construct tree node for this construct.
|
default Stack |
getStack()
(experimental) The stack in which this resource is defined.
|
addDynamoDbDataSource, addHttpDataSource, addLambdaDataSource, addNoneDataSource, addRdsDataSource@Stability(value=Experimental) @NotNull default ConstructNode getNode()
getNode in interface IConstruct.Jsii$DefaultgetNode in interface IResource.Jsii$Default@Stability(value=Experimental) @NotNull default ResourceEnvironment getEnv()
For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.
getEnv in interface IResourcegetEnv in interface IResource.Jsii$Default@Stability(value=Experimental) @NotNull default Stack getStack()
getStack in interface IResourcegetStack in interface IResource.Jsii$Default@Stability(value=Experimental) @NotNull default String getApiId()
getApiId in interface IGraphqlApi@Stability(value=Experimental) @NotNull default String getArn()
getArn in interface IGraphqlApi@Stability(value=Experimental) @NotNull default DynamoDbDataSource addDynamoDbDataSource(@NotNull String id, @NotNull ITable table, @Nullable DataSourceOptions options)
addDynamoDbDataSource in interface IGraphqlApiid - The data source's id. This parameter is required.table - The DynamoDB table backing this data source. This parameter is required.options - The optional configuration for this data source.@Stability(value=Experimental) @NotNull default HttpDataSource addHttpDataSource(@NotNull String id, @NotNull String endpoint, @Nullable HttpDataSourceOptions options)
addHttpDataSource in interface IGraphqlApiid - The data source's id. This parameter is required.endpoint - The http endpoint. This parameter is required.options - The optional configuration for this data source.@Stability(value=Experimental) @NotNull default LambdaDataSource addLambdaDataSource(@NotNull String id, @NotNull IFunction lambdaFunction, @Nullable DataSourceOptions options)
addLambdaDataSource in interface IGraphqlApiid - The data source's id. This parameter is required.lambdaFunction - The Lambda function to call to interact with this data source. This parameter is required.options - The optional configuration for this data source.@Stability(value=Experimental) @NotNull default NoneDataSource addNoneDataSource(@NotNull String id, @Nullable DataSourceOptions options)
Useful for pipeline resolvers and for backend changes that don't require a data source.
addNoneDataSource in interface IGraphqlApiid - The data source's id. This parameter is required.options - The optional configuration for this data source.@Stability(value=Experimental) @NotNull default RdsDataSource addRdsDataSource(@NotNull String id, @NotNull IDatabaseCluster databaseCluster, @NotNull ISecret secretStore, @Nullable DataSourceOptions options)
addRdsDataSource in interface IGraphqlApiid - The data source's id. This parameter is required.databaseCluster - The database cluster to interact with this data source. This parameter is required.secretStore - The secret store that contains the username and password for the database cluster. This parameter is required.options - The optional configuration for this data source.@Stability(value=Experimental) @NotNull default Boolean addSchemaDependency(@NotNull CfnResource construct)
addSchemaDependency in interface IGraphqlApiconstruct - the dependee. This parameter is required.Copyright © 2020. All rights reserved.