Class ApiKeyState.Builder

  • Enclosing class:
    ApiKeyState

    public static final class ApiKeyState.Builder
    extends java.lang.Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • apiKey

        public ApiKeyState.Builder apiKey​(@Nullable
                                          com.pulumi.core.Output<java.lang.String> apiKey)
        Parameters:
        apiKey - The generated API key. This value is sensitive.
        Returns:
        builder
      • apiKey

        public ApiKeyState.Builder apiKey​(java.lang.String apiKey)
        Parameters:
        apiKey - The generated API key. This value is sensitive.
        Returns:
        builder
      • region

        public ApiKeyState.Builder region​(@Nullable
                                          com.pulumi.core.Output<java.lang.String> region)
        Parameters:
        region - Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
        Returns:
        builder
      • region

        public ApiKeyState.Builder region​(java.lang.String region)
        Parameters:
        region - Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
        Returns:
        builder
      • scope

        public ApiKeyState.Builder scope​(@Nullable
                                         com.pulumi.core.Output<java.lang.String> scope)
        Parameters:
        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.
        Returns:
        builder
      • scope

        public ApiKeyState.Builder scope​(java.lang.String scope)
        Parameters:
        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.
        Returns:
        builder
      • tokenDomains

        public ApiKeyState.Builder tokenDomains​(@Nullable
                                                com.pulumi.core.Output<java.util.List<java.lang.String>> tokenDomains)
        Parameters:
        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.
        Returns:
        builder
      • tokenDomains

        public ApiKeyState.Builder tokenDomains​(java.util.List<java.lang.String> tokenDomains)
        Parameters:
        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.
        Returns:
        builder
      • tokenDomains

        public ApiKeyState.Builder tokenDomains​(java.lang.String... tokenDomains)
        Parameters:
        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.
        Returns:
        builder