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

Description

 
Synopsis

Documentation

data ResourceShare Source #

Describes a resource share in RAM.

See: newResourceShare smart constructor.

Constructors

ResourceShare' 

Fields

  • allowExternalPrincipals :: Maybe Bool

    Indicates whether principals outside your organization in Organizations can be associated with a resource share.

  • creationTime :: Maybe POSIX

    The date and time when the resource share was created.

  • featureSet :: Maybe ResourceShareFeatureSet

    Indicates how the resource share was created. Possible values include:

    • CREATED_FROM_POLICY - Indicates that the resource share was created from an Identity and Access Management (IAM) resource-based permission policy attached to the resource. This type of resource share is visible only to the Amazon Web Services account that created it. You can't modify it in RAM unless you promote it. For more information, see PromoteResourceShareCreatedFromPolicy.
    • PROMOTING_TO_STANDARD - The resource share is in the process of being promoted. For more information, see PromoteResourceShareCreatedFromPolicy.
    • STANDARD - Indicates that the resource share was created in RAM using the console or APIs. These resource shares are visible to all principals you share the resource share with. You can modify these resource shares in RAM using the console or APIs.
  • lastUpdatedTime :: Maybe POSIX

    The date and time when the resource share was last updated.

  • name :: Maybe Text

    The name of the resource share.

  • owningAccountId :: Maybe Text

    The ID of the Amazon Web Services account that owns the resource share.

  • resourceShareArn :: Maybe Text

    The Amazon Resoure Name (ARN) of the resource share

  • status :: Maybe ResourceShareStatus

    The current status of the resource share.

  • statusMessage :: Maybe Text

    A message about the status of the resource share.

  • tags :: Maybe [Tag]

    The tag key and value pairs attached to the resource share.

Instances

Instances details
FromJSON ResourceShare Source # 
Instance details

Defined in Amazonka.RAM.Types.ResourceShare

Generic ResourceShare Source # 
Instance details

Defined in Amazonka.RAM.Types.ResourceShare

Associated Types

type Rep ResourceShare :: Type -> Type #

Read ResourceShare Source # 
Instance details

Defined in Amazonka.RAM.Types.ResourceShare

Show ResourceShare Source # 
Instance details

Defined in Amazonka.RAM.Types.ResourceShare

NFData ResourceShare Source # 
Instance details

Defined in Amazonka.RAM.Types.ResourceShare

Methods

rnf :: ResourceShare -> () #

Eq ResourceShare Source # 
Instance details

Defined in Amazonka.RAM.Types.ResourceShare

Hashable ResourceShare Source # 
Instance details

Defined in Amazonka.RAM.Types.ResourceShare

type Rep ResourceShare Source # 
Instance details

Defined in Amazonka.RAM.Types.ResourceShare

newResourceShare :: ResourceShare Source #

Create a value of ResourceShare 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:allowExternalPrincipals:ResourceShare', resourceShare_allowExternalPrincipals - Indicates whether principals outside your organization in Organizations can be associated with a resource share.

$sel:creationTime:ResourceShare', resourceShare_creationTime - The date and time when the resource share was created.

$sel:featureSet:ResourceShare', resourceShare_featureSet - Indicates how the resource share was created. Possible values include:

  • CREATED_FROM_POLICY - Indicates that the resource share was created from an Identity and Access Management (IAM) resource-based permission policy attached to the resource. This type of resource share is visible only to the Amazon Web Services account that created it. You can't modify it in RAM unless you promote it. For more information, see PromoteResourceShareCreatedFromPolicy.
  • PROMOTING_TO_STANDARD - The resource share is in the process of being promoted. For more information, see PromoteResourceShareCreatedFromPolicy.
  • STANDARD - Indicates that the resource share was created in RAM using the console or APIs. These resource shares are visible to all principals you share the resource share with. You can modify these resource shares in RAM using the console or APIs.

$sel:lastUpdatedTime:ResourceShare', resourceShare_lastUpdatedTime - The date and time when the resource share was last updated.

$sel:name:ResourceShare', resourceShare_name - The name of the resource share.

$sel:owningAccountId:ResourceShare', resourceShare_owningAccountId - The ID of the Amazon Web Services account that owns the resource share.

$sel:resourceShareArn:ResourceShare', resourceShare_resourceShareArn - The Amazon Resoure Name (ARN) of the resource share

$sel:status:ResourceShare', resourceShare_status - The current status of the resource share.

$sel:statusMessage:ResourceShare', resourceShare_statusMessage - A message about the status of the resource share.

$sel:tags:ResourceShare', resourceShare_tags - The tag key and value pairs attached to the resource share.

resourceShare_allowExternalPrincipals :: Lens' ResourceShare (Maybe Bool) Source #

Indicates whether principals outside your organization in Organizations can be associated with a resource share.

resourceShare_creationTime :: Lens' ResourceShare (Maybe UTCTime) Source #

The date and time when the resource share was created.

resourceShare_featureSet :: Lens' ResourceShare (Maybe ResourceShareFeatureSet) Source #

Indicates how the resource share was created. Possible values include:

  • CREATED_FROM_POLICY - Indicates that the resource share was created from an Identity and Access Management (IAM) resource-based permission policy attached to the resource. This type of resource share is visible only to the Amazon Web Services account that created it. You can't modify it in RAM unless you promote it. For more information, see PromoteResourceShareCreatedFromPolicy.
  • PROMOTING_TO_STANDARD - The resource share is in the process of being promoted. For more information, see PromoteResourceShareCreatedFromPolicy.
  • STANDARD - Indicates that the resource share was created in RAM using the console or APIs. These resource shares are visible to all principals you share the resource share with. You can modify these resource shares in RAM using the console or APIs.

resourceShare_lastUpdatedTime :: Lens' ResourceShare (Maybe UTCTime) Source #

The date and time when the resource share was last updated.

resourceShare_name :: Lens' ResourceShare (Maybe Text) Source #

The name of the resource share.

resourceShare_owningAccountId :: Lens' ResourceShare (Maybe Text) Source #

The ID of the Amazon Web Services account that owns the resource share.

resourceShare_status :: Lens' ResourceShare (Maybe ResourceShareStatus) Source #

The current status of the resource share.

resourceShare_statusMessage :: Lens' ResourceShare (Maybe Text) Source #

A message about the status of the resource share.

resourceShare_tags :: Lens' ResourceShare (Maybe [Tag]) Source #

The tag key and value pairs attached to the resource share.