1. Packages
  2. AWS Classic
  3. API Docs
  4. ecs
  5. AccountSettingDefault

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.28.1 published on Thursday, Mar 28, 2024 by Pulumi

aws.ecs.AccountSettingDefault

Explore with Pulumi AI

aws logo

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.28.1 published on Thursday, Mar 28, 2024 by Pulumi

    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",
    });
    
    import pulumi
    import pulumi_aws as aws
    
    test = aws.ecs.AccountSettingDefault("test",
        name="taskLongArnFormat",
        value="enabled")
    
    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
    	})
    }
    
    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",
        });
    
    });
    
    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());
    
        }
    }
    
    resources:
      test:
        type: aws:ecs:AccountSettingDefault
        properties:
          name: taskLongArnFormat
          value: enabled
    

    Create AccountSettingDefault Resource

    new AccountSettingDefault(name: string, args: AccountSettingDefaultArgs, opts?: CustomResourceOptions);
    @overload
    def AccountSettingDefault(resource_name: str,
                              opts: Optional[ResourceOptions] = None,
                              name: Optional[str] = None,
                              value: Optional[str] = None)
    @overload
    def AccountSettingDefault(resource_name: str,
                              args: AccountSettingDefaultArgs,
                              opts: Optional[ResourceOptions] = 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.
    
    
    name string
    The unique name of the resource.
    args AccountSettingDefaultArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args 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 string
    The unique name of the resource.
    args AccountSettingDefaultArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AccountSettingDefaultArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AccountSettingDefaultArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    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

    The AccountSettingDefault resource accepts the following input properties:

    Value string
    State of the setting.
    Name string
    Name of the account setting to set.
    Value string
    State of the setting.
    Name string
    Name of the account setting to set.
    value String
    State of the setting.
    name String
    Name of the account setting to set.
    value string
    State of the setting.
    name string
    Name of the account setting to set.
    value str
    State of the setting.
    name str
    Name of the account setting to set.
    value String
    State of the setting.
    name 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)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    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 string
    Name of the account setting to set.
    PrincipalArn string
    Value string
    State of the setting.
    Name string
    Name of the account setting to set.
    PrincipalArn string
    Value string
    State of the setting.
    name String
    Name of the account setting to set.
    principalArn String
    value String
    State of the setting.
    name string
    Name of the account setting to set.
    principalArn string
    value string
    State of the setting.
    name str
    Name of the account setting to set.
    principal_arn str
    value str
    State of the setting.
    name 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
    

    Package Details

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

    Try AWS Native preview for resources not in the classic version.

    AWS Classic v6.28.1 published on Thursday, Mar 28, 2024 by Pulumi