amazonka-greengrass-2.0: Amazon Greengrass 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.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
FromJSON ResourceAccessPolicy Source # 
Instance details

Defined in Amazonka.Greengrass.Types.ResourceAccessPolicy

ToJSON 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 #

Read ResourceAccessPolicy Source # 
Instance details

Defined in Amazonka.Greengrass.Types.ResourceAccessPolicy

Show ResourceAccessPolicy Source # 
Instance details

Defined in Amazonka.Greengrass.Types.ResourceAccessPolicy

NFData ResourceAccessPolicy Source # 
Instance details

Defined in Amazonka.Greengrass.Types.ResourceAccessPolicy

Methods

rnf :: ResourceAccessPolicy -> () #

Eq ResourceAccessPolicy Source # 
Instance details

Defined in Amazonka.Greengrass.Types.ResourceAccessPolicy

Hashable 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" "amazonka-greengrass-2.0-KjUXjyW3l8XyfFjm5ZueR" '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.)