libZSservicesZSamazonka-iotsitewiseZSamazonka-iotsitewise
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.IoTSiteWise.UpdateGatewayCapabilityConfiguration

Description

Updates a gateway capability configuration or defines a new capability configuration. Each gateway capability defines data sources for a gateway. A capability configuration can contain multiple data source configurations. If you define OPC-UA sources for a gateway in the IoT SiteWise console, all of your OPC-UA sources are stored in one capability configuration. To list all capability configurations for a gateway, use DescribeGateway.

Synopsis

Creating a Request

data UpdateGatewayCapabilityConfiguration Source #

Constructors

UpdateGatewayCapabilityConfiguration' 

Fields

  • gatewayId :: Text

    The ID of the gateway to be updated.

  • capabilityNamespace :: Text

    The namespace of the gateway capability configuration to be updated. For example, if you configure OPC-UA sources from the IoT SiteWise console, your OPC-UA capability configuration has the namespace iotsitewise:opcuacollector:version, where version is a number such as 1.

  • capabilityConfiguration :: Text

    The JSON document that defines the configuration for the gateway capability. For more information, see Configuring data sources (CLI) in the IoT SiteWise User Guide.

Instances

Instances details
Eq UpdateGatewayCapabilityConfiguration Source # 
Instance details

Defined in Amazonka.IoTSiteWise.UpdateGatewayCapabilityConfiguration

Read UpdateGatewayCapabilityConfiguration Source # 
Instance details

Defined in Amazonka.IoTSiteWise.UpdateGatewayCapabilityConfiguration

Show UpdateGatewayCapabilityConfiguration Source # 
Instance details

Defined in Amazonka.IoTSiteWise.UpdateGatewayCapabilityConfiguration

Generic UpdateGatewayCapabilityConfiguration Source # 
Instance details

Defined in Amazonka.IoTSiteWise.UpdateGatewayCapabilityConfiguration

NFData UpdateGatewayCapabilityConfiguration Source # 
Instance details

Defined in Amazonka.IoTSiteWise.UpdateGatewayCapabilityConfiguration

Hashable UpdateGatewayCapabilityConfiguration Source # 
Instance details

Defined in Amazonka.IoTSiteWise.UpdateGatewayCapabilityConfiguration

ToJSON UpdateGatewayCapabilityConfiguration Source # 
Instance details

Defined in Amazonka.IoTSiteWise.UpdateGatewayCapabilityConfiguration

AWSRequest UpdateGatewayCapabilityConfiguration Source # 
Instance details

Defined in Amazonka.IoTSiteWise.UpdateGatewayCapabilityConfiguration

ToHeaders UpdateGatewayCapabilityConfiguration Source # 
Instance details

Defined in Amazonka.IoTSiteWise.UpdateGatewayCapabilityConfiguration

ToPath UpdateGatewayCapabilityConfiguration Source # 
Instance details

Defined in Amazonka.IoTSiteWise.UpdateGatewayCapabilityConfiguration

ToQuery UpdateGatewayCapabilityConfiguration Source # 
Instance details

Defined in Amazonka.IoTSiteWise.UpdateGatewayCapabilityConfiguration

type Rep UpdateGatewayCapabilityConfiguration Source # 
Instance details

Defined in Amazonka.IoTSiteWise.UpdateGatewayCapabilityConfiguration

type Rep UpdateGatewayCapabilityConfiguration = D1 ('MetaData "UpdateGatewayCapabilityConfiguration" "Amazonka.IoTSiteWise.UpdateGatewayCapabilityConfiguration" "libZSservicesZSamazonka-iotsitewiseZSamazonka-iotsitewise" 'False) (C1 ('MetaCons "UpdateGatewayCapabilityConfiguration'" 'PrefixI 'True) (S1 ('MetaSel ('Just "gatewayId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "capabilityNamespace") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "capabilityConfiguration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse UpdateGatewayCapabilityConfiguration Source # 
Instance details

Defined in Amazonka.IoTSiteWise.UpdateGatewayCapabilityConfiguration

newUpdateGatewayCapabilityConfiguration Source #

Create a value of UpdateGatewayCapabilityConfiguration 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:gatewayId:UpdateGatewayCapabilityConfiguration', updateGatewayCapabilityConfiguration_gatewayId - The ID of the gateway to be updated.

$sel:capabilityNamespace:UpdateGatewayCapabilityConfiguration', updateGatewayCapabilityConfiguration_capabilityNamespace - The namespace of the gateway capability configuration to be updated. For example, if you configure OPC-UA sources from the IoT SiteWise console, your OPC-UA capability configuration has the namespace iotsitewise:opcuacollector:version, where version is a number such as 1.

$sel:capabilityConfiguration:UpdateGatewayCapabilityConfiguration', updateGatewayCapabilityConfiguration_capabilityConfiguration - The JSON document that defines the configuration for the gateway capability. For more information, see Configuring data sources (CLI) in the IoT SiteWise User Guide.

Request Lenses

updateGatewayCapabilityConfiguration_capabilityNamespace :: Lens' UpdateGatewayCapabilityConfiguration Text Source #

The namespace of the gateway capability configuration to be updated. For example, if you configure OPC-UA sources from the IoT SiteWise console, your OPC-UA capability configuration has the namespace iotsitewise:opcuacollector:version, where version is a number such as 1.

updateGatewayCapabilityConfiguration_capabilityConfiguration :: Lens' UpdateGatewayCapabilityConfiguration Text Source #

The JSON document that defines the configuration for the gateway capability. For more information, see Configuring data sources (CLI) in the IoT SiteWise User Guide.

Destructuring the Response

data UpdateGatewayCapabilityConfigurationResponse Source #

Constructors

UpdateGatewayCapabilityConfigurationResponse' 

Fields

  • httpStatus :: Int

    The response's http status code.

  • capabilityNamespace :: Text

    The namespace of the gateway capability.

  • capabilitySyncStatus :: CapabilitySyncStatus

    The synchronization status of the capability configuration. The sync status can be one of the following:

    • IN_SYNC – The gateway is running the capability configuration.
    • OUT_OF_SYNC – The gateway hasn't received the capability configuration.
    • SYNC_FAILED – The gateway rejected the capability configuration.

    After you update a capability configuration, its sync status is OUT_OF_SYNC until the gateway receives and applies or rejects the updated configuration.

Instances

Instances details
Eq UpdateGatewayCapabilityConfigurationResponse Source # 
Instance details

Defined in Amazonka.IoTSiteWise.UpdateGatewayCapabilityConfiguration

Read UpdateGatewayCapabilityConfigurationResponse Source # 
Instance details

Defined in Amazonka.IoTSiteWise.UpdateGatewayCapabilityConfiguration

Show UpdateGatewayCapabilityConfigurationResponse Source # 
Instance details

Defined in Amazonka.IoTSiteWise.UpdateGatewayCapabilityConfiguration

Generic UpdateGatewayCapabilityConfigurationResponse Source # 
Instance details

Defined in Amazonka.IoTSiteWise.UpdateGatewayCapabilityConfiguration

NFData UpdateGatewayCapabilityConfigurationResponse Source # 
Instance details

Defined in Amazonka.IoTSiteWise.UpdateGatewayCapabilityConfiguration

type Rep UpdateGatewayCapabilityConfigurationResponse Source # 
Instance details

Defined in Amazonka.IoTSiteWise.UpdateGatewayCapabilityConfiguration

type Rep UpdateGatewayCapabilityConfigurationResponse = D1 ('MetaData "UpdateGatewayCapabilityConfigurationResponse" "Amazonka.IoTSiteWise.UpdateGatewayCapabilityConfiguration" "libZSservicesZSamazonka-iotsitewiseZSamazonka-iotsitewise" 'False) (C1 ('MetaCons "UpdateGatewayCapabilityConfigurationResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: (S1 ('MetaSel ('Just "capabilityNamespace") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "capabilitySyncStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 CapabilitySyncStatus))))

newUpdateGatewayCapabilityConfigurationResponse Source #

Create a value of UpdateGatewayCapabilityConfigurationResponse 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:httpStatus:UpdateGatewayCapabilityConfigurationResponse', updateGatewayCapabilityConfigurationResponse_httpStatus - The response's http status code.

$sel:capabilityNamespace:UpdateGatewayCapabilityConfiguration', updateGatewayCapabilityConfigurationResponse_capabilityNamespace - The namespace of the gateway capability.

$sel:capabilitySyncStatus:UpdateGatewayCapabilityConfigurationResponse', updateGatewayCapabilityConfigurationResponse_capabilitySyncStatus - The synchronization status of the capability configuration. The sync status can be one of the following:

  • IN_SYNC – The gateway is running the capability configuration.
  • OUT_OF_SYNC – The gateway hasn't received the capability configuration.
  • SYNC_FAILED – The gateway rejected the capability configuration.

After you update a capability configuration, its sync status is OUT_OF_SYNC until the gateway receives and applies or rejects the updated configuration.

Response Lenses

updateGatewayCapabilityConfigurationResponse_capabilitySyncStatus :: Lens' UpdateGatewayCapabilityConfigurationResponse CapabilitySyncStatus Source #

The synchronization status of the capability configuration. The sync status can be one of the following:

  • IN_SYNC – The gateway is running the capability configuration.
  • OUT_OF_SYNC – The gateway hasn't received the capability configuration.
  • SYNC_FAILED – The gateway rejected the capability configuration.

After you update a capability configuration, its sync status is OUT_OF_SYNC until the gateway receives and applies or rejects the updated configuration.