Class AppSyncHttpDataSource.Builder

java.lang.Object
software.amazon.awscdk.services.appsync.AppSyncHttpDataSource.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<AppSyncHttpDataSource>
Enclosing class:
AppSyncHttpDataSource

@Stability(Stable) public static final class AppSyncHttpDataSource.Builder extends Object implements software.amazon.jsii.Builder<AppSyncHttpDataSource>
A fluent builder for AppSyncHttpDataSource.
  • Method Details

    • create

      @Stability(Stable) public static AppSyncHttpDataSource.Builder create(software.constructs.Construct scope, String id)
      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      Returns:
      a new instance of AppSyncHttpDataSource.Builder.
    • api

      @Stability(Stable) public AppSyncHttpDataSource.Builder api(IApi api)
      The API to attach this data source to.

      Parameters:
      api - The API to attach this data source to. This parameter is required.
      Returns:
      this
    • description

      @Stability(Stable) public AppSyncHttpDataSource.Builder description(String description)
      The description of the data source.

      Default: - None

      Parameters:
      description - The description of the data source. This parameter is required.
      Returns:
      this
    • name

      @Stability(Stable) public AppSyncHttpDataSource.Builder name(String name)
      The name of the data source.

      The only allowed pattern is: {[_A-Za-z][_0-9A-Za-z]*}. Any invalid characters will be automatically removed.

      Default: - id of data source

      Parameters:
      name - The name of the data source. This parameter is required.
      Returns:
      this
    • serviceRole

      @Stability(Stable) public AppSyncHttpDataSource.Builder serviceRole(IRole serviceRole)
      The IAM service role to be assumed by AppSync to interact with the data source.

      Default: - Create a new role

      Parameters:
      serviceRole - The IAM service role to be assumed by AppSync to interact with the data source. This parameter is required.
      Returns:
      this
    • endpoint

      @Stability(Stable) public AppSyncHttpDataSource.Builder endpoint(String endpoint)
      The http endpoint.

      Parameters:
      endpoint - The http endpoint. This parameter is required.
      Returns:
      this
    • authorizationConfig

      @Stability(Stable) public AppSyncHttpDataSource.Builder authorizationConfig(AppSyncAwsIamConfig authorizationConfig)
      The authorization config in case the HTTP endpoint requires authorization.

      Default: - none

      Parameters:
      authorizationConfig - The authorization config in case the HTTP endpoint requires authorization. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public AppSyncHttpDataSource build()
      Specified by:
      build in interface software.amazon.jsii.Builder<AppSyncHttpDataSource>
      Returns:
      a newly built instance of AppSyncHttpDataSource.