@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:36.662Z") @Stability(value=Stable) public interface CfnDataSourceProps extends software.amazon.jsii.JsiiSerializable
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.*;
CfnDataSourceProps cfnDataSourceProps = CfnDataSourceProps.builder()
.apiId("apiId")
.name("name")
.type("type")
// the properties below are optional
.description("description")
.dynamoDbConfig(DynamoDBConfigProperty.builder()
.awsRegion("awsRegion")
.tableName("tableName")
// the properties below are optional
.deltaSyncConfig(DeltaSyncConfigProperty.builder()
.baseTableTtl("baseTableTtl")
.deltaSyncTableName("deltaSyncTableName")
.deltaSyncTableTtl("deltaSyncTableTtl")
.build())
.useCallerCredentials(false)
.versioned(false)
.build())
.elasticsearchConfig(ElasticsearchConfigProperty.builder()
.awsRegion("awsRegion")
.endpoint("endpoint")
.build())
.httpConfig(HttpConfigProperty.builder()
.endpoint("endpoint")
// the properties below are optional
.authorizationConfig(AuthorizationConfigProperty.builder()
.authorizationType("authorizationType")
// the properties below are optional
.awsIamConfig(AwsIamConfigProperty.builder()
.signingRegion("signingRegion")
.signingServiceName("signingServiceName")
.build())
.build())
.build())
.lambdaConfig(LambdaConfigProperty.builder()
.lambdaFunctionArn("lambdaFunctionArn")
.build())
.openSearchServiceConfig(OpenSearchServiceConfigProperty.builder()
.awsRegion("awsRegion")
.endpoint("endpoint")
.build())
.relationalDatabaseConfig(RelationalDatabaseConfigProperty.builder()
.relationalDatabaseSourceType("relationalDatabaseSourceType")
// the properties below are optional
.rdsHttpEndpointConfig(RdsHttpEndpointConfigProperty.builder()
.awsRegion("awsRegion")
.awsSecretStoreArn("awsSecretStoreArn")
.dbClusterIdentifier("dbClusterIdentifier")
// the properties below are optional
.databaseName("databaseName")
.schema("schema")
.build())
.build())
.serviceRoleArn("serviceRoleArn")
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnDataSourceProps.Builder
A builder for
CfnDataSourceProps |
static class |
CfnDataSourceProps.Jsii$Proxy
An implementation for
CfnDataSourceProps |
| Modifier and Type | Method and Description |
|---|---|
static CfnDataSourceProps.Builder |
builder() |
String |
getApiId()
Unique AWS AppSync GraphQL API identifier where this data source will be created.
|
default String |
getDescription()
The description of the data source.
|
default Object |
getDynamoDbConfig()
AWS Region and TableName for an Amazon DynamoDB table in your account.
|
default Object |
getElasticsearchConfig()
AWS Region and Endpoints for an Amazon OpenSearch Service domain in your account.
|
default Object |
getHttpConfig()
Endpoints for an HTTP data source.
|
default Object |
getLambdaConfig()
An ARN of a Lambda function in valid ARN format.
|
String |
getName()
Friendly name for you to identify your AppSync data source after creation.
|
default Object |
getOpenSearchServiceConfig()
AWS Region and Endpoints for an Amazon OpenSearch Service domain in your account.
|
default Object |
getRelationalDatabaseConfig()
Relational Database configuration of the relational database data source.
|
default String |
getServiceRoleArn()
The AWS Identity and Access Management service role ARN for the data source.
|
String |
getType()
The type of the data source.
|
@Stability(value=Stable) @NotNull String getApiId()
@Stability(value=Stable) @NotNull String getName()
@Stability(value=Stable) @NotNull String getType()
@Stability(value=Stable) @Nullable default String getDescription()
@Stability(value=Stable) @Nullable default Object getDynamoDbConfig()
@Stability(value=Stable) @Nullable default Object getElasticsearchConfig()
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.
@Stability(value=Stable) @Nullable default Object getHttpConfig()
@Stability(value=Stable) @Nullable default Object getLambdaConfig()
This can be the ARN of a Lambda function that exists in the current account or in another account.
@Stability(value=Stable) @Nullable default Object getOpenSearchServiceConfig()
@Stability(value=Stable) @Nullable default Object getRelationalDatabaseConfig()
@Stability(value=Stable) @Nullable default String getServiceRoleArn()
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 .
@Stability(value=Stable) static CfnDataSourceProps.Builder builder()
CfnDataSourceProps.Builder of CfnDataSourcePropsCopyright © 2022. All rights reserved.