ExtendedDataSourceProps

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

Bases: object

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

Should not be used directly.

Parameters
Stability

experimental

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"
    ),
    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

Return type

Union[IResolvable, DynamoDBConfigProperty, None]

elasticsearch_config

(experimental) configuration for Elasticsearch Datasource.

Default
  • No config

Stability

experimental

Return type

Union[IResolvable, ElasticsearchConfigProperty, None]

http_config

(experimental) configuration for HTTP Datasource.

Default
  • No config

Stability

experimental

Return type

Union[IResolvable, HttpConfigProperty, None]

lambda_config

(experimental) configuration for Lambda Datasource.

Default
  • No config

Stability

experimental

Return type

Union[IResolvable, LambdaConfigProperty, None]

relational_database_config

(experimental) configuration for RDS Datasource.

Default
  • No config

Stability

experimental

Return type

Union[IResolvable, RelationalDatabaseConfigProperty, None]

type

(experimental) the type of the AppSync datasource.

Stability

experimental

Return type

str