ExtendedDataSourceProps

class aws_cdk.aws_appsync.ExtendedDataSourceProps(*, type, dynamo_db_config=None, elasticsearch_config=None, http_config=None, lambda_config=None, open_search_service_config=None, relational_database_config=None)

Bases: object

(experimental) props used by implementations of BaseDataSource to provide configuration.

Should not be used directly.

Parameters:
Stability:

experimental

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_appsync as appsync

extended_data_source_props = appsync.ExtendedDataSourceProps(
    type="type",

    # the properties below are optional
    dynamo_db_config=appsync.CfnDataSource.DynamoDBConfigProperty(
        aws_region="awsRegion",
        table_name="tableName",

        # the properties below are optional
        delta_sync_config=appsync.CfnDataSource.DeltaSyncConfigProperty(
            base_table_ttl="baseTableTtl",
            delta_sync_table_name="deltaSyncTableName",
            delta_sync_table_ttl="deltaSyncTableTtl"
        ),
        use_caller_credentials=False,
        versioned=False
    ),
    elasticsearch_config=appsync.CfnDataSource.ElasticsearchConfigProperty(
        aws_region="awsRegion",
        endpoint="endpoint"
    ),
    http_config=appsync.CfnDataSource.HttpConfigProperty(
        endpoint="endpoint",

        # the properties below are optional
        authorization_config=appsync.CfnDataSource.AuthorizationConfigProperty(
            authorization_type="authorizationType",

            # the properties below are optional
            aws_iam_config=appsync.CfnDataSource.AwsIamConfigProperty(
                signing_region="signingRegion",
                signing_service_name="signingServiceName"
            )
        )
    ),
    lambda_config=appsync.CfnDataSource.LambdaConfigProperty(
        lambda_function_arn="lambdaFunctionArn"
    ),
    open_search_service_config=appsync.CfnDataSource.OpenSearchServiceConfigProperty(
        aws_region="awsRegion",
        endpoint="endpoint"
    ),
    relational_database_config=appsync.CfnDataSource.RelationalDatabaseConfigProperty(
        relational_database_source_type="relationalDatabaseSourceType",

        # the properties below are optional
        rds_http_endpoint_config=appsync.CfnDataSource.RdsHttpEndpointConfigProperty(
            aws_region="awsRegion",
            aws_secret_store_arn="awsSecretStoreArn",
            db_cluster_identifier="dbClusterIdentifier",

            # the properties below are optional
            database_name="databaseName",
            schema="schema"
        )
    )
)

Attributes

dynamo_db_config

(experimental) configuration for DynamoDB Datasource.

Default:
  • No config

Stability:

experimental

elasticsearch_config

(deprecated) configuration for Elasticsearch data source.

Default:
  • No config

Deprecated:
  • use openSearchConfig

Stability:

deprecated

http_config

(experimental) configuration for HTTP Datasource.

Default:
  • No config

Stability:

experimental

lambda_config

(experimental) configuration for Lambda Datasource.

Default:
  • No config

Stability:

experimental

open_search_service_config

(experimental) configuration for OpenSearch data source.

Default:
  • No config

Stability:

experimental

relational_database_config

(experimental) configuration for RDS Datasource.

Default:
  • No config

Stability:

experimental

type

(experimental) the type of the AppSync datasource.

Stability:

experimental