| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.GreengrassV2.GetComponent
Description
Gets the recipe for a version of 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.
Constructors
| GetComponent' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> GetComponent |
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:
GetComponent, getComponent_recipeOutputFormat - The format of the recipe.
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.
Constructors
| GetComponentResponse' | |
Fields
| |
Instances
newGetComponentResponse Source #
Arguments
| :: Int | |
| -> RecipeOutputFormat | |
| -> ByteString | |
| -> GetComponentResponse |
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.
GetComponent, getComponentResponse_recipeOutputFormat - The format of the 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.