Class CfnApiKey

All Implemented Interfaces:
IInspectable,, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.101.0 (build b95fe5d)", date="2024-07-12T19:33:57.647Z") @Stability(Stable) public class CfnApiKey extends CfnResource implements IInspectable
The AWS::AppSync::ApiKey resource creates a unique key that you can distribute to clients who are executing GraphQL operations with AWS AppSync that require an API key.


 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 CfnApiKey cfnApiKey = CfnApiKey.Builder.create(this, "MyCfnApiKey")
         // the properties below are optional

See Also:
  • Field Details


      @Stability(Stable) public static final String CFN_RESOURCE_TYPE_NAME
      The CloudFormation resource type name for this resource class.
  • Constructor Details

    • CfnApiKey

      protected CfnApiKey( objRef)
    • CfnApiKey

      protected CfnApiKey( initializationMode)
    • CfnApiKey

      @Stability(Stable) public CfnApiKey(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnApiKeyProps props)
      scope - Scope in which this resource is defined. This parameter is required.
      id - Construct identifier for this resource (unique in its scope). This parameter is required.
      props - Resource properties. This parameter is required.
  • Method Details

    • inspect

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      inspector - tree inspector to collect and process attributes. This parameter is required.
    • renderProperties

      @Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
      renderProperties in class CfnResource
      props - This parameter is required.
    • getAttrApiKey

      @Stability(Stable) @NotNull public String getAttrApiKey()
      The API key.
    • getAttrApiKeyId

      @Stability(Stable) @NotNull public String getAttrApiKeyId()
      The API key ID.
    • getAttrArn

      @Stability(Stable) @NotNull public String getAttrArn()
      The Amazon Resource Name (ARN) of the API key, such as arn:aws:appsync:us-east-1:123456789012:apis/graphqlapiid/apikey/apikeya1bzhi .
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      getCfnProperties in class CfnResource
    • getApiId

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

      @Stability(Stable) public void setApiId(@NotNull String value)
      Unique AWS AppSync GraphQL API ID for this API key.
    • getDescription

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

      @Stability(Stable) public void setDescription(@Nullable String value)
      Unique description of your API key.
    • getExpires

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

      @Stability(Stable) public void setExpires(@Nullable Number value)
      The time after which the API key expires.