
com.pulumi.aws.ec2.kotlin.VpcIpamOrganizationAdminAccountArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-kotlin Show documentation
Show all versions of pulumi-aws-kotlin Show documentation
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.aws.ec2.kotlin
import com.pulumi.aws.ec2.VpcIpamOrganizationAdminAccountArgs.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
/**
* Enables the IPAM Service and promotes a delegated administrator.
* ## Example Usage
* Basic usage:
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
* const delegated = aws.getCallerIdentity({});
* const example = new aws.ec2.VpcIpamOrganizationAdminAccount("example", {delegatedAdminAccountId: delegated.then(delegated => delegated.accountId)});
* ```
* ```python
* import pulumi
* import pulumi_aws as aws
* delegated = aws.get_caller_identity()
* example = aws.ec2.VpcIpamOrganizationAdminAccount("example", delegated_admin_account_id=delegated.account_id)
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Aws = Pulumi.Aws;
* return await Deployment.RunAsync(() =>
* {
* var delegated = Aws.GetCallerIdentity.Invoke();
* var example = new Aws.Ec2.VpcIpamOrganizationAdminAccount("example", new()
* {
* DelegatedAdminAccountId = delegated.Apply(getCallerIdentityResult => getCallerIdentityResult.AccountId),
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-aws/sdk/v6/go/aws"
* "github.com/pulumi/pulumi-aws/sdk/v6/go/aws/ec2"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* delegated, err := aws.GetCallerIdentity(ctx, nil, nil)
* if err != nil {
* return err
* }
* _, err = ec2.NewVpcIpamOrganizationAdminAccount(ctx, "example", &ec2.VpcIpamOrganizationAdminAccountArgs{
* DelegatedAdminAccountId: pulumi.String(delegated.AccountId),
* })
* 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.aws.AwsFunctions;
* import com.pulumi.aws.inputs.GetCallerIdentityArgs;
* import com.pulumi.aws.ec2.VpcIpamOrganizationAdminAccount;
* import com.pulumi.aws.ec2.VpcIpamOrganizationAdminAccountArgs;
* 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 delegated = AwsFunctions.getCallerIdentity();
* var example = new VpcIpamOrganizationAdminAccount("example", VpcIpamOrganizationAdminAccountArgs.builder()
* .delegatedAdminAccountId(delegated.applyValue(getCallerIdentityResult -> getCallerIdentityResult.accountId()))
* .build());
* }
* }
* ```
* ```yaml
* resources:
* example:
* type: aws:ec2:VpcIpamOrganizationAdminAccount
* properties:
* delegatedAdminAccountId: ${delegated.accountId}
* variables:
* delegated:
* fn::invoke:
* Function: aws:getCallerIdentity
* Arguments: {}
* ```
*
* ## Import
* Using `pulumi import`, import IPAMs using the delegate account `id`. For example:
* ```sh
* $ pulumi import aws:ec2/vpcIpamOrganizationAdminAccount:VpcIpamOrganizationAdminAccount example 12345678901
* ```
* @property delegatedAdminAccountId
*/
public data class VpcIpamOrganizationAdminAccountArgs(
public val delegatedAdminAccountId: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.aws.ec2.VpcIpamOrganizationAdminAccountArgs =
com.pulumi.aws.ec2.VpcIpamOrganizationAdminAccountArgs.builder()
.delegatedAdminAccountId(delegatedAdminAccountId?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [VpcIpamOrganizationAdminAccountArgs].
*/
@PulumiTagMarker
public class VpcIpamOrganizationAdminAccountArgsBuilder internal constructor() {
private var delegatedAdminAccountId: Output? = null
/**
* @param value
*/
@JvmName("qmqiaddlbmdciawr")
public suspend fun delegatedAdminAccountId(`value`: Output) {
this.delegatedAdminAccountId = value
}
/**
* @param value
*/
@JvmName("osxnsdbioxgkdqar")
public suspend fun delegatedAdminAccountId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.delegatedAdminAccountId = mapped
}
internal fun build(): VpcIpamOrganizationAdminAccountArgs = VpcIpamOrganizationAdminAccountArgs(
delegatedAdminAccountId = delegatedAdminAccountId,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy