amazonka-ecs-2.0: Amazon EC2 Container Service SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.ECS.Types.Attribute

Description

 
Synopsis

Documentation

data Attribute Source #

An attribute is a name-value pair that's associated with an Amazon ECS object. Use attributes to extend the Amazon ECS data model by adding custom metadata to your resources. For more information, see Attributes in the Amazon Elastic Container Service Developer Guide.

See: newAttribute smart constructor.

Constructors

Attribute' 

Fields

  • targetId :: Maybe Text

    The ID of the target. You can specify the short form ID for a resource or the full Amazon Resource Name (ARN).

  • targetType :: Maybe TargetType

    The type of the target to attach the attribute with. This parameter is required if you use the short form ID for a resource instead of the full ARN.

  • value :: Maybe Text

    The value of the attribute. The value must contain between 1 and 128 characters. It can contain letters (uppercase and lowercase), numbers, hyphens (-), underscores (_), periods (.), at signs (@), forward slashes (/), back slashes (\), colons (:), or spaces. The value can't start or end with a space.

  • name :: Text

    The name of the attribute. The name must contain between 1 and 128 characters. The name may contain letters (uppercase and lowercase), numbers, hyphens (-), underscores (_), forward slashes (/), back slashes (\), or periods (.).

Instances

Instances details
FromJSON Attribute Source # 
Instance details

Defined in Amazonka.ECS.Types.Attribute

ToJSON Attribute Source # 
Instance details

Defined in Amazonka.ECS.Types.Attribute

Generic Attribute Source # 
Instance details

Defined in Amazonka.ECS.Types.Attribute

Associated Types

type Rep Attribute :: Type -> Type #

Read Attribute Source # 
Instance details

Defined in Amazonka.ECS.Types.Attribute

Show Attribute Source # 
Instance details

Defined in Amazonka.ECS.Types.Attribute

NFData Attribute Source # 
Instance details

Defined in Amazonka.ECS.Types.Attribute

Methods

rnf :: Attribute -> () #

Eq Attribute Source # 
Instance details

Defined in Amazonka.ECS.Types.Attribute

Hashable Attribute Source # 
Instance details

Defined in Amazonka.ECS.Types.Attribute

type Rep Attribute Source # 
Instance details

Defined in Amazonka.ECS.Types.Attribute

type Rep Attribute = D1 ('MetaData "Attribute" "Amazonka.ECS.Types.Attribute" "amazonka-ecs-2.0-3xFxVqi9x5nBZ44jBEC5G8" 'False) (C1 ('MetaCons "Attribute'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "targetId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "targetType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe TargetType))) :*: (S1 ('MetaSel ('Just "value") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newAttribute Source #

Create a value of Attribute with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:targetId:Attribute', attribute_targetId - The ID of the target. You can specify the short form ID for a resource or the full Amazon Resource Name (ARN).

$sel:targetType:Attribute', attribute_targetType - The type of the target to attach the attribute with. This parameter is required if you use the short form ID for a resource instead of the full ARN.

$sel:value:Attribute', attribute_value - The value of the attribute. The value must contain between 1 and 128 characters. It can contain letters (uppercase and lowercase), numbers, hyphens (-), underscores (_), periods (.), at signs (@), forward slashes (/), back slashes (\), colons (:), or spaces. The value can't start or end with a space.

$sel:name:Attribute', attribute_name - The name of the attribute. The name must contain between 1 and 128 characters. The name may contain letters (uppercase and lowercase), numbers, hyphens (-), underscores (_), forward slashes (/), back slashes (\), or periods (.).

attribute_targetId :: Lens' Attribute (Maybe Text) Source #

The ID of the target. You can specify the short form ID for a resource or the full Amazon Resource Name (ARN).

attribute_targetType :: Lens' Attribute (Maybe TargetType) Source #

The type of the target to attach the attribute with. This parameter is required if you use the short form ID for a resource instead of the full ARN.

attribute_value :: Lens' Attribute (Maybe Text) Source #

The value of the attribute. The value must contain between 1 and 128 characters. It can contain letters (uppercase and lowercase), numbers, hyphens (-), underscores (_), periods (.), at signs (@), forward slashes (/), back slashes (\), colons (:), or spaces. The value can't start or end with a space.

attribute_name :: Lens' Attribute Text Source #

The name of the attribute. The name must contain between 1 and 128 characters. The name may contain letters (uppercase and lowercase), numbers, hyphens (-), underscores (_), forward slashes (/), back slashes (\), or periods (.).