amazonka-ssm-1.6.1: Amazon Simple Systems Manager (SSM) SDK.

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.SSM.GetDocument

Contents

Description

Gets the contents of the specified Systems Manager document.

Synopsis

Creating a Request

getDocument Source #

Arguments

:: Text

gdName

-> GetDocument 

Creates a value of GetDocument with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • gdDocumentFormat - Returns the document in the specified format. The document format can be either JSON or YAML. JSON is the default format.
  • gdDocumentVersion - The document version for which you want information.
  • gdName - The name of the Systems Manager document.

data GetDocument Source #

See: getDocument smart constructor.

Instances
Eq GetDocument Source # 
Instance details

Defined in Network.AWS.SSM.GetDocument

Data GetDocument Source # 
Instance details

Defined in Network.AWS.SSM.GetDocument

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> GetDocument -> c GetDocument #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c GetDocument #

toConstr :: GetDocument -> Constr #

dataTypeOf :: GetDocument -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c GetDocument) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c GetDocument) #

gmapT :: (forall b. Data b => b -> b) -> GetDocument -> GetDocument #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> GetDocument -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> GetDocument -> r #

gmapQ :: (forall d. Data d => d -> u) -> GetDocument -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> GetDocument -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> GetDocument -> m GetDocument #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> GetDocument -> m GetDocument #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> GetDocument -> m GetDocument #

Read GetDocument Source # 
Instance details

Defined in Network.AWS.SSM.GetDocument

Show GetDocument Source # 
Instance details

Defined in Network.AWS.SSM.GetDocument

Generic GetDocument Source # 
Instance details

Defined in Network.AWS.SSM.GetDocument

Associated Types

type Rep GetDocument :: Type -> Type #

Hashable GetDocument Source # 
Instance details

Defined in Network.AWS.SSM.GetDocument

ToJSON GetDocument Source # 
Instance details

Defined in Network.AWS.SSM.GetDocument

AWSRequest GetDocument Source # 
Instance details

Defined in Network.AWS.SSM.GetDocument

Associated Types

type Rs GetDocument :: Type #

ToHeaders GetDocument Source # 
Instance details

Defined in Network.AWS.SSM.GetDocument

Methods

toHeaders :: GetDocument -> [Header] #

ToPath GetDocument Source # 
Instance details

Defined in Network.AWS.SSM.GetDocument

ToQuery GetDocument Source # 
Instance details

Defined in Network.AWS.SSM.GetDocument

NFData GetDocument Source # 
Instance details

Defined in Network.AWS.SSM.GetDocument

Methods

rnf :: GetDocument -> () #

type Rep GetDocument Source # 
Instance details

Defined in Network.AWS.SSM.GetDocument

type Rep GetDocument = D1 (MetaData "GetDocument" "Network.AWS.SSM.GetDocument" "amazonka-ssm-1.6.1-7PbnocxNW5qAr7pEvzAy6Q" False) (C1 (MetaCons "GetDocument'" PrefixI True) (S1 (MetaSel (Just "_gdDocumentFormat") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe DocumentFormat)) :*: (S1 (MetaSel (Just "_gdDocumentVersion") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_gdName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs GetDocument Source # 
Instance details

Defined in Network.AWS.SSM.GetDocument

Request Lenses

gdDocumentFormat :: Lens' GetDocument (Maybe DocumentFormat) Source #

Returns the document in the specified format. The document format can be either JSON or YAML. JSON is the default format.

gdDocumentVersion :: Lens' GetDocument (Maybe Text) Source #

The document version for which you want information.

gdName :: Lens' GetDocument Text Source #

The name of the Systems Manager document.

Destructuring the Response

getDocumentResponse Source #

Creates a value of GetDocumentResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data GetDocumentResponse Source #

See: getDocumentResponse smart constructor.

Instances
Eq GetDocumentResponse Source # 
Instance details

Defined in Network.AWS.SSM.GetDocument

Data GetDocumentResponse Source # 
Instance details

Defined in Network.AWS.SSM.GetDocument

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> GetDocumentResponse -> c GetDocumentResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c GetDocumentResponse #

toConstr :: GetDocumentResponse -> Constr #

dataTypeOf :: GetDocumentResponse -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c GetDocumentResponse) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c GetDocumentResponse) #

gmapT :: (forall b. Data b => b -> b) -> GetDocumentResponse -> GetDocumentResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> GetDocumentResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> GetDocumentResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> GetDocumentResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> GetDocumentResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> GetDocumentResponse -> m GetDocumentResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> GetDocumentResponse -> m GetDocumentResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> GetDocumentResponse -> m GetDocumentResponse #

Read GetDocumentResponse Source # 
Instance details

Defined in Network.AWS.SSM.GetDocument

Show GetDocumentResponse Source # 
Instance details

Defined in Network.AWS.SSM.GetDocument

Generic GetDocumentResponse Source # 
Instance details

Defined in Network.AWS.SSM.GetDocument

Associated Types

type Rep GetDocumentResponse :: Type -> Type #

NFData GetDocumentResponse Source # 
Instance details

Defined in Network.AWS.SSM.GetDocument

Methods

rnf :: GetDocumentResponse -> () #

type Rep GetDocumentResponse Source # 
Instance details

Defined in Network.AWS.SSM.GetDocument

type Rep GetDocumentResponse = D1 (MetaData "GetDocumentResponse" "Network.AWS.SSM.GetDocument" "amazonka-ssm-1.6.1-7PbnocxNW5qAr7pEvzAy6Q" False) (C1 (MetaCons "GetDocumentResponse'" PrefixI True) ((S1 (MetaSel (Just "_gdrsDocumentType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe DocumentType)) :*: (S1 (MetaSel (Just "_gdrsContent") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_gdrsDocumentFormat") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe DocumentFormat)))) :*: (S1 (MetaSel (Just "_gdrsName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_gdrsDocumentVersion") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_gdrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))))

Response Lenses

gdrsContent :: Lens' GetDocumentResponse (Maybe Text) Source #

The contents of the Systems Manager document.

gdrsDocumentFormat :: Lens' GetDocumentResponse (Maybe DocumentFormat) Source #

The document format, either JSON or YAML.

gdrsName :: Lens' GetDocumentResponse (Maybe Text) Source #

The name of the Systems Manager document.

gdrsResponseStatus :: Lens' GetDocumentResponse Int Source #

  • - | The response status code.