@Stability(value=Stable) public static final class CfnDataSourceProps.Builder extends Object implements software.amazon.jsii.Builder<CfnDataSourceProps>
CfnDataSourceProps| Constructor and Description |
|---|
Builder() |
@Stability(value=Stable) public CfnDataSourceProps.Builder apiId(String apiId)
CfnDataSourceProps.getApiId()apiId - Unique AWS AppSync GraphQL API identifier where this data source will be created. This parameter is required.this@Stability(value=Stable) public CfnDataSourceProps.Builder name(String name)
CfnDataSourceProps.getName()name - Friendly name for you to identify your AppSync data source after creation. This parameter is required.this@Stability(value=Stable) public CfnDataSourceProps.Builder type(String type)
CfnDataSourceProps.getType()type - The type of the data source. This parameter is required.
this@Stability(value=Stable) public CfnDataSourceProps.Builder description(String description)
CfnDataSourceProps.getDescription()description - The description of the data source.this@Stability(value=Stable) public CfnDataSourceProps.Builder dynamoDbConfig(CfnDataSource.DynamoDBConfigProperty dynamoDbConfig)
CfnDataSourceProps.getDynamoDbConfig()dynamoDbConfig - AWS Region and TableName for an Amazon DynamoDB table in your account.this@Stability(value=Stable) public CfnDataSourceProps.Builder dynamoDbConfig(IResolvable dynamoDbConfig)
CfnDataSourceProps.getDynamoDbConfig()dynamoDbConfig - AWS Region and TableName for an Amazon DynamoDB table in your account.this@Stability(value=Stable) 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@Stability(value=Stable) 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@Stability(value=Stable) public CfnDataSourceProps.Builder httpConfig(CfnDataSource.HttpConfigProperty httpConfig)
CfnDataSourceProps.getHttpConfig()httpConfig - Endpoints for an HTTP data source.this@Stability(value=Stable) public CfnDataSourceProps.Builder httpConfig(IResolvable httpConfig)
CfnDataSourceProps.getHttpConfig()httpConfig - Endpoints for an HTTP data source.this@Stability(value=Stable) 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@Stability(value=Stable) 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@Stability(value=Stable) public CfnDataSourceProps.Builder openSearchServiceConfig(CfnDataSource.OpenSearchServiceConfigProperty openSearchServiceConfig)
CfnDataSourceProps.getOpenSearchServiceConfig()openSearchServiceConfig - AWS Region and Endpoints for an Amazon OpenSearch Service domain in your account.this@Stability(value=Stable) public CfnDataSourceProps.Builder openSearchServiceConfig(IResolvable openSearchServiceConfig)
CfnDataSourceProps.getOpenSearchServiceConfig()openSearchServiceConfig - AWS Region and Endpoints for an Amazon OpenSearch Service domain in your account.this@Stability(value=Stable) public CfnDataSourceProps.Builder relationalDatabaseConfig(CfnDataSource.RelationalDatabaseConfigProperty relationalDatabaseConfig)
CfnDataSourceProps.getRelationalDatabaseConfig()relationalDatabaseConfig - Relational Database configuration of the relational database data source.this@Stability(value=Stable) public CfnDataSourceProps.Builder relationalDatabaseConfig(IResolvable relationalDatabaseConfig)
CfnDataSourceProps.getRelationalDatabaseConfig()relationalDatabaseConfig - Relational Database configuration of the relational database data source.this@Stability(value=Stable) public CfnDataSourceProps.Builder serviceRoleArn(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@Stability(value=Stable) public CfnDataSourceProps build()
build in interface software.amazon.jsii.Builder<CfnDataSourceProps>CfnDataSourcePropsNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.