Class CfnConnection.Builder

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

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

    • create

      @Stability(Stable) public static CfnConnection.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnConnection.Builder.
    • authorizationType

      @Stability(Stable) public CfnConnection.Builder authorizationType(String authorizationType)
      The type of authorization to use for the connection.

      OAUTH tokens are refreshed when a 401 or 407 response is returned.

      Parameters:
      authorizationType - The type of authorization to use for the connection. This parameter is required.
      Returns:
      this
    • authParameters

      @Stability(Stable) public CfnConnection.Builder authParameters(IResolvable authParameters)
      A CreateConnectionAuthRequestParameters object that contains the authorization parameters to use to authorize with the endpoint.

      Parameters:
      authParameters - A CreateConnectionAuthRequestParameters object that contains the authorization parameters to use to authorize with the endpoint. This parameter is required.
      Returns:
      this
    • authParameters

      @Stability(Stable) public CfnConnection.Builder authParameters(CfnConnection.AuthParametersProperty authParameters)
      A CreateConnectionAuthRequestParameters object that contains the authorization parameters to use to authorize with the endpoint.

      Parameters:
      authParameters - A CreateConnectionAuthRequestParameters object that contains the authorization parameters to use to authorize with the endpoint. This parameter is required.
      Returns:
      this
    • description

      @Stability(Stable) public CfnConnection.Builder description(String description)
      A description for the connection to create.

      Parameters:
      description - A description for the connection to create. This parameter is required.
      Returns:
      this
    • name

      @Stability(Stable) public CfnConnection.Builder name(String name)
      The name for the connection to create.

      Parameters:
      name - The name for the connection to create. This parameter is required.
      Returns:
      this
    • build

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