CfnApiKeyProps Struct
Properties for defining a CfnApiKey.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_appsync as appsync } from 'aws-cdk-lib';
const cfnApiKeyProps: appsync.CfnApiKeyProps = {
apiId: 'apiId',
// the properties below are optional
description: 'description',
expires: 123,
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_appsync as appsync
cfn_api_key_props = appsync.CfnApiKeyProps(
api_id="apiId",
# the properties below are optional
description="description",
expires=123
)
java
// 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
.description("description")
.expires(123)
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.AppSync;
var cfnApiKeyProps = new CfnApiKeyProps {
ApiId = "apiId",
// the properties below are optional
Description = "description",
Expires = 123
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
cfnApiKeyProps := &CfnApiKeyProps{
ApiId: jsii.String("apiId"),
// the properties below are optional
Description: jsii.String("description"),
Expires: jsii.Number(123),
}
Properties
Unique AWS AppSync GraphQL API ID for this API key.
descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string #Unique description of your API key.
expiresoptionalnumberexpiresoptionalint | floatexpiresoptionalNumberExpiresoptionaldoubleExpiresoptional*float64 #The time after which the API key expires.
The date is represented as seconds since the epoch, rounded down to the nearest hour.