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 |
Set the default version of a document.
Synopsis
- data UpdateDocumentDefaultVersion = UpdateDocumentDefaultVersion' {
- name :: Text
- documentVersion :: Text
- newUpdateDocumentDefaultVersion :: Text -> Text -> UpdateDocumentDefaultVersion
- updateDocumentDefaultVersion_name :: Lens' UpdateDocumentDefaultVersion Text
- updateDocumentDefaultVersion_documentVersion :: Lens' UpdateDocumentDefaultVersion Text
- data UpdateDocumentDefaultVersionResponse = UpdateDocumentDefaultVersionResponse' {}
- newUpdateDocumentDefaultVersionResponse :: Int -> UpdateDocumentDefaultVersionResponse
- updateDocumentDefaultVersionResponse_description :: Lens' UpdateDocumentDefaultVersionResponse (Maybe DocumentDefaultVersionDescription)
- updateDocumentDefaultVersionResponse_httpStatus :: Lens' UpdateDocumentDefaultVersionResponse Int
Creating a Request
data UpdateDocumentDefaultVersion Source #
See: newUpdateDocumentDefaultVersion
smart constructor.
UpdateDocumentDefaultVersion' | |
|
Instances
newUpdateDocumentDefaultVersion Source #
:: Text | |
-> Text | |
-> UpdateDocumentDefaultVersion |
Create a value of UpdateDocumentDefaultVersion
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:name:UpdateDocumentDefaultVersion'
, updateDocumentDefaultVersion_name
- The name of a custom document that you want to set as the default
version.
$sel:documentVersion:UpdateDocumentDefaultVersion'
, updateDocumentDefaultVersion_documentVersion
- The version of a custom document that you want to set as the default
version.
Request Lenses
updateDocumentDefaultVersion_name :: Lens' UpdateDocumentDefaultVersion Text Source #
The name of a custom document that you want to set as the default version.
updateDocumentDefaultVersion_documentVersion :: Lens' UpdateDocumentDefaultVersion Text Source #
The version of a custom document that you want to set as the default version.
Destructuring the Response
data UpdateDocumentDefaultVersionResponse Source #
See: newUpdateDocumentDefaultVersionResponse
smart constructor.
UpdateDocumentDefaultVersionResponse' | |
|
Instances
Eq UpdateDocumentDefaultVersionResponse Source # | |
Read UpdateDocumentDefaultVersionResponse Source # | |
Show UpdateDocumentDefaultVersionResponse Source # | |
Generic UpdateDocumentDefaultVersionResponse Source # | |
NFData UpdateDocumentDefaultVersionResponse Source # | |
Defined in Amazonka.SSM.UpdateDocumentDefaultVersion rnf :: UpdateDocumentDefaultVersionResponse -> () # | |
type Rep UpdateDocumentDefaultVersionResponse Source # | |
Defined in Amazonka.SSM.UpdateDocumentDefaultVersion type Rep UpdateDocumentDefaultVersionResponse = D1 ('MetaData "UpdateDocumentDefaultVersionResponse" "Amazonka.SSM.UpdateDocumentDefaultVersion" "libZSservicesZSamazonka-ssmZSamazonka-ssm" 'False) (C1 ('MetaCons "UpdateDocumentDefaultVersionResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe DocumentDefaultVersionDescription)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newUpdateDocumentDefaultVersionResponse Source #
Create a value of UpdateDocumentDefaultVersionResponse
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:description:UpdateDocumentDefaultVersionResponse'
, updateDocumentDefaultVersionResponse_description
- The description of a custom document that you want to set as the default
version.
$sel:httpStatus:UpdateDocumentDefaultVersionResponse'
, updateDocumentDefaultVersionResponse_httpStatus
- The response's http status code.
Response Lenses
updateDocumentDefaultVersionResponse_description :: Lens' UpdateDocumentDefaultVersionResponse (Maybe DocumentDefaultVersionDescription) Source #
The description of a custom document that you want to set as the default version.
updateDocumentDefaultVersionResponse_httpStatus :: Lens' UpdateDocumentDefaultVersionResponse Int Source #
The response's http status code.