package awsapigateway // The options for creating an API Key. // // Example: // var api restApi // // key := api.AddApiKey(jsii.String("ApiKey"), &ApiKeyOptions{ // ApiKeyName: jsii.String("myApiKey1"), // Value: jsii.String("MyApiKeyThatIsAtLeast20Characters"), // }) // type ApiKeyOptions struct { // Adds a CORS preflight OPTIONS method to this resource and all child resources. // // You can add CORS at the resource-level using `addCorsPreflight`. DefaultCorsPreflightOptions *CorsOptions `field:"optional" json:"defaultCorsPreflightOptions" yaml:"defaultCorsPreflightOptions"` // An integration to use as a default for all methods created within this API unless an integration is specified. DefaultIntegration Integration `field:"optional" json:"defaultIntegration" yaml:"defaultIntegration"` // Method options to use as a default for all methods created within this API unless custom options are specified. DefaultMethodOptions *MethodOptions `field:"optional" json:"defaultMethodOptions" yaml:"defaultMethodOptions"` // A name for the API key. // // If you don't specify a name, AWS CloudFormation generates a unique physical ID and uses that ID for the API key name. ApiKeyName *string `field:"optional" json:"apiKeyName" yaml:"apiKeyName"` // A description of the purpose of the API key. Description *string `field:"optional" json:"description" yaml:"description"` // The value of the API key. // // Must be at least 20 characters long. Value *string `field:"optional" json:"value" yaml:"value"` }