AWS Classic v5.41.0, May 15 23
AWS Classic v5.41.0, May 15 23
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
, 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
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()
{
Value = "enabled",
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v5/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{
Value: pulumi.String("enabled"),
})
if err != nil {
return err
}
return nil
})
}
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 pulumi
import pulumi_aws as aws
test = aws.ecs.AccountSettingDefault("test", value="enabled")
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const test = new aws.ecs.AccountSettingDefault("test", {value: "enabled"});
resources:
test:
type: aws:ecs:AccountSettingDefault
properties:
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:
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. Valid values are
serviceLongArnFormat
,taskLongArnFormat
,containerInstanceLongArnFormat
,awsvpcTrunking
andcontainerInsights
.- Principal
Arn string - Value string
State of the setting. Valid values are
enabled
anddisabled
.
- Name string
Name of the account setting to set. Valid values are
serviceLongArnFormat
,taskLongArnFormat
,containerInstanceLongArnFormat
,awsvpcTrunking
andcontainerInsights
.- Principal
Arn string - Value string
State of the setting. Valid values are
enabled
anddisabled
.
- name String
Name of the account setting to set. Valid values are
serviceLongArnFormat
,taskLongArnFormat
,containerInstanceLongArnFormat
,awsvpcTrunking
andcontainerInsights
.- principal
Arn String - value String
State of the setting. Valid values are
enabled
anddisabled
.
- name string
Name of the account setting to set. Valid values are
serviceLongArnFormat
,taskLongArnFormat
,containerInstanceLongArnFormat
,awsvpcTrunking
andcontainerInsights
.- principal
Arn string - value string
State of the setting. Valid values are
enabled
anddisabled
.
- name str
Name of the account setting to set. Valid values are
serviceLongArnFormat
,taskLongArnFormat
,containerInstanceLongArnFormat
,awsvpcTrunking
andcontainerInsights
.- principal_
arn str - value str
State of the setting. Valid values are
enabled
anddisabled
.
- name String
Name of the account setting to set. Valid values are
serviceLongArnFormat
,taskLongArnFormat
,containerInstanceLongArnFormat
,awsvpcTrunking
andcontainerInsights
.- principal
Arn String - value String
State of the setting. Valid values are
enabled
anddisabled
.
Import
ECS Account Setting defaults can be imported using the name
, e.g.,
$ 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.