create_stream
¶
create_stream(
stream_id: StreamId,
files: StreamFiles,
role_arn: RoleArn,
*,
config_overrides: Optional[IoTClientConfig] = 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/io_t.py
3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 | |