com.pulumi.aws.costoptimizationhub.kotlin.EnrollmentStatusArgs.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.costoptimizationhub.kotlin
import com.pulumi.aws.costoptimizationhub.EnrollmentStatusArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Resource for managing AWS Cost Optimization Hub Enrollment Status.
* > **TIP:** The Cost Optimization Hub only has a `us-east-1` endpoint. However, you can access the service globally with the AWS Provider from other regions. Other tools, such as the [AWS CLI](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/cost-optimization-hub/index.html), may require you to specify the `us-east-1` region when using the service.
* ## Example Usage
* ### Basic Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
* const example = new aws.costoptimizationhub.EnrollmentStatus("example", {});
* ```
* ```python
* import pulumi
* import pulumi_aws as aws
* example = aws.costoptimizationhub.EnrollmentStatus("example")
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Aws = Pulumi.Aws;
* return await Deployment.RunAsync(() =>
* {
* var example = new Aws.CostOptimizationHub.EnrollmentStatus("example");
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-aws/sdk/v6/go/aws/costoptimizationhub"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := costoptimizationhub.NewEnrollmentStatus(ctx, "example", nil)
* 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.costoptimizationhub.EnrollmentStatus;
* 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 EnrollmentStatus("example");
* }
* }
* ```
* ```yaml
* resources:
* example:
* type: aws:costoptimizationhub:EnrollmentStatus
* ```
*
* ### Usage with all the arguments
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
* const example = new aws.costoptimizationhub.EnrollmentStatus("example", {includeMemberAccounts: true});
* ```
* ```python
* import pulumi
* import pulumi_aws as aws
* example = aws.costoptimizationhub.EnrollmentStatus("example", include_member_accounts=True)
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Aws = Pulumi.Aws;
* return await Deployment.RunAsync(() =>
* {
* var example = new Aws.CostOptimizationHub.EnrollmentStatus("example", new()
* {
* IncludeMemberAccounts = true,
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-aws/sdk/v6/go/aws/costoptimizationhub"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := costoptimizationhub.NewEnrollmentStatus(ctx, "example", &costoptimizationhub.EnrollmentStatusArgs{
* IncludeMemberAccounts: pulumi.Bool(true),
* })
* 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.costoptimizationhub.EnrollmentStatus;
* import com.pulumi.aws.costoptimizationhub.EnrollmentStatusArgs;
* 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 EnrollmentStatus("example", EnrollmentStatusArgs.builder()
* .includeMemberAccounts(true)
* .build());
* }
* }
* ```
* ```yaml
* resources:
* example:
* type: aws:costoptimizationhub:EnrollmentStatus
* properties:
* includeMemberAccounts: true
* ```
*
* ## Import
* Using `pulumi import`, import Cost Optimization Hub Enrollment Status using your AWS account ID. For example:
* ```sh
* $ pulumi import aws:costoptimizationhub/enrollmentStatus:EnrollmentStatus example 111222333444
* ```
* @property includeMemberAccounts Flag to enroll member accounts of the organization if the account is the management account. No drift detection is currently supported for this argument. Default value is `false`.
*/
public data class EnrollmentStatusArgs(
public val includeMemberAccounts: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.aws.costoptimizationhub.EnrollmentStatusArgs =
com.pulumi.aws.costoptimizationhub.EnrollmentStatusArgs.builder()
.includeMemberAccounts(includeMemberAccounts?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [EnrollmentStatusArgs].
*/
@PulumiTagMarker
public class EnrollmentStatusArgsBuilder internal constructor() {
private var includeMemberAccounts: Output? = null
/**
* @param value Flag to enroll member accounts of the organization if the account is the management account. No drift detection is currently supported for this argument. Default value is `false`.
*/
@JvmName("wgaayycuorrmsgpt")
public suspend fun includeMemberAccounts(`value`: Output) {
this.includeMemberAccounts = value
}
/**
* @param value Flag to enroll member accounts of the organization if the account is the management account. No drift detection is currently supported for this argument. Default value is `false`.
*/
@JvmName("fgdvqsllrgqfnwlt")
public suspend fun includeMemberAccounts(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.includeMemberAccounts = mapped
}
internal fun build(): EnrollmentStatusArgs = EnrollmentStatusArgs(
includeMemberAccounts = includeMemberAccounts,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy