com.pulumi.aws.inspector2.kotlin.MemberAssociationArgs.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.inspector2.kotlin
import com.pulumi.aws.inspector2.MemberAssociationArgs.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 associating accounts to existing Inspector instances.
* ## Example Usage
* ### Basic Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
* const example = new aws.inspector2.MemberAssociation("example", {accountId: "123456789012"});
* ```
* ```python
* import pulumi
* import pulumi_aws as aws
* example = aws.inspector2.MemberAssociation("example", 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.Inspector2.MemberAssociation("example", new()
* {
* AccountId = "123456789012",
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-aws/sdk/v6/go/aws/inspector2"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := inspector2.NewMemberAssociation(ctx, "example", &inspector2.MemberAssociationArgs{
* AccountId: 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.inspector2.MemberAssociation;
* import com.pulumi.aws.inspector2.MemberAssociationArgs;
* 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 MemberAssociation("example", MemberAssociationArgs.builder()
* .accountId("123456789012")
* .build());
* }
* }
* ```
* ```yaml
* resources:
* example:
* type: aws:inspector2:MemberAssociation
* properties:
* accountId: '123456789012'
* ```
*
* ## Import
* Using `pulumi import`, import Amazon Inspector Member Association using the `account_id`. For example:
* ```sh
* $ pulumi import aws:inspector2/memberAssociation:MemberAssociation example 123456789012
* ```
* @property accountId ID of the account to associate
*/
public data class MemberAssociationArgs(
public val accountId: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.aws.inspector2.MemberAssociationArgs =
com.pulumi.aws.inspector2.MemberAssociationArgs.builder()
.accountId(accountId?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [MemberAssociationArgs].
*/
@PulumiTagMarker
public class MemberAssociationArgsBuilder internal constructor() {
private var accountId: Output? = null
/**
* @param value ID of the account to associate
*/
@JvmName("jcuxjqsxppybxlkx")
public suspend fun accountId(`value`: Output) {
this.accountId = value
}
/**
* @param value ID of the account to associate
*/
@JvmName("ytdhearhitinprnl")
public suspend fun accountId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.accountId = mapped
}
internal fun build(): MemberAssociationArgs = MemberAssociationArgs(
accountId = accountId,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy