create_asset
async
¶
create_asset(
*,
config_overrides: Optional[AsyncMediaPackageVodClientConfig] = None,
id: Optional[__string] = None,
packaging_group_id: Optional[__string] = None,
resource_id: Optional[__string] = None,
source_arn: Optional[__string] = None,
source_role_arn: Optional[__string] = None,
tags: Optional[Tags] = None,
) -> CreateAssetResponse
Creates a new MediaPackage VOD Asset resource.
Parameters:
-
id(Optional[__string], default:None) –The unique identifier for the Asset.
-
packaging_group_id(Optional[__string], default:None) –The ID of the PackagingGroup for the Asset.
-
resource_id(Optional[__string], default:None) –The resource ID to include in SPEKE key requests.
-
source_arn(Optional[__string], default:None) –ARN of the source object in S3.
-
source_role_arn(Optional[__string], default:None) –The IAM role ARN used to access the source S3 bucket.
Raises:
-
ForbiddenException–The client is not authorized to access the requested resource.
-
InternalServerErrorException–An unexpected error occurred.
-
NotFoundException–The requested resource does not exist.
-
ServiceUnavailableException–An unexpected error occurred.
-
TooManyRequestsException–The client has exceeded their resource or throttling limits.
-
UnprocessableEntityException–The parameters sent in the request are not valid.
-
UnknownServiceError–The service returned an error code this client does not model.