1. Packages
  2. AWS
  3. API Docs
  4. ecs
  5. AccountSettingDefault
AWS v6.74.0 published on Wednesday, Mar 26, 2025 by Pulumi

aws.ecs.AccountSettingDefault

Explore with Pulumi AI

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

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const test = new aws.ecs.AccountSettingDefault("test", {
    name: "taskLongArnFormat",
    value: "enabled",
});
Copy
import pulumi
import pulumi_aws as aws

test = aws.ecs.AccountSettingDefault("test",
    name="taskLongArnFormat",
    value="enabled")
Copy
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/ecs"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := ecs.NewAccountSettingDefault(ctx, "test", &ecs.AccountSettingDefaultArgs{
			Name:  pulumi.String("taskLongArnFormat"),
			Value: pulumi.String("enabled"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;

return await Deployment.RunAsync(() => 
{
    var test = new Aws.Ecs.AccountSettingDefault("test", new()
    {
        Name = "taskLongArnFormat",
        Value = "enabled",
    });

});
Copy
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());

    }
}
Copy
resources:
  test:
    type: aws:ecs:AccountSettingDefault
    properties:
      name: taskLongArnFormat
      value: enabled
Copy

Create AccountSettingDefault Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new AccountSettingDefault(name: string, args: AccountSettingDefaultArgs, opts?: CustomResourceOptions);
@overload
def AccountSettingDefault(resource_name: str,
                          args: AccountSettingDefaultArgs,
                          opts: Optional[ResourceOptions] = None)

@overload
def AccountSettingDefault(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          value: Optional[str] = None,
                          name: Optional[str] = None)
func NewAccountSettingDefault(ctx *Context, name string, args AccountSettingDefaultArgs, opts ...ResourceOption) (*AccountSettingDefault, error)
public AccountSettingDefault(string name, AccountSettingDefaultArgs args, CustomResourceOptions? opts = null)
public AccountSettingDefault(String name, AccountSettingDefaultArgs args)
public AccountSettingDefault(String name, AccountSettingDefaultArgs args, CustomResourceOptions options)
type: aws:ecs:AccountSettingDefault
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. AccountSettingDefaultArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. AccountSettingDefaultArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. AccountSettingDefaultArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. AccountSettingDefaultArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. AccountSettingDefaultArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var accountSettingDefaultResource = new Aws.Ecs.AccountSettingDefault("accountSettingDefaultResource", new()
{
    Value = "string",
    Name = "string",
});
Copy
example, err := ecs.NewAccountSettingDefault(ctx, "accountSettingDefaultResource", &ecs.AccountSettingDefaultArgs{
	Value: pulumi.String("string"),
	Name:  pulumi.String("string"),
})
Copy
var accountSettingDefaultResource = new AccountSettingDefault("accountSettingDefaultResource", AccountSettingDefaultArgs.builder()
    .value("string")
    .name("string")
    .build());
Copy
account_setting_default_resource = aws.ecs.AccountSettingDefault("accountSettingDefaultResource",
    value="string",
    name="string")
Copy
const accountSettingDefaultResource = new aws.ecs.AccountSettingDefault("accountSettingDefaultResource", {
    value: "string",
    name: "string",
});
Copy
type: aws:ecs:AccountSettingDefault
properties:
    name: string
    value: string
Copy

AccountSettingDefault Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The AccountSettingDefault resource accepts the following input properties:

Value This property is required. string
State of the setting.
Name Changes to this property will trigger replacement. string
Name of the account setting to set.
Value This property is required. string
State of the setting.
Name Changes to this property will trigger replacement. string
Name of the account setting to set.
value This property is required. String
State of the setting.
name Changes to this property will trigger replacement. String
Name of the account setting to set.
value This property is required. string
State of the setting.
name Changes to this property will trigger replacement. string
Name of the account setting to set.
value This property is required. str
State of the setting.
name Changes to this property will trigger replacement. str
Name of the account setting to set.
value This property is required. String
State of the setting.
name Changes to this property will trigger replacement. String
Name of the account setting to set.

Outputs

All input properties are implicitly available as output properties. Additionally, the AccountSettingDefault resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
PrincipalArn string
Id string
The provider-assigned unique ID for this managed resource.
PrincipalArn string
id String
The provider-assigned unique ID for this managed resource.
principalArn String
id string
The provider-assigned unique ID for this managed resource.
principalArn string
id str
The provider-assigned unique ID for this managed resource.
principal_arn str
id String
The provider-assigned unique ID for this managed resource.
principalArn String

Look up Existing AccountSettingDefault Resource

Get an existing AccountSettingDefault resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: AccountSettingDefaultState, opts?: CustomResourceOptions): AccountSettingDefault
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        name: Optional[str] = None,
        principal_arn: Optional[str] = None,
        value: Optional[str] = None) -> AccountSettingDefault
func GetAccountSettingDefault(ctx *Context, name string, id IDInput, state *AccountSettingDefaultState, opts ...ResourceOption) (*AccountSettingDefault, error)
public static AccountSettingDefault Get(string name, Input<string> id, AccountSettingDefaultState? state, CustomResourceOptions? opts = null)
public static AccountSettingDefault get(String name, Output<String> id, AccountSettingDefaultState state, CustomResourceOptions options)
resources:  _:    type: aws:ecs:AccountSettingDefault    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
Name Changes to this property will trigger replacement. string
Name of the account setting to set.
PrincipalArn string
Value string
State of the setting.
Name Changes to this property will trigger replacement. string
Name of the account setting to set.
PrincipalArn string
Value string
State of the setting.
name Changes to this property will trigger replacement. String
Name of the account setting to set.
principalArn String
value String
State of the setting.
name Changes to this property will trigger replacement. string
Name of the account setting to set.
principalArn string
value string
State of the setting.
name Changes to this property will trigger replacement. str
Name of the account setting to set.
principal_arn str
value str
State of the setting.
name Changes to this property will trigger replacement. String
Name of the account setting to set.
principalArn String
value String
State of the setting.

Import

Using pulumi import, import ECS Account Setting defaults using the name. For example:

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

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
AWS Classic pulumi/pulumi-aws
License
Apache-2.0
Notes
This Pulumi package is based on the aws Terraform Provider.