Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Creates a new component for an Amplify app.
Synopsis
- data CreateComponent = CreateComponent' {}
- newCreateComponent :: Text -> CreateComponentData -> Text -> CreateComponent
- createComponent_clientToken :: Lens' CreateComponent (Maybe Text)
- createComponent_appId :: Lens' CreateComponent Text
- createComponent_componentToCreate :: Lens' CreateComponent CreateComponentData
- createComponent_environmentName :: Lens' CreateComponent Text
- data CreateComponentResponse = CreateComponentResponse' {
- entity :: Maybe Component
- httpStatus :: Int
- newCreateComponentResponse :: Int -> CreateComponentResponse
- createComponentResponse_entity :: Lens' CreateComponentResponse (Maybe Component)
- createComponentResponse_httpStatus :: Lens' CreateComponentResponse Int
Creating a Request
data CreateComponent Source #
See: newCreateComponent
smart constructor.
CreateComponent' | |
|
Instances
:: Text | |
-> CreateComponentData | |
-> Text | |
-> CreateComponent |
Create a value of CreateComponent
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:clientToken:CreateComponent'
, createComponent_clientToken
- The unique client token.
CreateComponent
, createComponent_appId
- The unique ID of the Amplify app to associate with the component.
$sel:componentToCreate:CreateComponent'
, createComponent_componentToCreate
- Represents the configuration of the component to create.
CreateComponent
, createComponent_environmentName
- The name of the backend environment that is a part of the Amplify app.
Request Lenses
createComponent_clientToken :: Lens' CreateComponent (Maybe Text) Source #
The unique client token.
createComponent_appId :: Lens' CreateComponent Text Source #
The unique ID of the Amplify app to associate with the component.
createComponent_componentToCreate :: Lens' CreateComponent CreateComponentData Source #
Represents the configuration of the component to create.
createComponent_environmentName :: Lens' CreateComponent Text Source #
The name of the backend environment that is a part of the Amplify app.
Destructuring the Response
data CreateComponentResponse Source #
See: newCreateComponentResponse
smart constructor.
CreateComponentResponse' | |
|
Instances
newCreateComponentResponse Source #
Create a value of CreateComponentResponse
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:entity:CreateComponentResponse'
, createComponentResponse_entity
- Describes the configuration of the new component.
$sel:httpStatus:CreateComponentResponse'
, createComponentResponse_httpStatus
- The response's http status code.
Response Lenses
createComponentResponse_entity :: Lens' CreateComponentResponse (Maybe Component) Source #
Describes the configuration of the new component.
createComponentResponse_httpStatus :: Lens' CreateComponentResponse Int Source #
The response's http status code.