Class GraphQLApiState.Builder

  • Enclosing class:
    GraphQLApiState

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

      • Builder

        public Builder()
    • Method Detail

      • additionalAuthenticationProviders

        public GraphQLApiState.Builder additionalAuthenticationProviders​(@Nullable
                                                                         com.pulumi.core.Output<java.util.List<GraphQLApiAdditionalAuthenticationProviderArgs>> additionalAuthenticationProviders)
        Parameters:
        additionalAuthenticationProviders - One or more additional authentication providers for the GraphQL API. See `additionalAuthenticationProvider` Block for details.
        Returns:
        builder
      • additionalAuthenticationProviders

        public GraphQLApiState.Builder additionalAuthenticationProviders​(java.util.List<GraphQLApiAdditionalAuthenticationProviderArgs> additionalAuthenticationProviders)
        Parameters:
        additionalAuthenticationProviders - One or more additional authentication providers for the GraphQL API. See `additionalAuthenticationProvider` Block for details.
        Returns:
        builder
      • additionalAuthenticationProviders

        public GraphQLApiState.Builder additionalAuthenticationProviders​(GraphQLApiAdditionalAuthenticationProviderArgs... additionalAuthenticationProviders)
        Parameters:
        additionalAuthenticationProviders - One or more additional authentication providers for the GraphQL API. See `additionalAuthenticationProvider` Block for details.
        Returns:
        builder
      • apiType

        public GraphQLApiState.Builder apiType​(@Nullable
                                               com.pulumi.core.Output<java.lang.String> apiType)
        Parameters:
        apiType - API type. Valid values are `GRAPHQL` or `MERGED`. A `MERGED` type requires `mergedApiExecutionRoleArn` to be set.
        Returns:
        builder
      • apiType

        public GraphQLApiState.Builder apiType​(java.lang.String apiType)
        Parameters:
        apiType - API type. Valid values are `GRAPHQL` or `MERGED`. A `MERGED` type requires `mergedApiExecutionRoleArn` to be set.
        Returns:
        builder
      • arn

        public GraphQLApiState.Builder arn​(@Nullable
                                           com.pulumi.core.Output<java.lang.String> arn)
        Parameters:
        arn - ARN
        Returns:
        builder
      • authenticationType

        public GraphQLApiState.Builder authenticationType​(@Nullable
                                                          com.pulumi.core.Output<java.lang.String> authenticationType)
        Parameters:
        authenticationType - Authentication type. Valid values: `API_KEY`, `AWS_IAM`, `AMAZON_COGNITO_USER_POOLS`, `OPENID_CONNECT`, `AWS_LAMBDA`
        Returns:
        builder
      • authenticationType

        public GraphQLApiState.Builder authenticationType​(java.lang.String authenticationType)
        Parameters:
        authenticationType - Authentication type. Valid values: `API_KEY`, `AWS_IAM`, `AMAZON_COGNITO_USER_POOLS`, `OPENID_CONNECT`, `AWS_LAMBDA`
        Returns:
        builder
      • enhancedMetricsConfig

        public GraphQLApiState.Builder enhancedMetricsConfig​(@Nullable
                                                             com.pulumi.core.Output<GraphQLApiEnhancedMetricsConfigArgs> enhancedMetricsConfig)
        Parameters:
        enhancedMetricsConfig - Enables and controls the enhanced metrics feature. See `enhancedMetricsConfig` Block for details.
        Returns:
        builder
      • enhancedMetricsConfig

        public GraphQLApiState.Builder enhancedMetricsConfig​(GraphQLApiEnhancedMetricsConfigArgs enhancedMetricsConfig)
        Parameters:
        enhancedMetricsConfig - Enables and controls the enhanced metrics feature. See `enhancedMetricsConfig` Block for details.
        Returns:
        builder
      • introspectionConfig

        public GraphQLApiState.Builder introspectionConfig​(@Nullable
                                                           com.pulumi.core.Output<java.lang.String> introspectionConfig)
        Parameters:
        introspectionConfig - Sets the value of the GraphQL API to enable (`ENABLED`) or disable (`DISABLED`) introspection. If no value is provided, the introspection configuration will be set to ENABLED by default. This field will produce an error if the operation attempts to use the introspection feature while this field is disabled. For more information about introspection, see [GraphQL introspection](https://graphql.org/learn/introspection/).
        Returns:
        builder
      • introspectionConfig

        public GraphQLApiState.Builder introspectionConfig​(java.lang.String introspectionConfig)
        Parameters:
        introspectionConfig - Sets the value of the GraphQL API to enable (`ENABLED`) or disable (`DISABLED`) introspection. If no value is provided, the introspection configuration will be set to ENABLED by default. This field will produce an error if the operation attempts to use the introspection feature while this field is disabled. For more information about introspection, see [GraphQL introspection](https://graphql.org/learn/introspection/).
        Returns:
        builder
      • lambdaAuthorizerConfig

        public GraphQLApiState.Builder lambdaAuthorizerConfig​(@Nullable
                                                              com.pulumi.core.Output<GraphQLApiLambdaAuthorizerConfigArgs> lambdaAuthorizerConfig)
        Parameters:
        lambdaAuthorizerConfig - Nested argument containing Lambda authorizer configuration. See `lambdaAuthorizerConfig` Block for details.
        Returns:
        builder
      • lambdaAuthorizerConfig

        public GraphQLApiState.Builder lambdaAuthorizerConfig​(GraphQLApiLambdaAuthorizerConfigArgs lambdaAuthorizerConfig)
        Parameters:
        lambdaAuthorizerConfig - Nested argument containing Lambda authorizer configuration. See `lambdaAuthorizerConfig` Block for details.
        Returns:
        builder
      • logConfig

        public GraphQLApiState.Builder logConfig​(@Nullable
                                                 com.pulumi.core.Output<GraphQLApiLogConfigArgs> logConfig)
        Parameters:
        logConfig - Nested argument containing logging configuration. See `logConfig` Block for details.
        Returns:
        builder
      • mergedApiExecutionRoleArn

        public GraphQLApiState.Builder mergedApiExecutionRoleArn​(@Nullable
                                                                 com.pulumi.core.Output<java.lang.String> mergedApiExecutionRoleArn)
        Parameters:
        mergedApiExecutionRoleArn - ARN of the execution role when `apiType` is set to `MERGED`.
        Returns:
        builder
      • mergedApiExecutionRoleArn

        public GraphQLApiState.Builder mergedApiExecutionRoleArn​(java.lang.String mergedApiExecutionRoleArn)
        Parameters:
        mergedApiExecutionRoleArn - ARN of the execution role when `apiType` is set to `MERGED`.
        Returns:
        builder
      • name

        public GraphQLApiState.Builder name​(@Nullable
                                            com.pulumi.core.Output<java.lang.String> name)
        Parameters:
        name - User-supplied name for the GraphQL API. The following arguments are optional:
        Returns:
        builder
      • name

        public GraphQLApiState.Builder name​(java.lang.String name)
        Parameters:
        name - User-supplied name for the GraphQL API. The following arguments are optional:
        Returns:
        builder
      • openidConnectConfig

        public GraphQLApiState.Builder openidConnectConfig​(@Nullable
                                                           com.pulumi.core.Output<GraphQLApiOpenidConnectConfigArgs> openidConnectConfig)
        Parameters:
        openidConnectConfig - Nested argument containing OpenID Connect configuration. See `openidConnectConfig` Block for details.
        Returns:
        builder
      • openidConnectConfig

        public GraphQLApiState.Builder openidConnectConfig​(GraphQLApiOpenidConnectConfigArgs openidConnectConfig)
        Parameters:
        openidConnectConfig - Nested argument containing OpenID Connect configuration. See `openidConnectConfig` Block for details.
        Returns:
        builder
      • queryDepthLimit

        public GraphQLApiState.Builder queryDepthLimit​(@Nullable
                                                       com.pulumi.core.Output<java.lang.Integer> queryDepthLimit)
        Parameters:
        queryDepthLimit - Maximum depth a query can have in a single request. Depth refers to the amount of nested levels allowed in the body of query. The default value is `0` (or unspecified), which indicates there's no depth limit. If you set a limit, it can be between `1` and `75` nested levels. This field will produce a limit error if the operation falls out of bounds. Note that fields can still be set to nullable or non-nullable. If a non-nullable field produces an error, the error will be thrown upwards to the first nullable field available.
        Returns:
        builder
      • queryDepthLimit

        public GraphQLApiState.Builder queryDepthLimit​(java.lang.Integer queryDepthLimit)
        Parameters:
        queryDepthLimit - Maximum depth a query can have in a single request. Depth refers to the amount of nested levels allowed in the body of query. The default value is `0` (or unspecified), which indicates there's no depth limit. If you set a limit, it can be between `1` and `75` nested levels. This field will produce a limit error if the operation falls out of bounds. Note that fields can still be set to nullable or non-nullable. If a non-nullable field produces an error, the error will be thrown upwards to the first nullable field available.
        Returns:
        builder
      • region

        public GraphQLApiState.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 GraphQLApiState.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
      • resolverCountLimit

        public GraphQLApiState.Builder resolverCountLimit​(@Nullable
                                                          com.pulumi.core.Output<java.lang.Integer> resolverCountLimit)
        Parameters:
        resolverCountLimit - Maximum number of resolvers that can be invoked in a single request. The default value is `0` (or unspecified), which will set the limit to `10000`. When specified, the limit value can be between `1` and `10000`. This field will produce a limit error if the operation falls out of bounds.
        Returns:
        builder
      • resolverCountLimit

        public GraphQLApiState.Builder resolverCountLimit​(java.lang.Integer resolverCountLimit)
        Parameters:
        resolverCountLimit - Maximum number of resolvers that can be invoked in a single request. The default value is `0` (or unspecified), which will set the limit to `10000`. When specified, the limit value can be between `1` and `10000`. This field will produce a limit error if the operation falls out of bounds.
        Returns:
        builder
      • schema

        public GraphQLApiState.Builder schema​(@Nullable
                                              com.pulumi.core.Output<java.lang.String> schema)
        Parameters:
        schema - Schema definition, in GraphQL schema language format. This provider cannot perform drift detection of this configuration.
        Returns:
        builder
      • schema

        public GraphQLApiState.Builder schema​(java.lang.String schema)
        Parameters:
        schema - Schema definition, in GraphQL schema language format. This provider cannot perform drift detection of this configuration.
        Returns:
        builder
      • tags

        public GraphQLApiState.Builder tags​(@Nullable
                                            com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> tags)
        Parameters:
        tags - Map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
        Returns:
        builder
      • tags

        public GraphQLApiState.Builder tags​(java.util.Map<java.lang.String,​java.lang.String> tags)
        Parameters:
        tags - Map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
        Returns:
        builder
      • tagsAll

        public GraphQLApiState.Builder tagsAll​(@Nullable
                                               com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> tagsAll)
        Parameters:
        tagsAll - Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
        Returns:
        builder
      • tagsAll

        public GraphQLApiState.Builder tagsAll​(java.util.Map<java.lang.String,​java.lang.String> tagsAll)
        Parameters:
        tagsAll - Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
        Returns:
        builder
      • uris

        public GraphQLApiState.Builder uris​(@Nullable
                                            com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> uris)
        Parameters:
        uris - Map of URIs associated with the API E.g., `uris["GRAPHQL"] = https://ID.appsync-api.REGION.amazonaws.com/graphql`
        Returns:
        builder
      • uris

        public GraphQLApiState.Builder uris​(java.util.Map<java.lang.String,​java.lang.String> uris)
        Parameters:
        uris - Map of URIs associated with the API E.g., `uris["GRAPHQL"] = https://ID.appsync-api.REGION.amazonaws.com/graphql`
        Returns:
        builder
      • userPoolConfig

        public GraphQLApiState.Builder userPoolConfig​(@Nullable
                                                      com.pulumi.core.Output<GraphQLApiUserPoolConfigArgs> userPoolConfig)
        Parameters:
        userPoolConfig - Amazon Cognito User Pool configuration. See `userPoolConfig` Block for details.
        Returns:
        builder
      • visibility

        public GraphQLApiState.Builder visibility​(@Nullable
                                                  com.pulumi.core.Output<java.lang.String> visibility)
        Parameters:
        visibility - Sets the value of the GraphQL API to public (`GLOBAL`) or private (`PRIVATE`). If no value is provided, the visibility will be set to `GLOBAL` by default. This value cannot be changed once the API has been created.
        Returns:
        builder
      • visibility

        public GraphQLApiState.Builder visibility​(java.lang.String visibility)
        Parameters:
        visibility - Sets the value of the GraphQL API to public (`GLOBAL`) or private (`PRIVATE`). If no value is provided, the visibility will be set to `GLOBAL` by default. This value cannot be changed once the API has been created.
        Returns:
        builder
      • xrayEnabled

        public GraphQLApiState.Builder xrayEnabled​(@Nullable
                                                   com.pulumi.core.Output<java.lang.Boolean> xrayEnabled)
        Parameters:
        xrayEnabled - Whether tracing with X-ray is enabled. Defaults to false.
        Returns:
        builder
      • xrayEnabled

        public GraphQLApiState.Builder xrayEnabled​(java.lang.Boolean xrayEnabled)
        Parameters:
        xrayEnabled - Whether tracing with X-ray is enabled. Defaults to false.
        Returns:
        builder