Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Gets the resource associated with the application.
Synopsis
- data GetAssociatedResource = GetAssociatedResource' {}
- newGetAssociatedResource :: Text -> ResourceType -> Text -> GetAssociatedResource
- getAssociatedResource_application :: Lens' GetAssociatedResource Text
- getAssociatedResource_resourceType :: Lens' GetAssociatedResource ResourceType
- getAssociatedResource_resource :: Lens' GetAssociatedResource Text
- data GetAssociatedResourceResponse = GetAssociatedResourceResponse' {
- resource :: Maybe Resource
- httpStatus :: Int
- newGetAssociatedResourceResponse :: Int -> GetAssociatedResourceResponse
- getAssociatedResourceResponse_resource :: Lens' GetAssociatedResourceResponse (Maybe Resource)
- getAssociatedResourceResponse_httpStatus :: Lens' GetAssociatedResourceResponse Int
Creating a Request
data GetAssociatedResource Source #
See: newGetAssociatedResource
smart constructor.
GetAssociatedResource' | |
|
Instances
newGetAssociatedResource Source #
:: Text | |
-> ResourceType | |
-> Text | |
-> GetAssociatedResource |
Create a value of GetAssociatedResource
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:application:GetAssociatedResource'
, getAssociatedResource_application
- The name or ID of the application.
$sel:resourceType:GetAssociatedResource'
, getAssociatedResource_resourceType
- The type of resource associated with the application.
$sel:resource:GetAssociatedResource'
, getAssociatedResource_resource
- The name or ID of the resource associated with the application.
Request Lenses
getAssociatedResource_application :: Lens' GetAssociatedResource Text Source #
The name or ID of the application.
getAssociatedResource_resourceType :: Lens' GetAssociatedResource ResourceType Source #
The type of resource associated with the application.
getAssociatedResource_resource :: Lens' GetAssociatedResource Text Source #
The name or ID of the resource associated with the application.
Destructuring the Response
data GetAssociatedResourceResponse Source #
See: newGetAssociatedResourceResponse
smart constructor.
GetAssociatedResourceResponse' | |
|
Instances
Eq GetAssociatedResourceResponse Source # | |
Read GetAssociatedResourceResponse Source # | |
Show GetAssociatedResourceResponse Source # | |
Generic GetAssociatedResourceResponse Source # | |
NFData GetAssociatedResourceResponse Source # | |
Defined in Amazonka.ServiceCatalogAppRegistry.GetAssociatedResource rnf :: GetAssociatedResourceResponse -> () # | |
type Rep GetAssociatedResourceResponse Source # | |
Defined in Amazonka.ServiceCatalogAppRegistry.GetAssociatedResource type Rep GetAssociatedResourceResponse = D1 ('MetaData "GetAssociatedResourceResponse" "Amazonka.ServiceCatalogAppRegistry.GetAssociatedResource" "libZSservicesZSamazonka-servicecatalog-appregistryZSamazonka-servicecatalog-appregistry" 'False) (C1 ('MetaCons "GetAssociatedResourceResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "resource") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Resource)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newGetAssociatedResourceResponse Source #
Create a value of GetAssociatedResourceResponse
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:resource:GetAssociatedResource'
, getAssociatedResourceResponse_resource
- The resource associated with the application.
$sel:httpStatus:GetAssociatedResourceResponse'
, getAssociatedResourceResponse_httpStatus
- The response's http status code.
Response Lenses
getAssociatedResourceResponse_resource :: Lens' GetAssociatedResourceResponse (Maybe Resource) Source #
The resource associated with the application.
getAssociatedResourceResponse_httpStatus :: Lens' GetAssociatedResourceResponse Int Source #
The response's http status code.