public static final class CfnDataSourceProps.Builder
extends java.lang.Object
CfnDataSourceProps
Constructor and Description |
---|
Builder() |
public CfnDataSourceProps.Builder apiId(java.lang.String apiId)
CfnDataSourceProps.getApiId()
apiId
- Unique AWS AppSync GraphQL API identifier where this data source will be created. This parameter is required.this
public CfnDataSourceProps.Builder name(java.lang.String name)
CfnDataSourceProps.getName()
name
- Friendly name for you to identify your AppSync data source after creation. This parameter is required.this
public CfnDataSourceProps.Builder type(java.lang.String type)
CfnDataSourceProps.getType()
type
- The type of the data source. This parameter is required.
this
public CfnDataSourceProps.Builder description(java.lang.String description)
CfnDataSourceProps.getDescription()
description
- The description of the data source.this
public CfnDataSourceProps.Builder dynamoDbConfig(IResolvable dynamoDbConfig)
CfnDataSourceProps.getDynamoDbConfig()
dynamoDbConfig
- AWS Region and TableName for an Amazon DynamoDB table in your account.this
public CfnDataSourceProps.Builder dynamoDbConfig(CfnDataSource.DynamoDBConfigProperty dynamoDbConfig)
CfnDataSourceProps.getDynamoDbConfig()
dynamoDbConfig
- AWS Region and TableName for an Amazon DynamoDB table in your account.this
public CfnDataSourceProps.Builder elasticsearchConfig(IResolvable elasticsearchConfig)
CfnDataSourceProps.getElasticsearchConfig()
elasticsearchConfig
- AWS Region and Endpoints for an Amazon OpenSearch Service domain in your account.
As of September 2021, Amazon Elasticsearch Service is Amazon OpenSearch Service . This property is deprecated. For new data sources, use OpenSearchServiceConfig to specify an OpenSearch Service data source.this
public CfnDataSourceProps.Builder elasticsearchConfig(CfnDataSource.ElasticsearchConfigProperty elasticsearchConfig)
CfnDataSourceProps.getElasticsearchConfig()
elasticsearchConfig
- AWS Region and Endpoints for an Amazon OpenSearch Service domain in your account.
As of September 2021, Amazon Elasticsearch Service is Amazon OpenSearch Service . This property is deprecated. For new data sources, use OpenSearchServiceConfig to specify an OpenSearch Service data source.this
public CfnDataSourceProps.Builder eventBridgeConfig(IResolvable eventBridgeConfig)
CfnDataSourceProps.getEventBridgeConfig()
eventBridgeConfig
- `AWS::AppSync::DataSource.EventBridgeConfig`.this
public CfnDataSourceProps.Builder eventBridgeConfig(CfnDataSource.EventBridgeConfigProperty eventBridgeConfig)
CfnDataSourceProps.getEventBridgeConfig()
eventBridgeConfig
- `AWS::AppSync::DataSource.EventBridgeConfig`.this
public CfnDataSourceProps.Builder httpConfig(IResolvable httpConfig)
CfnDataSourceProps.getHttpConfig()
httpConfig
- Endpoints for an HTTP data source.this
public CfnDataSourceProps.Builder httpConfig(CfnDataSource.HttpConfigProperty httpConfig)
CfnDataSourceProps.getHttpConfig()
httpConfig
- Endpoints for an HTTP data source.this
public CfnDataSourceProps.Builder lambdaConfig(IResolvable lambdaConfig)
CfnDataSourceProps.getLambdaConfig()
lambdaConfig
- An ARN of a Lambda function in valid ARN format.
This can be the ARN of a Lambda function that exists in the current account or in another account.this
public CfnDataSourceProps.Builder lambdaConfig(CfnDataSource.LambdaConfigProperty lambdaConfig)
CfnDataSourceProps.getLambdaConfig()
lambdaConfig
- An ARN of a Lambda function in valid ARN format.
This can be the ARN of a Lambda function that exists in the current account or in another account.this
public CfnDataSourceProps.Builder openSearchServiceConfig(IResolvable openSearchServiceConfig)
CfnDataSourceProps.getOpenSearchServiceConfig()
openSearchServiceConfig
- AWS Region and Endpoints for an Amazon OpenSearch Service domain in your account.this
public CfnDataSourceProps.Builder openSearchServiceConfig(CfnDataSource.OpenSearchServiceConfigProperty openSearchServiceConfig)
CfnDataSourceProps.getOpenSearchServiceConfig()
openSearchServiceConfig
- AWS Region and Endpoints for an Amazon OpenSearch Service domain in your account.this
public CfnDataSourceProps.Builder relationalDatabaseConfig(IResolvable relationalDatabaseConfig)
CfnDataSourceProps.getRelationalDatabaseConfig()
relationalDatabaseConfig
- Relational Database configuration of the relational database data source.this
public CfnDataSourceProps.Builder relationalDatabaseConfig(CfnDataSource.RelationalDatabaseConfigProperty relationalDatabaseConfig)
CfnDataSourceProps.getRelationalDatabaseConfig()
relationalDatabaseConfig
- Relational Database configuration of the relational database data source.this
public CfnDataSourceProps.Builder serviceRoleArn(java.lang.String serviceRoleArn)
CfnDataSourceProps.getServiceRoleArn()
serviceRoleArn
- The AWS Identity and Access Management service role ARN for the data source.
The system assumes this role when accessing the data source.
Required if Type
is specified as AWS_LAMBDA
, AMAZON_DYNAMODB
, AMAZON_ELASTICSEARCH
, or AMAZON_OPENSEARCH_SERVICE
.
this
public CfnDataSourceProps build()
CfnDataSourceProps
java.lang.NullPointerException
- if any required attribute was not provided