ExtendedDataSourceProps

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

Bases: object

props used by implementations of BaseDataSource to provide configuration.

Should not be used directly.

Parameters:
ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import 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"
    ),
    event_bridge_config=appsync.CfnDataSource.EventBridgeConfigProperty(
        event_bus_arn="eventBusArn"
    ),
    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

configuration for DynamoDB Datasource.

Default:
  • No config

elasticsearch_config

(deprecated) configuration for Elasticsearch data source.

Default:
  • No config

Deprecated:
  • use openSearchConfig

Stability:

deprecated

event_bridge_config

configuration for EventBridge Datasource.

Default:
  • No config

http_config

configuration for HTTP Datasource.

Default:
  • No config

lambda_config

configuration for Lambda Datasource.

Default:
  • No config

open_search_service_config

configuration for OpenSearch data source.

Default:
  • No config

relational_database_config

configuration for RDS Datasource.

Default:
  • No config

type

the type of the AppSync datasource.