com.pulumi.aws.auditmanager.kotlin.OrganizationAdminAccountRegistrationArgs.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.auditmanager.kotlin
import com.pulumi.aws.auditmanager.OrganizationAdminAccountRegistrationArgs.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
/**
* Resource for managing AWS Audit Manager Organization Admin Account Registration.
* ## Example Usage
* ### Basic Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
* const example = new aws.auditmanager.OrganizationAdminAccountRegistration("example", {adminAccountId: "123456789012"});
* ```
* ```python
* import pulumi
* import pulumi_aws as aws
* example = aws.auditmanager.OrganizationAdminAccountRegistration("example", admin_account_id="123456789012")
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Aws = Pulumi.Aws;
* return await Deployment.RunAsync(() =>
* {
* var example = new Aws.Auditmanager.OrganizationAdminAccountRegistration("example", new()
* {
* AdminAccountId = "123456789012",
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-aws/sdk/v6/go/aws/auditmanager"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := auditmanager.NewOrganizationAdminAccountRegistration(ctx, "example", &auditmanager.OrganizationAdminAccountRegistrationArgs{
* AdminAccountId: pulumi.String("123456789012"),
* })
* 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.auditmanager.OrganizationAdminAccountRegistration;
* import com.pulumi.aws.auditmanager.OrganizationAdminAccountRegistrationArgs;
* 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 OrganizationAdminAccountRegistration("example", OrganizationAdminAccountRegistrationArgs.builder()
* .adminAccountId("123456789012")
* .build());
* }
* }
* ```
* ```yaml
* resources:
* example:
* type: aws:auditmanager:OrganizationAdminAccountRegistration
* properties:
* adminAccountId: '123456789012'
* ```
*
* ## Import
* Using `pulumi import`, import Audit Manager Organization Admin Account Registration using the `id`. For example:
* ```sh
* $ pulumi import aws:auditmanager/organizationAdminAccountRegistration:OrganizationAdminAccountRegistration example 123456789012
* ```
* @property adminAccountId Identifier for the organization administrator account.
*/
public data class OrganizationAdminAccountRegistrationArgs(
public val adminAccountId: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.aws.auditmanager.OrganizationAdminAccountRegistrationArgs =
com.pulumi.aws.auditmanager.OrganizationAdminAccountRegistrationArgs.builder()
.adminAccountId(adminAccountId?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [OrganizationAdminAccountRegistrationArgs].
*/
@PulumiTagMarker
public class OrganizationAdminAccountRegistrationArgsBuilder internal constructor() {
private var adminAccountId: Output? = null
/**
* @param value Identifier for the organization administrator account.
*/
@JvmName("hwxmwqxerubdjgtb")
public suspend fun adminAccountId(`value`: Output) {
this.adminAccountId = value
}
/**
* @param value Identifier for the organization administrator account.
*/
@JvmName("uvuhvypmfbbikbuc")
public suspend fun adminAccountId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.adminAccountId = mapped
}
internal fun build(): OrganizationAdminAccountRegistrationArgs =
OrganizationAdminAccountRegistrationArgs(
adminAccountId = adminAccountId,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy