Class IGraphqlApi.Jsii$Proxy
- All Implemented Interfaces:
IEnvironmentAware,IEnvironmentAware.Jsii$Default,IResource,IResource.Jsii$Default,IGraphqlApi,IGraphqlApi.Jsii$Default,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IConstruct.Jsii$Default,software.constructs.IDependable,software.constructs.IDependable.Jsii$Default
- Enclosing interface:
IGraphqlApi
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default, software.constructs.IConstruct.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IDependable
software.constructs.IDependable.Jsii$Default, software.constructs.IDependable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IEnvironmentAware
IEnvironmentAware.Jsii$Default, IEnvironmentAware.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.IResource
IResource.Jsii$Default, IResource.Jsii$Proxy -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal DynamoDbDataSourceaddDynamoDbDataSource(String id, ITable table) add a new DynamoDB data source to this API.final DynamoDbDataSourceaddDynamoDbDataSource(String id, ITable table, DataSourceOptions options) add a new DynamoDB data source to this API.final ElasticsearchDataSourceaddElasticsearchDataSource(String id, IDomain domain) Deprecated.final ElasticsearchDataSourceaddElasticsearchDataSource(String id, IDomain domain, DataSourceOptions options) Deprecated.useaddOpenSearchDataSourcefinal EventBridgeDataSourceaddEventBridgeDataSource(String id, IEventBus eventBus) Add an EventBridge data source to this api.final EventBridgeDataSourceaddEventBridgeDataSource(String id, IEventBus eventBus, DataSourceOptions options) Add an EventBridge data source to this api.final HttpDataSourceaddHttpDataSource(String id, String endpoint) add a new http data source to this API.final HttpDataSourceaddHttpDataSource(String id, String endpoint, HttpDataSourceOptions options) add a new http data source to this API.final LambdaDataSourceaddLambdaDataSource(String id, IFunction lambdaFunction) add a new Lambda data source to this API.final LambdaDataSourceaddLambdaDataSource(String id, IFunction lambdaFunction, DataSourceOptions options) add a new Lambda data source to this API.final NoneDataSourceadd a new dummy data source to this API.final NoneDataSourceaddNoneDataSource(String id, DataSourceOptions options) add a new dummy data source to this API.final OpenSearchDataSourceaddOpenSearchDataSource(String id, IDomain domain) Add a new OpenSearch data source to this API.final OpenSearchDataSourceaddOpenSearchDataSource(String id, IDomain domain, DataSourceOptions options) Add a new OpenSearch data source to this API.final RdsDataSourceaddRdsDataSource(String id, IServerlessCluster serverlessCluster, ISecret secretStore) add a new Rds data source to this API.final RdsDataSourceaddRdsDataSource(String id, IServerlessCluster serverlessCluster, ISecret secretStore, String databaseName) add a new Rds data source to this API.final RdsDataSourceaddRdsDataSource(String id, IServerlessCluster serverlessCluster, ISecret secretStore, String databaseName, DataSourceOptions options) add a new Rds data source to this API.final RdsDataSourceaddRdsDataSourceV2(String id, IDatabaseCluster serverlessCluster, ISecret secretStore) add a new Rds Serverless V2 data source to this API.final RdsDataSourceaddRdsDataSourceV2(String id, IDatabaseCluster serverlessCluster, ISecret secretStore, String databaseName) add a new Rds Serverless V2 data source to this API.final RdsDataSourceaddRdsDataSourceV2(String id, IDatabaseCluster serverlessCluster, ISecret secretStore, String databaseName, DataSourceOptions options) add a new Rds Serverless V2 data source to this API.final BooleanaddSchemaDependency(CfnResource construct) Add schema dependency if not imported.final voidapplyRemovalPolicy(RemovalPolicy policy) Apply the given removal policy to this resource.final ResolvercreateResolver(String id, ExtendedResolverProps props) creates a new resolver for this datasource and API using the given properties.final StringgetApiId()an unique AWS AppSync GraphQL API identifier i.e.final StringgetArn()the ARN of the API.final ResourceEnvironmentgetEnv()The environment this resource belongs to.final StringThe GraphQL endpoint ARN.final List<AuthorizationType> getModes()The Authorization Types for this GraphQL Api.final software.constructs.NodegetNode()The tree node.final StackgetStack()The stack in which this resource is defined.final Visibilitythe visibility of the API.final Grantgrant(IGrantable grantee, IamResource resources, String... actions) Adds an IAM policy statement associated with this GraphQLApi to an IAM principal's policy.final GrantgrantMutation(IGrantable grantee, String... fields) Adds an IAM policy statement for Mutation access to this GraphQLApi to an IAM principal's policy.final GrantgrantQuery(IGrantable grantee, String... fields) Adds an IAM policy statement for Query access to this GraphQLApi to an IAM principal's policy.final GrantgrantSubscription(IGrantable grantee, String... fields) Adds an IAM policy statement for Subscription access to this GraphQLApi to an IAM principal's policy.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
Jsii$Proxy
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
-
-
Method Details
-
getNode
@Stability(Stable) @NotNull public final software.constructs.Node getNode()The tree node.- Specified by:
getNodein interfacesoftware.constructs.IConstruct- Specified by:
getNodein interfacesoftware.constructs.IConstruct.Jsii$Default- Specified by:
getNodein interfaceIGraphqlApi.Jsii$Default- Specified by:
getNodein interfaceIResource.Jsii$Default
-
getEnv
The environment this resource belongs to.For resources that are created and managed in a Stack (those created by creating new class instances like
new Role(),new Bucket(), etc.), this is always the same as the environment of the stack they belong to.For referenced resources (those obtained from referencing methods like
Role.fromRoleArn(),Bucket.fromBucketName(), etc.), they might be different than the stack they were imported into.- Specified by:
getEnvin interfaceIEnvironmentAware- Specified by:
getEnvin interfaceIEnvironmentAware.Jsii$Default- Specified by:
getEnvin interfaceIGraphqlApi.Jsii$Default- Specified by:
getEnvin interfaceIResource.Jsii$Default
-
getStack
The stack in which this resource is defined.- Specified by:
getStackin interfaceIGraphqlApi.Jsii$Default- Specified by:
getStackin interfaceIResource- Specified by:
getStackin interfaceIResource.Jsii$Default
-
getApiId
an unique AWS AppSync GraphQL API identifier i.e. 'lxz775lwdrgcndgz3nurvac7oa'.- Specified by:
getApiIdin interfaceIGraphqlApi- Specified by:
getApiIdin interfaceIGraphqlApi.Jsii$Default
-
getArn
the ARN of the API.- Specified by:
getArnin interfaceIGraphqlApi- Specified by:
getArnin interfaceIGraphqlApi.Jsii$Default
-
getGraphQLEndpointArn
The GraphQL endpoint ARN.- Specified by:
getGraphQLEndpointArnin interfaceIGraphqlApi- Specified by:
getGraphQLEndpointArnin interfaceIGraphqlApi.Jsii$Default
-
getModes
The Authorization Types for this GraphQL Api.- Specified by:
getModesin interfaceIGraphqlApi- Specified by:
getModesin interfaceIGraphqlApi.Jsii$Default
-
getVisibility
the visibility of the API.- Specified by:
getVisibilityin interfaceIGraphqlApi- Specified by:
getVisibilityin interfaceIGraphqlApi.Jsii$Default
-
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 interfaceIGraphqlApi.Jsii$Default- Specified by:
applyRemovalPolicyin interfaceIResource- Specified by:
applyRemovalPolicyin interfaceIResource.Jsii$Default- Parameters:
policy- This parameter is required.
-
addDynamoDbDataSource
@Stability(Stable) @NotNull public final DynamoDbDataSource addDynamoDbDataSource(@NotNull String id, @NotNull ITable table, @Nullable DataSourceOptions options) add a new DynamoDB data source to this API.- Specified by:
addDynamoDbDataSourcein interfaceIGraphqlApi- Specified by:
addDynamoDbDataSourcein interfaceIGraphqlApi.Jsii$Default- 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.
-
addDynamoDbDataSource
@Stability(Stable) @NotNull public final DynamoDbDataSource addDynamoDbDataSource(@NotNull String id, @NotNull ITable table) 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.
-
addElasticsearchDataSource
@Stability(Deprecated) @Deprecated @NotNull public final 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- Specified by:
addElasticsearchDataSourcein interfaceIGraphqlApi.Jsii$Default- 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
-
addElasticsearchDataSource
@Stability(Deprecated) @Deprecated @NotNull public final ElasticsearchDataSource addElasticsearchDataSource(@NotNull String id, @NotNull IDomain domain) 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.
- use
-
addEventBridgeDataSource
@Stability(Stable) @NotNull public final EventBridgeDataSource addEventBridgeDataSource(@NotNull String id, @NotNull IEventBus eventBus, @Nullable DataSourceOptions options) Add an EventBridge data source to this api.- Specified by:
addEventBridgeDataSourcein interfaceIGraphqlApi- Specified by:
addEventBridgeDataSourcein interfaceIGraphqlApi.Jsii$Default- Parameters:
id- The data source's id. This parameter is required.eventBus- The EventBridge EventBus on which to put events. This parameter is required.options- The optional configuration for this data source.
-
addEventBridgeDataSource
@Stability(Stable) @NotNull public final EventBridgeDataSource addEventBridgeDataSource(@NotNull String id, @NotNull IEventBus eventBus) Add an EventBridge data source to this api.- Specified by:
addEventBridgeDataSourcein interfaceIGraphqlApi- Parameters:
id- The data source's id. This parameter is required.eventBus- The EventBridge EventBus on which to put events. This parameter is required.
-
addHttpDataSource
@Stability(Stable) @NotNull public final HttpDataSource addHttpDataSource(@NotNull String id, @NotNull String endpoint, @Nullable HttpDataSourceOptions options) add a new http data source to this API.- Specified by:
addHttpDataSourcein interfaceIGraphqlApi- Specified by:
addHttpDataSourcein interfaceIGraphqlApi.Jsii$Default- 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.
-
addHttpDataSource
@Stability(Stable) @NotNull public final HttpDataSource addHttpDataSource(@NotNull String id, @NotNull String endpoint) 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.
-
addLambdaDataSource
@Stability(Stable) @NotNull public final LambdaDataSource addLambdaDataSource(@NotNull String id, @NotNull IFunction lambdaFunction, @Nullable DataSourceOptions options) add a new Lambda data source to this API.- Specified by:
addLambdaDataSourcein interfaceIGraphqlApi- Specified by:
addLambdaDataSourcein interfaceIGraphqlApi.Jsii$Default- 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.
-
addLambdaDataSource
@Stability(Stable) @NotNull public final LambdaDataSource addLambdaDataSource(@NotNull String id, @NotNull IFunction lambdaFunction) 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.
-
addNoneDataSource
@Stability(Stable) @NotNull public final NoneDataSource addNoneDataSource(@NotNull String id, @Nullable DataSourceOptions options) 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- Specified by:
addNoneDataSourcein interfaceIGraphqlApi.Jsii$Default- Parameters:
id- The data source's id. This parameter is required.options- The optional configuration for this data source.
-
addNoneDataSource
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.
-
addOpenSearchDataSource
@Stability(Stable) @NotNull public final OpenSearchDataSource addOpenSearchDataSource(@NotNull String id, @NotNull IDomain domain, @Nullable DataSourceOptions options) Add a new OpenSearch data source to this API.- Specified by:
addOpenSearchDataSourcein interfaceIGraphqlApi- Specified by:
addOpenSearchDataSourcein interfaceIGraphqlApi.Jsii$Default- 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.
-
addOpenSearchDataSource
@Stability(Stable) @NotNull public final OpenSearchDataSource addOpenSearchDataSource(@NotNull String id, @NotNull IDomain domain) 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.
-
addRdsDataSource
@Stability(Stable) @NotNull public final RdsDataSource addRdsDataSource(@NotNull String id, @NotNull IServerlessCluster serverlessCluster, @NotNull ISecret secretStore, @Nullable String databaseName, @Nullable DataSourceOptions options) add a new Rds data source to this API.- Specified by:
addRdsDataSourcein interfaceIGraphqlApi- Specified by:
addRdsDataSourcein interfaceIGraphqlApi.Jsii$Default- 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.
-
addRdsDataSource
@Stability(Stable) @NotNull public final RdsDataSource addRdsDataSource(@NotNull String id, @NotNull IServerlessCluster serverlessCluster, @NotNull ISecret secretStore, @Nullable String databaseName) 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.
-
addRdsDataSource
@Stability(Stable) @NotNull public final RdsDataSource addRdsDataSource(@NotNull String id, @NotNull IServerlessCluster serverlessCluster, @NotNull ISecret secretStore) 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.
-
addRdsDataSourceV2
@Stability(Stable) @NotNull public final RdsDataSource addRdsDataSourceV2(@NotNull String id, @NotNull IDatabaseCluster serverlessCluster, @NotNull ISecret secretStore, @Nullable String databaseName, @Nullable DataSourceOptions options) add a new Rds Serverless V2 data source to this API.- Specified by:
addRdsDataSourceV2in interfaceIGraphqlApi- Specified by:
addRdsDataSourceV2in interfaceIGraphqlApi.Jsii$Default- Parameters:
id- The data source's id. This parameter is required.serverlessCluster- The serverless V2 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.
-
addRdsDataSourceV2
@Stability(Stable) @NotNull public final RdsDataSource addRdsDataSourceV2(@NotNull String id, @NotNull IDatabaseCluster serverlessCluster, @NotNull ISecret secretStore, @Nullable String databaseName) add a new Rds Serverless V2 data source to this API.- Specified by:
addRdsDataSourceV2in interfaceIGraphqlApi- Parameters:
id- The data source's id. This parameter is required.serverlessCluster- The serverless V2 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.
-
addRdsDataSourceV2
@Stability(Stable) @NotNull public final RdsDataSource addRdsDataSourceV2(@NotNull String id, @NotNull IDatabaseCluster serverlessCluster, @NotNull ISecret secretStore) add a new Rds Serverless V2 data source to this API.- Specified by:
addRdsDataSourceV2in interfaceIGraphqlApi- Parameters:
id- The data source's id. This parameter is required.serverlessCluster- The serverless V2 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.
-
addSchemaDependency
@Stability(Stable) @NotNull public final Boolean addSchemaDependency(@NotNull CfnResource construct) Add schema dependency if not imported.- Specified by:
addSchemaDependencyin interfaceIGraphqlApi- Specified by:
addSchemaDependencyin interfaceIGraphqlApi.Jsii$Default- Parameters:
construct- the dependee. This parameter is required.
-
createResolver
@Stability(Stable) @NotNull public final Resolver createResolver(@NotNull String id, @NotNull ExtendedResolverProps props) creates a new resolver for this datasource and API using the given properties.- Specified by:
createResolverin interfaceIGraphqlApi- Specified by:
createResolverin interfaceIGraphqlApi.Jsii$Default- Parameters:
id- This parameter is required.props- This parameter is required.
-
grant
@Stability(Stable) @NotNull public final Grant grant(@NotNull IGrantable grantee, @NotNull IamResource resources, @NotNull String... actions) Adds an IAM policy statement associated with this GraphQLApi to an IAM principal's policy.- Specified by:
grantin interfaceIGraphqlApi- Specified by:
grantin interfaceIGraphqlApi.Jsii$Default- Parameters:
grantee- The principal. This parameter is required.resources- The set of resources to allow (i.e. ...:[region]:[accountId]:apis/GraphQLId/...). This parameter is required.actions- The actions that should be granted to the principal (i.e. appsync:graphql ). This parameter is required.
-
grantMutation
@Stability(Stable) @NotNull public final Grant grantMutation(@NotNull IGrantable grantee, @NotNull String... fields) Adds an IAM policy statement for Mutation access to this GraphQLApi to an IAM principal's policy.- Specified by:
grantMutationin interfaceIGraphqlApi- Specified by:
grantMutationin interfaceIGraphqlApi.Jsii$Default- Parameters:
grantee- The principal. This parameter is required.fields- The fields to grant access to that are Mutations (leave blank for all). This parameter is required.
-
grantQuery
@Stability(Stable) @NotNull public final Grant grantQuery(@NotNull IGrantable grantee, @NotNull String... fields) Adds an IAM policy statement for Query access to this GraphQLApi to an IAM principal's policy.- Specified by:
grantQueryin interfaceIGraphqlApi- Specified by:
grantQueryin interfaceIGraphqlApi.Jsii$Default- Parameters:
grantee- The principal. This parameter is required.fields- The fields to grant access to that are Queries (leave blank for all). This parameter is required.
-
grantSubscription
@Stability(Stable) @NotNull public final Grant grantSubscription(@NotNull IGrantable grantee, @NotNull String... fields) Adds an IAM policy statement for Subscription access to this GraphQLApi to an IAM principal's policy.- Specified by:
grantSubscriptionin interfaceIGraphqlApi- Specified by:
grantSubscriptionin interfaceIGraphqlApi.Jsii$Default- Parameters:
grantee- The principal. This parameter is required.fields- The fields to grant access to that are Subscriptions (leave blank for all). This parameter is required.
-
addOpenSearchDataSource