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.ResourceAccessPolicy

Description

 
Synopsis

Documentation

data ResourceAccessPolicy Source #

A policy used by the function to access a resource.

See: newResourceAccessPolicy smart constructor.

Constructors

ResourceAccessPolicy' 

Fields

  • permission :: Maybe Permission

    The permissions that the Lambda function has to the resource. Can be one of ''rw'' (read/write) or ''ro'' (read-only).

  • resourceId :: Text

    The ID of the resource. (This ID is assigned to the resource when you create the resource definiton.)

Instances

Instances details
Eq ResourceAccessPolicy Source # 
Instance details

Defined in Amazonka.Greengrass.Types.ResourceAccessPolicy

Read ResourceAccessPolicy Source # 
Instance details

Defined in Amazonka.Greengrass.Types.ResourceAccessPolicy

Show ResourceAccessPolicy Source # 
Instance details

Defined in Amazonka.Greengrass.Types.ResourceAccessPolicy

Generic ResourceAccessPolicy Source # 
Instance details

Defined in Amazonka.Greengrass.Types.ResourceAccessPolicy

Associated Types

type Rep ResourceAccessPolicy :: Type -> Type #

NFData ResourceAccessPolicy Source # 
Instance details

Defined in Amazonka.Greengrass.Types.ResourceAccessPolicy

Methods

rnf :: ResourceAccessPolicy -> () #

Hashable ResourceAccessPolicy Source # 
Instance details

Defined in Amazonka.Greengrass.Types.ResourceAccessPolicy

ToJSON ResourceAccessPolicy Source # 
Instance details

Defined in Amazonka.Greengrass.Types.ResourceAccessPolicy

FromJSON ResourceAccessPolicy Source # 
Instance details

Defined in Amazonka.Greengrass.Types.ResourceAccessPolicy

type Rep ResourceAccessPolicy Source # 
Instance details

Defined in Amazonka.Greengrass.Types.ResourceAccessPolicy

type Rep ResourceAccessPolicy = D1 ('MetaData "ResourceAccessPolicy" "Amazonka.Greengrass.Types.ResourceAccessPolicy" "libZSservicesZSamazonka-greengrassZSamazonka-greengrass" 'False) (C1 ('MetaCons "ResourceAccessPolicy'" 'PrefixI 'True) (S1 ('MetaSel ('Just "permission") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Permission)) :*: S1 ('MetaSel ('Just "resourceId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newResourceAccessPolicy Source #

Create a value of ResourceAccessPolicy 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:permission:ResourceAccessPolicy', resourceAccessPolicy_permission - The permissions that the Lambda function has to the resource. Can be one of ''rw'' (read/write) or ''ro'' (read-only).

$sel:resourceId:ResourceAccessPolicy', resourceAccessPolicy_resourceId - The ID of the resource. (This ID is assigned to the resource when you create the resource definiton.)

resourceAccessPolicy_permission :: Lens' ResourceAccessPolicy (Maybe Permission) Source #

The permissions that the Lambda function has to the resource. Can be one of ''rw'' (read/write) or ''ro'' (read-only).

resourceAccessPolicy_resourceId :: Lens' ResourceAccessPolicy Text Source #

The ID of the resource. (This ID is assigned to the resource when you create the resource definiton.)