Please wait. This can take some minutes ...
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.
com.pulumi.azure.apimanagement.kotlin.CustomDomainArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.apimanagement.kotlin
import com.pulumi.azure.apimanagement.CustomDomainArgs.builder
import com.pulumi.azure.apimanagement.kotlin.inputs.CustomDomainDeveloperPortalArgs
import com.pulumi.azure.apimanagement.kotlin.inputs.CustomDomainDeveloperPortalArgsBuilder
import com.pulumi.azure.apimanagement.kotlin.inputs.CustomDomainGatewayArgs
import com.pulumi.azure.apimanagement.kotlin.inputs.CustomDomainGatewayArgsBuilder
import com.pulumi.azure.apimanagement.kotlin.inputs.CustomDomainManagementArgs
import com.pulumi.azure.apimanagement.kotlin.inputs.CustomDomainManagementArgsBuilder
import com.pulumi.azure.apimanagement.kotlin.inputs.CustomDomainPortalArgs
import com.pulumi.azure.apimanagement.kotlin.inputs.CustomDomainPortalArgsBuilder
import com.pulumi.azure.apimanagement.kotlin.inputs.CustomDomainScmArgs
import com.pulumi.azure.apimanagement.kotlin.inputs.CustomDomainScmArgsBuilder
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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* Manages a API Management Custom Domain.
* ## Disclaimers
* > **Note:** It's possible to define Custom Domains both within the `azure.apimanagement.Service` resource via the `hostname_configurations` block and by using this resource. However it's not possible to use both methods to manage Custom Domains within an API Management Service, since there will be conflicts.
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as azure from "@pulumi/azure";
* const exampleResourceGroup = new azure.core.ResourceGroup("example", {
* name: "example-resources",
* location: "West Europe",
* });
* const example = azure.keyvault.getKeyVault({
* name: "mykeyvault",
* resourceGroupName: "some-resource-group",
* });
* const exampleService = new azure.apimanagement.Service("example", {
* name: "example-apim",
* location: exampleResourceGroup.location,
* resourceGroupName: exampleResourceGroup.name,
* publisherName: "pub1",
* publisherEmail: "[email protected] ",
* skuName: "Developer_1",
* });
* const exampleCertificate = new azure.keyvault.Certificate("example", {
* name: "example-certificate",
* keyVaultId: example.then(example => example.id),
* certificatePolicy: {
* issuerParameters: {
* name: "Self",
* },
* keyProperties: {
* exportable: true,
* keySize: 2048,
* keyType: "RSA",
* reuseKey: true,
* },
* lifetimeActions: [{
* action: {
* actionType: "AutoRenew",
* },
* trigger: {
* daysBeforeExpiry: 30,
* },
* }],
* secretProperties: {
* contentType: "application/x-pkcs12",
* },
* x509CertificateProperties: {
* keyUsages: [
* "cRLSign",
* "dataEncipherment",
* "digitalSignature",
* "keyAgreement",
* "keyCertSign",
* "keyEncipherment",
* ],
* subject: "CN=api.example.com",
* validityInMonths: 12,
* subjectAlternativeNames: {
* dnsNames: [
* "api.example.com",
* "portal.example.com",
* ],
* },
* },
* },
* });
* const exampleCustomDomain = new azure.apimanagement.CustomDomain("example", {
* apiManagementId: exampleService.id,
* gateways: [{
* hostName: "api.example.com",
* keyVaultId: exampleCertificate.versionlessSecretId,
* }],
* developerPortals: [{
* hostName: "portal.example.com",
* keyVaultId: exampleCertificate.versionlessSecretId,
* }],
* });
* ```
* ```python
* import pulumi
* import pulumi_azure as azure
* example_resource_group = azure.core.ResourceGroup("example",
* name="example-resources",
* location="West Europe")
* example = azure.keyvault.get_key_vault(name="mykeyvault",
* resource_group_name="some-resource-group")
* example_service = azure.apimanagement.Service("example",
* name="example-apim",
* location=example_resource_group.location,
* resource_group_name=example_resource_group.name,
* publisher_name="pub1",
* publisher_email="[email protected] ",
* sku_name="Developer_1")
* example_certificate = azure.keyvault.Certificate("example",
* name="example-certificate",
* key_vault_id=example.id,
* certificate_policy={
* "issuer_parameters": {
* "name": "Self",
* },
* "key_properties": {
* "exportable": True,
* "key_size": 2048,
* "key_type": "RSA",
* "reuse_key": True,
* },
* "lifetime_actions": [{
* "action": {
* "action_type": "AutoRenew",
* },
* "trigger": {
* "days_before_expiry": 30,
* },
* }],
* "secret_properties": {
* "content_type": "application/x-pkcs12",
* },
* "x509_certificate_properties": {
* "key_usages": [
* "cRLSign",
* "dataEncipherment",
* "digitalSignature",
* "keyAgreement",
* "keyCertSign",
* "keyEncipherment",
* ],
* "subject": "CN=api.example.com",
* "validity_in_months": 12,
* "subject_alternative_names": {
* "dns_names": [
* "api.example.com",
* "portal.example.com",
* ],
* },
* },
* })
* example_custom_domain = azure.apimanagement.CustomDomain("example",
* api_management_id=example_service.id,
* gateways=[{
* "host_name": "api.example.com",
* "key_vault_id": example_certificate.versionless_secret_id,
* }],
* developer_portals=[{
* "host_name": "portal.example.com",
* "key_vault_id": example_certificate.versionless_secret_id,
* }])
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Azure = Pulumi.Azure;
* return await Deployment.RunAsync(() =>
* {
* var exampleResourceGroup = new Azure.Core.ResourceGroup("example", new()
* {
* Name = "example-resources",
* Location = "West Europe",
* });
* var example = Azure.KeyVault.GetKeyVault.Invoke(new()
* {
* Name = "mykeyvault",
* ResourceGroupName = "some-resource-group",
* });
* var exampleService = new Azure.ApiManagement.Service("example", new()
* {
* Name = "example-apim",
* Location = exampleResourceGroup.Location,
* ResourceGroupName = exampleResourceGroup.Name,
* PublisherName = "pub1",
* PublisherEmail = "[email protected] ",
* SkuName = "Developer_1",
* });
* var exampleCertificate = new Azure.KeyVault.Certificate("example", new()
* {
* Name = "example-certificate",
* KeyVaultId = example.Apply(getKeyVaultResult => getKeyVaultResult.Id),
* CertificatePolicy = new Azure.KeyVault.Inputs.CertificateCertificatePolicyArgs
* {
* IssuerParameters = new Azure.KeyVault.Inputs.CertificateCertificatePolicyIssuerParametersArgs
* {
* Name = "Self",
* },
* KeyProperties = new Azure.KeyVault.Inputs.CertificateCertificatePolicyKeyPropertiesArgs
* {
* Exportable = true,
* KeySize = 2048,
* KeyType = "RSA",
* ReuseKey = true,
* },
* LifetimeActions = new[]
* {
* new Azure.KeyVault.Inputs.CertificateCertificatePolicyLifetimeActionArgs
* {
* Action = new Azure.KeyVault.Inputs.CertificateCertificatePolicyLifetimeActionActionArgs
* {
* ActionType = "AutoRenew",
* },
* Trigger = new Azure.KeyVault.Inputs.CertificateCertificatePolicyLifetimeActionTriggerArgs
* {
* DaysBeforeExpiry = 30,
* },
* },
* },
* SecretProperties = new Azure.KeyVault.Inputs.CertificateCertificatePolicySecretPropertiesArgs
* {
* ContentType = "application/x-pkcs12",
* },
* X509CertificateProperties = new Azure.KeyVault.Inputs.CertificateCertificatePolicyX509CertificatePropertiesArgs
* {
* KeyUsages = new[]
* {
* "cRLSign",
* "dataEncipherment",
* "digitalSignature",
* "keyAgreement",
* "keyCertSign",
* "keyEncipherment",
* },
* Subject = "CN=api.example.com",
* ValidityInMonths = 12,
* SubjectAlternativeNames = new Azure.KeyVault.Inputs.CertificateCertificatePolicyX509CertificatePropertiesSubjectAlternativeNamesArgs
* {
* DnsNames = new[]
* {
* "api.example.com",
* "portal.example.com",
* },
* },
* },
* },
* });
* var exampleCustomDomain = new Azure.ApiManagement.CustomDomain("example", new()
* {
* ApiManagementId = exampleService.Id,
* Gateways = new[]
* {
* new Azure.ApiManagement.Inputs.CustomDomainGatewayArgs
* {
* HostName = "api.example.com",
* KeyVaultId = exampleCertificate.VersionlessSecretId,
* },
* },
* DeveloperPortals = new[]
* {
* new Azure.ApiManagement.Inputs.CustomDomainDeveloperPortalArgs
* {
* HostName = "portal.example.com",
* KeyVaultId = exampleCertificate.VersionlessSecretId,
* },
* },
* });
* });
* ```
* ```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-azure/sdk/v5/go/azure/keyvault"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* exampleResourceGroup, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
* Name: pulumi.String("example-resources"),
* Location: pulumi.String("West Europe"),
* })
* if err != nil {
* return err
* }
* example, err := keyvault.LookupKeyVault(ctx, &keyvault.LookupKeyVaultArgs{
* Name: "mykeyvault",
* ResourceGroupName: "some-resource-group",
* }, nil)
* if err != nil {
* return err
* }
* exampleService, err := apimanagement.NewService(ctx, "example", &apimanagement.ServiceArgs{
* Name: pulumi.String("example-apim"),
* Location: exampleResourceGroup.Location,
* ResourceGroupName: exampleResourceGroup.Name,
* PublisherName: pulumi.String("pub1"),
* PublisherEmail: pulumi.String("[email protected] "),
* SkuName: pulumi.String("Developer_1"),
* })
* if err != nil {
* return err
* }
* exampleCertificate, err := keyvault.NewCertificate(ctx, "example", &keyvault.CertificateArgs{
* Name: pulumi.String("example-certificate"),
* KeyVaultId: pulumi.String(example.Id),
* CertificatePolicy: &keyvault.CertificateCertificatePolicyArgs{
* IssuerParameters: &keyvault.CertificateCertificatePolicyIssuerParametersArgs{
* Name: pulumi.String("Self"),
* },
* KeyProperties: &keyvault.CertificateCertificatePolicyKeyPropertiesArgs{
* Exportable: pulumi.Bool(true),
* KeySize: pulumi.Int(2048),
* KeyType: pulumi.String("RSA"),
* ReuseKey: pulumi.Bool(true),
* },
* LifetimeActions: keyvault.CertificateCertificatePolicyLifetimeActionArray{
* &keyvault.CertificateCertificatePolicyLifetimeActionArgs{
* Action: &keyvault.CertificateCertificatePolicyLifetimeActionActionArgs{
* ActionType: pulumi.String("AutoRenew"),
* },
* Trigger: &keyvault.CertificateCertificatePolicyLifetimeActionTriggerArgs{
* DaysBeforeExpiry: pulumi.Int(30),
* },
* },
* },
* SecretProperties: &keyvault.CertificateCertificatePolicySecretPropertiesArgs{
* ContentType: pulumi.String("application/x-pkcs12"),
* },
* X509CertificateProperties: &keyvault.CertificateCertificatePolicyX509CertificatePropertiesArgs{
* KeyUsages: pulumi.StringArray{
* pulumi.String("cRLSign"),
* pulumi.String("dataEncipherment"),
* pulumi.String("digitalSignature"),
* pulumi.String("keyAgreement"),
* pulumi.String("keyCertSign"),
* pulumi.String("keyEncipherment"),
* },
* Subject: pulumi.String("CN=api.example.com"),
* ValidityInMonths: pulumi.Int(12),
* SubjectAlternativeNames: &keyvault.CertificateCertificatePolicyX509CertificatePropertiesSubjectAlternativeNamesArgs{
* DnsNames: pulumi.StringArray{
* pulumi.String("api.example.com"),
* pulumi.String("portal.example.com"),
* },
* },
* },
* },
* })
* if err != nil {
* return err
* }
* _, err = apimanagement.NewCustomDomain(ctx, "example", &apimanagement.CustomDomainArgs{
* ApiManagementId: exampleService.ID(),
* Gateways: apimanagement.CustomDomainGatewayArray{
* &apimanagement.CustomDomainGatewayArgs{
* HostName: pulumi.String("api.example.com"),
* KeyVaultId: exampleCertificate.VersionlessSecretId,
* },
* },
* DeveloperPortals: apimanagement.CustomDomainDeveloperPortalArray{
* &apimanagement.CustomDomainDeveloperPortalArgs{
* HostName: pulumi.String("portal.example.com"),
* KeyVaultId: exampleCertificate.VersionlessSecretId,
* },
* },
* })
* 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.keyvault.KeyvaultFunctions;
* import com.pulumi.azure.keyvault.inputs.GetKeyVaultArgs;
* import com.pulumi.azure.apimanagement.Service;
* import com.pulumi.azure.apimanagement.ServiceArgs;
* import com.pulumi.azure.keyvault.Certificate;
* import com.pulumi.azure.keyvault.CertificateArgs;
* import com.pulumi.azure.keyvault.inputs.CertificateCertificatePolicyArgs;
* import com.pulumi.azure.keyvault.inputs.CertificateCertificatePolicyIssuerParametersArgs;
* import com.pulumi.azure.keyvault.inputs.CertificateCertificatePolicyKeyPropertiesArgs;
* import com.pulumi.azure.keyvault.inputs.CertificateCertificatePolicySecretPropertiesArgs;
* import com.pulumi.azure.keyvault.inputs.CertificateCertificatePolicyX509CertificatePropertiesArgs;
* import com.pulumi.azure.keyvault.inputs.CertificateCertificatePolicyX509CertificatePropertiesSubjectAlternativeNamesArgs;
* import com.pulumi.azure.apimanagement.CustomDomain;
* import com.pulumi.azure.apimanagement.CustomDomainArgs;
* import com.pulumi.azure.apimanagement.inputs.CustomDomainGatewayArgs;
* import com.pulumi.azure.apimanagement.inputs.CustomDomainDeveloperPortalArgs;
* 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()
* .name("example-resources")
* .location("West Europe")
* .build());
* final var example = KeyvaultFunctions.getKeyVault(GetKeyVaultArgs.builder()
* .name("mykeyvault")
* .resourceGroupName("some-resource-group")
* .build());
* var exampleService = new Service("exampleService", ServiceArgs.builder()
* .name("example-apim")
* .location(exampleResourceGroup.location())
* .resourceGroupName(exampleResourceGroup.name())
* .publisherName("pub1")
* .publisherEmail("[email protected] ")
* .skuName("Developer_1")
* .build());
* var exampleCertificate = new Certificate("exampleCertificate", CertificateArgs.builder()
* .name("example-certificate")
* .keyVaultId(example.applyValue(getKeyVaultResult -> getKeyVaultResult.id()))
* .certificatePolicy(CertificateCertificatePolicyArgs.builder()
* .issuerParameters(CertificateCertificatePolicyIssuerParametersArgs.builder()
* .name("Self")
* .build())
* .keyProperties(CertificateCertificatePolicyKeyPropertiesArgs.builder()
* .exportable(true)
* .keySize(2048)
* .keyType("RSA")
* .reuseKey(true)
* .build())
* .lifetimeActions(CertificateCertificatePolicyLifetimeActionArgs.builder()
* .action(CertificateCertificatePolicyLifetimeActionActionArgs.builder()
* .actionType("AutoRenew")
* .build())
* .trigger(CertificateCertificatePolicyLifetimeActionTriggerArgs.builder()
* .daysBeforeExpiry(30)
* .build())
* .build())
* .secretProperties(CertificateCertificatePolicySecretPropertiesArgs.builder()
* .contentType("application/x-pkcs12")
* .build())
* .x509CertificateProperties(CertificateCertificatePolicyX509CertificatePropertiesArgs.builder()
* .keyUsages(
* "cRLSign",
* "dataEncipherment",
* "digitalSignature",
* "keyAgreement",
* "keyCertSign",
* "keyEncipherment")
* .subject("CN=api.example.com")
* .validityInMonths(12)
* .subjectAlternativeNames(CertificateCertificatePolicyX509CertificatePropertiesSubjectAlternativeNamesArgs.builder()
* .dnsNames(
* "api.example.com",
* "portal.example.com")
* .build())
* .build())
* .build())
* .build());
* var exampleCustomDomain = new CustomDomain("exampleCustomDomain", CustomDomainArgs.builder()
* .apiManagementId(exampleService.id())
* .gateways(CustomDomainGatewayArgs.builder()
* .hostName("api.example.com")
* .keyVaultId(exampleCertificate.versionlessSecretId())
* .build())
* .developerPortals(CustomDomainDeveloperPortalArgs.builder()
* .hostName("portal.example.com")
* .keyVaultId(exampleCertificate.versionlessSecretId())
* .build())
* .build());
* }
* }
* ```
* ```yaml
* resources:
* exampleResourceGroup:
* type: azure:core:ResourceGroup
* name: example
* properties:
* name: example-resources
* location: West Europe
* exampleService:
* type: azure:apimanagement:Service
* name: example
* properties:
* name: example-apim
* location: ${exampleResourceGroup.location}
* resourceGroupName: ${exampleResourceGroup.name}
* publisherName: pub1
* publisherEmail: [email protected]
* skuName: Developer_1
* exampleCertificate:
* type: azure:keyvault:Certificate
* name: example
* properties:
* name: example-certificate
* keyVaultId: ${example.id}
* certificatePolicy:
* issuerParameters:
* name: Self
* keyProperties:
* exportable: true
* keySize: 2048
* keyType: RSA
* reuseKey: true
* lifetimeActions:
* - action:
* actionType: AutoRenew
* trigger:
* daysBeforeExpiry: 30
* secretProperties:
* contentType: application/x-pkcs12
* x509CertificateProperties:
* keyUsages:
* - cRLSign
* - dataEncipherment
* - digitalSignature
* - keyAgreement
* - keyCertSign
* - keyEncipherment
* subject: CN=api.example.com
* validityInMonths: 12
* subjectAlternativeNames:
* dnsNames:
* - api.example.com
* - portal.example.com
* exampleCustomDomain:
* type: azure:apimanagement:CustomDomain
* name: example
* properties:
* apiManagementId: ${exampleService.id}
* gateways:
* - hostName: api.example.com
* keyVaultId: ${exampleCertificate.versionlessSecretId}
* developerPortals:
* - hostName: portal.example.com
* keyVaultId: ${exampleCertificate.versionlessSecretId}
* variables:
* example:
* fn::invoke:
* Function: azure:keyvault:getKeyVault
* Arguments:
* name: mykeyvault
* resourceGroupName: some-resource-group
* ```
*
* ## Import
* API Management Custom Domains can be imported using the `resource id`, e.g.
* ```sh
* $ pulumi import azure:apimanagement/customDomain:CustomDomain example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.ApiManagement/service/instance1/customDomains/default
* ```
* @property apiManagementId The ID of the API Management service for which to configure Custom Domains. Changing this forces a new API Management Custom Domain resource to be created.
* @property developerPortals One or more `developer_portal` blocks as defined below.
* @property gateways One or more `gateway` blocks as defined below.
* @property managements One or more `management` blocks as defined below.
* @property portals One or more `portal` blocks as defined below.
* @property scms One or more `scm` blocks as defined below.
*/
public data class CustomDomainArgs(
public val apiManagementId: Output? = null,
public val developerPortals: Output>? = null,
public val gateways: Output>? = null,
public val managements: Output>? = null,
public val portals: Output>? = null,
public val scms: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.apimanagement.CustomDomainArgs =
com.pulumi.azure.apimanagement.CustomDomainArgs.builder()
.apiManagementId(apiManagementId?.applyValue({ args0 -> args0 }))
.developerPortals(
developerPortals?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.gateways(
gateways?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.managements(
managements?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.portals(
portals?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.scms(
scms?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
).build()
}
/**
* Builder for [CustomDomainArgs].
*/
@PulumiTagMarker
public class CustomDomainArgsBuilder internal constructor() {
private var apiManagementId: Output? = null
private var developerPortals: Output>? = null
private var gateways: Output>? = null
private var managements: Output>? = null
private var portals: Output>? = null
private var scms: Output>? = null
/**
* @param value The ID of the API Management service for which to configure Custom Domains. Changing this forces a new API Management Custom Domain resource to be created.
*/
@JvmName("ptpefmdmjydtvpco")
public suspend fun apiManagementId(`value`: Output) {
this.apiManagementId = value
}
/**
* @param value One or more `developer_portal` blocks as defined below.
*/
@JvmName("kolwjsjbgrijards")
public suspend fun developerPortals(`value`: Output>) {
this.developerPortals = value
}
@JvmName("xvlylgxefldeiwww")
public suspend fun developerPortals(vararg values: Output) {
this.developerPortals = Output.all(values.asList())
}
/**
* @param values One or more `developer_portal` blocks as defined below.
*/
@JvmName("qwgihcapoquculvi")
public suspend fun developerPortals(values: List>) {
this.developerPortals = Output.all(values)
}
/**
* @param value One or more `gateway` blocks as defined below.
*/
@JvmName("rpkuslutfwwncage")
public suspend fun gateways(`value`: Output>) {
this.gateways = value
}
@JvmName("bacourwtiljpluxv")
public suspend fun gateways(vararg values: Output) {
this.gateways = Output.all(values.asList())
}
/**
* @param values One or more `gateway` blocks as defined below.
*/
@JvmName("mfupthbrfnbokiyi")
public suspend fun gateways(values: List>) {
this.gateways = Output.all(values)
}
/**
* @param value One or more `management` blocks as defined below.
*/
@JvmName("fkyekoxdnvinnvbw")
public suspend fun managements(`value`: Output>) {
this.managements = value
}
@JvmName("btkrmvttsgydscpc")
public suspend fun managements(vararg values: Output) {
this.managements = Output.all(values.asList())
}
/**
* @param values One or more `management` blocks as defined below.
*/
@JvmName("lpcigbsggtcthiaa")
public suspend fun managements(values: List>) {
this.managements = Output.all(values)
}
/**
* @param value One or more `portal` blocks as defined below.
*/
@JvmName("nmdgpvtxqndytish")
public suspend fun portals(`value`: Output>) {
this.portals = value
}
@JvmName("tboykagvebjgpfqf")
public suspend fun portals(vararg values: Output) {
this.portals = Output.all(values.asList())
}
/**
* @param values One or more `portal` blocks as defined below.
*/
@JvmName("rgjslwxfjwyswvak")
public suspend fun portals(values: List>) {
this.portals = Output.all(values)
}
/**
* @param value One or more `scm` blocks as defined below.
*/
@JvmName("bmpbvrajsnphaynv")
public suspend fun scms(`value`: Output>) {
this.scms = value
}
@JvmName("egsnotqxiaiqadkl")
public suspend fun scms(vararg values: Output) {
this.scms = Output.all(values.asList())
}
/**
* @param values One or more `scm` blocks as defined below.
*/
@JvmName("afycapxuyqwevgbw")
public suspend fun scms(values: List>) {
this.scms = Output.all(values)
}
/**
* @param value The ID of the API Management service for which to configure Custom Domains. Changing this forces a new API Management Custom Domain resource to be created.
*/
@JvmName("hrwhldduangkmdkm")
public suspend fun apiManagementId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.apiManagementId = mapped
}
/**
* @param value One or more `developer_portal` blocks as defined below.
*/
@JvmName("mkyildjalsnosbqb")
public suspend fun developerPortals(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.developerPortals = mapped
}
/**
* @param argument One or more `developer_portal` blocks as defined below.
*/
@JvmName("colrspkwyvmxbooq")
public suspend fun developerPortals(argument: List Unit>) {
val toBeMapped = argument.toList().map {
CustomDomainDeveloperPortalArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.developerPortals = mapped
}
/**
* @param argument One or more `developer_portal` blocks as defined below.
*/
@JvmName("mhwusxbulgtjgtvr")
public suspend fun developerPortals(vararg argument: suspend CustomDomainDeveloperPortalArgsBuilder.() -> Unit) {
val toBeMapped = argument.toList().map {
CustomDomainDeveloperPortalArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.developerPortals = mapped
}
/**
* @param argument One or more `developer_portal` blocks as defined below.
*/
@JvmName("cwmnbwyxhghbkmwe")
public suspend fun developerPortals(argument: suspend CustomDomainDeveloperPortalArgsBuilder.() -> Unit) {
val toBeMapped = listOf(
CustomDomainDeveloperPortalArgsBuilder().applySuspend {
argument()
}.build(),
)
val mapped = of(toBeMapped)
this.developerPortals = mapped
}
/**
* @param values One or more `developer_portal` blocks as defined below.
*/
@JvmName("uwojiiupcaupevqi")
public suspend fun developerPortals(vararg values: CustomDomainDeveloperPortalArgs) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.developerPortals = mapped
}
/**
* @param value One or more `gateway` blocks as defined below.
*/
@JvmName("pgiroxwddmdkncag")
public suspend fun gateways(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.gateways = mapped
}
/**
* @param argument One or more `gateway` blocks as defined below.
*/
@JvmName("bltfyrhfqfdivycy")
public suspend fun gateways(argument: List Unit>) {
val toBeMapped = argument.toList().map {
CustomDomainGatewayArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.gateways = mapped
}
/**
* @param argument One or more `gateway` blocks as defined below.
*/
@JvmName("jkhdojkqxtxifxiy")
public suspend fun gateways(vararg argument: suspend CustomDomainGatewayArgsBuilder.() -> Unit) {
val toBeMapped = argument.toList().map {
CustomDomainGatewayArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.gateways = mapped
}
/**
* @param argument One or more `gateway` blocks as defined below.
*/
@JvmName("faquyipigxbbedmh")
public suspend fun gateways(argument: suspend CustomDomainGatewayArgsBuilder.() -> Unit) {
val toBeMapped = listOf(CustomDomainGatewayArgsBuilder().applySuspend { argument() }.build())
val mapped = of(toBeMapped)
this.gateways = mapped
}
/**
* @param values One or more `gateway` blocks as defined below.
*/
@JvmName("hfwwqgqiruumpakd")
public suspend fun gateways(vararg values: CustomDomainGatewayArgs) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.gateways = mapped
}
/**
* @param value One or more `management` blocks as defined below.
*/
@JvmName("veadhaokcpobuigv")
public suspend fun managements(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.managements = mapped
}
/**
* @param argument One or more `management` blocks as defined below.
*/
@JvmName("osxdkennlhidwopy")
public suspend fun managements(argument: List Unit>) {
val toBeMapped = argument.toList().map {
CustomDomainManagementArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.managements = mapped
}
/**
* @param argument One or more `management` blocks as defined below.
*/
@JvmName("iturvywbovukvsfb")
public suspend fun managements(vararg argument: suspend CustomDomainManagementArgsBuilder.() -> Unit) {
val toBeMapped = argument.toList().map {
CustomDomainManagementArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.managements = mapped
}
/**
* @param argument One or more `management` blocks as defined below.
*/
@JvmName("yvuriinqvpfhuyyq")
public suspend fun managements(argument: suspend CustomDomainManagementArgsBuilder.() -> Unit) {
val toBeMapped = listOf(CustomDomainManagementArgsBuilder().applySuspend { argument() }.build())
val mapped = of(toBeMapped)
this.managements = mapped
}
/**
* @param values One or more `management` blocks as defined below.
*/
@JvmName("psgfhfeotedgxhta")
public suspend fun managements(vararg values: CustomDomainManagementArgs) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.managements = mapped
}
/**
* @param value One or more `portal` blocks as defined below.
*/
@JvmName("nypemeewgdxupyjh")
public suspend fun portals(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.portals = mapped
}
/**
* @param argument One or more `portal` blocks as defined below.
*/
@JvmName("sixwdlcundfwglol")
public suspend fun portals(argument: List Unit>) {
val toBeMapped = argument.toList().map {
CustomDomainPortalArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.portals = mapped
}
/**
* @param argument One or more `portal` blocks as defined below.
*/
@JvmName("cbgwmfkqgvlnrfvb")
public suspend fun portals(vararg argument: suspend CustomDomainPortalArgsBuilder.() -> Unit) {
val toBeMapped = argument.toList().map {
CustomDomainPortalArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.portals = mapped
}
/**
* @param argument One or more `portal` blocks as defined below.
*/
@JvmName("pirorbfcjtjefffs")
public suspend fun portals(argument: suspend CustomDomainPortalArgsBuilder.() -> Unit) {
val toBeMapped = listOf(CustomDomainPortalArgsBuilder().applySuspend { argument() }.build())
val mapped = of(toBeMapped)
this.portals = mapped
}
/**
* @param values One or more `portal` blocks as defined below.
*/
@JvmName("tptwbhqkxgjrvbwh")
public suspend fun portals(vararg values: CustomDomainPortalArgs) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.portals = mapped
}
/**
* @param value One or more `scm` blocks as defined below.
*/
@JvmName("ksdblrgtumlknieh")
public suspend fun scms(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.scms = mapped
}
/**
* @param argument One or more `scm` blocks as defined below.
*/
@JvmName("dogmtwwjjmmrefrl")
public suspend fun scms(argument: List Unit>) {
val toBeMapped = argument.toList().map {
CustomDomainScmArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.scms = mapped
}
/**
* @param argument One or more `scm` blocks as defined below.
*/
@JvmName("shgvfgswjhxycudp")
public suspend fun scms(vararg argument: suspend CustomDomainScmArgsBuilder.() -> Unit) {
val toBeMapped = argument.toList().map {
CustomDomainScmArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.scms = mapped
}
/**
* @param argument One or more `scm` blocks as defined below.
*/
@JvmName("ltlnqksepomtixtl")
public suspend fun scms(argument: suspend CustomDomainScmArgsBuilder.() -> Unit) {
val toBeMapped = listOf(CustomDomainScmArgsBuilder().applySuspend { argument() }.build())
val mapped = of(toBeMapped)
this.scms = mapped
}
/**
* @param values One or more `scm` blocks as defined below.
*/
@JvmName("tsujxedfjrbpdofq")
public suspend fun scms(vararg values: CustomDomainScmArgs) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.scms = mapped
}
internal fun build(): CustomDomainArgs = CustomDomainArgs(
apiManagementId = apiManagementId,
developerPortals = developerPortals,
gateways = gateways,
managements = managements,
portals = portals,
scms = scms,
)
}