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 |
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
- data UpdateGatewayCapabilityConfiguration = UpdateGatewayCapabilityConfiguration' {}
- newUpdateGatewayCapabilityConfiguration :: Text -> Text -> Text -> UpdateGatewayCapabilityConfiguration
- updateGatewayCapabilityConfiguration_gatewayId :: Lens' UpdateGatewayCapabilityConfiguration Text
- updateGatewayCapabilityConfiguration_capabilityNamespace :: Lens' UpdateGatewayCapabilityConfiguration Text
- updateGatewayCapabilityConfiguration_capabilityConfiguration :: Lens' UpdateGatewayCapabilityConfiguration Text
- data UpdateGatewayCapabilityConfigurationResponse = UpdateGatewayCapabilityConfigurationResponse' {}
- newUpdateGatewayCapabilityConfigurationResponse :: Int -> Text -> CapabilitySyncStatus -> UpdateGatewayCapabilityConfigurationResponse
- updateGatewayCapabilityConfigurationResponse_httpStatus :: Lens' UpdateGatewayCapabilityConfigurationResponse Int
- updateGatewayCapabilityConfigurationResponse_capabilityNamespace :: Lens' UpdateGatewayCapabilityConfigurationResponse Text
- updateGatewayCapabilityConfigurationResponse_capabilitySyncStatus :: Lens' UpdateGatewayCapabilityConfigurationResponse CapabilitySyncStatus
Creating a Request
data UpdateGatewayCapabilityConfiguration Source #
See: newUpdateGatewayCapabilityConfiguration
smart constructor.
UpdateGatewayCapabilityConfiguration' | |
|
Instances
newUpdateGatewayCapabilityConfiguration Source #
:: Text | |
-> Text |
|
-> Text |
|
-> UpdateGatewayCapabilityConfiguration |
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_gatewayId :: Lens' UpdateGatewayCapabilityConfiguration Text Source #
The ID of the gateway to be updated.
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 #
See: newUpdateGatewayCapabilityConfigurationResponse
smart constructor.
UpdateGatewayCapabilityConfigurationResponse' | |
|
Instances
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_httpStatus :: Lens' UpdateGatewayCapabilityConfigurationResponse Int Source #
The response's http status code.
updateGatewayCapabilityConfigurationResponse_capabilityNamespace :: Lens' UpdateGatewayCapabilityConfigurationResponse Text Source #
The namespace of the gateway capability.
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.