Copyright | (c) 2013-2018 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 |
Language | Haskell2010 |
Creates a new room profile with the specified details.
- createProfile :: Text -> Text -> Text -> DistanceUnit -> TemperatureUnit -> WakeWord -> CreateProfile
- data CreateProfile
- cpSetupModeDisabled :: Lens' CreateProfile (Maybe Bool)
- cpPSTNEnabled :: Lens' CreateProfile (Maybe Bool)
- cpClientRequestToken :: Lens' CreateProfile (Maybe Text)
- cpMaxVolumeLimit :: Lens' CreateProfile (Maybe Int)
- cpProfileName :: Lens' CreateProfile Text
- cpTimezone :: Lens' CreateProfile Text
- cpAddress :: Lens' CreateProfile Text
- cpDistanceUnit :: Lens' CreateProfile DistanceUnit
- cpTemperatureUnit :: Lens' CreateProfile TemperatureUnit
- cpWakeWord :: Lens' CreateProfile WakeWord
- createProfileResponse :: Int -> CreateProfileResponse
- data CreateProfileResponse
- cprsProfileARN :: Lens' CreateProfileResponse (Maybe Text)
- cprsResponseStatus :: Lens' CreateProfileResponse Int
Creating a Request
:: Text | |
-> Text | |
-> Text | |
-> DistanceUnit | |
-> TemperatureUnit | |
-> WakeWord | |
-> CreateProfile |
Creates a value of CreateProfile
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cpSetupModeDisabled
- Whether room profile setup is enabled.cpPSTNEnabled
- Whether PSTN calling is enabled.cpClientRequestToken
- The user-specified token that is used during the creation of a profile.cpMaxVolumeLimit
- The maximum volume limit for a room profile.cpProfileName
- The name of a room profile.cpTimezone
- The time zone used by a room profile.cpAddress
- The valid address for the room.cpDistanceUnit
- The distance unit to be used by devices in the profile.cpTemperatureUnit
- The temperature unit to be used by devices in the profile.cpWakeWord
- A wake word for Alexa, Echo, Amazon, or a computer.
data CreateProfile Source #
See: createProfile
smart constructor.
Request Lenses
cpSetupModeDisabled :: Lens' CreateProfile (Maybe Bool) Source #
Whether room profile setup is enabled.
cpPSTNEnabled :: Lens' CreateProfile (Maybe Bool) Source #
Whether PSTN calling is enabled.
cpClientRequestToken :: Lens' CreateProfile (Maybe Text) Source #
The user-specified token that is used during the creation of a profile.
cpMaxVolumeLimit :: Lens' CreateProfile (Maybe Int) Source #
The maximum volume limit for a room profile.
cpProfileName :: Lens' CreateProfile Text Source #
The name of a room profile.
cpTimezone :: Lens' CreateProfile Text Source #
The time zone used by a room profile.
cpDistanceUnit :: Lens' CreateProfile DistanceUnit Source #
The distance unit to be used by devices in the profile.
cpTemperatureUnit :: Lens' CreateProfile TemperatureUnit Source #
The temperature unit to be used by devices in the profile.
cpWakeWord :: Lens' CreateProfile WakeWord Source #
A wake word for Alexa, Echo, Amazon, or a computer.
Destructuring the Response
createProfileResponse Source #
Creates a value of CreateProfileResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cprsProfileARN
- The ARN of the newly created room profile in the response.cprsResponseStatus
- -- | The response status code.
data CreateProfileResponse Source #
See: createProfileResponse
smart constructor.
Response Lenses
cprsProfileARN :: Lens' CreateProfileResponse (Maybe Text) Source #
The ARN of the newly created room profile in the response.
cprsResponseStatus :: Lens' CreateProfileResponse Int Source #
- - | The response status code.