Struct aws_sdk_mediapackagevod::Client
source · [−]pub struct Client { /* private fields */ }
Expand description
Client for AWS Elemental MediaPackage VOD
Client for invoking operations on AWS Elemental MediaPackage VOD. Each operation on AWS Elemental MediaPackage VOD is a method on this
this struct. .send()
MUST be invoked on the generated operations to dispatch the request to the service.
Examples
Constructing a client and invoking an operation
// create a shared configuration. This can be used & shared between multiple service clients.
let shared_config = aws_config::load_from_env().await;
let client = aws_sdk_mediapackagevod::Client::new(&shared_config);
// invoke an operation
/* let rsp = client
.<operation_name>().
.<param>("some value")
.send().await; */
Constructing a client with custom configuration
use aws_config::RetryConfig;
let shared_config = aws_config::load_from_env().await;
let config = aws_sdk_mediapackagevod::config::Builder::from(&shared_config)
.retry_config(RetryConfig::disabled())
.build();
let client = aws_sdk_mediapackagevod::Client::from_conf(config);
Implementations
sourceimpl Client
impl Client
sourcepub fn with_config(
client: Client<DynConnector, DynMiddleware<DynConnector>>,
conf: Config
) -> Self
pub fn with_config(
client: Client<DynConnector, DynMiddleware<DynConnector>>,
conf: Config
) -> Self
Creates a client with the given service configuration.
sourceimpl Client
impl Client
sourcepub fn configure_logs(&self) -> ConfigureLogs
pub fn configure_logs(&self) -> ConfigureLogs
Constructs a fluent builder for the ConfigureLogs
operation.
- The fluent builder is configurable:
egress_access_logs(EgressAccessLogs)
/set_egress_access_logs(Option<EgressAccessLogs>)
: Configure egress access logging.id(impl Into<String>)
/set_id(Option<String>)
: The ID of a MediaPackage VOD PackagingGroup resource.
- On success, responds with
ConfigureLogsOutput
with field(s):arn(Option<String>)
: The ARN of the PackagingGroup.authorization(Option<Authorization>)
: CDN Authorization credentialsdomain_name(Option<String>)
: The fully qualified domain name for Assets in the PackagingGroup.egress_access_logs(Option<EgressAccessLogs>)
: Configure egress access logging.id(Option<String>)
: The ID of the PackagingGroup.tags(Option<HashMap<String, String>>)
: A collection of tags associated with a resource
- On failure, responds with
SdkError<ConfigureLogsError>
sourcepub fn create_asset(&self) -> CreateAsset
pub fn create_asset(&self) -> CreateAsset
Constructs a fluent builder for the CreateAsset
operation.
- The fluent builder is configurable:
id(impl Into<String>)
/set_id(Option<String>)
: The unique identifier for the Asset.packaging_group_id(impl Into<String>)
/set_packaging_group_id(Option<String>)
: The ID of the PackagingGroup for the Asset.resource_id(impl Into<String>)
/set_resource_id(Option<String>)
: The resource ID to include in SPEKE key requests.source_arn(impl Into<String>)
/set_source_arn(Option<String>)
: ARN of the source object in S3.source_role_arn(impl Into<String>)
/set_source_role_arn(Option<String>)
: The IAM role ARN used to access the source S3 bucket.tags(HashMap<String, String>)
/set_tags(Option<HashMap<String, String>>)
: A collection of tags associated with a resource
- On success, responds with
CreateAssetOutput
with field(s):arn(Option<String>)
: The ARN of the Asset.created_at(Option<String>)
: The time the Asset was initially submitted for Ingest.egress_endpoints(Option<Vec<EgressEndpoint>>)
: The list of egress endpoints available for the Asset.id(Option<String>)
: The unique identifier for the Asset.packaging_group_id(Option<String>)
: The ID of the PackagingGroup for the Asset.resource_id(Option<String>)
: The resource ID to include in SPEKE key requests.source_arn(Option<String>)
: ARN of the source object in S3.source_role_arn(Option<String>)
: The IAM role_arn used to access the source S3 bucket.tags(Option<HashMap<String, String>>)
: A collection of tags associated with a resource
- On failure, responds with
SdkError<CreateAssetError>
sourcepub fn create_packaging_configuration(&self) -> CreatePackagingConfiguration
pub fn create_packaging_configuration(&self) -> CreatePackagingConfiguration
Constructs a fluent builder for the CreatePackagingConfiguration
operation.
- The fluent builder is configurable:
cmaf_package(CmafPackage)
/set_cmaf_package(Option<CmafPackage>)
: A CMAF packaging configuration.dash_package(DashPackage)
/set_dash_package(Option<DashPackage>)
: A Dynamic Adaptive Streaming over HTTP (DASH) packaging configuration.hls_package(HlsPackage)
/set_hls_package(Option<HlsPackage>)
: An HTTP Live Streaming (HLS) packaging configuration.id(impl Into<String>)
/set_id(Option<String>)
: The ID of the PackagingConfiguration.mss_package(MssPackage)
/set_mss_package(Option<MssPackage>)
: A Microsoft Smooth Streaming (MSS) PackagingConfiguration.packaging_group_id(impl Into<String>)
/set_packaging_group_id(Option<String>)
: The ID of a PackagingGroup.tags(HashMap<String, String>)
/set_tags(Option<HashMap<String, String>>)
: A collection of tags associated with a resource
- On success, responds with
CreatePackagingConfigurationOutput
with field(s):arn(Option<String>)
: The ARN of the PackagingConfiguration.cmaf_package(Option<CmafPackage>)
: A CMAF packaging configuration.dash_package(Option<DashPackage>)
: A Dynamic Adaptive Streaming over HTTP (DASH) packaging configuration.hls_package(Option<HlsPackage>)
: An HTTP Live Streaming (HLS) packaging configuration.id(Option<String>)
: The ID of the PackagingConfiguration.mss_package(Option<MssPackage>)
: A Microsoft Smooth Streaming (MSS) PackagingConfiguration.packaging_group_id(Option<String>)
: The ID of a PackagingGroup.tags(Option<HashMap<String, String>>)
: A collection of tags associated with a resource
- On failure, responds with
SdkError<CreatePackagingConfigurationError>
sourcepub fn create_packaging_group(&self) -> CreatePackagingGroup
pub fn create_packaging_group(&self) -> CreatePackagingGroup
Constructs a fluent builder for the CreatePackagingGroup
operation.
- The fluent builder is configurable:
authorization(Authorization)
/set_authorization(Option<Authorization>)
: CDN Authorization credentialsegress_access_logs(EgressAccessLogs)
/set_egress_access_logs(Option<EgressAccessLogs>)
: Configure egress access logging.id(impl Into<String>)
/set_id(Option<String>)
: The ID of the PackagingGroup.tags(HashMap<String, String>)
/set_tags(Option<HashMap<String, String>>)
: A collection of tags associated with a resource
- On success, responds with
CreatePackagingGroupOutput
with field(s):arn(Option<String>)
: The ARN of the PackagingGroup.authorization(Option<Authorization>)
: CDN Authorization credentialsdomain_name(Option<String>)
: The fully qualified domain name for Assets in the PackagingGroup.egress_access_logs(Option<EgressAccessLogs>)
: Configure egress access logging.id(Option<String>)
: The ID of the PackagingGroup.tags(Option<HashMap<String, String>>)
: A collection of tags associated with a resource
- On failure, responds with
SdkError<CreatePackagingGroupError>
sourcepub fn delete_asset(&self) -> DeleteAsset
pub fn delete_asset(&self) -> DeleteAsset
Constructs a fluent builder for the DeleteAsset
operation.
- The fluent builder is configurable:
id(impl Into<String>)
/set_id(Option<String>)
: The ID of the MediaPackage VOD Asset resource to delete.
- On success, responds with
DeleteAssetOutput
- On failure, responds with
SdkError<DeleteAssetError>
sourcepub fn delete_packaging_configuration(&self) -> DeletePackagingConfiguration
pub fn delete_packaging_configuration(&self) -> DeletePackagingConfiguration
Constructs a fluent builder for the DeletePackagingConfiguration
operation.
- The fluent builder is configurable:
id(impl Into<String>)
/set_id(Option<String>)
: The ID of the MediaPackage VOD PackagingConfiguration resource to delete.
- On success, responds with
DeletePackagingConfigurationOutput
- On failure, responds with
SdkError<DeletePackagingConfigurationError>
sourcepub fn delete_packaging_group(&self) -> DeletePackagingGroup
pub fn delete_packaging_group(&self) -> DeletePackagingGroup
Constructs a fluent builder for the DeletePackagingGroup
operation.
- The fluent builder is configurable:
id(impl Into<String>)
/set_id(Option<String>)
: The ID of the MediaPackage VOD PackagingGroup resource to delete.
- On success, responds with
DeletePackagingGroupOutput
- On failure, responds with
SdkError<DeletePackagingGroupError>
sourcepub fn describe_asset(&self) -> DescribeAsset
pub fn describe_asset(&self) -> DescribeAsset
Constructs a fluent builder for the DescribeAsset
operation.
- The fluent builder is configurable:
id(impl Into<String>)
/set_id(Option<String>)
: The ID of an MediaPackage VOD Asset resource.
- On success, responds with
DescribeAssetOutput
with field(s):arn(Option<String>)
: The ARN of the Asset.created_at(Option<String>)
: The time the Asset was initially submitted for Ingest.egress_endpoints(Option<Vec<EgressEndpoint>>)
: The list of egress endpoints available for the Asset.id(Option<String>)
: The unique identifier for the Asset.packaging_group_id(Option<String>)
: The ID of the PackagingGroup for the Asset.resource_id(Option<String>)
: The resource ID to include in SPEKE key requests.source_arn(Option<String>)
: ARN of the source object in S3.source_role_arn(Option<String>)
: The IAM role_arn used to access the source S3 bucket.tags(Option<HashMap<String, String>>)
: A collection of tags associated with a resource
- On failure, responds with
SdkError<DescribeAssetError>
sourcepub fn describe_packaging_configuration(&self) -> DescribePackagingConfiguration
pub fn describe_packaging_configuration(&self) -> DescribePackagingConfiguration
Constructs a fluent builder for the DescribePackagingConfiguration
operation.
- The fluent builder is configurable:
id(impl Into<String>)
/set_id(Option<String>)
: The ID of a MediaPackage VOD PackagingConfiguration resource.
- On success, responds with
DescribePackagingConfigurationOutput
with field(s):arn(Option<String>)
: The ARN of the PackagingConfiguration.cmaf_package(Option<CmafPackage>)
: A CMAF packaging configuration.dash_package(Option<DashPackage>)
: A Dynamic Adaptive Streaming over HTTP (DASH) packaging configuration.hls_package(Option<HlsPackage>)
: An HTTP Live Streaming (HLS) packaging configuration.id(Option<String>)
: The ID of the PackagingConfiguration.mss_package(Option<MssPackage>)
: A Microsoft Smooth Streaming (MSS) PackagingConfiguration.packaging_group_id(Option<String>)
: The ID of a PackagingGroup.tags(Option<HashMap<String, String>>)
: A collection of tags associated with a resource
- On failure, responds with
SdkError<DescribePackagingConfigurationError>
sourcepub fn describe_packaging_group(&self) -> DescribePackagingGroup
pub fn describe_packaging_group(&self) -> DescribePackagingGroup
Constructs a fluent builder for the DescribePackagingGroup
operation.
- The fluent builder is configurable:
id(impl Into<String>)
/set_id(Option<String>)
: The ID of a MediaPackage VOD PackagingGroup resource.
- On success, responds with
DescribePackagingGroupOutput
with field(s):arn(Option<String>)
: The ARN of the PackagingGroup.authorization(Option<Authorization>)
: CDN Authorization credentialsdomain_name(Option<String>)
: The fully qualified domain name for Assets in the PackagingGroup.egress_access_logs(Option<EgressAccessLogs>)
: Configure egress access logging.id(Option<String>)
: The ID of the PackagingGroup.tags(Option<HashMap<String, String>>)
: A collection of tags associated with a resource
- On failure, responds with
SdkError<DescribePackagingGroupError>
sourcepub fn list_assets(&self) -> ListAssets
pub fn list_assets(&self) -> ListAssets
Constructs a fluent builder for the ListAssets
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
max_results(i32)
/set_max_results(i32)
: Upper bound on number of records to return.next_token(impl Into<String>)
/set_next_token(Option<String>)
: A token used to resume pagination from the end of a previous request.packaging_group_id(impl Into<String>)
/set_packaging_group_id(Option<String>)
: Returns Assets associated with the specified PackagingGroup.
- On success, responds with
ListAssetsOutput
with field(s):assets(Option<Vec<AssetShallow>>)
: A list of MediaPackage VOD Asset resources.next_token(Option<String>)
: A token that can be used to resume pagination from the end of the collection.
- On failure, responds with
SdkError<ListAssetsError>
sourcepub fn list_packaging_configurations(&self) -> ListPackagingConfigurations
pub fn list_packaging_configurations(&self) -> ListPackagingConfigurations
Constructs a fluent builder for the ListPackagingConfigurations
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
max_results(i32)
/set_max_results(i32)
: Upper bound on number of records to return.next_token(impl Into<String>)
/set_next_token(Option<String>)
: A token used to resume pagination from the end of a previous request.packaging_group_id(impl Into<String>)
/set_packaging_group_id(Option<String>)
: Returns MediaPackage VOD PackagingConfigurations associated with the specified PackagingGroup.
- On success, responds with
ListPackagingConfigurationsOutput
with field(s):next_token(Option<String>)
: A token that can be used to resume pagination from the end of the collection.packaging_configurations(Option<Vec<PackagingConfiguration>>)
: A list of MediaPackage VOD PackagingConfiguration resources.
- On failure, responds with
SdkError<ListPackagingConfigurationsError>
sourcepub fn list_packaging_groups(&self) -> ListPackagingGroups
pub fn list_packaging_groups(&self) -> ListPackagingGroups
Constructs a fluent builder for the ListPackagingGroups
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
max_results(i32)
/set_max_results(i32)
: Upper bound on number of records to return.next_token(impl Into<String>)
/set_next_token(Option<String>)
: A token used to resume pagination from the end of a previous request.
- On success, responds with
ListPackagingGroupsOutput
with field(s):next_token(Option<String>)
: A token that can be used to resume pagination from the end of the collection.packaging_groups(Option<Vec<PackagingGroup>>)
: A list of MediaPackage VOD PackagingGroup resources.
- On failure, responds with
SdkError<ListPackagingGroupsError>
Constructs a fluent builder for the ListTagsForResource
operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)
/set_resource_arn(Option<String>)
: The Amazon Resource Name (ARN) for the resource. You can get this from the response to any request to the resource.
- On success, responds with
ListTagsForResourceOutput
with field(s):tags(Option<HashMap<String, String>>)
: A collection of tags associated with a resource
- On failure, responds with
SdkError<ListTagsForResourceError>
sourcepub fn tag_resource(&self) -> TagResource
pub fn tag_resource(&self) -> TagResource
Constructs a fluent builder for the TagResource
operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)
/set_resource_arn(Option<String>)
: The Amazon Resource Name (ARN) for the resource. You can get this from the response to any request to the resource.tags(HashMap<String, String>)
/set_tags(Option<HashMap<String, String>>)
: A collection of tags associated with a resource
- On success, responds with
TagResourceOutput
- On failure, responds with
SdkError<TagResourceError>
sourcepub fn untag_resource(&self) -> UntagResource
pub fn untag_resource(&self) -> UntagResource
Constructs a fluent builder for the UntagResource
operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)
/set_resource_arn(Option<String>)
: The Amazon Resource Name (ARN) for the resource. You can get this from the response to any request to the resource.tag_keys(Vec<String>)
/set_tag_keys(Option<Vec<String>>)
: A comma-separated list of the tag keys to remove from the resource.
- On success, responds with
UntagResourceOutput
- On failure, responds with
SdkError<UntagResourceError>
sourcepub fn update_packaging_group(&self) -> UpdatePackagingGroup
pub fn update_packaging_group(&self) -> UpdatePackagingGroup
Constructs a fluent builder for the UpdatePackagingGroup
operation.
- The fluent builder is configurable:
authorization(Authorization)
/set_authorization(Option<Authorization>)
: CDN Authorization credentialsid(impl Into<String>)
/set_id(Option<String>)
: The ID of a MediaPackage VOD PackagingGroup resource.
- On success, responds with
UpdatePackagingGroupOutput
with field(s):arn(Option<String>)
: The ARN of the PackagingGroup.authorization(Option<Authorization>)
: CDN Authorization credentialsdomain_name(Option<String>)
: The fully qualified domain name for Assets in the PackagingGroup.egress_access_logs(Option<EgressAccessLogs>)
: Configure egress access logging.id(Option<String>)
: The ID of the PackagingGroup.tags(Option<HashMap<String, String>>)
: A collection of tags associated with a resource
- On failure, responds with
SdkError<UpdatePackagingGroupError>
sourceimpl Client
impl Client
sourcepub fn from_conf_conn<C, E>(conf: Config, conn: C) -> Self where
C: SmithyConnector<Error = E> + Send + 'static,
E: Into<ConnectorError>,
pub fn from_conf_conn<C, E>(conf: Config, conn: C) -> Self where
C: SmithyConnector<Error = E> + Send + 'static,
E: Into<ConnectorError>,
Creates a client with the given service config and connector override.
Trait Implementations
sourceimpl From<Client<DynConnector, DynMiddleware<DynConnector>, Standard>> for Client
impl From<Client<DynConnector, DynMiddleware<DynConnector>, Standard>> for Client
sourcefn from(client: Client<DynConnector, DynMiddleware<DynConnector>>) -> Self
fn from(client: Client<DynConnector, DynMiddleware<DynConnector>>) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more