com.pulumi.aws.costoptimizationhub.kotlin.PreferencesArgs.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.PreferencesArgs.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 Cost Optimization Hub Preferences.
* ## Example Usage
* ### Basic Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
* const example = new aws.costoptimizationhub.Preferences("example", {});
* ```
* ```python
* import pulumi
* import pulumi_aws as aws
* example = aws.costoptimizationhub.Preferences("example")
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Aws = Pulumi.Aws;
* return await Deployment.RunAsync(() =>
* {
* var example = new Aws.CostOptimizationHub.Preferences("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.NewPreferences(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.Preferences;
* 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 Preferences("example");
* }
* }
* ```
* ```yaml
* resources:
* example:
* type: aws:costoptimizationhub:Preferences
* ```
*
* ### Usage with all the arguments
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
* const example = new aws.costoptimizationhub.Preferences("example", {
* memberAccountDiscountVisibility: "None",
* savingsEstimationMode: "AfterDiscounts",
* });
* ```
* ```python
* import pulumi
* import pulumi_aws as aws
* example = aws.costoptimizationhub.Preferences("example",
* member_account_discount_visibility="None",
* savings_estimation_mode="AfterDiscounts")
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Aws = Pulumi.Aws;
* return await Deployment.RunAsync(() =>
* {
* var example = new Aws.CostOptimizationHub.Preferences("example", new()
* {
* MemberAccountDiscountVisibility = "None",
* SavingsEstimationMode = "AfterDiscounts",
* });
* });
* ```
* ```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.NewPreferences(ctx, "example", &costoptimizationhub.PreferencesArgs{
* MemberAccountDiscountVisibility: pulumi.String("None"),
* SavingsEstimationMode: pulumi.String("AfterDiscounts"),
* })
* 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.Preferences;
* import com.pulumi.aws.costoptimizationhub.PreferencesArgs;
* 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 Preferences("example", PreferencesArgs.builder()
* .memberAccountDiscountVisibility("None")
* .savingsEstimationMode("AfterDiscounts")
* .build());
* }
* }
* ```
* ```yaml
* resources:
* example:
* type: aws:costoptimizationhub:Preferences
* properties:
* memberAccountDiscountVisibility: None
* savingsEstimationMode: AfterDiscounts
* ```
*
* ## Import
* Using `pulumi import`, import Cost Optimization Hub Preferences using the `id`. For example:
* ```sh
* $ pulumi import aws:costoptimizationhub/preferences:Preferences example 111222333444
* ```
* @property memberAccountDiscountVisibility Customize whether the member accounts can see the "After Discounts" savings estimates. Valid values are `All` and `None`. Default value is `All`.
* @property savingsEstimationMode Customize how estimated monthly savings are calculated. Valid values are `BeforeDiscounts` and `AfterDiscounts`. Default value is `BeforeDiscounts`.
*/
public data class PreferencesArgs(
public val memberAccountDiscountVisibility: Output? = null,
public val savingsEstimationMode: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.aws.costoptimizationhub.PreferencesArgs =
com.pulumi.aws.costoptimizationhub.PreferencesArgs.builder()
.memberAccountDiscountVisibility(memberAccountDiscountVisibility?.applyValue({ args0 -> args0 }))
.savingsEstimationMode(savingsEstimationMode?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [PreferencesArgs].
*/
@PulumiTagMarker
public class PreferencesArgsBuilder internal constructor() {
private var memberAccountDiscountVisibility: Output? = null
private var savingsEstimationMode: Output? = null
/**
* @param value Customize whether the member accounts can see the "After Discounts" savings estimates. Valid values are `All` and `None`. Default value is `All`.
*/
@JvmName("yhewwnaxjcafkgqy")
public suspend fun memberAccountDiscountVisibility(`value`: Output) {
this.memberAccountDiscountVisibility = value
}
/**
* @param value Customize how estimated monthly savings are calculated. Valid values are `BeforeDiscounts` and `AfterDiscounts`. Default value is `BeforeDiscounts`.
*/
@JvmName("xwmothmyamndmqki")
public suspend fun savingsEstimationMode(`value`: Output) {
this.savingsEstimationMode = value
}
/**
* @param value Customize whether the member accounts can see the "After Discounts" savings estimates. Valid values are `All` and `None`. Default value is `All`.
*/
@JvmName("vdnwajhdecacrouj")
public suspend fun memberAccountDiscountVisibility(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.memberAccountDiscountVisibility = mapped
}
/**
* @param value Customize how estimated monthly savings are calculated. Valid values are `BeforeDiscounts` and `AfterDiscounts`. Default value is `BeforeDiscounts`.
*/
@JvmName("byxivtiwatvbqovh")
public suspend fun savingsEstimationMode(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.savingsEstimationMode = mapped
}
internal fun build(): PreferencesArgs = PreferencesArgs(
memberAccountDiscountVisibility = memberAccountDiscountVisibility,
savingsEstimationMode = savingsEstimationMode,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy