create_stream
async
¶
create_stream(
stream_id: StreamId,
files: StreamFiles,
role_arn: RoleArn,
*,
config_overrides: Optional[AsyncIoTClientConfig] = None,
description: Optional[StreamDescription] = None,
tags: Optional[TagList] = None,
) -> CreateStreamResponse
Creates a stream for delivering one or more large files in chunks over MQTT. A stream transports data bytes in chunks or blocks packaged as MQTT messages from a source like S3. You can have one or more files associated with a stream.
Requires permission to access the CreateStream action.
Parameters:
-
stream_id(StreamId) –The stream ID.
-
description(Optional[StreamDescription], default:None) –A description of the stream.
-
files(StreamFiles) –The files to stream.
-
role_arn(RoleArn) –An IAM role that allows the IoT service principal to access your S3 files.
-
tags(Optional[TagList], default:None) –Metadata which can be used to manage streams.
Raises:
-
InternalFailureException–An unexpected error has occurred.
-
InvalidRequestException–The request is not valid.
-
LimitExceededException–A limit has been exceeded.
-
ResourceAlreadyExistsException–The resource already exists.
-
ResourceNotFoundException–The specified resource does not exist.
-
ServiceUnavailableException–The service is temporarily unavailable.
-
ThrottlingException–The rate exceeds the limit.
-
UnauthorizedException–You are not authorized to perform this operation.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_iot/_services/async_io_t.py
3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 | |