All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azure.appplatform.kotlin.SpringCloudGatewayArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 6.14.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.appplatform.kotlin

import com.pulumi.azure.appplatform.SpringCloudGatewayArgs.builder
import com.pulumi.azure.appplatform.kotlin.inputs.SpringCloudGatewayApiMetadataArgs
import com.pulumi.azure.appplatform.kotlin.inputs.SpringCloudGatewayApiMetadataArgsBuilder
import com.pulumi.azure.appplatform.kotlin.inputs.SpringCloudGatewayClientAuthorizationArgs
import com.pulumi.azure.appplatform.kotlin.inputs.SpringCloudGatewayClientAuthorizationArgsBuilder
import com.pulumi.azure.appplatform.kotlin.inputs.SpringCloudGatewayCorsArgs
import com.pulumi.azure.appplatform.kotlin.inputs.SpringCloudGatewayCorsArgsBuilder
import com.pulumi.azure.appplatform.kotlin.inputs.SpringCloudGatewayLocalResponseCachePerInstanceArgs
import com.pulumi.azure.appplatform.kotlin.inputs.SpringCloudGatewayLocalResponseCachePerInstanceArgsBuilder
import com.pulumi.azure.appplatform.kotlin.inputs.SpringCloudGatewayLocalResponseCachePerRouteArgs
import com.pulumi.azure.appplatform.kotlin.inputs.SpringCloudGatewayLocalResponseCachePerRouteArgsBuilder
import com.pulumi.azure.appplatform.kotlin.inputs.SpringCloudGatewayQuotaArgs
import com.pulumi.azure.appplatform.kotlin.inputs.SpringCloudGatewayQuotaArgsBuilder
import com.pulumi.azure.appplatform.kotlin.inputs.SpringCloudGatewaySsoArgs
import com.pulumi.azure.appplatform.kotlin.inputs.SpringCloudGatewaySsoArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.Int
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * > **NOTE:** This resource is applicable only for Spring Cloud Service with enterprise tier.
 * Manages a Spring Cloud Gateway.
 * ## Example Usage
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as azure from "@pulumi/azure";
 * const example = new azure.core.ResourceGroup("example", {
 *     name: "example",
 *     location: "West Europe",
 * });
 * const exampleSpringCloudService = new azure.appplatform.SpringCloudService("example", {
 *     name: "example",
 *     location: example.location,
 *     resourceGroupName: example.name,
 *     skuName: "E0",
 * });
 * const exampleSpringCloudGateway = new azure.appplatform.SpringCloudGateway("example", {
 *     name: "default",
 *     springCloudServiceId: exampleSpringCloudService.id,
 *     httpsOnly: false,
 *     publicNetworkAccessEnabled: true,
 *     instanceCount: 2,
 *     apiMetadata: {
 *         description: "example description",
 *         documentationUrl: "https://www.example.com/docs",
 *         serverUrl: "https://wwww.example.com",
 *         title: "example title",
 *         version: "1.0",
 *     },
 *     cors: {
 *         credentialsAllowed: false,
 *         allowedHeaders: ["*"],
 *         allowedMethods: ["PUT"],
 *         allowedOrigins: ["example.com"],
 *         exposedHeaders: ["x-example-header"],
 *         maxAgeSeconds: 86400,
 *     },
 *     quota: {
 *         cpu: "1",
 *         memory: "2Gi",
 *     },
 *     sso: {
 *         clientId: "example id",
 *         clientSecret: "example secret",
 *         issuerUri: "https://www.test.com/issueToken",
 *         scopes: ["read"],
 *     },
 *     localResponseCachePerInstance: {
 *         size: "100MB",
 *         timeToLive: "30s",
 *     },
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_azure as azure
 * example = azure.core.ResourceGroup("example",
 *     name="example",
 *     location="West Europe")
 * example_spring_cloud_service = azure.appplatform.SpringCloudService("example",
 *     name="example",
 *     location=example.location,
 *     resource_group_name=example.name,
 *     sku_name="E0")
 * example_spring_cloud_gateway = azure.appplatform.SpringCloudGateway("example",
 *     name="default",
 *     spring_cloud_service_id=example_spring_cloud_service.id,
 *     https_only=False,
 *     public_network_access_enabled=True,
 *     instance_count=2,
 *     api_metadata=azure.appplatform.SpringCloudGatewayApiMetadataArgs(
 *         description="example description",
 *         documentation_url="https://www.example.com/docs",
 *         server_url="https://wwww.example.com",
 *         title="example title",
 *         version="1.0",
 *     ),
 *     cors=azure.appplatform.SpringCloudGatewayCorsArgs(
 *         credentials_allowed=False,
 *         allowed_headers=["*"],
 *         allowed_methods=["PUT"],
 *         allowed_origins=["example.com"],
 *         exposed_headers=["x-example-header"],
 *         max_age_seconds=86400,
 *     ),
 *     quota=azure.appplatform.SpringCloudGatewayQuotaArgs(
 *         cpu="1",
 *         memory="2Gi",
 *     ),
 *     sso=azure.appplatform.SpringCloudGatewaySsoArgs(
 *         client_id="example id",
 *         client_secret="example secret",
 *         issuer_uri="https://www.test.com/issueToken",
 *         scopes=["read"],
 *     ),
 *     local_response_cache_per_instance=azure.appplatform.SpringCloudGatewayLocalResponseCachePerInstanceArgs(
 *         size="100MB",
 *         time_to_live="30s",
 *     ))
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Azure = Pulumi.Azure;
 * return await Deployment.RunAsync(() =>
 * {
 *     var example = new Azure.Core.ResourceGroup("example", new()
 *     {
 *         Name = "example",
 *         Location = "West Europe",
 *     });
 *     var exampleSpringCloudService = new Azure.AppPlatform.SpringCloudService("example", new()
 *     {
 *         Name = "example",
 *         Location = example.Location,
 *         ResourceGroupName = example.Name,
 *         SkuName = "E0",
 *     });
 *     var exampleSpringCloudGateway = new Azure.AppPlatform.SpringCloudGateway("example", new()
 *     {
 *         Name = "default",
 *         SpringCloudServiceId = exampleSpringCloudService.Id,
 *         HttpsOnly = false,
 *         PublicNetworkAccessEnabled = true,
 *         InstanceCount = 2,
 *         ApiMetadata = new Azure.AppPlatform.Inputs.SpringCloudGatewayApiMetadataArgs
 *         {
 *             Description = "example description",
 *             DocumentationUrl = "https://www.example.com/docs",
 *             ServerUrl = "https://wwww.example.com",
 *             Title = "example title",
 *             Version = "1.0",
 *         },
 *         Cors = new Azure.AppPlatform.Inputs.SpringCloudGatewayCorsArgs
 *         {
 *             CredentialsAllowed = false,
 *             AllowedHeaders = new[]
 *             {
 *                 "*",
 *             },
 *             AllowedMethods = new[]
 *             {
 *                 "PUT",
 *             },
 *             AllowedOrigins = new[]
 *             {
 *                 "example.com",
 *             },
 *             ExposedHeaders = new[]
 *             {
 *                 "x-example-header",
 *             },
 *             MaxAgeSeconds = 86400,
 *         },
 *         Quota = new Azure.AppPlatform.Inputs.SpringCloudGatewayQuotaArgs
 *         {
 *             Cpu = "1",
 *             Memory = "2Gi",
 *         },
 *         Sso = new Azure.AppPlatform.Inputs.SpringCloudGatewaySsoArgs
 *         {
 *             ClientId = "example id",
 *             ClientSecret = "example secret",
 *             IssuerUri = "https://www.test.com/issueToken",
 *             Scopes = new[]
 *             {
 *                 "read",
 *             },
 *         },
 *         LocalResponseCachePerInstance = new Azure.AppPlatform.Inputs.SpringCloudGatewayLocalResponseCachePerInstanceArgs
 *         {
 *             Size = "100MB",
 *             TimeToLive = "30s",
 *         },
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/appplatform"
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
 * 			Name:     pulumi.String("example"),
 * 			Location: pulumi.String("West Europe"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		exampleSpringCloudService, err := appplatform.NewSpringCloudService(ctx, "example", &appplatform.SpringCloudServiceArgs{
 * 			Name:              pulumi.String("example"),
 * 			Location:          example.Location,
 * 			ResourceGroupName: example.Name,
 * 			SkuName:           pulumi.String("E0"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		_, err = appplatform.NewSpringCloudGateway(ctx, "example", &appplatform.SpringCloudGatewayArgs{
 * 			Name:                       pulumi.String("default"),
 * 			SpringCloudServiceId:       exampleSpringCloudService.ID(),
 * 			HttpsOnly:                  pulumi.Bool(false),
 * 			PublicNetworkAccessEnabled: pulumi.Bool(true),
 * 			InstanceCount:              pulumi.Int(2),
 * 			ApiMetadata: &appplatform.SpringCloudGatewayApiMetadataArgs{
 * 				Description:      pulumi.String("example description"),
 * 				DocumentationUrl: pulumi.String("https://www.example.com/docs"),
 * 				ServerUrl:        pulumi.String("https://wwww.example.com"),
 * 				Title:            pulumi.String("example title"),
 * 				Version:          pulumi.String("1.0"),
 * 			},
 * 			Cors: &appplatform.SpringCloudGatewayCorsArgs{
 * 				CredentialsAllowed: pulumi.Bool(false),
 * 				AllowedHeaders: pulumi.StringArray{
 * 					pulumi.String("*"),
 * 				},
 * 				AllowedMethods: pulumi.StringArray{
 * 					pulumi.String("PUT"),
 * 				},
 * 				AllowedOrigins: pulumi.StringArray{
 * 					pulumi.String("example.com"),
 * 				},
 * 				ExposedHeaders: pulumi.StringArray{
 * 					pulumi.String("x-example-header"),
 * 				},
 * 				MaxAgeSeconds: pulumi.Int(86400),
 * 			},
 * 			Quota: &appplatform.SpringCloudGatewayQuotaArgs{
 * 				Cpu:    pulumi.String("1"),
 * 				Memory: pulumi.String("2Gi"),
 * 			},
 * 			Sso: &appplatform.SpringCloudGatewaySsoArgs{
 * 				ClientId:     pulumi.String("example id"),
 * 				ClientSecret: pulumi.String("example secret"),
 * 				IssuerUri:    pulumi.String("https://www.test.com/issueToken"),
 * 				Scopes: pulumi.StringArray{
 * 					pulumi.String("read"),
 * 				},
 * 			},
 * 			LocalResponseCachePerInstance: &appplatform.SpringCloudGatewayLocalResponseCachePerInstanceArgs{
 * 				Size:       pulumi.String("100MB"),
 * 				TimeToLive: pulumi.String("30s"),
 * 			},
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		return nil
 * 	})
 * }
 * ```
 * ```java
 * package generated_program;
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azure.core.ResourceGroup;
 * import com.pulumi.azure.core.ResourceGroupArgs;
 * import com.pulumi.azure.appplatform.SpringCloudService;
 * import com.pulumi.azure.appplatform.SpringCloudServiceArgs;
 * import com.pulumi.azure.appplatform.SpringCloudGateway;
 * import com.pulumi.azure.appplatform.SpringCloudGatewayArgs;
 * import com.pulumi.azure.appplatform.inputs.SpringCloudGatewayApiMetadataArgs;
 * import com.pulumi.azure.appplatform.inputs.SpringCloudGatewayCorsArgs;
 * import com.pulumi.azure.appplatform.inputs.SpringCloudGatewayQuotaArgs;
 * import com.pulumi.azure.appplatform.inputs.SpringCloudGatewaySsoArgs;
 * import com.pulumi.azure.appplatform.inputs.SpringCloudGatewayLocalResponseCachePerInstanceArgs;
 * import java.util.List;
 * import java.util.ArrayList;
 * import java.util.Map;
 * import java.io.File;
 * import java.nio.file.Files;
 * import java.nio.file.Paths;
 * public class App {
 *     public static void main(String[] args) {
 *         Pulumi.run(App::stack);
 *     }
 *     public static void stack(Context ctx) {
 *         var example = new ResourceGroup("example", ResourceGroupArgs.builder()
 *             .name("example")
 *             .location("West Europe")
 *             .build());
 *         var exampleSpringCloudService = new SpringCloudService("exampleSpringCloudService", SpringCloudServiceArgs.builder()
 *             .name("example")
 *             .location(example.location())
 *             .resourceGroupName(example.name())
 *             .skuName("E0")
 *             .build());
 *         var exampleSpringCloudGateway = new SpringCloudGateway("exampleSpringCloudGateway", SpringCloudGatewayArgs.builder()
 *             .name("default")
 *             .springCloudServiceId(exampleSpringCloudService.id())
 *             .httpsOnly(false)
 *             .publicNetworkAccessEnabled(true)
 *             .instanceCount(2)
 *             .apiMetadata(SpringCloudGatewayApiMetadataArgs.builder()
 *                 .description("example description")
 *                 .documentationUrl("https://www.example.com/docs")
 *                 .serverUrl("https://wwww.example.com")
 *                 .title("example title")
 *                 .version("1.0")
 *                 .build())
 *             .cors(SpringCloudGatewayCorsArgs.builder()
 *                 .credentialsAllowed(false)
 *                 .allowedHeaders("*")
 *                 .allowedMethods("PUT")
 *                 .allowedOrigins("example.com")
 *                 .exposedHeaders("x-example-header")
 *                 .maxAgeSeconds(86400)
 *                 .build())
 *             .quota(SpringCloudGatewayQuotaArgs.builder()
 *                 .cpu("1")
 *                 .memory("2Gi")
 *                 .build())
 *             .sso(SpringCloudGatewaySsoArgs.builder()
 *                 .clientId("example id")
 *                 .clientSecret("example secret")
 *                 .issuerUri("https://www.test.com/issueToken")
 *                 .scopes("read")
 *                 .build())
 *             .localResponseCachePerInstance(SpringCloudGatewayLocalResponseCachePerInstanceArgs.builder()
 *                 .size("100MB")
 *                 .timeToLive("30s")
 *                 .build())
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   example:
 *     type: azure:core:ResourceGroup
 *     properties:
 *       name: example
 *       location: West Europe
 *   exampleSpringCloudService:
 *     type: azure:appplatform:SpringCloudService
 *     name: example
 *     properties:
 *       name: example
 *       location: ${example.location}
 *       resourceGroupName: ${example.name}
 *       skuName: E0
 *   exampleSpringCloudGateway:
 *     type: azure:appplatform:SpringCloudGateway
 *     name: example
 *     properties:
 *       name: default
 *       springCloudServiceId: ${exampleSpringCloudService.id}
 *       httpsOnly: false
 *       publicNetworkAccessEnabled: true
 *       instanceCount: 2
 *       apiMetadata:
 *         description: example description
 *         documentationUrl: https://www.example.com/docs
 *         serverUrl: https://wwww.example.com
 *         title: example title
 *         version: '1.0'
 *       cors:
 *         credentialsAllowed: false
 *         allowedHeaders:
 *           - '*'
 *         allowedMethods:
 *           - PUT
 *         allowedOrigins:
 *           - example.com
 *         exposedHeaders:
 *           - x-example-header
 *         maxAgeSeconds: 86400
 *       quota:
 *         cpu: '1'
 *         memory: 2Gi
 *       sso:
 *         clientId: example id
 *         clientSecret: example secret
 *         issuerUri: https://www.test.com/issueToken
 *         scopes:
 *           - read
 *       localResponseCachePerInstance:
 *         size: 100MB
 *         timeToLive: 30s
 * ```
 * 
 * ## Import
 * Spring Cloud Gateways can be imported using the `resource id`, e.g.
 * ```sh
 * $ pulumi import azure:appplatform/springCloudGateway:SpringCloudGateway example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resourceGroup1/providers/Microsoft.AppPlatform/spring/service1/gateways/gateway1
 * ```
 * @property apiMetadata A `api_metadata` block as defined below.
 * @property applicationPerformanceMonitoringIds Specifies a list of Spring Cloud Application Performance Monitoring IDs.
 * @property applicationPerformanceMonitoringTypes Specifies a list of application performance monitoring types used in the Spring Cloud Gateway. The allowed values are `AppDynamics`, `ApplicationInsights`, `Dynatrace`, `ElasticAPM` and `NewRelic`.
 * @property clientAuthorization A `client_authorization` block as defined below.
 * @property cors A `cors` block as defined below.
 * @property environmentVariables Specifies the environment variables of the Spring Cloud Gateway as a map of key-value pairs. Changing this forces a new resource to be created.
 * @property httpsOnly is only https is allowed?
 * @property instanceCount Specifies the required instance count of the Spring Cloud Gateway. Possible Values are between `1` and `500`. Defaults to `1` if not specified.
 * @property localResponseCachePerInstance A `local_response_cache_per_instance` block as defined below. Only one of `local_response_cache_per_instance` or `local_response_cache_per_route` can be specified.
 * @property localResponseCachePerRoute A `local_response_cache_per_route` block as defined below. Only one of `local_response_cache_per_instance` or `local_response_cache_per_route` can be specified.
 * @property name The name which should be used for this Spring Cloud Gateway. Changing this forces a new Spring Cloud Gateway to be created. The only possible value is `default`.
 * @property publicNetworkAccessEnabled Indicates whether the Spring Cloud Gateway exposes endpoint.
 * @property quota A `quota` block as defined below.
 * @property sensitiveEnvironmentVariables Specifies the sensitive environment variables of the Spring Cloud Gateway as a map of key-value pairs. Changing this forces a new resource to be created.
 * @property springCloudServiceId The ID of the Spring Cloud Service. Changing this forces a new Spring Cloud Gateway to be created.
 * @property sso A `sso` block as defined below.
 */
public data class SpringCloudGatewayArgs(
    public val apiMetadata: Output? = null,
    public val applicationPerformanceMonitoringIds: Output>? = null,
    public val applicationPerformanceMonitoringTypes: Output>? = null,
    public val clientAuthorization: Output? = null,
    public val cors: Output? = null,
    public val environmentVariables: Output>? = null,
    public val httpsOnly: Output? = null,
    public val instanceCount: Output? = null,
    public val localResponseCachePerInstance:
    Output? = null,
    public val localResponseCachePerRoute: Output? =
        null,
    public val name: Output? = null,
    public val publicNetworkAccessEnabled: Output? = null,
    public val quota: Output? = null,
    public val sensitiveEnvironmentVariables: Output>? = null,
    public val springCloudServiceId: Output? = null,
    public val sso: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.appplatform.SpringCloudGatewayArgs =
        com.pulumi.azure.appplatform.SpringCloudGatewayArgs.builder()
            .apiMetadata(apiMetadata?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .applicationPerformanceMonitoringIds(
                applicationPerformanceMonitoringIds?.applyValue({ args0 ->
                    args0.map({ args0 -> args0 })
                }),
            )
            .applicationPerformanceMonitoringTypes(
                applicationPerformanceMonitoringTypes?.applyValue({ args0 ->
                    args0.map({ args0 -> args0 })
                }),
            )
            .clientAuthorization(
                clientAuthorization?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .cors(cors?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .environmentVariables(
                environmentVariables?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            )
            .httpsOnly(httpsOnly?.applyValue({ args0 -> args0 }))
            .instanceCount(instanceCount?.applyValue({ args0 -> args0 }))
            .localResponseCachePerInstance(
                localResponseCachePerInstance?.applyValue({ args0 ->
                    args0.let({ args0 -> args0.toJava() })
                }),
            )
            .localResponseCachePerRoute(
                localResponseCachePerRoute?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .name(name?.applyValue({ args0 -> args0 }))
            .publicNetworkAccessEnabled(publicNetworkAccessEnabled?.applyValue({ args0 -> args0 }))
            .quota(quota?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .sensitiveEnvironmentVariables(
                sensitiveEnvironmentVariables?.applyValue({ args0 ->
                    args0.map({ args0 -> args0.key.to(args0.value) }).toMap()
                }),
            )
            .springCloudServiceId(springCloudServiceId?.applyValue({ args0 -> args0 }))
            .sso(sso?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [SpringCloudGatewayArgs].
 */
@PulumiTagMarker
public class SpringCloudGatewayArgsBuilder internal constructor() {
    private var apiMetadata: Output? = null

    private var applicationPerformanceMonitoringIds: Output>? = null

    private var applicationPerformanceMonitoringTypes: Output>? = null

    private var clientAuthorization: Output? = null

    private var cors: Output? = null

    private var environmentVariables: Output>? = null

    private var httpsOnly: Output? = null

    private var instanceCount: Output? = null

    private var localResponseCachePerInstance:
        Output? = null

    private var localResponseCachePerRoute: Output? =
        null

    private var name: Output? = null

    private var publicNetworkAccessEnabled: Output? = null

    private var quota: Output? = null

    private var sensitiveEnvironmentVariables: Output>? = null

    private var springCloudServiceId: Output? = null

    private var sso: Output? = null

    /**
     * @param value A `api_metadata` block as defined below.
     */
    @JvmName("lqmhyugfahexcaka")
    public suspend fun apiMetadata(`value`: Output) {
        this.apiMetadata = value
    }

    /**
     * @param value Specifies a list of Spring Cloud Application Performance Monitoring IDs.
     */
    @JvmName("ndicavcmsxjnajjl")
    public suspend fun applicationPerformanceMonitoringIds(`value`: Output>) {
        this.applicationPerformanceMonitoringIds = value
    }

    @JvmName("srihobdhbmiaicds")
    public suspend fun applicationPerformanceMonitoringIds(vararg values: Output) {
        this.applicationPerformanceMonitoringIds = Output.all(values.asList())
    }

    /**
     * @param values Specifies a list of Spring Cloud Application Performance Monitoring IDs.
     */
    @JvmName("iibfiuohcpayvfau")
    public suspend fun applicationPerformanceMonitoringIds(values: List>) {
        this.applicationPerformanceMonitoringIds = Output.all(values)
    }

    /**
     * @param value Specifies a list of application performance monitoring types used in the Spring Cloud Gateway. The allowed values are `AppDynamics`, `ApplicationInsights`, `Dynatrace`, `ElasticAPM` and `NewRelic`.
     */
    @JvmName("hnajcbmhpfpbbyqd")
    public suspend fun applicationPerformanceMonitoringTypes(`value`: Output>) {
        this.applicationPerformanceMonitoringTypes = value
    }

    @JvmName("muyffixkuvemhdig")
    public suspend fun applicationPerformanceMonitoringTypes(vararg values: Output) {
        this.applicationPerformanceMonitoringTypes = Output.all(values.asList())
    }

    /**
     * @param values Specifies a list of application performance monitoring types used in the Spring Cloud Gateway. The allowed values are `AppDynamics`, `ApplicationInsights`, `Dynatrace`, `ElasticAPM` and `NewRelic`.
     */
    @JvmName("wctrfvrgqlcvlkbg")
    public suspend fun applicationPerformanceMonitoringTypes(values: List>) {
        this.applicationPerformanceMonitoringTypes = Output.all(values)
    }

    /**
     * @param value A `client_authorization` block as defined below.
     */
    @JvmName("hljpvposfilqetgx")
    public suspend
    fun clientAuthorization(`value`: Output) {
        this.clientAuthorization = value
    }

    /**
     * @param value A `cors` block as defined below.
     */
    @JvmName("vukbbxfsrwildeur")
    public suspend fun cors(`value`: Output) {
        this.cors = value
    }

    /**
     * @param value Specifies the environment variables of the Spring Cloud Gateway as a map of key-value pairs. Changing this forces a new resource to be created.
     */
    @JvmName("fuwpluiotbjgcnhj")
    public suspend fun environmentVariables(`value`: Output>) {
        this.environmentVariables = value
    }

    /**
     * @param value is only https is allowed?
     */
    @JvmName("ubatnbcaadyecayg")
    public suspend fun httpsOnly(`value`: Output) {
        this.httpsOnly = value
    }

    /**
     * @param value Specifies the required instance count of the Spring Cloud Gateway. Possible Values are between `1` and `500`. Defaults to `1` if not specified.
     */
    @JvmName("mbqojbypfvwllxcp")
    public suspend fun instanceCount(`value`: Output) {
        this.instanceCount = value
    }

    /**
     * @param value A `local_response_cache_per_instance` block as defined below. Only one of `local_response_cache_per_instance` or `local_response_cache_per_route` can be specified.
     */
    @JvmName("blwbjfelibsbuniv")
    public suspend
    fun localResponseCachePerInstance(`value`: Output) {
        this.localResponseCachePerInstance = value
    }

    /**
     * @param value A `local_response_cache_per_route` block as defined below. Only one of `local_response_cache_per_instance` or `local_response_cache_per_route` can be specified.
     */
    @JvmName("vtughxwwfxcxvjqd")
    public suspend
    fun localResponseCachePerRoute(`value`: Output) {
        this.localResponseCachePerRoute = value
    }

    /**
     * @param value The name which should be used for this Spring Cloud Gateway. Changing this forces a new Spring Cloud Gateway to be created. The only possible value is `default`.
     */
    @JvmName("coosnglkbhvlyaxb")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value Indicates whether the Spring Cloud Gateway exposes endpoint.
     */
    @JvmName("duayssoioatnlshm")
    public suspend fun publicNetworkAccessEnabled(`value`: Output) {
        this.publicNetworkAccessEnabled = value
    }

    /**
     * @param value A `quota` block as defined below.
     */
    @JvmName("eqfoqbuggdetcimv")
    public suspend fun quota(`value`: Output) {
        this.quota = value
    }

    /**
     * @param value Specifies the sensitive environment variables of the Spring Cloud Gateway as a map of key-value pairs. Changing this forces a new resource to be created.
     */
    @JvmName("bapmwmuhhwbvlcok")
    public suspend fun sensitiveEnvironmentVariables(`value`: Output>) {
        this.sensitiveEnvironmentVariables = value
    }

    /**
     * @param value The ID of the Spring Cloud Service. Changing this forces a new Spring Cloud Gateway to be created.
     */
    @JvmName("afqhsavpclxdjdvm")
    public suspend fun springCloudServiceId(`value`: Output) {
        this.springCloudServiceId = value
    }

    /**
     * @param value A `sso` block as defined below.
     */
    @JvmName("spfextkjqirscuxt")
    public suspend fun sso(`value`: Output) {
        this.sso = value
    }

    /**
     * @param value A `api_metadata` block as defined below.
     */
    @JvmName("weigbmisiclvmeou")
    public suspend fun apiMetadata(`value`: SpringCloudGatewayApiMetadataArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.apiMetadata = mapped
    }

    /**
     * @param argument A `api_metadata` block as defined below.
     */
    @JvmName("gxvyyhynowddaypo")
    public suspend
    fun apiMetadata(argument: suspend SpringCloudGatewayApiMetadataArgsBuilder.() -> Unit) {
        val toBeMapped = SpringCloudGatewayApiMetadataArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.apiMetadata = mapped
    }

    /**
     * @param value Specifies a list of Spring Cloud Application Performance Monitoring IDs.
     */
    @JvmName("clerymbsflebfsmr")
    public suspend fun applicationPerformanceMonitoringIds(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.applicationPerformanceMonitoringIds = mapped
    }

    /**
     * @param values Specifies a list of Spring Cloud Application Performance Monitoring IDs.
     */
    @JvmName("sspgtwwbptsfncrw")
    public suspend fun applicationPerformanceMonitoringIds(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.applicationPerformanceMonitoringIds = mapped
    }

    /**
     * @param value Specifies a list of application performance monitoring types used in the Spring Cloud Gateway. The allowed values are `AppDynamics`, `ApplicationInsights`, `Dynatrace`, `ElasticAPM` and `NewRelic`.
     */
    @JvmName("cqyluqmqjkvnbqeg")
    public suspend fun applicationPerformanceMonitoringTypes(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.applicationPerformanceMonitoringTypes = mapped
    }

    /**
     * @param values Specifies a list of application performance monitoring types used in the Spring Cloud Gateway. The allowed values are `AppDynamics`, `ApplicationInsights`, `Dynatrace`, `ElasticAPM` and `NewRelic`.
     */
    @JvmName("mxokkkijetkuelcd")
    public suspend fun applicationPerformanceMonitoringTypes(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.applicationPerformanceMonitoringTypes = mapped
    }

    /**
     * @param value A `client_authorization` block as defined below.
     */
    @JvmName("exhmaenqyaetpuik")
    public suspend fun clientAuthorization(`value`: SpringCloudGatewayClientAuthorizationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.clientAuthorization = mapped
    }

    /**
     * @param argument A `client_authorization` block as defined below.
     */
    @JvmName("veoflwshulvjfxww")
    public suspend
    fun clientAuthorization(argument: suspend SpringCloudGatewayClientAuthorizationArgsBuilder.() -> Unit) {
        val toBeMapped = SpringCloudGatewayClientAuthorizationArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.clientAuthorization = mapped
    }

    /**
     * @param value A `cors` block as defined below.
     */
    @JvmName("ugdocxcslsipehpm")
    public suspend fun cors(`value`: SpringCloudGatewayCorsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.cors = mapped
    }

    /**
     * @param argument A `cors` block as defined below.
     */
    @JvmName("usinbmunvcxwbgbv")
    public suspend fun cors(argument: suspend SpringCloudGatewayCorsArgsBuilder.() -> Unit) {
        val toBeMapped = SpringCloudGatewayCorsArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.cors = mapped
    }

    /**
     * @param value Specifies the environment variables of the Spring Cloud Gateway as a map of key-value pairs. Changing this forces a new resource to be created.
     */
    @JvmName("tcaaaamheecysjwv")
    public suspend fun environmentVariables(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.environmentVariables = mapped
    }

    /**
     * @param values Specifies the environment variables of the Spring Cloud Gateway as a map of key-value pairs. Changing this forces a new resource to be created.
     */
    @JvmName("akvekqinvnjftsbb")
    public fun environmentVariables(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.environmentVariables = mapped
    }

    /**
     * @param value is only https is allowed?
     */
    @JvmName("fkbueayxccgaqqoj")
    public suspend fun httpsOnly(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.httpsOnly = mapped
    }

    /**
     * @param value Specifies the required instance count of the Spring Cloud Gateway. Possible Values are between `1` and `500`. Defaults to `1` if not specified.
     */
    @JvmName("xnterybfijkappcu")
    public suspend fun instanceCount(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.instanceCount = mapped
    }

    /**
     * @param value A `local_response_cache_per_instance` block as defined below. Only one of `local_response_cache_per_instance` or `local_response_cache_per_route` can be specified.
     */
    @JvmName("tvcoubmakiuccwia")
    public suspend
    fun localResponseCachePerInstance(`value`: SpringCloudGatewayLocalResponseCachePerInstanceArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.localResponseCachePerInstance = mapped
    }

    /**
     * @param argument A `local_response_cache_per_instance` block as defined below. Only one of `local_response_cache_per_instance` or `local_response_cache_per_route` can be specified.
     */
    @JvmName("vbveellcqlyxtnhy")
    public suspend
    fun localResponseCachePerInstance(argument: suspend SpringCloudGatewayLocalResponseCachePerInstanceArgsBuilder.() -> Unit) {
        val toBeMapped = SpringCloudGatewayLocalResponseCachePerInstanceArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.localResponseCachePerInstance = mapped
    }

    /**
     * @param value A `local_response_cache_per_route` block as defined below. Only one of `local_response_cache_per_instance` or `local_response_cache_per_route` can be specified.
     */
    @JvmName("pxvgiuwxdofycegy")
    public suspend
    fun localResponseCachePerRoute(`value`: SpringCloudGatewayLocalResponseCachePerRouteArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.localResponseCachePerRoute = mapped
    }

    /**
     * @param argument A `local_response_cache_per_route` block as defined below. Only one of `local_response_cache_per_instance` or `local_response_cache_per_route` can be specified.
     */
    @JvmName("lakvhqimrcpcabuc")
    public suspend
    fun localResponseCachePerRoute(argument: suspend SpringCloudGatewayLocalResponseCachePerRouteArgsBuilder.() -> Unit) {
        val toBeMapped = SpringCloudGatewayLocalResponseCachePerRouteArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.localResponseCachePerRoute = mapped
    }

    /**
     * @param value The name which should be used for this Spring Cloud Gateway. Changing this forces a new Spring Cloud Gateway to be created. The only possible value is `default`.
     */
    @JvmName("tacvoqottytsfdlf")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value Indicates whether the Spring Cloud Gateway exposes endpoint.
     */
    @JvmName("kwuhtccibkwonrxk")
    public suspend fun publicNetworkAccessEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.publicNetworkAccessEnabled = mapped
    }

    /**
     * @param value A `quota` block as defined below.
     */
    @JvmName("kgtwwbfyextbdkrk")
    public suspend fun quota(`value`: SpringCloudGatewayQuotaArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.quota = mapped
    }

    /**
     * @param argument A `quota` block as defined below.
     */
    @JvmName("nqapwrluvlauydxv")
    public suspend fun quota(argument: suspend SpringCloudGatewayQuotaArgsBuilder.() -> Unit) {
        val toBeMapped = SpringCloudGatewayQuotaArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.quota = mapped
    }

    /**
     * @param value Specifies the sensitive environment variables of the Spring Cloud Gateway as a map of key-value pairs. Changing this forces a new resource to be created.
     */
    @JvmName("elddndqvrthsletk")
    public suspend fun sensitiveEnvironmentVariables(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sensitiveEnvironmentVariables = mapped
    }

    /**
     * @param values Specifies the sensitive environment variables of the Spring Cloud Gateway as a map of key-value pairs. Changing this forces a new resource to be created.
     */
    @JvmName("jyrvkwrsskqdrskx")
    public fun sensitiveEnvironmentVariables(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.sensitiveEnvironmentVariables = mapped
    }

    /**
     * @param value The ID of the Spring Cloud Service. Changing this forces a new Spring Cloud Gateway to be created.
     */
    @JvmName("gqtejehcqwnunfxs")
    public suspend fun springCloudServiceId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.springCloudServiceId = mapped
    }

    /**
     * @param value A `sso` block as defined below.
     */
    @JvmName("juwxjtwsvfanoqcj")
    public suspend fun sso(`value`: SpringCloudGatewaySsoArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sso = mapped
    }

    /**
     * @param argument A `sso` block as defined below.
     */
    @JvmName("uksabgocwpimnsnn")
    public suspend fun sso(argument: suspend SpringCloudGatewaySsoArgsBuilder.() -> Unit) {
        val toBeMapped = SpringCloudGatewaySsoArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.sso = mapped
    }

    internal fun build(): SpringCloudGatewayArgs = SpringCloudGatewayArgs(
        apiMetadata = apiMetadata,
        applicationPerformanceMonitoringIds = applicationPerformanceMonitoringIds,
        applicationPerformanceMonitoringTypes = applicationPerformanceMonitoringTypes,
        clientAuthorization = clientAuthorization,
        cors = cors,
        environmentVariables = environmentVariables,
        httpsOnly = httpsOnly,
        instanceCount = instanceCount,
        localResponseCachePerInstance = localResponseCachePerInstance,
        localResponseCachePerRoute = localResponseCachePerRoute,
        name = name,
        publicNetworkAccessEnabled = publicNetworkAccessEnabled,
        quota = quota,
        sensitiveEnvironmentVariables = sensitiveEnvironmentVariables,
        springCloudServiceId = springCloudServiceId,
        sso = sso,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy