Interface DataSource.Builder

    • Method Detail

      • dataSourceArn

        DataSource.Builder dataSourceArn​(String dataSourceArn)

        The data source Amazon Resource Name (ARN).

        Parameters:
        dataSourceArn - The data source Amazon Resource Name (ARN).
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • name

        DataSource.Builder name​(String name)

        The name of the data source.

        Parameters:
        name - The name of the data source.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • description

        DataSource.Builder description​(String description)

        The description of the data source.

        Parameters:
        description - The description of the data source.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • type

        DataSource.Builder type​(String type)

        The type of the data source.

        • AWS_LAMBDA: The data source is an Lambda function.

        • AMAZON_DYNAMODB: The data source is an Amazon DynamoDB table.

        • AMAZON_ELASTICSEARCH: The data source is an Amazon OpenSearch Service domain.

        • AMAZON_OPENSEARCH_SERVICE: The data source is an Amazon OpenSearch Service domain.

        • AMAZON_EVENTBRIDGE: The data source is an Amazon EventBridge configuration.

        • NONE: There is no data source. Use this type when you want to invoke a GraphQL operation without connecting to a data source, such as when you're performing data transformation with resolvers or invoking a subscription from a mutation.

        • HTTP: The data source is an HTTP endpoint.

        • RELATIONAL_DATABASE: The data source is a relational database.

        Parameters:
        type - The type of the data source.

        • AWS_LAMBDA: The data source is an Lambda function.

        • AMAZON_DYNAMODB: The data source is an Amazon DynamoDB table.

        • AMAZON_ELASTICSEARCH: The data source is an Amazon OpenSearch Service domain.

        • AMAZON_OPENSEARCH_SERVICE: The data source is an Amazon OpenSearch Service domain.

        • AMAZON_EVENTBRIDGE: The data source is an Amazon EventBridge configuration.

        • NONE: There is no data source. Use this type when you want to invoke a GraphQL operation without connecting to a data source, such as when you're performing data transformation with resolvers or invoking a subscription from a mutation.

        • HTTP: The data source is an HTTP endpoint.

        • RELATIONAL_DATABASE: The data source is a relational database.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        DataSourceType, DataSourceType
      • type

        DataSource.Builder type​(DataSourceType type)

        The type of the data source.

        • AWS_LAMBDA: The data source is an Lambda function.

        • AMAZON_DYNAMODB: The data source is an Amazon DynamoDB table.

        • AMAZON_ELASTICSEARCH: The data source is an Amazon OpenSearch Service domain.

        • AMAZON_OPENSEARCH_SERVICE: The data source is an Amazon OpenSearch Service domain.

        • AMAZON_EVENTBRIDGE: The data source is an Amazon EventBridge configuration.

        • NONE: There is no data source. Use this type when you want to invoke a GraphQL operation without connecting to a data source, such as when you're performing data transformation with resolvers or invoking a subscription from a mutation.

        • HTTP: The data source is an HTTP endpoint.

        • RELATIONAL_DATABASE: The data source is a relational database.

        Parameters:
        type - The type of the data source.

        • AWS_LAMBDA: The data source is an Lambda function.

        • AMAZON_DYNAMODB: The data source is an Amazon DynamoDB table.

        • AMAZON_ELASTICSEARCH: The data source is an Amazon OpenSearch Service domain.

        • AMAZON_OPENSEARCH_SERVICE: The data source is an Amazon OpenSearch Service domain.

        • AMAZON_EVENTBRIDGE: The data source is an Amazon EventBridge configuration.

        • NONE: There is no data source. Use this type when you want to invoke a GraphQL operation without connecting to a data source, such as when you're performing data transformation with resolvers or invoking a subscription from a mutation.

        • HTTP: The data source is an HTTP endpoint.

        • RELATIONAL_DATABASE: The data source is a relational database.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        DataSourceType, DataSourceType
      • serviceRoleArn

        DataSource.Builder serviceRoleArn​(String serviceRoleArn)

        The Identity and Access Management (IAM) service role Amazon Resource Name (ARN) for the data source. The system assumes this role when accessing the data source.

        Parameters:
        serviceRoleArn - The Identity and Access Management (IAM) service role Amazon Resource Name (ARN) for the data source. The system assumes this role when accessing the data source.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • dynamodbConfig

        DataSource.Builder dynamodbConfig​(DynamodbDataSourceConfig dynamodbConfig)

        DynamoDB settings.

        Parameters:
        dynamodbConfig - DynamoDB settings.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • lambdaConfig

        DataSource.Builder lambdaConfig​(LambdaDataSourceConfig lambdaConfig)

        Lambda settings.

        Parameters:
        lambdaConfig - Lambda settings.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • elasticsearchConfig

        DataSource.Builder elasticsearchConfig​(ElasticsearchDataSourceConfig elasticsearchConfig)

        Amazon OpenSearch Service settings.

        Parameters:
        elasticsearchConfig - Amazon OpenSearch Service settings.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • openSearchServiceConfig

        DataSource.Builder openSearchServiceConfig​(OpenSearchServiceDataSourceConfig openSearchServiceConfig)

        Amazon OpenSearch Service settings.

        Parameters:
        openSearchServiceConfig - Amazon OpenSearch Service settings.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • httpConfig

        DataSource.Builder httpConfig​(HttpDataSourceConfig httpConfig)

        HTTP endpoint settings.

        Parameters:
        httpConfig - HTTP endpoint settings.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • relationalDatabaseConfig

        DataSource.Builder relationalDatabaseConfig​(RelationalDatabaseDataSourceConfig relationalDatabaseConfig)

        Relational database settings.

        Parameters:
        relationalDatabaseConfig - Relational database settings.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • eventBridgeConfig

        DataSource.Builder eventBridgeConfig​(EventBridgeDataSourceConfig eventBridgeConfig)

        Amazon EventBridge settings.

        Parameters:
        eventBridgeConfig - Amazon EventBridge settings.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • metricsConfig

        DataSource.Builder metricsConfig​(String metricsConfig)

        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.

        Parameters:
        metricsConfig - 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.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        DataSourceLevelMetricsConfig, DataSourceLevelMetricsConfig
      • metricsConfig

        DataSource.Builder metricsConfig​(DataSourceLevelMetricsConfig metricsConfig)

        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.

        Parameters:
        metricsConfig - 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.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        DataSourceLevelMetricsConfig, DataSourceLevelMetricsConfig