Interface IGraphqlApi.Jsii$Default
- All Superinterfaces:
IConstruct,software.constructs.IConstruct,IConstruct.Jsii$Default,software.constructs.IConstruct.Jsii$Default,IDependable,IDependable.Jsii$Default,IGraphqlApi,IResource,IResource.Jsii$Default,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
IGraphqlApi.Jsii$Proxy
- Enclosing interface:
- IGraphqlApi
IGraphqlApi.-
Nested Class Summary
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$Default, IConstruct.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default, software.constructs.IConstruct.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.core.IDependable
IDependable.Jsii$Default, IDependable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.services.appsync.IGraphqlApi
IGraphqlApi.Jsii$Default, IGraphqlApi.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.core.IResource
IResource.Jsii$Default, IResource.Jsii$Proxy -
Method Summary
Modifier and TypeMethodDescriptiondefault DynamoDbDataSourceaddDynamoDbDataSource(String id, ITable table, DataSourceOptions options) (experimental) add a new DynamoDB data source to this API.default ElasticsearchDataSourceaddElasticsearchDataSource(String id, IDomain domain, DataSourceOptions options) Deprecated.default HttpDataSourceaddHttpDataSource(String id, String endpoint, HttpDataSourceOptions options) (experimental) add a new http data source to this API.default LambdaDataSourceaddLambdaDataSource(String id, IFunction lambdaFunction, DataSourceOptions options) (experimental) add a new Lambda data source to this API.default NoneDataSourceaddNoneDataSource(String id, DataSourceOptions options) (experimental) add a new dummy data source to this API.default OpenSearchDataSourceaddOpenSearchDataSource(String id, IDomain domain, DataSourceOptions options) (experimental) Add a new OpenSearch data source to this API.default RdsDataSourceaddRdsDataSource(String id, IServerlessCluster serverlessCluster, ISecret secretStore, String databaseName, DataSourceOptions options) (experimental) add a new Rds data source to this API.default BooleanaddSchemaDependency(CfnResource construct) (experimental) Add schema dependency if not imported.default voidapplyRemovalPolicy(RemovalPolicy policy) Apply the given removal policy to this resource.default Resolver(experimental) creates a new resolver for this datasource and API using the given properties.default StringgetApiId()(experimental) an unique AWS AppSync GraphQL API identifier i.e.default StringgetArn()(experimental) the ARN of the API.default ResourceEnvironmentgetEnv()The environment this resource belongs to.default ConstructNodegetNode()The construct tree node for this construct.default StackgetStack()The stack in which this resource is defined.Methods inherited from interface software.amazon.awscdk.services.appsync.IGraphqlApi
addDynamoDbDataSource, addElasticsearchDataSource, addHttpDataSource, addLambdaDataSource, addNoneDataSource, addOpenSearchDataSource, addRdsDataSource, addRdsDataSourceMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getNode
The construct tree node for this construct.- Specified by:
getNodein interfaceIConstruct- Specified by:
getNodein interfaceIConstruct.Jsii$Default- Specified by:
getNodein interfaceIResource.Jsii$Default
-
getEnv
The environment this resource belongs to.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.
- Specified by:
getEnvin interfaceIResource- Specified by:
getEnvin interfaceIResource.Jsii$Default
-
getStack
The stack in which this resource is defined.- Specified by:
getStackin interfaceIResource- Specified by:
getStackin interfaceIResource.Jsii$Default
-
getApiId
(experimental) an unique AWS AppSync GraphQL API identifier i.e. 'lxz775lwdrgcndgz3nurvac7oa'.- Specified by:
getApiIdin interfaceIGraphqlApi
-
getArn
(experimental) the ARN of the API.- Specified by:
getArnin interfaceIGraphqlApi
-
applyRemovalPolicy
Apply the given removal policy to this resource.The Removal Policy controls what happens to this resource when it stops being managed by CloudFormation, either because you've removed it from the CDK application or because you've made a change that requires the resource to be replaced.
The resource can be deleted (
RemovalPolicy.DESTROY), or left in your AWS account for data recovery and cleanup later (RemovalPolicy.RETAIN).- Specified by:
applyRemovalPolicyin interfaceIResource- Specified by:
applyRemovalPolicyin interfaceIResource.Jsii$Default- Parameters:
policy- This parameter is required.
-
addDynamoDbDataSource
@Stability(Experimental) @NotNull default DynamoDbDataSource addDynamoDbDataSource(@NotNull String id, @NotNull ITable table, @Nullable DataSourceOptions options) (experimental) add a new DynamoDB data source to this API.- Specified by:
addDynamoDbDataSourcein interfaceIGraphqlApi- Parameters:
id- 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.
-
addElasticsearchDataSource
@Stability(Deprecated) @Deprecated @NotNull default ElasticsearchDataSource addElasticsearchDataSource(@NotNull String id, @NotNull IDomain domain, @Nullable DataSourceOptions options) Deprecated.- use
addOpenSearchDataSource
(deprecated) add a new elasticsearch data source to this API.- Specified by:
addElasticsearchDataSourcein interfaceIGraphqlApi- Parameters:
id- The data source's id. This parameter is required.domain- The elasticsearch domain for this data source. This parameter is required.options- The optional configuration for this data source.
- use
-
addHttpDataSource
@Stability(Experimental) @NotNull default HttpDataSource addHttpDataSource(@NotNull String id, @NotNull String endpoint, @Nullable HttpDataSourceOptions options) (experimental) add a new http data source to this API.- Specified by:
addHttpDataSourcein interfaceIGraphqlApi- Parameters:
id- 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.
-
addLambdaDataSource
@Stability(Experimental) @NotNull default LambdaDataSource addLambdaDataSource(@NotNull String id, @NotNull IFunction lambdaFunction, @Nullable DataSourceOptions options) (experimental) add a new Lambda data source to this API.- Specified by:
addLambdaDataSourcein interfaceIGraphqlApi- Parameters:
id- 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.
-
addNoneDataSource
@Stability(Experimental) @NotNull default NoneDataSource addNoneDataSource(@NotNull String id, @Nullable DataSourceOptions options) (experimental) add a new dummy data source to this API.Useful for pipeline resolvers and for backend changes that don't require a data source.
- Specified by:
addNoneDataSourcein interfaceIGraphqlApi- Parameters:
id- The data source's id. This parameter is required.options- The optional configuration for this data source.
-
addOpenSearchDataSource
@Stability(Experimental) @NotNull default OpenSearchDataSource addOpenSearchDataSource(@NotNull String id, @NotNull IDomain domain, @Nullable DataSourceOptions options) (experimental) Add a new OpenSearch data source to this API.- Specified by:
addOpenSearchDataSourcein interfaceIGraphqlApi- Parameters:
id- The data source's id. This parameter is required.domain- The OpenSearch domain for this data source. This parameter is required.options- The optional configuration for this data source.
-
addRdsDataSource
@Stability(Experimental) @NotNull default RdsDataSource addRdsDataSource(@NotNull String id, @NotNull IServerlessCluster serverlessCluster, @NotNull ISecret secretStore, @Nullable String databaseName, @Nullable DataSourceOptions options) (experimental) add a new Rds data source to this API.- Specified by:
addRdsDataSourcein interfaceIGraphqlApi- Parameters:
id- The data source's id. This parameter is required.serverlessCluster- The serverless cluster to interact with this data source. This parameter is required.secretStore- The secret store that contains the username and password for the serverless cluster. This parameter is required.databaseName- The optional name of the database to use within the cluster.options- The optional configuration for this data source.
-
addSchemaDependency
@Stability(Experimental) @NotNull default Boolean addSchemaDependency(@NotNull CfnResource construct) (experimental) Add schema dependency if not imported.- Specified by:
addSchemaDependencyin interfaceIGraphqlApi- Parameters:
construct- the dependee. This parameter is required.
-
createResolver
@Stability(Experimental) @NotNull default Resolver createResolver(@NotNull ExtendedResolverProps props) (experimental) creates a new resolver for this datasource and API using the given properties.- Specified by:
createResolverin interfaceIGraphqlApi- Parameters:
props- This parameter is required.
-
addOpenSearchDataSource