All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.aws.account.kotlin.AlternativeContactArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 6.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.account.kotlin

import com.pulumi.aws.account.AlternativeContactArgs.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

/**
 * Manages the specified alternate contact attached to an AWS Account.
 * ## Example Usage
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as aws from "@pulumi/aws";
 * const operations = new aws.account.AlternativeContact("operations", {
 *     alternateContactType: "OPERATIONS",
 *     name: "Example",
 *     title: "Example",
 *     emailAddress: "[email protected]",
 *     phoneNumber: "+1234567890",
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_aws as aws
 * operations = aws.account.AlternativeContact("operations",
 *     alternate_contact_type="OPERATIONS",
 *     name="Example",
 *     title="Example",
 *     email_address="[email protected]",
 *     phone_number="+1234567890")
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Aws = Pulumi.Aws;
 * return await Deployment.RunAsync(() =>
 * {
 *     var operations = new Aws.Account.AlternativeContact("operations", new()
 *     {
 *         AlternateContactType = "OPERATIONS",
 *         Name = "Example",
 *         Title = "Example",
 *         EmailAddress = "[email protected]",
 *         PhoneNumber = "+1234567890",
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/account"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		_, err := account.NewAlternativeContact(ctx, "operations", &account.AlternativeContactArgs{
 * 			AlternateContactType: pulumi.String("OPERATIONS"),
 * 			Name:                 pulumi.String("Example"),
 * 			Title:                pulumi.String("Example"),
 * 			EmailAddress:         pulumi.String("[email protected]"),
 * 			PhoneNumber:          pulumi.String("+1234567890"),
 * 		})
 * 		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.account.AlternativeContact;
 * import com.pulumi.aws.account.AlternativeContactArgs;
 * 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 operations = new AlternativeContact("operations", AlternativeContactArgs.builder()
 *             .alternateContactType("OPERATIONS")
 *             .name("Example")
 *             .title("Example")
 *             .emailAddress("[email protected]")
 *             .phoneNumber("+1234567890")
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   operations:
 *     type: aws:account:AlternativeContact
 *     properties:
 *       alternateContactType: OPERATIONS
 *       name: Example
 *       title: Example
 *       emailAddress: [email protected]
 *       phoneNumber: '+1234567890'
 * ```
 * 
 * ## Import
 * Import the Alternate Contact for another account using the `account_id` and `alternate_contact_type` separated by a forward slash (`/`):
 * __Using `pulumi import` to import__ the Alternate Contact for the current or another account using the `alternate_contact_type`. For example:
 * Import the Alternate Contact for the current account:
 * ```sh
 * $ pulumi import aws:account/alternativeContact:AlternativeContact operations OPERATIONS
 * ```
 * Import the Alternate Contact for another account using the `account_id` and `alternate_contact_type` separated by a forward slash (`/`):
 * ```sh
 * $ pulumi import aws:account/alternativeContact:AlternativeContact operations 1234567890/OPERATIONS
 * ```
 * @property accountId ID of the target account when managing member accounts. Will manage current user's account by default if omitted.
 * @property alternateContactType Type of the alternate contact. Allowed values are: `BILLING`, `OPERATIONS`, `SECURITY`.
 * @property emailAddress An email address for the alternate contact.
 * @property name Name of the alternate contact.
 * @property phoneNumber Phone number for the alternate contact.
 * @property title Title for the alternate contact.
 */
public data class AlternativeContactArgs(
    public val accountId: Output? = null,
    public val alternateContactType: Output? = null,
    public val emailAddress: Output? = null,
    public val name: Output? = null,
    public val phoneNumber: Output? = null,
    public val title: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.account.AlternativeContactArgs =
        com.pulumi.aws.account.AlternativeContactArgs.builder()
            .accountId(accountId?.applyValue({ args0 -> args0 }))
            .alternateContactType(alternateContactType?.applyValue({ args0 -> args0 }))
            .emailAddress(emailAddress?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .phoneNumber(phoneNumber?.applyValue({ args0 -> args0 }))
            .title(title?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [AlternativeContactArgs].
 */
@PulumiTagMarker
public class AlternativeContactArgsBuilder internal constructor() {
    private var accountId: Output? = null

    private var alternateContactType: Output? = null

    private var emailAddress: Output? = null

    private var name: Output? = null

    private var phoneNumber: Output? = null

    private var title: Output? = null

    /**
     * @param value ID of the target account when managing member accounts. Will manage current user's account by default if omitted.
     */
    @JvmName("pcfyxfcckoofqebf")
    public suspend fun accountId(`value`: Output) {
        this.accountId = value
    }

    /**
     * @param value Type of the alternate contact. Allowed values are: `BILLING`, `OPERATIONS`, `SECURITY`.
     */
    @JvmName("irmktxfsynmyfxuy")
    public suspend fun alternateContactType(`value`: Output) {
        this.alternateContactType = value
    }

    /**
     * @param value An email address for the alternate contact.
     */
    @JvmName("jgbcyinmmqpcghdu")
    public suspend fun emailAddress(`value`: Output) {
        this.emailAddress = value
    }

    /**
     * @param value Name of the alternate contact.
     */
    @JvmName("ghrtxrryboimavbq")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value Phone number for the alternate contact.
     */
    @JvmName("auvljokmwxxwhvnb")
    public suspend fun phoneNumber(`value`: Output) {
        this.phoneNumber = value
    }

    /**
     * @param value Title for the alternate contact.
     */
    @JvmName("kwniourrfqylmeea")
    public suspend fun title(`value`: Output) {
        this.title = value
    }

    /**
     * @param value ID of the target account when managing member accounts. Will manage current user's account by default if omitted.
     */
    @JvmName("mlsvkcvmssqovsds")
    public suspend fun accountId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.accountId = mapped
    }

    /**
     * @param value Type of the alternate contact. Allowed values are: `BILLING`, `OPERATIONS`, `SECURITY`.
     */
    @JvmName("uqlafwyfidlxhlig")
    public suspend fun alternateContactType(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.alternateContactType = mapped
    }

    /**
     * @param value An email address for the alternate contact.
     */
    @JvmName("srggegjlphxvbtrs")
    public suspend fun emailAddress(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.emailAddress = mapped
    }

    /**
     * @param value Name of the alternate contact.
     */
    @JvmName("jpauabggifyoyeum")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value Phone number for the alternate contact.
     */
    @JvmName("wpiaoygjtdrlbftd")
    public suspend fun phoneNumber(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.phoneNumber = mapped
    }

    /**
     * @param value Title for the alternate contact.
     */
    @JvmName("sewkwccixxdelbfe")
    public suspend fun title(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.title = mapped
    }

    internal fun build(): AlternativeContactArgs = AlternativeContactArgs(
        accountId = accountId,
        alternateContactType = alternateContactType,
        emailAddress = emailAddress,
        name = name,
        phoneNumber = phoneNumber,
        title = title,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy