@Generated(value="jsii-pacmak/1.73.0 (build 6faeda3)",
date="2023-01-25T18:29:12.536Z")
public interface CfnDataSourceProps
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()) .eventBridgeConfig(EventBridgeConfigProperty.builder() .eventBusArn("eventBusArn") .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() |
java.lang.String |
getApiId()
Unique AWS AppSync GraphQL API identifier where this data source will be created.
|
default java.lang.String |
getDescription()
The description of the data source.
|
default java.lang.Object |
getDynamoDbConfig()
AWS Region and TableName for an Amazon DynamoDB table in your account.
|
default java.lang.Object |
getElasticsearchConfig()
AWS Region and Endpoints for an Amazon OpenSearch Service domain in your account.
|
default java.lang.Object |
getEventBridgeConfig()
`AWS::AppSync::DataSource.EventBridgeConfig`.
|
default java.lang.Object |
getHttpConfig()
Endpoints for an HTTP data source.
|
default java.lang.Object |
getLambdaConfig()
An ARN of a Lambda function in valid ARN format.
|
java.lang.String |
getName()
Friendly name for you to identify your AppSync data source after creation.
|
default java.lang.Object |
getOpenSearchServiceConfig()
AWS Region and Endpoints for an Amazon OpenSearch Service domain in your account.
|
default java.lang.Object |
getRelationalDatabaseConfig()
Relational Database configuration of the relational database data source.
|
default java.lang.String |
getServiceRoleArn()
The AWS Identity and Access Management service role ARN for the data source.
|
java.lang.String |
getType()
The type of the data source.
|
java.lang.String getApiId()
java.lang.String getName()
java.lang.String getType()
default java.lang.String getDescription()
default java.lang.Object getDynamoDbConfig()
default java.lang.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.
default java.lang.Object getEventBridgeConfig()
default java.lang.Object getHttpConfig()
default java.lang.Object getLambdaConfig()
This can be the ARN of a Lambda function that exists in the current account or in another account.
default java.lang.Object getOpenSearchServiceConfig()
default java.lang.Object getRelationalDatabaseConfig()
default java.lang.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
.
static CfnDataSourceProps.Builder builder()
CfnDataSourceProps.Builder
of CfnDataSourceProps