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 pre-signed URL to download a public component artifact. Core devices call this operation to identify the URL that they can use to download an artifact to install.
Synopsis
- data GetComponentVersionArtifact = GetComponentVersionArtifact' {
- arn :: Text
- artifactName :: Text
- newGetComponentVersionArtifact :: Text -> Text -> GetComponentVersionArtifact
- getComponentVersionArtifact_arn :: Lens' GetComponentVersionArtifact Text
- getComponentVersionArtifact_artifactName :: Lens' GetComponentVersionArtifact Text
- data GetComponentVersionArtifactResponse = GetComponentVersionArtifactResponse' {
- httpStatus :: Int
- preSignedUrl :: Text
- newGetComponentVersionArtifactResponse :: Int -> Text -> GetComponentVersionArtifactResponse
- getComponentVersionArtifactResponse_httpStatus :: Lens' GetComponentVersionArtifactResponse Int
- getComponentVersionArtifactResponse_preSignedUrl :: Lens' GetComponentVersionArtifactResponse Text
Creating a Request
data GetComponentVersionArtifact Source #
See: newGetComponentVersionArtifact
smart constructor.
GetComponentVersionArtifact' | |
|
Instances
newGetComponentVersionArtifact Source #
:: Text | |
-> Text | |
-> GetComponentVersionArtifact |
Create a value of GetComponentVersionArtifact
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:arn:GetComponentVersionArtifact'
, getComponentVersionArtifact_arn
- The
ARN
of the component version. Specify the ARN of a public component version.
$sel:artifactName:GetComponentVersionArtifact'
, getComponentVersionArtifact_artifactName
- The name of the artifact.
You can use the
GetComponent
operation to download the component recipe, which includes the URI of
the artifact. The artifact name is the section of the URI after the
scheme. For example, in the artifact URI greengrass:SomeArtifact.zip
,
the artifact name is SomeArtifact.zip
.
Request Lenses
getComponentVersionArtifact_arn :: Lens' GetComponentVersionArtifact Text Source #
The ARN of the component version. Specify the ARN of a public component version.
getComponentVersionArtifact_artifactName :: Lens' GetComponentVersionArtifact Text Source #
The name of the artifact.
You can use the
GetComponent
operation to download the component recipe, which includes the URI of
the artifact. The artifact name is the section of the URI after the
scheme. For example, in the artifact URI greengrass:SomeArtifact.zip
,
the artifact name is SomeArtifact.zip
.
Destructuring the Response
data GetComponentVersionArtifactResponse Source #
See: newGetComponentVersionArtifactResponse
smart constructor.
GetComponentVersionArtifactResponse' | |
|
Instances
newGetComponentVersionArtifactResponse Source #
Create a value of GetComponentVersionArtifactResponse
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:httpStatus:GetComponentVersionArtifactResponse'
, getComponentVersionArtifactResponse_httpStatus
- The response's http status code.
$sel:preSignedUrl:GetComponentVersionArtifactResponse'
, getComponentVersionArtifactResponse_preSignedUrl
- The URL of the artifact.
Response Lenses
getComponentVersionArtifactResponse_httpStatus :: Lens' GetComponentVersionArtifactResponse Int Source #
The response's http status code.
getComponentVersionArtifactResponse_preSignedUrl :: Lens' GetComponentVersionArtifactResponse Text Source #
The URL of the artifact.