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.azure.domainservices.kotlin
import com.pulumi.azure.domainservices.ServiceTrustArgs.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.collections.List
import kotlin.jvm.JvmName
/**
* Manages a Active Directory Domain Service Trust.
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as azure from "@pulumi/azure";
* const example = azure.domainservices.getService({
* name: "example-ds",
* resourceGroupName: "example-rg",
* });
* const exampleServiceTrust = new azure.domainservices.ServiceTrust("example", {
* name: "example-trust",
* domainServiceId: example.then(example => example.id),
* trustedDomainFqdn: "example.com",
* trustedDomainDnsIps: [
* "10.1.0.3",
* "10.1.0.4",
* ],
* password: "Password123",
* });
* ```
* ```python
* import pulumi
* import pulumi_azure as azure
* example = azure.domainservices.get_service(name="example-ds",
* resource_group_name="example-rg")
* example_service_trust = azure.domainservices.ServiceTrust("example",
* name="example-trust",
* domain_service_id=example.id,
* trusted_domain_fqdn="example.com",
* trusted_domain_dns_ips=[
* "10.1.0.3",
* "10.1.0.4",
* ],
* password="Password123")
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Azure = Pulumi.Azure;
* return await Deployment.RunAsync(() =>
* {
* var example = Azure.DomainServices.GetService.Invoke(new()
* {
* Name = "example-ds",
* ResourceGroupName = "example-rg",
* });
* var exampleServiceTrust = new Azure.DomainServices.ServiceTrust("example", new()
* {
* Name = "example-trust",
* DomainServiceId = example.Apply(getServiceResult => getServiceResult.Id),
* TrustedDomainFqdn = "example.com",
* TrustedDomainDnsIps = new[]
* {
* "10.1.0.3",
* "10.1.0.4",
* },
* Password = "Password123",
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/domainservices"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* example, err := domainservices.LookupService(ctx, &domainservices.LookupServiceArgs{
* Name: "example-ds",
* ResourceGroupName: "example-rg",
* }, nil)
* if err != nil {
* return err
* }
* _, err = domainservices.NewServiceTrust(ctx, "example", &domainservices.ServiceTrustArgs{
* Name: pulumi.String("example-trust"),
* DomainServiceId: pulumi.String(example.Id),
* TrustedDomainFqdn: pulumi.String("example.com"),
* TrustedDomainDnsIps: pulumi.StringArray{
* pulumi.String("10.1.0.3"),
* pulumi.String("10.1.0.4"),
* },
* Password: pulumi.String("Password123"),
* })
* 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.domainservices.DomainservicesFunctions;
* import com.pulumi.azure.domainservices.inputs.GetServiceArgs;
* import com.pulumi.azure.domainservices.ServiceTrust;
* import com.pulumi.azure.domainservices.ServiceTrustArgs;
* 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) {
* final var example = DomainservicesFunctions.getService(GetServiceArgs.builder()
* .name("example-ds")
* .resourceGroupName("example-rg")
* .build());
* var exampleServiceTrust = new ServiceTrust("exampleServiceTrust", ServiceTrustArgs.builder()
* .name("example-trust")
* .domainServiceId(example.applyValue(getServiceResult -> getServiceResult.id()))
* .trustedDomainFqdn("example.com")
* .trustedDomainDnsIps(
* "10.1.0.3",
* "10.1.0.4")
* .password("Password123")
* .build());
* }
* }
* ```
* ```yaml
* resources:
* exampleServiceTrust:
* type: azure:domainservices:ServiceTrust
* name: example
* properties:
* name: example-trust
* domainServiceId: ${example.id}
* trustedDomainFqdn: example.com
* trustedDomainDnsIps:
* - 10.1.0.3
* - 10.1.0.4
* password: Password123
* variables:
* example:
* fn::invoke:
* Function: azure:domainservices:getService
* Arguments:
* name: example-ds
* resourceGroupName: example-rg
* ```
*
* ## Import
* Active Directory Domain Service Trusts can be imported using the `resource id`, e.g.
* ```sh
* $ pulumi import azure:domainservices/serviceTrust:ServiceTrust example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resGroup1/providers/Microsoft.AAD/domainServices/DomainService1/trusts/trust1
* ```
* @property domainServiceId The ID of the Active Directory Domain Service. Changing this forces a new Active Directory Domain Service Trust to be created.
* @property name The name which should be used for this Active Directory Domain Service Trust. Changing this forces a new Active Directory Domain Service Trust to be created.
* @property password The password of the inbound trust set in the on-premise Active Directory Domain Service.
* @property trustedDomainDnsIps Specifies a list of DNS IPs that are used to resolve the on-premise Active Directory Domain Service.
* @property trustedDomainFqdn The FQDN of the on-premise Active Directory Domain Service.
*/
public data class ServiceTrustArgs(
public val domainServiceId: Output? = null,
public val name: Output? = null,
public val password: Output? = null,
public val trustedDomainDnsIps: Output>? = null,
public val trustedDomainFqdn: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.domainservices.ServiceTrustArgs =
com.pulumi.azure.domainservices.ServiceTrustArgs.builder()
.domainServiceId(domainServiceId?.applyValue({ args0 -> args0 }))
.name(name?.applyValue({ args0 -> args0 }))
.password(password?.applyValue({ args0 -> args0 }))
.trustedDomainDnsIps(trustedDomainDnsIps?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.trustedDomainFqdn(trustedDomainFqdn?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ServiceTrustArgs].
*/
@PulumiTagMarker
public class ServiceTrustArgsBuilder internal constructor() {
private var domainServiceId: Output? = null
private var name: Output? = null
private var password: Output? = null
private var trustedDomainDnsIps: Output>? = null
private var trustedDomainFqdn: Output? = null
/**
* @param value The ID of the Active Directory Domain Service. Changing this forces a new Active Directory Domain Service Trust to be created.
*/
@JvmName("rcdawhtrfobqraka")
public suspend fun domainServiceId(`value`: Output) {
this.domainServiceId = value
}
/**
* @param value The name which should be used for this Active Directory Domain Service Trust. Changing this forces a new Active Directory Domain Service Trust to be created.
*/
@JvmName("yrjiofwumtxmwnck")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value The password of the inbound trust set in the on-premise Active Directory Domain Service.
*/
@JvmName("itcyqwqvgqrnfjbc")
public suspend fun password(`value`: Output) {
this.password = value
}
/**
* @param value Specifies a list of DNS IPs that are used to resolve the on-premise Active Directory Domain Service.
*/
@JvmName("lervonknffkwxeyf")
public suspend fun trustedDomainDnsIps(`value`: Output>) {
this.trustedDomainDnsIps = value
}
@JvmName("xfjfyablttkrefeq")
public suspend fun trustedDomainDnsIps(vararg values: Output) {
this.trustedDomainDnsIps = Output.all(values.asList())
}
/**
* @param values Specifies a list of DNS IPs that are used to resolve the on-premise Active Directory Domain Service.
*/
@JvmName("yephogifxsfyxilw")
public suspend fun trustedDomainDnsIps(values: List