create_gateway
¶
create_gateway(
gateway_name: GatewayName,
gateway_platform: GatewayPlatform,
*,
config_overrides: Optional[IoTSiteWiseClientConfig] = None,
gateway_version: Optional[GatewayVersion] = None,
tags: Optional[TagMap] = None,
) -> CreateGatewayResponse
Creates a gateway, which is a virtual or edge device that delivers industrial data streams from local servers to IoT SiteWise. For more information, see Ingesting data using a gateway in the IoT SiteWise User Guide.
Parameters:
-
gateway_name(GatewayName) –A unique name for the gateway.
-
gateway_platform(GatewayPlatform) –The gateway's platform. You can only specify one platform in a gateway.
-
gateway_version(Optional[GatewayVersion], default:None) –The version of the gateway to create. Specify
3to create an MQTT-enabled, V3 gateway and2to create a Classic streams, V2 gateway. If not specified, the default is2(Classic streams, V2 gateway).When creating a V3 gateway (
gatewayVersion=3) with theGreengrassV2platform, you must also specify thecoreDeviceOperatingSystemparameter.We recommend creating an MQTT-enabled gateway for self-hosted gateways and Siemens Industrial Edge gateways. For more information on gateway versions, see Use Amazon Web Services IoT SiteWise Edge Edge gateways.
-
tags(Optional[TagMap], default:None) –A list of key-value pairs that contain metadata for the gateway. For more information, see Tagging your IoT SiteWise resources in the IoT SiteWise User Guide.
Raises:
-
InternalFailureException–IoT SiteWise can't process your request right now. Try again later.
-
InvalidRequestException–The request isn't valid. This can occur if your request contains malformed JSON or unsupported characters. Check your request and try again.
-
LimitExceededException–You've reached the quota for a resource. For example, this can occur if you're trying to associate more than the allowed number of child assets or attempting to create more than the allowed number of properties for an asset model.
For more information, see Quotas in the IoT SiteWise User Guide.
-
ResourceAlreadyExistsException–The resource already exists.
-
ThrottlingException–Your request exceeded a rate limit. For example, you might have exceeded the number of IoT SiteWise assets that can be created per second, the allowed number of messages per second, and so on.
For more information, see Quotas in the IoT SiteWise User Guide.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_iotsitewise/_services/io_t_site_wise.py
2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 | |