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.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.apimanagement.kotlin
import com.pulumi.azurenative.apimanagement.ProductApiLinkArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Product-API link details.
* Azure REST API version: 2022-09-01-preview.
* Other available API versions: 2023-03-01-preview, 2023-05-01-preview, 2023-09-01-preview, 2024-05-01.
* ## Example Usage
* ### ApiManagementCreateProductApiLink
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var productApiLink = new AzureNative.ApiManagement.ProductApiLink("productApiLink", new()
* {
* ApiId = "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/apis/echo-api",
* ApiLinkId = "link1",
* ProductId = "testproduct",
* ResourceGroupName = "rg1",
* ServiceName = "apimService1",
* });
* });
* ```
* ```go
* package main
* import (
* apimanagement "github.com/pulumi/pulumi-azure-native-sdk/apimanagement/v2"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := apimanagement.NewProductApiLink(ctx, "productApiLink", &apimanagement.ProductApiLinkArgs{
* ApiId: pulumi.String("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/apis/echo-api"),
* ApiLinkId: pulumi.String("link1"),
* ProductId: pulumi.String("testproduct"),
* ResourceGroupName: pulumi.String("rg1"),
* ServiceName: pulumi.String("apimService1"),
* })
* 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.azurenative.apimanagement.ProductApiLink;
* import com.pulumi.azurenative.apimanagement.ProductApiLinkArgs;
* 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 productApiLink = new ProductApiLink("productApiLink", ProductApiLinkArgs.builder()
* .apiId("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/apis/echo-api")
* .apiLinkId("link1")
* .productId("testproduct")
* .resourceGroupName("rg1")
* .serviceName("apimService1")
* .build());
* }
* }
* ```
* ## Import
* An existing resource can be imported using its type token, name, and identifier, e.g.
* ```sh
* $ pulumi import azure-native:apimanagement:ProductApiLink link1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/apiLinks/{apiLinkId}
* ```
* @property apiId Full resource Id of an API.
* @property apiLinkId Product-API link identifier. Must be unique in the current API Management service instance.
* @property productId Product identifier. Must be unique in the current API Management service instance.
* @property resourceGroupName The name of the resource group. The name is case insensitive.
* @property serviceName The name of the API Management service.
*/
public data class ProductApiLinkArgs(
public val apiId: Output? = null,
public val apiLinkId: Output? = null,
public val productId: Output? = null,
public val resourceGroupName: Output? = null,
public val serviceName: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.apimanagement.ProductApiLinkArgs =
com.pulumi.azurenative.apimanagement.ProductApiLinkArgs.builder()
.apiId(apiId?.applyValue({ args0 -> args0 }))
.apiLinkId(apiLinkId?.applyValue({ args0 -> args0 }))
.productId(productId?.applyValue({ args0 -> args0 }))
.resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
.serviceName(serviceName?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ProductApiLinkArgs].
*/
@PulumiTagMarker
public class ProductApiLinkArgsBuilder internal constructor() {
private var apiId: Output? = null
private var apiLinkId: Output? = null
private var productId: Output? = null
private var resourceGroupName: Output? = null
private var serviceName: Output? = null
/**
* @param value Full resource Id of an API.
*/
@JvmName("qqixyewvquadqpyn")
public suspend fun apiId(`value`: Output) {
this.apiId = value
}
/**
* @param value Product-API link identifier. Must be unique in the current API Management service instance.
*/
@JvmName("obnfmjfouaqpbbdd")
public suspend fun apiLinkId(`value`: Output) {
this.apiLinkId = value
}
/**
* @param value Product identifier. Must be unique in the current API Management service instance.
*/
@JvmName("mqlmoppdpueeqbht")
public suspend fun productId(`value`: Output) {
this.productId = value
}
/**
* @param value The name of the resource group. The name is case insensitive.
*/
@JvmName("metixorrxoxrlfyv")
public suspend fun resourceGroupName(`value`: Output) {
this.resourceGroupName = value
}
/**
* @param value The name of the API Management service.
*/
@JvmName("igevhyhluhsratkc")
public suspend fun serviceName(`value`: Output) {
this.serviceName = value
}
/**
* @param value Full resource Id of an API.
*/
@JvmName("njetodrjpluoisxm")
public suspend fun apiId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.apiId = mapped
}
/**
* @param value Product-API link identifier. Must be unique in the current API Management service instance.
*/
@JvmName("rxjepiopxuypsigg")
public suspend fun apiLinkId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.apiLinkId = mapped
}
/**
* @param value Product identifier. Must be unique in the current API Management service instance.
*/
@JvmName("mgxsjyqywqxnciuo")
public suspend fun productId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.productId = mapped
}
/**
* @param value The name of the resource group. The name is case insensitive.
*/
@JvmName("rowhyihecpswkckd")
public suspend fun resourceGroupName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.resourceGroupName = mapped
}
/**
* @param value The name of the API Management service.
*/
@JvmName("awmfpluwkijtigrn")
public suspend fun serviceName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.serviceName = mapped
}
internal fun build(): ProductApiLinkArgs = ProductApiLinkArgs(
apiId = apiId,
apiLinkId = apiLinkId,
productId = productId,
resourceGroupName = resourceGroupName,
serviceName = serviceName,
)
}