Skip to content

UpdateDataSourceRequest

Source code in docs_src/capo_appsync/types/update_data_source_request.py
class UpdateDataSourceRequest(TypedDict, closed=True):
    api_id: "capo_appsync.types.string.String"
    """<p>The API ID.</p>"""
    name: "capo_appsync.types.resource_name.ResourceName"
    """<p>The new name for the data source.</p>"""
    description: NotRequired["capo_appsync.types.string.String"]
    """<p>The new description for the data source.</p>"""
    type: "capo_appsync.types.data_source_type.DataSourceType"
    """<p>The new data source type.</p>"""
    service_role_arn: NotRequired["capo_appsync.types.string.String"]
    """<p>The new service role Amazon Resource Name (ARN) for the data source.</p>"""
    dynamodb_config: NotRequired[
        "capo_appsync.types.dynamodb_data_source_config.DynamodbDataSourceConfig"
    ]
    """<p>The new Amazon DynamoDB configuration.</p>"""
    lambda_config: NotRequired[
        "capo_appsync.types.lambda_data_source_config.LambdaDataSourceConfig"
    ]
    """<p>The new Lambda configuration.</p>"""
    elasticsearch_config: NotRequired[
        "capo_appsync.types.elasticsearch_data_source_config.ElasticsearchDataSourceConfig"
    ]
    """<p>The new OpenSearch configuration.</p> <p>As of September 2021, Amazon Elasticsearch service is Amazon OpenSearch Service. This configuration is deprecated. Instead, use <a>UpdateDataSourceRequest$openSearchServiceConfig</a> to update an OpenSearch data source.</p>"""
    open_search_service_config: NotRequired[
        "capo_appsync.types.open_search_service_data_source_config.OpenSearchServiceDataSourceConfig"
    ]
    """<p>The new OpenSearch configuration.</p>"""
    http_config: NotRequired[
        "capo_appsync.types.http_data_source_config.HttpDataSourceConfig"
    ]
    """<p>The new HTTP endpoint configuration.</p>"""
    relational_database_config: NotRequired[
        "capo_appsync.types.relational_database_data_source_config.RelationalDatabaseDataSourceConfig"
    ]
    """<p>The new relational database configuration.</p>"""
    event_bridge_config: NotRequired[
        "capo_appsync.types.event_bridge_data_source_config.EventBridgeDataSourceConfig"
    ]
    """<p>The new Amazon EventBridge settings.</p>"""
    metrics_config: NotRequired[
        "capo_appsync.types.data_source_level_metrics_config.DataSourceLevelMetricsConfig"
    ]
    """<p>Enables or disables enhanced data source metrics for specified data sources. Note that <code>metricsConfig</code> won't be used unless the <code>dataSourceLevelMetricsBehavior</code> value is set to <code>PER_DATA_SOURCE_METRICS</code>. If the <code>dataSourceLevelMetricsBehavior</code> is set to <code>FULL_REQUEST_DATA_SOURCE_METRICS</code> instead, <code>metricsConfig</code> will be ignored. However, you can still set its value.</p> <p> <code>metricsConfig</code> can be <code>ENABLED</code> or <code>DISABLED</code>.</p>"""

api_id instance-attribute

api_id: String

The API ID.

description instance-attribute

description: NotRequired[String]

The new description for the data source.

dynamodb_config instance-attribute

dynamodb_config: NotRequired[DynamodbDataSourceConfig]

The new Amazon DynamoDB configuration.

elasticsearch_config instance-attribute

elasticsearch_config: NotRequired[ElasticsearchDataSourceConfig]

The new OpenSearch configuration.

As of September 2021, Amazon Elasticsearch service is Amazon OpenSearch Service. This configuration is deprecated. Instead, use UpdateDataSourceRequest$openSearchServiceConfig to update an OpenSearch data source.

event_bridge_config instance-attribute

event_bridge_config: NotRequired[EventBridgeDataSourceConfig]

The new Amazon EventBridge settings.

http_config instance-attribute

http_config: NotRequired[HttpDataSourceConfig]

The new HTTP endpoint configuration.

lambda_config instance-attribute

lambda_config: NotRequired[LambdaDataSourceConfig]

The new Lambda configuration.

metrics_config instance-attribute

metrics_config: NotRequired[DataSourceLevelMetricsConfig]

Enables or disables enhanced data source metrics for specified data sources. Note that metricsConfig won't be used unless the dataSourceLevelMetricsBehavior value is set to PER_DATA_SOURCE_METRICS. If the dataSourceLevelMetricsBehavior is set to FULL_REQUEST_DATA_SOURCE_METRICS instead, metricsConfig will be ignored. However, you can still set its value.

metricsConfig can be ENABLED or DISABLED.

name instance-attribute

The new name for the data source.

open_search_service_config instance-attribute

open_search_service_config: NotRequired[OpenSearchServiceDataSourceConfig]

The new OpenSearch configuration.

relational_database_config instance-attribute

relational_database_config: NotRequired[RelationalDatabaseDataSourceConfig]

The new relational database configuration.

service_role_arn instance-attribute

service_role_arn: NotRequired[String]

The new service role Amazon Resource Name (ARN) for the data source.

type instance-attribute

The new data source type.