Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
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.apimanagement.kotlin
import com.pulumi.azure.apimanagement.ServiceArgs.builder
import com.pulumi.azure.apimanagement.kotlin.inputs.ServiceAdditionalLocationArgs
import com.pulumi.azure.apimanagement.kotlin.inputs.ServiceAdditionalLocationArgsBuilder
import com.pulumi.azure.apimanagement.kotlin.inputs.ServiceCertificateArgs
import com.pulumi.azure.apimanagement.kotlin.inputs.ServiceCertificateArgsBuilder
import com.pulumi.azure.apimanagement.kotlin.inputs.ServiceDelegationArgs
import com.pulumi.azure.apimanagement.kotlin.inputs.ServiceDelegationArgsBuilder
import com.pulumi.azure.apimanagement.kotlin.inputs.ServiceHostnameConfigurationArgs
import com.pulumi.azure.apimanagement.kotlin.inputs.ServiceHostnameConfigurationArgsBuilder
import com.pulumi.azure.apimanagement.kotlin.inputs.ServiceIdentityArgs
import com.pulumi.azure.apimanagement.kotlin.inputs.ServiceIdentityArgsBuilder
import com.pulumi.azure.apimanagement.kotlin.inputs.ServicePolicyArgs
import com.pulumi.azure.apimanagement.kotlin.inputs.ServicePolicyArgsBuilder
import com.pulumi.azure.apimanagement.kotlin.inputs.ServiceProtocolsArgs
import com.pulumi.azure.apimanagement.kotlin.inputs.ServiceProtocolsArgsBuilder
import com.pulumi.azure.apimanagement.kotlin.inputs.ServiceSecurityArgs
import com.pulumi.azure.apimanagement.kotlin.inputs.ServiceSecurityArgsBuilder
import com.pulumi.azure.apimanagement.kotlin.inputs.ServiceSignInArgs
import com.pulumi.azure.apimanagement.kotlin.inputs.ServiceSignInArgsBuilder
import com.pulumi.azure.apimanagement.kotlin.inputs.ServiceSignUpArgs
import com.pulumi.azure.apimanagement.kotlin.inputs.ServiceSignUpArgsBuilder
import com.pulumi.azure.apimanagement.kotlin.inputs.ServiceTenantAccessArgs
import com.pulumi.azure.apimanagement.kotlin.inputs.ServiceTenantAccessArgsBuilder
import com.pulumi.azure.apimanagement.kotlin.inputs.ServiceVirtualNetworkConfigurationArgs
import com.pulumi.azure.apimanagement.kotlin.inputs.ServiceVirtualNetworkConfigurationArgsBuilder
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.Deprecated
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName
/**
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as azure from "@pulumi/azure";
* const example = new azure.core.ResourceGroup("example", {
* name: "example-resources",
* location: "West Europe",
* });
* const exampleService = new azure.apimanagement.Service("example", {
* name: "example-apim",
* location: example.location,
* resourceGroupName: example.name,
* publisherName: "My Company",
* publisherEmail: "[email protected]",
* skuName: "Developer_1",
* });
* ```
* ```python
* import pulumi
* import pulumi_azure as azure
* example = azure.core.ResourceGroup("example",
* name="example-resources",
* location="West Europe")
* example_service = azure.apimanagement.Service("example",
* name="example-apim",
* location=example.location,
* resource_group_name=example.name,
* publisher_name="My Company",
* publisher_email="[email protected]",
* sku_name="Developer_1")
* ```
* ```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-resources",
* Location = "West Europe",
* });
* var exampleService = new Azure.ApiManagement.Service("example", new()
* {
* Name = "example-apim",
* Location = example.Location,
* ResourceGroupName = example.Name,
* PublisherName = "My Company",
* PublisherEmail = "[email protected]",
* SkuName = "Developer_1",
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/apimanagement"
* "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-resources"),
* Location: pulumi.String("West Europe"),
* })
* if err != nil {
* return err
* }
* _, err = apimanagement.NewService(ctx, "example", &apimanagement.ServiceArgs{
* Name: pulumi.String("example-apim"),
* Location: example.Location,
* ResourceGroupName: example.Name,
* PublisherName: pulumi.String("My Company"),
* PublisherEmail: pulumi.String("[email protected]"),
* SkuName: pulumi.String("Developer_1"),
* })
* 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.apimanagement.Service;
* import com.pulumi.azure.apimanagement.ServiceArgs;
* 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-resources")
* .location("West Europe")
* .build());
* var exampleService = new Service("exampleService", ServiceArgs.builder()
* .name("example-apim")
* .location(example.location())
* .resourceGroupName(example.name())
* .publisherName("My Company")
* .publisherEmail("[email protected]")
* .skuName("Developer_1")
* .build());
* }
* }
* ```
* ```yaml
* resources:
* example:
* type: azure:core:ResourceGroup
* properties:
* name: example-resources
* location: West Europe
* exampleService:
* type: azure:apimanagement:Service
* name: example
* properties:
* name: example-apim
* location: ${example.location}
* resourceGroupName: ${example.name}
* publisherName: My Company
* publisherEmail: [email protected]
* skuName: Developer_1
* ```
*
* ## Import
* API Management Services can be imported using the `resource id`, e.g.
* ```sh
* $ pulumi import azure:apimanagement/service:Service example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.ApiManagement/service/instance1
* ```
* @property additionalLocations One or more `additional_location` blocks as defined below.
* @property certificates One or more `certificate` blocks (up to 10) as defined below.
* @property clientCertificateEnabled Enforce a client certificate to be presented on each request to the gateway? This is only supported when SKU type is `Consumption`.
* @property delegation A `delegation` block as defined below.
* @property gatewayDisabled Disable the gateway in main region? This is only supported when `additional_location` is set.
* @property hostnameConfiguration A `hostname_configuration` block as defined below.
* @property identity An `identity` block as defined below.
* @property location The Azure location where the API Management Service exists. Changing this forces a new resource to be created.
* @property minApiVersion The version which the control plane API calls to API Management service are limited with version equal to or newer than.
* @property name The name of the API Management Service. Changing this forces a new resource to be created.
* @property notificationSenderEmail Email address from which the notification will be sent.
* @property policy
* @property protocols A `protocols` block as defined below.
* @property publicIpAddressId ID of a standard SKU IPv4 Public IP.
* > **NOTE:** Custom public IPs are only supported on the `Premium` and `Developer` tiers when deployed in a virtual network.
* @property publicNetworkAccessEnabled Is public access to the service allowed? Defaults to `true`.
* > **NOTE:** This option is applicable only to the Management plane, not the API gateway or Developer portal. It is required to be `true` on the creation.
* @property publisherEmail The email of publisher/company.
* @property publisherName The name of publisher/company.
* @property resourceGroupName The name of the Resource Group in which the API Management Service should be exist. Changing this forces a new resource to be created.
* @property security A `security` block as defined below.
* @property signIn A `sign_in` block as defined below.
* @property signUp A `sign_up` block as defined below.
* @property skuName `sku_name` is a string consisting of two parts separated by an underscore(\_). The first part is the `name`, valid values include: `Consumption`, `Developer`, `Basic`, `Standard` and `Premium`. The second part is the `capacity` (e.g. the number of deployed units of the `sku`), which must be a positive `integer` (e.g. `Developer_1`).
* > **NOTE:** Premium SKU's are limited to a default maximum of 12 (i.e. `Premium_12`), this can, however, be increased via support request.
* > **NOTE:** Consumption SKU capacity should be 0 (e.g. `Consumption_0`) as this tier includes automatic scaling.
* @property tags A mapping of tags assigned to the resource.
* @property tenantAccess A `tenant_access` block as defined below.
* @property virtualNetworkConfiguration A `virtual_network_configuration` block as defined below. Required when `virtual_network_type` is `External` or `Internal`.
* @property virtualNetworkType The type of virtual network you want to use, valid values include: `None`, `External`, `Internal`. Defaults to `None`.
* > **NOTE:** Please ensure that in the subnet, inbound port 3443 is open when `virtual_network_type` is `Internal` or `External`. And please ensure other necessary ports are open according to [api management network configuration](https://learn.microsoft.com/azure/api-management/virtual-network-reference).
* @property zones Specifies a list of Availability Zones in which this API Management service should be located.
* > **NOTE:** Availability zones are only supported in the Premium tier.
*/
public data class ServiceArgs(
public val additionalLocations: Output>? = null,
public val certificates: Output>? = null,
public val clientCertificateEnabled: Output? = null,
public val delegation: Output? = null,
public val gatewayDisabled: Output? = null,
public val hostnameConfiguration: Output? = null,
public val identity: Output? = null,
public val location: Output? = null,
public val minApiVersion: Output? = null,
public val name: Output? = null,
public val notificationSenderEmail: Output? = null,
@Deprecated(
message = """
The `policy` block has been superseded by the resource `azure.apimanagement.Policy` and will be
removed in v4.0 of the AzureRM Provider
""",
)
public val policy: Output? = null,
public val protocols: Output? = null,
public val publicIpAddressId: Output? = null,
public val publicNetworkAccessEnabled: Output? = null,
public val publisherEmail: Output? = null,
public val publisherName: Output? = null,
public val resourceGroupName: Output? = null,
public val security: Output? = null,
public val signIn: Output? = null,
public val signUp: Output? = null,
public val skuName: Output? = null,
public val tags: Output