Try AWS Native preview for resources not in the classic version.
aws.ecs.AccountSettingDefault
Explore with Pulumi AI
Try AWS Native preview for resources not in the classic version.
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
, andtaskLongArnFormat
. 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
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 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.
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",
});
example, err := ecs.NewAccountSettingDefault(ctx, "accountSettingDefaultResource", &ecs.AccountSettingDefaultArgs{
Value: pulumi.String("string"),
Name: pulumi.String("string"),
})
var accountSettingDefaultResource = new AccountSettingDefault("accountSettingDefaultResource", AccountSettingDefaultArgs.builder()
.value("string")
.name("string")
.build());
account_setting_default_resource = aws.ecs.AccountSettingDefault("accountSettingDefaultResource",
value="string",
name="string")
const accountSettingDefaultResource = new aws.ecs.AccountSettingDefault("accountSettingDefaultResource", {
value: "string",
name: "string",
});
type: aws:ecs:AccountSettingDefault
properties:
name: string
value: string
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:
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.
- Principal
Arn string
- Id string
- The provider-assigned unique ID for this managed resource.
- Principal
Arn string
- id String
- The provider-assigned unique ID for this managed resource.
- principal
Arn String
- id string
- The provider-assigned unique ID for this managed resource.
- principal
Arn 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.
- principal
Arn 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.
- Name string
- Name of the account setting to set.
- Principal
Arn string - Value string
- State of the setting.
- Name string
- Name of the account setting to set.
- Principal
Arn string - Value string
- State of the setting.
- name String
- Name of the account setting to set.
- principal
Arn String - value String
- State of the setting.
- name string
- Name of the account setting to set.
- principal
Arn 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.
- principal
Arn 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
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.
Try AWS Native preview for resources not in the classic version.