amazonka-ram-2.0: Amazon Resource Access Manager 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.RAM.GetPermission

Description

Gets the contents of an RAM permission in JSON format.

Synopsis

Creating a Request

data GetPermission Source #

See: newGetPermission smart constructor.

Constructors

GetPermission' 

Fields

  • permissionVersion :: Maybe Int

    Specifies identifier for the version of the RAM permission to retrieve. If you don't specify this parameter, the operation retrieves the default version.

  • permissionArn :: Text

    Specifies the Amazon Resoure Name (ARN) of the permission whose contents you want to retrieve. To find the ARN for a permission, use either the ListPermissions operation or go to the Permissions library page in the RAM console and then choose the name of the permission. The ARN is displayed on the detail page.

Instances

Instances details
ToJSON GetPermission Source # 
Instance details

Defined in Amazonka.RAM.GetPermission

ToHeaders GetPermission Source # 
Instance details

Defined in Amazonka.RAM.GetPermission

ToPath GetPermission Source # 
Instance details

Defined in Amazonka.RAM.GetPermission

ToQuery GetPermission Source # 
Instance details

Defined in Amazonka.RAM.GetPermission

AWSRequest GetPermission Source # 
Instance details

Defined in Amazonka.RAM.GetPermission

Associated Types

type AWSResponse GetPermission #

Generic GetPermission Source # 
Instance details

Defined in Amazonka.RAM.GetPermission

Associated Types

type Rep GetPermission :: Type -> Type #

Read GetPermission Source # 
Instance details

Defined in Amazonka.RAM.GetPermission

Show GetPermission Source # 
Instance details

Defined in Amazonka.RAM.GetPermission

NFData GetPermission Source # 
Instance details

Defined in Amazonka.RAM.GetPermission

Methods

rnf :: GetPermission -> () #

Eq GetPermission Source # 
Instance details

Defined in Amazonka.RAM.GetPermission

Hashable GetPermission Source # 
Instance details

Defined in Amazonka.RAM.GetPermission

type AWSResponse GetPermission Source # 
Instance details

Defined in Amazonka.RAM.GetPermission

type Rep GetPermission Source # 
Instance details

Defined in Amazonka.RAM.GetPermission

type Rep GetPermission = D1 ('MetaData "GetPermission" "Amazonka.RAM.GetPermission" "amazonka-ram-2.0-2ZD9k8USaHb58ZVl9MaFYL" 'False) (C1 ('MetaCons "GetPermission'" 'PrefixI 'True) (S1 ('MetaSel ('Just "permissionVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "permissionArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newGetPermission Source #

Create a value of GetPermission 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:permissionVersion:GetPermission', getPermission_permissionVersion - Specifies identifier for the version of the RAM permission to retrieve. If you don't specify this parameter, the operation retrieves the default version.

$sel:permissionArn:GetPermission', getPermission_permissionArn - Specifies the Amazon Resoure Name (ARN) of the permission whose contents you want to retrieve. To find the ARN for a permission, use either the ListPermissions operation or go to the Permissions library page in the RAM console and then choose the name of the permission. The ARN is displayed on the detail page.

Request Lenses

getPermission_permissionVersion :: Lens' GetPermission (Maybe Int) Source #

Specifies identifier for the version of the RAM permission to retrieve. If you don't specify this parameter, the operation retrieves the default version.

getPermission_permissionArn :: Lens' GetPermission Text Source #

Specifies the Amazon Resoure Name (ARN) of the permission whose contents you want to retrieve. To find the ARN for a permission, use either the ListPermissions operation or go to the Permissions library page in the RAM console and then choose the name of the permission. The ARN is displayed on the detail page.

Destructuring the Response

data GetPermissionResponse Source #

See: newGetPermissionResponse smart constructor.

Constructors

GetPermissionResponse' 

Fields

Instances

Instances details
Generic GetPermissionResponse Source # 
Instance details

Defined in Amazonka.RAM.GetPermission

Associated Types

type Rep GetPermissionResponse :: Type -> Type #

Read GetPermissionResponse Source # 
Instance details

Defined in Amazonka.RAM.GetPermission

Show GetPermissionResponse Source # 
Instance details

Defined in Amazonka.RAM.GetPermission

NFData GetPermissionResponse Source # 
Instance details

Defined in Amazonka.RAM.GetPermission

Methods

rnf :: GetPermissionResponse -> () #

Eq GetPermissionResponse Source # 
Instance details

Defined in Amazonka.RAM.GetPermission

type Rep GetPermissionResponse Source # 
Instance details

Defined in Amazonka.RAM.GetPermission

type Rep GetPermissionResponse = D1 ('MetaData "GetPermissionResponse" "Amazonka.RAM.GetPermission" "amazonka-ram-2.0-2ZD9k8USaHb58ZVl9MaFYL" 'False) (C1 ('MetaCons "GetPermissionResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "permission") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ResourceSharePermissionDetail)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newGetPermissionResponse Source #

Create a value of GetPermissionResponse 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:

GetPermissionResponse, getPermissionResponse_permission - An object that contains information about the permission.

$sel:httpStatus:GetPermissionResponse', getPermissionResponse_httpStatus - The response's http status code.

Response Lenses

getPermissionResponse_permission :: Lens' GetPermissionResponse (Maybe ResourceSharePermissionDetail) Source #

An object that contains information about the permission.