ApiKeyState constructor

const ApiKeyState({
  1. Input<String?>? apiKey,
  2. Input<String?>? region,
  3. Input<String?>? scope,
  4. Input<List<String>?>? tokenDomains,
})

Creates a new ApiKeyState. apiKey The generated API key. This value is sensitive. region Region where this resource will be managed. Defaults to the Region set in the provider configuration. scope Specifies whether this is for an AWS CloudFront distribution or for a regional application. Valid values are CLOUDFRONT or REGIONAL. Changing this forces a new resource to be created. NOTE: WAFv2 API Keys deployed for CLOUDFRONT must be created within the us-east-1 region. tokenDomains The domains that you want to be able to use the API key with, for example example.com. You can specify up to 5 domains. Changing this forces a new resource to be created.

Implementation

const ApiKeyState({
  this.apiKey,
  this.region,
  this.scope,
  this.tokenDomains,
});