import * as core from "@terrascript/core"; export interface ApiKeyArgs extends core.ResourceArgs { /** * (Required) The ID of the associated AppSync API */ apiId: string | core.StringOut; /** * (Optional) The API key description. Defaults to "Managed by Terraform". */ description?: string | core.StringOut; /** * (Optional) RFC3339 string representation of the expiry date. Rounded down to nearest hour. By defaul * t, it is 7 days from the date of creation. */ expires?: string | core.StringOut; } export class ApiKey extends core.Resource { /** * (Required) The ID of the associated AppSync API */ @core.attr(String) public apiId!: string | core.StringOut; /** * (Optional) The API key description. Defaults to "Managed by Terraform". */ @core.attr(String) public description?: string | core.StringOut; /** * (Optional) RFC3339 string representation of the expiry date. Rounded down to nearest hour. By defaul * t, it is 7 days from the date of creation. */ @core.attr(String) public expires?: string | core.StringOut; /** * API Key ID (Formatted as ApiId:Key) */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * The API key */ @core.attr(String, { computed: true }) public key!: string | core.StringOut; constructor(name: string, args?: ApiKeyArgs) { super(name, "aws_appsync_api_key", args); } public override getNamespace(): string { return "aws_appsync"; } }