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.Types.Resource

Description

 
Synopsis

Documentation

data Resource Source #

Describes a resource associated with a resource share in RAM.

See: newResource smart constructor.

Constructors

Resource' 

Fields

Instances

Instances details
FromJSON Resource Source # 
Instance details

Defined in Amazonka.RAM.Types.Resource

Generic Resource Source # 
Instance details

Defined in Amazonka.RAM.Types.Resource

Associated Types

type Rep Resource :: Type -> Type #

Methods

from :: Resource -> Rep Resource x #

to :: Rep Resource x -> Resource #

Read Resource Source # 
Instance details

Defined in Amazonka.RAM.Types.Resource

Show Resource Source # 
Instance details

Defined in Amazonka.RAM.Types.Resource

NFData Resource Source # 
Instance details

Defined in Amazonka.RAM.Types.Resource

Methods

rnf :: Resource -> () #

Eq Resource Source # 
Instance details

Defined in Amazonka.RAM.Types.Resource

Hashable Resource Source # 
Instance details

Defined in Amazonka.RAM.Types.Resource

Methods

hashWithSalt :: Int -> Resource -> Int #

hash :: Resource -> Int #

type Rep Resource Source # 
Instance details

Defined in Amazonka.RAM.Types.Resource

newResource :: Resource 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:arn:Resource', resource_arn - The Amazon Resoure Name (ARN) of the resource.

$sel:creationTime:Resource', resource_creationTime - The date and time when the resource was associated with the resource share.

$sel:lastUpdatedTime:Resource', resource_lastUpdatedTime - The date an time when the association was last updated.

$sel:resourceGroupArn:Resource', resource_resourceGroupArn - The Amazon Resoure Name (ARN) of the resource group. This value is available only if the resource is part of a resource group.

$sel:resourceRegionScope:Resource', resource_resourceRegionScope - Specifies the scope of visibility of this resource:

  • REGIONAL – The resource can be accessed only by using requests that target the Amazon Web Services Region in which the resource exists.
  • GLOBAL – The resource can be accessed from any Amazon Web Services Region.

$sel:resourceShareArn:Resource', resource_resourceShareArn - The Amazon Resoure Name (ARN) of the resource share this resource is associated with.

$sel:status:Resource', resource_status - The current status of the resource.

$sel:statusMessage:Resource', resource_statusMessage - A message about the status of the resource.

$sel:type':Resource', resource_type - The resource type. This takes the form of: service-code:resource-code

resource_creationTime :: Lens' Resource (Maybe UTCTime) Source #

The date and time when the resource was associated with the resource share.

resource_lastUpdatedTime :: Lens' Resource (Maybe UTCTime) Source #

The date an time when the association was last updated.

resource_resourceGroupArn :: Lens' Resource (Maybe Text) Source #

The Amazon Resoure Name (ARN) of the resource group. This value is available only if the resource is part of a resource group.

resource_resourceRegionScope :: Lens' Resource (Maybe ResourceRegionScope) Source #

Specifies the scope of visibility of this resource:

  • REGIONAL – The resource can be accessed only by using requests that target the Amazon Web Services Region in which the resource exists.
  • GLOBAL – The resource can be accessed from any Amazon Web Services Region.

resource_resourceShareArn :: Lens' Resource (Maybe Text) Source #

The Amazon Resoure Name (ARN) of the resource share this resource is associated with.

resource_status :: Lens' Resource (Maybe ResourceStatus) Source #

The current status of the resource.

resource_statusMessage :: Lens' Resource (Maybe Text) Source #

A message about the status of the resource.

resource_type :: Lens' Resource (Maybe Text) Source #

The resource type. This takes the form of: service-code:resource-code