SpringCloudGatewayArgs

data class SpringCloudGatewayArgs(val apiMetadata: Output<SpringCloudGatewayApiMetadataArgs>? = null, val applicationPerformanceMonitoringTypes: Output<List<String>>? = null, val clientAuthorization: Output<SpringCloudGatewayClientAuthorizationArgs>? = null, val cors: Output<SpringCloudGatewayCorsArgs>? = null, val environmentVariables: Output<Map<String, String>>? = null, val httpsOnly: Output<Boolean>? = null, val instanceCount: Output<Int>? = null, val name: Output<String>? = null, val publicNetworkAccessEnabled: Output<Boolean>? = null, val quota: Output<SpringCloudGatewayQuotaArgs>? = null, val sensitiveEnvironmentVariables: Output<Map<String, String>>? = null, val springCloudServiceId: Output<String>? = null, val sso: Output<SpringCloudGatewaySsoArgs>? = null) : ConvertibleToJava<SpringCloudGatewayArgs>

NOTE: This resource is applicable only for Spring Cloud Service with enterprise tier. Manages a Spring Cloud Gateway.

Example Usage

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 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 exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
.location("West Europe")
.build());
var exampleSpringCloudService = new SpringCloudService("exampleSpringCloudService", SpringCloudServiceArgs.builder()
.location(exampleResourceGroup.location())
.resourceGroupName(exampleResourceGroup.name())
.skuName("E0")
.build());
var exampleSpringCloudGateway = new SpringCloudGateway("exampleSpringCloudGateway", SpringCloudGatewayArgs.builder()
.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())
.build());
}
}

Import

Spring Cloud Gateways can be imported using the resource id, e.g.

$ pulumi import azure:appplatform/springCloudGateway:SpringCloudGateway example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resourceGroup1/providers/Microsoft.AppPlatform/spring/service1/gateways/gateway1

Constructors

Link copied to clipboard
fun SpringCloudGatewayArgs(apiMetadata: Output<SpringCloudGatewayApiMetadataArgs>? = null, applicationPerformanceMonitoringTypes: Output<List<String>>? = null, clientAuthorization: Output<SpringCloudGatewayClientAuthorizationArgs>? = null, cors: Output<SpringCloudGatewayCorsArgs>? = null, environmentVariables: Output<Map<String, String>>? = null, httpsOnly: Output<Boolean>? = null, instanceCount: Output<Int>? = null, name: Output<String>? = null, publicNetworkAccessEnabled: Output<Boolean>? = null, quota: Output<SpringCloudGatewayQuotaArgs>? = null, sensitiveEnvironmentVariables: Output<Map<String, String>>? = null, springCloudServiceId: Output<String>? = null, sso: Output<SpringCloudGatewaySsoArgs>? = null)

Functions

Link copied to clipboard
open override fun toJava(): SpringCloudGatewayArgs

Properties

Link copied to clipboard

A api_metadata block as defined below.

Link copied to clipboard

Specifies a list of application performance monitoring types used in the Spring Cloud Gateway. The allowed values are AppDynamics, ApplicationInsights, Dynatrace, ElasticAPM and NewRelic.

Link copied to clipboard

A client_authorization block as defined below.

Link copied to clipboard
val cors: Output<SpringCloudGatewayCorsArgs>? = null

A cors block as defined below.

Link copied to clipboard
val environmentVariables: Output<Map<String, String>>? = null

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.

Link copied to clipboard
val httpsOnly: Output<Boolean>? = null

is only https is allowed?

Link copied to clipboard
val instanceCount: Output<Int>? = null

Specifies the required instance count of the Spring Cloud Gateway. Possible Values are between 1 and 500. Defaults to 1 if not specified.

Link copied to clipboard
val name: Output<String>? = null

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.

Link copied to clipboard
val publicNetworkAccessEnabled: Output<Boolean>? = null

Indicates whether the Spring Cloud Gateway exposes endpoint.

Link copied to clipboard
val quota: Output<SpringCloudGatewayQuotaArgs>? = null

A quota block as defined below.

Link copied to clipboard

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.

Link copied to clipboard
val springCloudServiceId: Output<String>? = null

The ID of the Spring Cloud Service. Changing this forces a new Spring Cloud Gateway to be created.

Link copied to clipboard
val sso: Output<SpringCloudGatewaySsoArgs>? = null

A sso block as defined below.