amazonka-greengrass-1.6.1: Amazon Greengrass 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.Greengrass.CreateSubscriptionDefinition

Contents

Description

Creates a subscription definition. You may provide the initial version of the subscription definition now or use 'CreateSubscriptionDefinitionVersion' at a later time.

Synopsis

Creating a Request

createSubscriptionDefinition :: CreateSubscriptionDefinition Source #

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

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

  • csdAmznClientToken - A client token used to correlate requests and responses.
  • csdInitialVersion - Information about the initial version of the subscription definition.
  • csdName - The name of the subscription definition.

data CreateSubscriptionDefinition Source #

See: createSubscriptionDefinition smart constructor.

Instances
Eq CreateSubscriptionDefinition Source # 
Instance details

Defined in Network.AWS.Greengrass.CreateSubscriptionDefinition

Data CreateSubscriptionDefinition Source # 
Instance details

Defined in Network.AWS.Greengrass.CreateSubscriptionDefinition

Methods

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

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

toConstr :: CreateSubscriptionDefinition -> Constr #

dataTypeOf :: CreateSubscriptionDefinition -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateSubscriptionDefinition Source # 
Instance details

Defined in Network.AWS.Greengrass.CreateSubscriptionDefinition

Show CreateSubscriptionDefinition Source # 
Instance details

Defined in Network.AWS.Greengrass.CreateSubscriptionDefinition

Generic CreateSubscriptionDefinition Source # 
Instance details

Defined in Network.AWS.Greengrass.CreateSubscriptionDefinition

Associated Types

type Rep CreateSubscriptionDefinition :: Type -> Type #

Hashable CreateSubscriptionDefinition Source # 
Instance details

Defined in Network.AWS.Greengrass.CreateSubscriptionDefinition

ToJSON CreateSubscriptionDefinition Source # 
Instance details

Defined in Network.AWS.Greengrass.CreateSubscriptionDefinition

AWSRequest CreateSubscriptionDefinition Source # 
Instance details

Defined in Network.AWS.Greengrass.CreateSubscriptionDefinition

Associated Types

type Rs CreateSubscriptionDefinition :: Type #

ToHeaders CreateSubscriptionDefinition Source # 
Instance details

Defined in Network.AWS.Greengrass.CreateSubscriptionDefinition

ToPath CreateSubscriptionDefinition Source # 
Instance details

Defined in Network.AWS.Greengrass.CreateSubscriptionDefinition

ToQuery CreateSubscriptionDefinition Source # 
Instance details

Defined in Network.AWS.Greengrass.CreateSubscriptionDefinition

NFData CreateSubscriptionDefinition Source # 
Instance details

Defined in Network.AWS.Greengrass.CreateSubscriptionDefinition

type Rep CreateSubscriptionDefinition Source # 
Instance details

Defined in Network.AWS.Greengrass.CreateSubscriptionDefinition

type Rep CreateSubscriptionDefinition = D1 (MetaData "CreateSubscriptionDefinition" "Network.AWS.Greengrass.CreateSubscriptionDefinition" "amazonka-greengrass-1.6.1-8Yb8rCOrAv2821KEQdBGt6" False) (C1 (MetaCons "CreateSubscriptionDefinition'" PrefixI True) (S1 (MetaSel (Just "_csdAmznClientToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_csdInitialVersion") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe SubscriptionDefinitionVersion)) :*: S1 (MetaSel (Just "_csdName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))))
type Rs CreateSubscriptionDefinition Source # 
Instance details

Defined in Network.AWS.Greengrass.CreateSubscriptionDefinition

Request Lenses

csdAmznClientToken :: Lens' CreateSubscriptionDefinition (Maybe Text) Source #

A client token used to correlate requests and responses.

csdInitialVersion :: Lens' CreateSubscriptionDefinition (Maybe SubscriptionDefinitionVersion) Source #

Information about the initial version of the subscription definition.

csdName :: Lens' CreateSubscriptionDefinition (Maybe Text) Source #

The name of the subscription definition.

Destructuring the Response

createSubscriptionDefinitionResponse Source #

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

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

data CreateSubscriptionDefinitionResponse Source #

See: createSubscriptionDefinitionResponse smart constructor.

Instances
Eq CreateSubscriptionDefinitionResponse Source # 
Instance details

Defined in Network.AWS.Greengrass.CreateSubscriptionDefinition

Data CreateSubscriptionDefinitionResponse Source # 
Instance details

Defined in Network.AWS.Greengrass.CreateSubscriptionDefinition

Methods

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

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

toConstr :: CreateSubscriptionDefinitionResponse -> Constr #

dataTypeOf :: CreateSubscriptionDefinitionResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateSubscriptionDefinitionResponse Source # 
Instance details

Defined in Network.AWS.Greengrass.CreateSubscriptionDefinition

Show CreateSubscriptionDefinitionResponse Source # 
Instance details

Defined in Network.AWS.Greengrass.CreateSubscriptionDefinition

Generic CreateSubscriptionDefinitionResponse Source # 
Instance details

Defined in Network.AWS.Greengrass.CreateSubscriptionDefinition

NFData CreateSubscriptionDefinitionResponse Source # 
Instance details

Defined in Network.AWS.Greengrass.CreateSubscriptionDefinition

type Rep CreateSubscriptionDefinitionResponse Source # 
Instance details

Defined in Network.AWS.Greengrass.CreateSubscriptionDefinition

type Rep CreateSubscriptionDefinitionResponse = D1 (MetaData "CreateSubscriptionDefinitionResponse" "Network.AWS.Greengrass.CreateSubscriptionDefinition" "amazonka-greengrass-1.6.1-8Yb8rCOrAv2821KEQdBGt6" False) (C1 (MetaCons "CreateSubscriptionDefinitionResponse'" PrefixI True) (((S1 (MetaSel (Just "_csdrsLatestVersionARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_csdrsARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_csdrsName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_csdrsCreationTimestamp") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_csdrsId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_csdrsLatestVersion") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_csdrsLastUpdatedTimestamp") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_csdrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))))

Response Lenses

csdrsLatestVersionARN :: Lens' CreateSubscriptionDefinitionResponse (Maybe Text) Source #

The ARN of the latest version of the definition.

csdrsCreationTimestamp :: Lens' CreateSubscriptionDefinitionResponse (Maybe Text) Source #

The time, in milliseconds since the epoch, when the definition was created.

csdrsLastUpdatedTimestamp :: Lens' CreateSubscriptionDefinitionResponse (Maybe Text) Source #

The time, in milliseconds since the epoch, when the definition was last updated.