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 recipe for a version of a component. Core devices can call this operation to identify the artifacts and requirements to install a component.
Synopsis
- data GetComponent = GetComponent' {}
- newGetComponent :: Text -> GetComponent
- getComponent_recipeOutputFormat :: Lens' GetComponent (Maybe RecipeOutputFormat)
- getComponent_arn :: Lens' GetComponent Text
- data GetComponentResponse = GetComponentResponse' {}
- newGetComponentResponse :: Int -> RecipeOutputFormat -> ByteString -> GetComponentResponse
- getComponentResponse_tags :: Lens' GetComponentResponse (Maybe (HashMap Text Text))
- getComponentResponse_httpStatus :: Lens' GetComponentResponse Int
- getComponentResponse_recipeOutputFormat :: Lens' GetComponentResponse RecipeOutputFormat
- getComponentResponse_recipe :: Lens' GetComponentResponse ByteString
Creating a Request
data GetComponent Source #
See: newGetComponent
smart constructor.
GetComponent' | |
|
Instances
Create a value of GetComponent
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:recipeOutputFormat:GetComponent'
, getComponent_recipeOutputFormat
- The format of the recipe.
$sel:arn:GetComponent'
, getComponent_arn
- The
ARN
of the component version.
Request Lenses
getComponent_recipeOutputFormat :: Lens' GetComponent (Maybe RecipeOutputFormat) Source #
The format of the recipe.
getComponent_arn :: Lens' GetComponent Text Source #
The ARN of the component version.
Destructuring the Response
data GetComponentResponse Source #
See: newGetComponentResponse
smart constructor.
GetComponentResponse' | |
|
Instances
newGetComponentResponse Source #
Create a value of GetComponentResponse
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:tags:GetComponentResponse'
, getComponentResponse_tags
- A list of key-value pairs that contain metadata for the resource. For
more information, see
Tag your resources
in the IoT Greengrass V2 Developer Guide.
$sel:httpStatus:GetComponentResponse'
, getComponentResponse_httpStatus
- The response's http status code.
$sel:recipeOutputFormat:GetComponent'
, getComponentResponse_recipeOutputFormat
- The format of the recipe.
$sel:recipe:GetComponentResponse'
, getComponentResponse_recipe
- The recipe of the component version.--
-- Note: This Lens
automatically encodes and decodes Base64 data.
-- The underlying isomorphism will encode to Base64 representation during
-- serialisation, and decode from Base64 representation during deserialisation.
-- This Lens
accepts and returns only raw unencoded data.
Response Lenses
getComponentResponse_tags :: Lens' GetComponentResponse (Maybe (HashMap Text Text)) Source #
A list of key-value pairs that contain metadata for the resource. For more information, see Tag your resources in the IoT Greengrass V2 Developer Guide.
getComponentResponse_httpStatus :: Lens' GetComponentResponse Int Source #
The response's http status code.
getComponentResponse_recipeOutputFormat :: Lens' GetComponentResponse RecipeOutputFormat Source #
The format of the recipe.
getComponentResponse_recipe :: Lens' GetComponentResponse ByteString Source #
The recipe of the component version.--
-- Note: This Lens
automatically encodes and decodes Base64 data.
-- The underlying isomorphism will encode to Base64 representation during
-- serialisation, and decode from Base64 representation during deserialisation.
-- This Lens
accepts and returns only raw unencoded data.