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

Amazonka.IoTThingsGraph.UpdateFlowTemplate

Description

Updates the specified workflow. All deployed systems and system instances that use the workflow will see the changes in the flow when it is redeployed. If you don't want this behavior, copy the workflow (creating a new workflow with a different ID), and update the copy. The workflow can contain only entities in the specified namespace.

Synopsis

Creating a Request

data UpdateFlowTemplate Source #

See: newUpdateFlowTemplate smart constructor.

Constructors

UpdateFlowTemplate' 

Fields

  • compatibleNamespaceVersion :: Maybe Integer

    The version of the user's namespace.

    If no value is specified, the latest version is used by default. Use the GetFlowTemplateRevisions if you want to find earlier revisions of the flow to update.

  • id :: Text

    The ID of the workflow to be updated.

    The ID should be in the following format.

    urn:tdm:REGION/ACCOUNT ID/default:workflow:WORKFLOWNAME
  • definition :: DefinitionDocument

    The DefinitionDocument that contains the updated workflow definition.

Instances

Instances details
Eq UpdateFlowTemplate Source # 
Instance details

Defined in Amazonka.IoTThingsGraph.UpdateFlowTemplate

Read UpdateFlowTemplate Source # 
Instance details

Defined in Amazonka.IoTThingsGraph.UpdateFlowTemplate

Show UpdateFlowTemplate Source # 
Instance details

Defined in Amazonka.IoTThingsGraph.UpdateFlowTemplate

Generic UpdateFlowTemplate Source # 
Instance details

Defined in Amazonka.IoTThingsGraph.UpdateFlowTemplate

Associated Types

type Rep UpdateFlowTemplate :: Type -> Type #

NFData UpdateFlowTemplate Source # 
Instance details

Defined in Amazonka.IoTThingsGraph.UpdateFlowTemplate

Methods

rnf :: UpdateFlowTemplate -> () #

Hashable UpdateFlowTemplate Source # 
Instance details

Defined in Amazonka.IoTThingsGraph.UpdateFlowTemplate

ToJSON UpdateFlowTemplate Source # 
Instance details

Defined in Amazonka.IoTThingsGraph.UpdateFlowTemplate

AWSRequest UpdateFlowTemplate Source # 
Instance details

Defined in Amazonka.IoTThingsGraph.UpdateFlowTemplate

Associated Types

type AWSResponse UpdateFlowTemplate #

ToHeaders UpdateFlowTemplate Source # 
Instance details

Defined in Amazonka.IoTThingsGraph.UpdateFlowTemplate

ToPath UpdateFlowTemplate Source # 
Instance details

Defined in Amazonka.IoTThingsGraph.UpdateFlowTemplate

ToQuery UpdateFlowTemplate Source # 
Instance details

Defined in Amazonka.IoTThingsGraph.UpdateFlowTemplate

type Rep UpdateFlowTemplate Source # 
Instance details

Defined in Amazonka.IoTThingsGraph.UpdateFlowTemplate

type Rep UpdateFlowTemplate = D1 ('MetaData "UpdateFlowTemplate" "Amazonka.IoTThingsGraph.UpdateFlowTemplate" "libZSservicesZSamazonka-iotthingsgraphZSamazonka-iotthingsgraph" 'False) (C1 ('MetaCons "UpdateFlowTemplate'" 'PrefixI 'True) (S1 ('MetaSel ('Just "compatibleNamespaceVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Integer)) :*: (S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "definition") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 DefinitionDocument))))
type AWSResponse UpdateFlowTemplate Source # 
Instance details

Defined in Amazonka.IoTThingsGraph.UpdateFlowTemplate

newUpdateFlowTemplate Source #

Create a value of UpdateFlowTemplate 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:UpdateFlowTemplate', updateFlowTemplate_compatibleNamespaceVersion - The version of the user's namespace.

If no value is specified, the latest version is used by default. Use the GetFlowTemplateRevisions if you want to find earlier revisions of the flow to update.

$sel:id:UpdateFlowTemplate', updateFlowTemplate_id - The ID of the workflow to be updated.

The ID should be in the following format.

urn:tdm:REGION/ACCOUNT ID/default:workflow:WORKFLOWNAME

$sel:definition:UpdateFlowTemplate', updateFlowTemplate_definition - The DefinitionDocument that contains the updated workflow definition.

Request Lenses

updateFlowTemplate_compatibleNamespaceVersion :: Lens' UpdateFlowTemplate (Maybe Integer) Source #

The version of the user's namespace.

If no value is specified, the latest version is used by default. Use the GetFlowTemplateRevisions if you want to find earlier revisions of the flow to update.

updateFlowTemplate_id :: Lens' UpdateFlowTemplate Text Source #

The ID of the workflow to be updated.

The ID should be in the following format.

urn:tdm:REGION/ACCOUNT ID/default:workflow:WORKFLOWNAME

updateFlowTemplate_definition :: Lens' UpdateFlowTemplate DefinitionDocument Source #

The DefinitionDocument that contains the updated workflow definition.

Destructuring the Response

data UpdateFlowTemplateResponse Source #

See: newUpdateFlowTemplateResponse smart constructor.

Constructors

UpdateFlowTemplateResponse' 

Fields

Instances

Instances details
Eq UpdateFlowTemplateResponse Source # 
Instance details

Defined in Amazonka.IoTThingsGraph.UpdateFlowTemplate

Read UpdateFlowTemplateResponse Source # 
Instance details

Defined in Amazonka.IoTThingsGraph.UpdateFlowTemplate

Show UpdateFlowTemplateResponse Source # 
Instance details

Defined in Amazonka.IoTThingsGraph.UpdateFlowTemplate

Generic UpdateFlowTemplateResponse Source # 
Instance details

Defined in Amazonka.IoTThingsGraph.UpdateFlowTemplate

Associated Types

type Rep UpdateFlowTemplateResponse :: Type -> Type #

NFData UpdateFlowTemplateResponse Source # 
Instance details

Defined in Amazonka.IoTThingsGraph.UpdateFlowTemplate

type Rep UpdateFlowTemplateResponse Source # 
Instance details

Defined in Amazonka.IoTThingsGraph.UpdateFlowTemplate

type Rep UpdateFlowTemplateResponse = D1 ('MetaData "UpdateFlowTemplateResponse" "Amazonka.IoTThingsGraph.UpdateFlowTemplate" "libZSservicesZSamazonka-iotthingsgraphZSamazonka-iotthingsgraph" 'False) (C1 ('MetaCons "UpdateFlowTemplateResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "summary") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe FlowTemplateSummary)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newUpdateFlowTemplateResponse Source #

Create a value of UpdateFlowTemplateResponse 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:UpdateFlowTemplateResponse', updateFlowTemplateResponse_summary - An object containing summary information about the updated workflow.

$sel:httpStatus:UpdateFlowTemplateResponse', updateFlowTemplateResponse_httpStatus - The response's http status code.

Response Lenses

updateFlowTemplateResponse_summary :: Lens' UpdateFlowTemplateResponse (Maybe FlowTemplateSummary) Source #

An object containing summary information about the updated workflow.