AccountSettingDefaultArgs

data class AccountSettingDefaultArgs(val name: Output<String>? = null, val value: Output<String>? = null) : ConvertibleToJava<AccountSettingDefaultArgs>

Provides an ECS default account setting for a specific ECS Resource name within a specific region. More information can be found on the ECS Developer Guide.

NOTE: The AWS API does not delete this resource. When you run destroy, the provider will attempt to disable the setting. NOTE: Your AWS account may not support disabling containerInstanceLongArnFormat, serviceLongArnFormat, and taskLongArnFormat. If your account does not support disabling these, "destroying" this resource will not disable the setting nor cause a provider error. However, the AWS Provider will log an AWS error: InvalidParameterException: You can no longer disable Long Arn settings.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ecs.AccountSettingDefault;
import com.pulumi.aws.ecs.AccountSettingDefaultArgs;
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 test = new AccountSettingDefault("test", AccountSettingDefaultArgs.builder()
.value("enabled")
.build());
}
}

Import

ECS Account Setting defaults can be imported using the name, e.g.,

$ pulumi import aws:ecs/accountSettingDefault:AccountSettingDefault example taskLongArnFormat

Constructors

Link copied to clipboard
constructor(name: Output<String>? = null, value: Output<String>? = null)

Properties

Link copied to clipboard
val name: Output<String>? = null

Name of the account setting to set. Valid values are serviceLongArnFormat, taskLongArnFormat, containerInstanceLongArnFormat, awsvpcTrunking and containerInsights.

Link copied to clipboard
val value: Output<String>? = null

State of the setting. Valid values are enabled and disabled.

Functions

Link copied to clipboard
open override fun toJava(): AccountSettingDefaultArgs