libZSservicesZSamazonka-greengrassZSamazonka-greengrass
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.Greengrass.Types.Resource

Description

 
Synopsis

Documentation

data Resource Source #

Information about a resource.

See: newResource smart constructor.

Constructors

Resource' 

Fields

  • resourceDataContainer :: ResourceDataContainer

    A container of data for all resource types.

  • id :: Text

    The resource ID, used to refer to a resource in the Lambda function configuration. Max length is 128 characters with pattern ''[a-zA-Z0-9:_-]+''. This must be unique within a Greengrass group.

  • name :: Text

    The descriptive resource name, which is displayed on the AWS IoT Greengrass console. Max length 128 characters with pattern ''[a-zA-Z0-9:_-]+''. This must be unique within a Greengrass group.

Instances

Instances details
Eq Resource Source # 
Instance details

Defined in Amazonka.Greengrass.Types.Resource

Read Resource Source # 
Instance details

Defined in Amazonka.Greengrass.Types.Resource

Show Resource Source # 
Instance details

Defined in Amazonka.Greengrass.Types.Resource

Generic Resource Source # 
Instance details

Defined in Amazonka.Greengrass.Types.Resource

Associated Types

type Rep Resource :: Type -> Type #

Methods

from :: Resource -> Rep Resource x #

to :: Rep Resource x -> Resource #

NFData Resource Source # 
Instance details

Defined in Amazonka.Greengrass.Types.Resource

Methods

rnf :: Resource -> () #

Hashable Resource Source # 
Instance details

Defined in Amazonka.Greengrass.Types.Resource

Methods

hashWithSalt :: Int -> Resource -> Int #

hash :: Resource -> Int #

ToJSON Resource Source # 
Instance details

Defined in Amazonka.Greengrass.Types.Resource

FromJSON Resource Source # 
Instance details

Defined in Amazonka.Greengrass.Types.Resource

type Rep Resource Source # 
Instance details

Defined in Amazonka.Greengrass.Types.Resource

type Rep Resource = D1 ('MetaData "Resource" "Amazonka.Greengrass.Types.Resource" "libZSservicesZSamazonka-greengrassZSamazonka-greengrass" 'False) (C1 ('MetaCons "Resource'" 'PrefixI 'True) (S1 ('MetaSel ('Just "resourceDataContainer") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ResourceDataContainer) :*: (S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newResource Source #

Create a value of Resource 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:resourceDataContainer:Resource', resource_resourceDataContainer - A container of data for all resource types.

$sel:id:Resource', resource_id - The resource ID, used to refer to a resource in the Lambda function configuration. Max length is 128 characters with pattern ''[a-zA-Z0-9:_-]+''. This must be unique within a Greengrass group.

$sel:name:Resource', resource_name - The descriptive resource name, which is displayed on the AWS IoT Greengrass console. Max length 128 characters with pattern ''[a-zA-Z0-9:_-]+''. This must be unique within a Greengrass group.

resource_resourceDataContainer :: Lens' Resource ResourceDataContainer Source #

A container of data for all resource types.

resource_id :: Lens' Resource Text Source #

The resource ID, used to refer to a resource in the Lambda function configuration. Max length is 128 characters with pattern ''[a-zA-Z0-9:_-]+''. This must be unique within a Greengrass group.

resource_name :: Lens' Resource Text Source #

The descriptive resource name, which is displayed on the AWS IoT Greengrass console. Max length 128 characters with pattern ''[a-zA-Z0-9:_-]+''. This must be unique within a Greengrass group.