com.pulumi.azure.appplatform.kotlin.SpringCloudGatewayArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-kotlin Show documentation
Show all versions of pulumi-azure-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@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
© 2015 - 2025 Weber Informatics LLC | Privacy Policy