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 Summary
Modifier and TypeMethodDescriptionUnique AWS AppSync GraphQL API ID for this API key.The API key ID.build()
static CfnApiKey.Builder
description
(String description) Unique description of your API key.The time after which the API key expires.
-
Method Details
-
create
- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
- Returns:
- a new instance of
CfnApiKey.Builder
.
-
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
The API key ID.- Parameters:
apiKeyId
- The API key ID. This parameter is required.- Returns:
this
-
description
Unique description of your API key.- Parameters:
description
- Unique description of your API key. This parameter is required.- Returns:
this
-
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
-