Struct rusoto_mediastore::MediaStoreClient
source · [−]pub struct MediaStoreClient { /* private fields */ }
Expand description
A client for the MediaStore API.
Implementations
sourceimpl MediaStoreClient
impl MediaStoreClient
sourcepub fn new(region: Region) -> MediaStoreClient
pub fn new(region: Region) -> MediaStoreClient
Creates a client backed by the default tokio event loop.
The client will use the default credentials provider and tls client.
pub fn new_with<P, D>(
request_dispatcher: D,
credentials_provider: P,
region: Region
) -> MediaStoreClient where
P: ProvideAwsCredentials + Send + Sync + 'static,
D: DispatchSignedRequest + Send + Sync + 'static,
pub fn new_with_client(client: Client, region: Region) -> MediaStoreClient
Trait Implementations
sourceimpl Clone for MediaStoreClient
impl Clone for MediaStoreClient
sourcefn clone(&self) -> MediaStoreClient
fn clone(&self) -> MediaStoreClient
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl MediaStore for MediaStoreClient
impl MediaStore for MediaStoreClient
sourcefn create_container<'life0, 'async_trait>(
&'life0 self,
input: CreateContainerInput
) -> Pin<Box<dyn Future<Output = Result<CreateContainerOutput, RusotoError<CreateContainerError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn create_container<'life0, 'async_trait>(
&'life0 self,
input: CreateContainerInput
) -> Pin<Box<dyn Future<Output = Result<CreateContainerOutput, RusotoError<CreateContainerError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Creates a storage container to hold objects. A container is similar to a bucket in the Amazon S3 service.
sourcefn delete_container<'life0, 'async_trait>(
&'life0 self,
input: DeleteContainerInput
) -> Pin<Box<dyn Future<Output = Result<DeleteContainerOutput, RusotoError<DeleteContainerError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn delete_container<'life0, 'async_trait>(
&'life0 self,
input: DeleteContainerInput
) -> Pin<Box<dyn Future<Output = Result<DeleteContainerOutput, RusotoError<DeleteContainerError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Deletes the specified container. Before you make a DeleteContainer
request, delete any objects in the container or in any folders in the container. You can delete only empty containers.
sourcefn delete_container_policy<'life0, 'async_trait>(
&'life0 self,
input: DeleteContainerPolicyInput
) -> Pin<Box<dyn Future<Output = Result<DeleteContainerPolicyOutput, RusotoError<DeleteContainerPolicyError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn delete_container_policy<'life0, 'async_trait>(
&'life0 self,
input: DeleteContainerPolicyInput
) -> Pin<Box<dyn Future<Output = Result<DeleteContainerPolicyOutput, RusotoError<DeleteContainerPolicyError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Deletes the access policy that is associated with the specified container.
sourcefn delete_cors_policy<'life0, 'async_trait>(
&'life0 self,
input: DeleteCorsPolicyInput
) -> Pin<Box<dyn Future<Output = Result<DeleteCorsPolicyOutput, RusotoError<DeleteCorsPolicyError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn delete_cors_policy<'life0, 'async_trait>(
&'life0 self,
input: DeleteCorsPolicyInput
) -> Pin<Box<dyn Future<Output = Result<DeleteCorsPolicyOutput, RusotoError<DeleteCorsPolicyError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Deletes the cross-origin resource sharing (CORS) configuration information that is set for the container.
To use this operation, you must have permission to perform the MediaStore:DeleteCorsPolicy
action. The container owner has this permission by default and can grant this permission to others.
sourcefn delete_lifecycle_policy<'life0, 'async_trait>(
&'life0 self,
input: DeleteLifecyclePolicyInput
) -> Pin<Box<dyn Future<Output = Result<DeleteLifecyclePolicyOutput, RusotoError<DeleteLifecyclePolicyError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn delete_lifecycle_policy<'life0, 'async_trait>(
&'life0 self,
input: DeleteLifecyclePolicyInput
) -> Pin<Box<dyn Future<Output = Result<DeleteLifecyclePolicyOutput, RusotoError<DeleteLifecyclePolicyError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Removes an object lifecycle policy from a container. It takes up to 20 minutes for the change to take effect.
sourcefn delete_metric_policy<'life0, 'async_trait>(
&'life0 self,
input: DeleteMetricPolicyInput
) -> Pin<Box<dyn Future<Output = Result<DeleteMetricPolicyOutput, RusotoError<DeleteMetricPolicyError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn delete_metric_policy<'life0, 'async_trait>(
&'life0 self,
input: DeleteMetricPolicyInput
) -> Pin<Box<dyn Future<Output = Result<DeleteMetricPolicyOutput, RusotoError<DeleteMetricPolicyError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Deletes the metric policy that is associated with the specified container. If there is no metric policy associated with the container, MediaStore doesn't send metrics to CloudWatch.
sourcefn describe_container<'life0, 'async_trait>(
&'life0 self,
input: DescribeContainerInput
) -> Pin<Box<dyn Future<Output = Result<DescribeContainerOutput, RusotoError<DescribeContainerError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn describe_container<'life0, 'async_trait>(
&'life0 self,
input: DescribeContainerInput
) -> Pin<Box<dyn Future<Output = Result<DescribeContainerOutput, RusotoError<DescribeContainerError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Retrieves the properties of the requested container. This request is commonly used to retrieve the endpoint of a container. An endpoint is a value assigned by the service when a new container is created. A container's endpoint does not change after it has been assigned. The DescribeContainer
request returns a single Container
object based on ContainerName
. To return all Container
objects that are associated with a specified AWS account, use ListContainers.
sourcefn get_container_policy<'life0, 'async_trait>(
&'life0 self,
input: GetContainerPolicyInput
) -> Pin<Box<dyn Future<Output = Result<GetContainerPolicyOutput, RusotoError<GetContainerPolicyError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn get_container_policy<'life0, 'async_trait>(
&'life0 self,
input: GetContainerPolicyInput
) -> Pin<Box<dyn Future<Output = Result<GetContainerPolicyOutput, RusotoError<GetContainerPolicyError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Retrieves the access policy for the specified container. For information about the data that is included in an access policy, see the AWS Identity and Access Management User Guide.
sourcefn get_cors_policy<'life0, 'async_trait>(
&'life0 self,
input: GetCorsPolicyInput
) -> Pin<Box<dyn Future<Output = Result<GetCorsPolicyOutput, RusotoError<GetCorsPolicyError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn get_cors_policy<'life0, 'async_trait>(
&'life0 self,
input: GetCorsPolicyInput
) -> Pin<Box<dyn Future<Output = Result<GetCorsPolicyOutput, RusotoError<GetCorsPolicyError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Returns the cross-origin resource sharing (CORS) configuration information that is set for the container.
To use this operation, you must have permission to perform the MediaStore:GetCorsPolicy
action. By default, the container owner has this permission and can grant it to others.
sourcefn get_lifecycle_policy<'life0, 'async_trait>(
&'life0 self,
input: GetLifecyclePolicyInput
) -> Pin<Box<dyn Future<Output = Result<GetLifecyclePolicyOutput, RusotoError<GetLifecyclePolicyError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn get_lifecycle_policy<'life0, 'async_trait>(
&'life0 self,
input: GetLifecyclePolicyInput
) -> Pin<Box<dyn Future<Output = Result<GetLifecyclePolicyOutput, RusotoError<GetLifecyclePolicyError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Retrieves the object lifecycle policy that is assigned to a container.
sourcefn get_metric_policy<'life0, 'async_trait>(
&'life0 self,
input: GetMetricPolicyInput
) -> Pin<Box<dyn Future<Output = Result<GetMetricPolicyOutput, RusotoError<GetMetricPolicyError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn get_metric_policy<'life0, 'async_trait>(
&'life0 self,
input: GetMetricPolicyInput
) -> Pin<Box<dyn Future<Output = Result<GetMetricPolicyOutput, RusotoError<GetMetricPolicyError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Returns the metric policy for the specified container.
sourcefn list_containers<'life0, 'async_trait>(
&'life0 self,
input: ListContainersInput
) -> Pin<Box<dyn Future<Output = Result<ListContainersOutput, RusotoError<ListContainersError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn list_containers<'life0, 'async_trait>(
&'life0 self,
input: ListContainersInput
) -> Pin<Box<dyn Future<Output = Result<ListContainersOutput, RusotoError<ListContainersError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Lists the properties of all containers in AWS Elemental MediaStore.
You can query to receive all the containers in one response. Or you can include the MaxResults
parameter to receive a limited number of containers in each response. In this case, the response includes a token. To get the next set of containers, send the command again, this time with the NextToken
parameter (with the returned token as its value). The next set of responses appears, with a token if there are still more containers to receive.
See also DescribeContainer, which gets the properties of one container.
Returns a list of the tags assigned to the specified container.
sourcefn put_container_policy<'life0, 'async_trait>(
&'life0 self,
input: PutContainerPolicyInput
) -> Pin<Box<dyn Future<Output = Result<PutContainerPolicyOutput, RusotoError<PutContainerPolicyError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn put_container_policy<'life0, 'async_trait>(
&'life0 self,
input: PutContainerPolicyInput
) -> Pin<Box<dyn Future<Output = Result<PutContainerPolicyOutput, RusotoError<PutContainerPolicyError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Creates an access policy for the specified container to restrict the users and clients that can access it. For information about the data that is included in an access policy, see the AWS Identity and Access Management User Guide.
For this release of the REST API, you can create only one policy for a container. If you enter PutContainerPolicy
twice, the second command modifies the existing policy.
sourcefn put_cors_policy<'life0, 'async_trait>(
&'life0 self,
input: PutCorsPolicyInput
) -> Pin<Box<dyn Future<Output = Result<PutCorsPolicyOutput, RusotoError<PutCorsPolicyError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn put_cors_policy<'life0, 'async_trait>(
&'life0 self,
input: PutCorsPolicyInput
) -> Pin<Box<dyn Future<Output = Result<PutCorsPolicyOutput, RusotoError<PutCorsPolicyError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Sets the cross-origin resource sharing (CORS) configuration on a container so that the container can service cross-origin requests. For example, you might want to enable a request whose origin is http://www.example.com to access your AWS Elemental MediaStore container at my.example.container.com by using the browser's XMLHttpRequest capability.
To enable CORS on a container, you attach a CORS policy to the container. In the CORS policy, you configure rules that identify origins and the HTTP methods that can be executed on your container. The policy can contain up to 398,000 characters. You can add up to 100 rules to a CORS policy. If more than one rule applies, the service uses the first applicable rule listed.
To learn more about CORS, see Cross-Origin Resource Sharing (CORS) in AWS Elemental MediaStore.
sourcefn put_lifecycle_policy<'life0, 'async_trait>(
&'life0 self,
input: PutLifecyclePolicyInput
) -> Pin<Box<dyn Future<Output = Result<PutLifecyclePolicyOutput, RusotoError<PutLifecyclePolicyError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn put_lifecycle_policy<'life0, 'async_trait>(
&'life0 self,
input: PutLifecyclePolicyInput
) -> Pin<Box<dyn Future<Output = Result<PutLifecyclePolicyOutput, RusotoError<PutLifecyclePolicyError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Writes an object lifecycle policy to a container. If the container already has an object lifecycle policy, the service replaces the existing policy with the new policy. It takes up to 20 minutes for the change to take effect.
For information about how to construct an object lifecycle policy, see Components of an Object Lifecycle Policy.
sourcefn put_metric_policy<'life0, 'async_trait>(
&'life0 self,
input: PutMetricPolicyInput
) -> Pin<Box<dyn Future<Output = Result<PutMetricPolicyOutput, RusotoError<PutMetricPolicyError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn put_metric_policy<'life0, 'async_trait>(
&'life0 self,
input: PutMetricPolicyInput
) -> Pin<Box<dyn Future<Output = Result<PutMetricPolicyOutput, RusotoError<PutMetricPolicyError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
The metric policy that you want to add to the container. A metric policy allows AWS Elemental MediaStore to send metrics to Amazon CloudWatch. It takes up to 20 minutes for the new policy to take effect.
sourcefn start_access_logging<'life0, 'async_trait>(
&'life0 self,
input: StartAccessLoggingInput
) -> Pin<Box<dyn Future<Output = Result<StartAccessLoggingOutput, RusotoError<StartAccessLoggingError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn start_access_logging<'life0, 'async_trait>(
&'life0 self,
input: StartAccessLoggingInput
) -> Pin<Box<dyn Future<Output = Result<StartAccessLoggingOutput, RusotoError<StartAccessLoggingError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Starts access logging on the specified container. When you enable access logging on a container, MediaStore delivers access logs for objects stored in that container to Amazon CloudWatch Logs.
sourcefn stop_access_logging<'life0, 'async_trait>(
&'life0 self,
input: StopAccessLoggingInput
) -> Pin<Box<dyn Future<Output = Result<StopAccessLoggingOutput, RusotoError<StopAccessLoggingError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn stop_access_logging<'life0, 'async_trait>(
&'life0 self,
input: StopAccessLoggingInput
) -> Pin<Box<dyn Future<Output = Result<StopAccessLoggingOutput, RusotoError<StopAccessLoggingError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Stops access logging on the specified container. When you stop access logging on a container, MediaStore stops sending access logs to Amazon CloudWatch Logs. These access logs are not saved and are not retrievable.
sourcefn tag_resource<'life0, 'async_trait>(
&'life0 self,
input: TagResourceInput
) -> Pin<Box<dyn Future<Output = Result<TagResourceOutput, RusotoError<TagResourceError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn tag_resource<'life0, 'async_trait>(
&'life0 self,
input: TagResourceInput
) -> Pin<Box<dyn Future<Output = Result<TagResourceOutput, RusotoError<TagResourceError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Adds tags to the specified AWS Elemental MediaStore container. Tags are key:value pairs that you can associate with AWS resources. For example, the tag key might be "customer" and the tag value might be "companyA." You can specify one or more tags to add to each container. You can add up to 50 tags to each container. For more information about tagging, including naming and usage conventions, see Tagging Resources in MediaStore.
sourcefn untag_resource<'life0, 'async_trait>(
&'life0 self,
input: UntagResourceInput
) -> Pin<Box<dyn Future<Output = Result<UntagResourceOutput, RusotoError<UntagResourceError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn untag_resource<'life0, 'async_trait>(
&'life0 self,
input: UntagResourceInput
) -> Pin<Box<dyn Future<Output = Result<UntagResourceOutput, RusotoError<UntagResourceError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Removes tags from the specified container. You can specify one or more tags to remove.
Auto Trait Implementations
impl !RefUnwindSafe for MediaStoreClient
impl Send for MediaStoreClient
impl Sync for MediaStoreClient
impl Unpin for MediaStoreClient
impl !UnwindSafe for MediaStoreClient
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