amazonka-resiliencehub-2.0: Amazon Resilience Hub 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.ResilienceHub.Types.ResourceMapping

Description

 
Synopsis

Documentation

data ResourceMapping Source #

Defines a resource mapping.

See: newResourceMapping smart constructor.

Constructors

ResourceMapping' 

Fields

  • appRegistryAppName :: Maybe Text

    The name of the application this resource is mapped to.

  • logicalStackName :: Maybe Text

    The name of the CloudFormation stack this resource is mapped to.

  • resourceGroupName :: Maybe Text

    The name of the resource group this resource is mapped to.

  • resourceName :: Maybe Text

    The name of the resource this resource is mapped to.

  • terraformSourceName :: Maybe Text

    The short name of the Terraform source.

  • mappingType :: ResourceMappingType

    Specifies the type of resource mapping.

    AppRegistryApp
    The resource is mapped to another application. The name of the application is contained in the appRegistryAppName property.
    CfnStack
    The resource is mapped to a CloudFormation stack. The name of the CloudFormation stack is contained in the logicalStackName property.
    Resource
    The resource is mapped to another resource. The name of the resource is contained in the resourceName property.
    ResourceGroup
    The resource is mapped to a resource group. The name of the resource group is contained in the resourceGroupName property.
  • physicalResourceId :: PhysicalResourceId

    The identifier of this resource.

Instances

Instances details
FromJSON ResourceMapping Source # 
Instance details

Defined in Amazonka.ResilienceHub.Types.ResourceMapping

ToJSON ResourceMapping Source # 
Instance details

Defined in Amazonka.ResilienceHub.Types.ResourceMapping

Generic ResourceMapping Source # 
Instance details

Defined in Amazonka.ResilienceHub.Types.ResourceMapping

Associated Types

type Rep ResourceMapping :: Type -> Type #

Read ResourceMapping Source # 
Instance details

Defined in Amazonka.ResilienceHub.Types.ResourceMapping

Show ResourceMapping Source # 
Instance details

Defined in Amazonka.ResilienceHub.Types.ResourceMapping

NFData ResourceMapping Source # 
Instance details

Defined in Amazonka.ResilienceHub.Types.ResourceMapping

Methods

rnf :: ResourceMapping -> () #

Eq ResourceMapping Source # 
Instance details

Defined in Amazonka.ResilienceHub.Types.ResourceMapping

Hashable ResourceMapping Source # 
Instance details

Defined in Amazonka.ResilienceHub.Types.ResourceMapping

type Rep ResourceMapping Source # 
Instance details

Defined in Amazonka.ResilienceHub.Types.ResourceMapping

type Rep ResourceMapping = D1 ('MetaData "ResourceMapping" "Amazonka.ResilienceHub.Types.ResourceMapping" "amazonka-resiliencehub-2.0-EsKgNhAb0B96cCxrYtrBzG" 'False) (C1 ('MetaCons "ResourceMapping'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "appRegistryAppName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "logicalStackName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "resourceGroupName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 ('MetaSel ('Just "resourceName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "terraformSourceName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "mappingType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ResourceMappingType) :*: S1 ('MetaSel ('Just "physicalResourceId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 PhysicalResourceId)))))

newResourceMapping Source #

Create a value of ResourceMapping 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:appRegistryAppName:ResourceMapping', resourceMapping_appRegistryAppName - The name of the application this resource is mapped to.

$sel:logicalStackName:ResourceMapping', resourceMapping_logicalStackName - The name of the CloudFormation stack this resource is mapped to.

$sel:resourceGroupName:ResourceMapping', resourceMapping_resourceGroupName - The name of the resource group this resource is mapped to.

$sel:resourceName:ResourceMapping', resourceMapping_resourceName - The name of the resource this resource is mapped to.

$sel:terraformSourceName:ResourceMapping', resourceMapping_terraformSourceName - The short name of the Terraform source.

$sel:mappingType:ResourceMapping', resourceMapping_mappingType - Specifies the type of resource mapping.

AppRegistryApp
The resource is mapped to another application. The name of the application is contained in the appRegistryAppName property.
CfnStack
The resource is mapped to a CloudFormation stack. The name of the CloudFormation stack is contained in the logicalStackName property.
Resource
The resource is mapped to another resource. The name of the resource is contained in the resourceName property.
ResourceGroup
The resource is mapped to a resource group. The name of the resource group is contained in the resourceGroupName property.

$sel:physicalResourceId:ResourceMapping', resourceMapping_physicalResourceId - The identifier of this resource.

resourceMapping_appRegistryAppName :: Lens' ResourceMapping (Maybe Text) Source #

The name of the application this resource is mapped to.

resourceMapping_logicalStackName :: Lens' ResourceMapping (Maybe Text) Source #

The name of the CloudFormation stack this resource is mapped to.

resourceMapping_resourceGroupName :: Lens' ResourceMapping (Maybe Text) Source #

The name of the resource group this resource is mapped to.

resourceMapping_resourceName :: Lens' ResourceMapping (Maybe Text) Source #

The name of the resource this resource is mapped to.

resourceMapping_terraformSourceName :: Lens' ResourceMapping (Maybe Text) Source #

The short name of the Terraform source.

resourceMapping_mappingType :: Lens' ResourceMapping ResourceMappingType Source #

Specifies the type of resource mapping.

AppRegistryApp
The resource is mapped to another application. The name of the application is contained in the appRegistryAppName property.
CfnStack
The resource is mapped to a CloudFormation stack. The name of the CloudFormation stack is contained in the logicalStackName property.
Resource
The resource is mapped to another resource. The name of the resource is contained in the resourceName property.
ResourceGroup
The resource is mapped to a resource group. The name of the resource group is contained in the resourceGroupName property.