Package com.pulumi.aws.ecs
Class AccountSettingDefault
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.aws.ecs.AccountSettingDefault
-
public class AccountSettingDefault extends com.pulumi.resources.CustomResource
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](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-account-settings.html). > **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 <!--Start PulumiCodeChooser -->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() .name("taskLongArnFormat") .value("enabled") .build()); } }
-
-
Constructor Summary
Constructors Constructor Description AccountSettingDefault(java.lang.String name)
AccountSettingDefault(java.lang.String name, AccountSettingDefaultArgs args)
AccountSettingDefault(java.lang.String name, AccountSettingDefaultArgs args, com.pulumi.resources.CustomResourceOptions options)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AccountSettingDefault
get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, AccountSettingDefaultState state, com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.com.pulumi.core.Output<java.lang.String>
name()
com.pulumi.core.Output<java.lang.String>
principalArn()
com.pulumi.core.Output<java.lang.String>
value()
-
-
-
Constructor Detail
-
AccountSettingDefault
public AccountSettingDefault(java.lang.String name)
- Parameters:
name
- The _unique_ name of the resulting resource.
-
AccountSettingDefault
public AccountSettingDefault(java.lang.String name, AccountSettingDefaultArgs args)
- Parameters:
name
- The _unique_ name of the resulting resource.args
- The arguments to use to populate this resource's properties.
-
AccountSettingDefault
public AccountSettingDefault(java.lang.String name, AccountSettingDefaultArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options)
- Parameters:
name
- The _unique_ name of the resulting resource.args
- The arguments to use to populate this resource's properties.options
- A bag of options that control this resource's behavior.
-
-
Method Detail
-
name
public com.pulumi.core.Output<java.lang.String> name()
- Returns:
- Name of the account setting to set.
-
principalArn
public com.pulumi.core.Output<java.lang.String> principalArn()
-
value
public com.pulumi.core.Output<java.lang.String> value()
- Returns:
- State of the setting.
-
get
public static AccountSettingDefault get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable AccountSettingDefaultState state, @Nullable com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.- Parameters:
name
- The _unique_ name of the resulting resource.id
- The _unique_ provider ID of the resource to lookup.state
-options
- Optional settings to control the behavior of the CustomResource.
-
-