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 |
Creates a workflow template. Workflows can be created only in the user's namespace. (The public namespace contains only entities.) The workflow can contain only entities in the specified namespace. The workflow is validated against the entities in the latest version of the user's namespace unless another namespace version is specified in the request.
Synopsis
- data CreateFlowTemplate = CreateFlowTemplate' {}
- newCreateFlowTemplate :: DefinitionDocument -> CreateFlowTemplate
- createFlowTemplate_compatibleNamespaceVersion :: Lens' CreateFlowTemplate (Maybe Integer)
- createFlowTemplate_definition :: Lens' CreateFlowTemplate DefinitionDocument
- data CreateFlowTemplateResponse = CreateFlowTemplateResponse' {}
- newCreateFlowTemplateResponse :: Int -> CreateFlowTemplateResponse
- createFlowTemplateResponse_summary :: Lens' CreateFlowTemplateResponse (Maybe FlowTemplateSummary)
- createFlowTemplateResponse_httpStatus :: Lens' CreateFlowTemplateResponse Int
Creating a Request
data CreateFlowTemplate Source #
See: newCreateFlowTemplate
smart constructor.
CreateFlowTemplate' | |
|
Instances
newCreateFlowTemplate Source #
Create a value of CreateFlowTemplate
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:compatibleNamespaceVersion:CreateFlowTemplate'
, createFlowTemplate_compatibleNamespaceVersion
- The namespace version in which the workflow is to be created.
If no value is specified, the latest version is used by default.
$sel:definition:CreateFlowTemplate'
, createFlowTemplate_definition
- The workflow DefinitionDocument
.
Request Lenses
createFlowTemplate_compatibleNamespaceVersion :: Lens' CreateFlowTemplate (Maybe Integer) Source #
The namespace version in which the workflow is to be created.
If no value is specified, the latest version is used by default.
createFlowTemplate_definition :: Lens' CreateFlowTemplate DefinitionDocument Source #
The workflow DefinitionDocument
.
Destructuring the Response
data CreateFlowTemplateResponse Source #
See: newCreateFlowTemplateResponse
smart constructor.
CreateFlowTemplateResponse' | |
|
Instances
newCreateFlowTemplateResponse Source #
Create a value of CreateFlowTemplateResponse
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:summary:CreateFlowTemplateResponse'
, createFlowTemplateResponse_summary
- The summary object that describes the created workflow.
$sel:httpStatus:CreateFlowTemplateResponse'
, createFlowTemplateResponse_httpStatus
- The response's http status code.
Response Lenses
createFlowTemplateResponse_summary :: Lens' CreateFlowTemplateResponse (Maybe FlowTemplateSummary) Source #
The summary object that describes the created workflow.
createFlowTemplateResponse_httpStatus :: Lens' CreateFlowTemplateResponse Int Source #
The response's http status code.