Interface CfnApiKeyProps

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnApiKeyProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:49.381Z") @Stability(Stable) public interface CfnApiKeyProps extends software.amazon.jsii.JsiiSerializable
Properties for defining a CfnApiKey.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.appsync.*;
 CfnApiKeyProps cfnApiKeyProps = CfnApiKeyProps.builder()
         .apiId("apiId")
         // the properties below are optional
         .apiKeyId("apiKeyId")
         .description("description")
         .expires(123)
         .build();
 
  • Method Details

    • getApiId

      @Stability(Stable) @NotNull String getApiId()
      Unique AWS AppSync GraphQL API ID for this API key.
    • getApiKeyId

      @Stability(Stable) @Nullable default String getApiKeyId()
      The API key ID.
    • getDescription

      @Stability(Stable) @Nullable default String getDescription()
      Unique description of your API key.
    • getExpires

      @Stability(Stable) @Nullable default Number getExpires()
      The time after which the API key expires.

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

    • builder

      @Stability(Stable) static CfnApiKeyProps.Builder builder()
      Returns:
      a CfnApiKeyProps.Builder of CfnApiKeyProps