Skip to content

Put Attributes

ecs_put_attributes R Documentation

Create or update an attribute on an Amazon ECS resource

Description

Create or update an attribute on an Amazon ECS resource. If the attribute doesn't exist, it's created. If the attribute exists, its value is replaced with the specified value. To delete an attribute, use delete_attributes. For more information, see Attributes in the Amazon Elastic Container Service Developer Guide.

Usage

ecs_put_attributes(cluster, attributes)

Arguments

cluster

The short name or full Amazon Resource Name (ARN) of the cluster that contains the resource to apply attributes. If you do not specify a cluster, the default cluster is assumed.

attributes

[required] The attributes to apply to your resource. You can specify up to 10 custom attributes for each resource. You can specify up to 10 attributes in a single call.

Value

A list with the following syntax:

list(
  attributes = list(
    list(
      name = "string",
      value = "string",
      targetType = "container-instance",
      targetId = "string"
    )
  )
)

Request syntax

svc$put_attributes(
  cluster = "string",
  attributes = list(
    list(
      name = "string",
      value = "string",
      targetType = "container-instance",
      targetId = "string"
    )
  )
)