Class CfnApiKey.Builder

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

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

    • create

      @Stability(Stable) public static CfnApiKey.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 CfnApiKey.Builder.
    • apiId

      @Stability(Stable) public CfnApiKey.Builder apiId(String apiId)
      Unique AWS AppSync GraphQL API ID for this API key.

      Parameters:
      apiId - Unique AWS AppSync GraphQL API ID for this API key. This parameter is required.
      Returns:
      this
    • apiKeyId

      @Stability(Stable) public CfnApiKey.Builder apiKeyId(String apiKeyId)
      The API key ID.

      Parameters:
      apiKeyId - The API key ID. This parameter is required.
      Returns:
      this
    • description

      @Stability(Stable) public CfnApiKey.Builder description(String description)
      Unique description of your API key.

      Parameters:
      description - Unique description of your API key. This parameter is required.
      Returns:
      this
    • expires

      @Stability(Stable) public CfnApiKey.Builder expires(Number expires)
      The time after which the API key expires.

      The date is represented as seconds since the epoch, rounded down to the nearest hour.

      Parameters:
      expires - The time after which the API key expires. This parameter is required.
      Returns:
      this
    • build

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