@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:36.678Z") @Stability(value=Stable) public class CfnGraphQLApi extends CfnResource implements IInspectable
The AWS::AppSync::GraphQLApi resource creates a new AWS AppSync GraphQL API. This is the top-level construct for your application. For more information, see Quick Start in the AWS AppSync Developer Guide .
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.appsync.*;
CfnGraphQLApi cfnGraphQLApi = CfnGraphQLApi.Builder.create(this, "MyCfnGraphQLApi")
.authenticationType("authenticationType")
.name("name")
// the properties below are optional
.additionalAuthenticationProviders(List.of(AdditionalAuthenticationProviderProperty.builder()
.authenticationType("authenticationType")
// the properties below are optional
.lambdaAuthorizerConfig(LambdaAuthorizerConfigProperty.builder()
.authorizerResultTtlInSeconds(123)
.authorizerUri("authorizerUri")
.identityValidationExpression("identityValidationExpression")
.build())
.openIdConnectConfig(OpenIDConnectConfigProperty.builder()
.authTtl(123)
.clientId("clientId")
.iatTtl(123)
.issuer("issuer")
.build())
.userPoolConfig(CognitoUserPoolConfigProperty.builder()
.appIdClientRegex("appIdClientRegex")
.awsRegion("awsRegion")
.userPoolId("userPoolId")
.build())
.build()))
.lambdaAuthorizerConfig(LambdaAuthorizerConfigProperty.builder()
.authorizerResultTtlInSeconds(123)
.authorizerUri("authorizerUri")
.identityValidationExpression("identityValidationExpression")
.build())
.logConfig(LogConfigProperty.builder()
.cloudWatchLogsRoleArn("cloudWatchLogsRoleArn")
.excludeVerboseContent(false)
.fieldLogLevel("fieldLogLevel")
.build())
.openIdConnectConfig(OpenIDConnectConfigProperty.builder()
.authTtl(123)
.clientId("clientId")
.iatTtl(123)
.issuer("issuer")
.build())
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.userPoolConfig(UserPoolConfigProperty.builder()
.appIdClientRegex("appIdClientRegex")
.awsRegion("awsRegion")
.defaultAction("defaultAction")
.userPoolId("userPoolId")
.build())
.xrayEnabled(false)
.build();
| Modifier and Type | Class and Description |
|---|---|
static interface |
CfnGraphQLApi.AdditionalAuthenticationProviderProperty
Describes an additional authentication provider.
|
static class |
CfnGraphQLApi.Builder
A fluent builder for
CfnGraphQLApi. |
static interface |
CfnGraphQLApi.CognitoUserPoolConfigProperty
Describes an Amazon Cognito user pool configuration.
|
static interface |
CfnGraphQLApi.LambdaAuthorizerConfigProperty
Configuration for AWS Lambda function authorization.
|
static interface |
CfnGraphQLApi.LogConfigProperty
The `LogConfig` property type specifies the logging configuration when writing GraphQL operations and tracing to Amazon CloudWatch for an AWS AppSync GraphQL API.
|
static interface |
CfnGraphQLApi.OpenIDConnectConfigProperty
The `OpenIDConnectConfig` property type specifies the optional authorization configuration for using an OpenID Connect compliant service with your GraphQL endpoint for an AWS AppSync GraphQL API.
|
static interface |
CfnGraphQLApi.UserPoolConfigProperty
The `UserPoolConfig` property type specifies the optional authorization configuration for using Amazon Cognito user pools with your GraphQL endpoint for an AWS AppSync GraphQL API.
|
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnGraphQLApi(software.constructs.Construct scope,
String id,
CfnGraphQLApiProps props)
Create a new `AWS::AppSync::GraphQLApi`.
|
protected |
CfnGraphQLApi(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnGraphQLApi(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getAdditionalAuthenticationProviders()
A list of additional authentication providers for the `GraphqlApi` API.
|
String |
getAttrApiId()
Unique AWS AppSync GraphQL API identifier.
|
String |
getAttrArn()
The Amazon Resource Name (ARN) of the API key, such as `arn:aws:appsync:us-east-1:123456789012:apis/graphqlapiid` .
|
String |
getAttrGraphQlUrl()
The Endpoint URL of your GraphQL API.
|
String |
getAuthenticationType()
Security configuration for your GraphQL API.
|
protected Map<String,Object> |
getCfnProperties() |
Object |
getLambdaAuthorizerConfig()
A `LambdaAuthorizerConfig` holds configuration on how to authorize AWS AppSync API access when using the `AWS_LAMBDA` authorizer mode.
|
Object |
getLogConfig()
The Amazon CloudWatch Logs configuration.
|
String |
getName()
The API name.
|
Object |
getOpenIdConnectConfig()
The OpenID Connect configuration.
|
TagManager |
getTags()
An arbitrary set of tags (key-value pairs) for this GraphQL API.
|
Object |
getUserPoolConfig()
Optional authorization configuration for using Amazon Cognito user pools with your GraphQL endpoint.
|
Object |
getXrayEnabled()
A flag indicating whether to use AWS X-Ray tracing for this `GraphqlApi` .
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setAdditionalAuthenticationProviders(IResolvable value)
A list of additional authentication providers for the `GraphqlApi` API.
|
void |
setAdditionalAuthenticationProviders(List<Object> value)
A list of additional authentication providers for the `GraphqlApi` API.
|
void |
setAuthenticationType(String value)
Security configuration for your GraphQL API.
|
void |
setLambdaAuthorizerConfig(CfnGraphQLApi.LambdaAuthorizerConfigProperty value)
A `LambdaAuthorizerConfig` holds configuration on how to authorize AWS AppSync API access when using the `AWS_LAMBDA` authorizer mode.
|
void |
setLambdaAuthorizerConfig(IResolvable value)
A `LambdaAuthorizerConfig` holds configuration on how to authorize AWS AppSync API access when using the `AWS_LAMBDA` authorizer mode.
|
void |
setLogConfig(CfnGraphQLApi.LogConfigProperty value)
The Amazon CloudWatch Logs configuration.
|
void |
setLogConfig(IResolvable value)
The Amazon CloudWatch Logs configuration.
|
void |
setName(String value)
The API name.
|
void |
setOpenIdConnectConfig(CfnGraphQLApi.OpenIDConnectConfigProperty value)
The OpenID Connect configuration.
|
void |
setOpenIdConnectConfig(IResolvable value)
The OpenID Connect configuration.
|
void |
setUserPoolConfig(CfnGraphQLApi.UserPoolConfigProperty value)
Optional authorization configuration for using Amazon Cognito user pools with your GraphQL endpoint.
|
void |
setUserPoolConfig(IResolvable value)
Optional authorization configuration for using Amazon Cognito user pools with your GraphQL endpoint.
|
void |
setXrayEnabled(Boolean value)
A flag indicating whether to use AWS X-Ray tracing for this `GraphqlApi` .
|
void |
setXrayEnabled(IResolvable value)
A flag indicating whether to use AWS X-Ray tracing for this `GraphqlApi` .
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnGraphQLApi(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnGraphQLApi(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnGraphQLApi(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnGraphQLApiProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull public String getAttrApiId()
@Stability(value=Stable) @NotNull public String getAttrArn()
@Stability(value=Stable) @NotNull public String getAttrGraphQlUrl()
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public TagManager getTags()
@Stability(value=Stable) @NotNull public String getAuthenticationType()
For allowed values (such as API_KEY , AWS_IAM , AMAZON_COGNITO_USER_POOLS , OPENID_CONNECT , or AWS_LAMBDA ), see Security in the AWS AppSync Developer Guide .
@Stability(value=Stable)
public void setAuthenticationType(@NotNull
String value)
For allowed values (such as API_KEY , AWS_IAM , AMAZON_COGNITO_USER_POOLS , OPENID_CONNECT , or AWS_LAMBDA ), see Security in the AWS AppSync Developer Guide .
@Stability(value=Stable) @NotNull public String getName()
@Stability(value=Stable)
public void setName(@NotNull
String value)
@Stability(value=Stable) @Nullable public Object getAdditionalAuthenticationProviders()
@Stability(value=Stable)
public void setAdditionalAuthenticationProviders(@Nullable
IResolvable value)
@Stability(value=Stable)
public void setAdditionalAuthenticationProviders(@Nullable
List<Object> value)
@Stability(value=Stable) @Nullable public Object getLambdaAuthorizerConfig()
Be aware that an AWS AppSync API may have only one Lambda authorizer configured at a time.
@Stability(value=Stable)
public void setLambdaAuthorizerConfig(@Nullable
CfnGraphQLApi.LambdaAuthorizerConfigProperty value)
Be aware that an AWS AppSync API may have only one Lambda authorizer configured at a time.
@Stability(value=Stable)
public void setLambdaAuthorizerConfig(@Nullable
IResolvable value)
Be aware that an AWS AppSync API may have only one Lambda authorizer configured at a time.
@Stability(value=Stable) @Nullable public Object getLogConfig()
@Stability(value=Stable)
public void setLogConfig(@Nullable
CfnGraphQLApi.LogConfigProperty value)
@Stability(value=Stable)
public void setLogConfig(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public Object getOpenIdConnectConfig()
@Stability(value=Stable)
public void setOpenIdConnectConfig(@Nullable
CfnGraphQLApi.OpenIDConnectConfigProperty value)
@Stability(value=Stable)
public void setOpenIdConnectConfig(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public Object getUserPoolConfig()
@Stability(value=Stable)
public void setUserPoolConfig(@Nullable
CfnGraphQLApi.UserPoolConfigProperty value)
@Stability(value=Stable)
public void setUserPoolConfig(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public Object getXrayEnabled()
@Stability(value=Stable)
public void setXrayEnabled(@Nullable
Boolean value)
@Stability(value=Stable)
public void setXrayEnabled(@Nullable
IResolvable value)
Copyright © 2022. All rights reserved.