pub struct Client { /* private fields */ }Expand description
Client for AWS MediaConnect
Client for invoking operations on AWS MediaConnect. Each operation on AWS MediaConnect is a method on this
this struct. .send() MUST be invoked on the generated operations to dispatch the request to the service.
§Constructing a Client
A Config is required to construct a client. For most use cases, the aws-config
crate should be used to automatically resolve this config using
aws_config::load_from_env(), since this will resolve an SdkConfig which can be shared
across multiple different AWS SDK clients. This config resolution process can be customized
by calling aws_config::from_env() instead, which returns a ConfigLoader that uses
the builder pattern to customize the default config.
In the simplest case, creating a client looks as follows:
let config = aws_config::load_from_env().await;
let client = aws_sdk_mediaconnect::Client::new(&config);Occasionally, SDKs may have additional service-specific values that can be set on the Config that
is absent from SdkConfig, or slightly different settings for a specific client may be desired.
The Builder struct implements From<&SdkConfig>, so setting these specific settings can be
done as follows:
let sdk_config = ::aws_config::load_from_env().await;
let config = aws_sdk_mediaconnect::config::Builder::from(&sdk_config)
.some_service_specific_setting("value")
.build();See the aws-config docs and Config for more information on customizing configuration.
Note: Client construction is expensive due to connection thread pool initialization, and should be done once at application start-up.
§Using the Client
A client has a function for every operation that can be performed by the service.
For example, the AddBridgeOutputs operation has
a Client::add_bridge_outputs, function which returns a builder for that operation.
The fluent builder ultimately has a send() function that returns an async future that
returns a result, as illustrated below:
let result = client.add_bridge_outputs()
.bridge_arn("example")
.send()
.await;The underlying HTTP requests that get made by this can be modified with the customize_operation
function on the fluent builder. See the customize module for more
information.
§Waiters
This client provides wait_until methods behind the Waiters trait.
To use them, simply import the trait, and then call one of the wait_until methods. This will
return a waiter fluent builder that takes various parameters, which are documented on the builder
type. Once parameters have been provided, the wait method can be called to initiate waiting.
For example, if there was a wait_until_thing method, it could look like:
let result = client.wait_until_thing()
.thing_id("someId")
.wait(Duration::from_secs(120))
.await;Implementations§
Source§impl Client
impl Client
Sourcepub fn add_bridge_outputs(&self) -> AddBridgeOutputsFluentBuilder
pub fn add_bridge_outputs(&self) -> AddBridgeOutputsFluentBuilder
Constructs a fluent builder for the AddBridgeOutputs operation.
- The fluent builder is configurable:
bridge_arn(impl Into<String>)/set_bridge_arn(Option<String>):
required: trueThe Amazon Resource Name (ARN) of the bridge that you want to update.
outputs(AddBridgeOutputRequest)/set_outputs(Option<Vec::<AddBridgeOutputRequest>>):
required: trueThe outputs that you want to add to this bridge.
- On success, responds with
AddBridgeOutputsOutputwith field(s):bridge_arn(Option<String>):The ARN of the bridge that you added outputs to.
outputs(Option<Vec::<BridgeOutput>>):The outputs that you added to this bridge.
- On failure, responds with
SdkError<AddBridgeOutputsError>
Source§impl Client
impl Client
Sourcepub fn add_bridge_sources(&self) -> AddBridgeSourcesFluentBuilder
pub fn add_bridge_sources(&self) -> AddBridgeSourcesFluentBuilder
Constructs a fluent builder for the AddBridgeSources operation.
- The fluent builder is configurable:
bridge_arn(impl Into<String>)/set_bridge_arn(Option<String>):
required: trueThe Amazon Resource Name (ARN) of the bridge that you want to update.
sources(AddBridgeSourceRequest)/set_sources(Option<Vec::<AddBridgeSourceRequest>>):
required: trueThe sources that you want to add to this bridge.
- On success, responds with
AddBridgeSourcesOutputwith field(s):bridge_arn(Option<String>):The ARN of the bridge that you added sources to.
sources(Option<Vec::<BridgeSource>>):The sources that you added to this bridge.
- On failure, responds with
SdkError<AddBridgeSourcesError>
Source§impl Client
impl Client
Sourcepub fn add_flow_media_streams(&self) -> AddFlowMediaStreamsFluentBuilder
pub fn add_flow_media_streams(&self) -> AddFlowMediaStreamsFluentBuilder
Constructs a fluent builder for the AddFlowMediaStreams operation.
- The fluent builder is configurable:
flow_arn(impl Into<String>)/set_flow_arn(Option<String>):
required: trueThe Amazon Resource Name (ARN) of the flow.
media_streams(AddMediaStreamRequest)/set_media_streams(Option<Vec::<AddMediaStreamRequest>>):
required: trueThe media streams that you want to add to the flow.
- On success, responds with
AddFlowMediaStreamsOutputwith field(s):flow_arn(Option<String>):The ARN of the flow that you added media streams to.
media_streams(Option<Vec::<MediaStream>>):The media streams that you added to the flow.
- On failure, responds with
SdkError<AddFlowMediaStreamsError>
Source§impl Client
impl Client
Sourcepub fn add_flow_outputs(&self) -> AddFlowOutputsFluentBuilder
pub fn add_flow_outputs(&self) -> AddFlowOutputsFluentBuilder
Constructs a fluent builder for the AddFlowOutputs operation.
- The fluent builder is configurable:
flow_arn(impl Into<String>)/set_flow_arn(Option<String>):
required: trueThe Amazon Resource Name (ARN) of the flow that you want to add outputs to.
outputs(AddOutputRequest)/set_outputs(Option<Vec::<AddOutputRequest>>):
required: trueA list of outputs that you want to add to the flow.
- On success, responds with
AddFlowOutputsOutputwith field(s):flow_arn(Option<String>):The ARN of the flow that these outputs were added to.
outputs(Option<Vec::<Output>>):The details of the newly added outputs.
- On failure, responds with
SdkError<AddFlowOutputsError>
Source§impl Client
impl Client
Sourcepub fn add_flow_sources(&self) -> AddFlowSourcesFluentBuilder
pub fn add_flow_sources(&self) -> AddFlowSourcesFluentBuilder
Constructs a fluent builder for the AddFlowSources operation.
- The fluent builder is configurable:
flow_arn(impl Into<String>)/set_flow_arn(Option<String>):
required: trueThe Amazon Resource Name (ARN) of the flow that you want to update.
sources(SetSourceRequest)/set_sources(Option<Vec::<SetSourceRequest>>):
required: trueA list of sources that you want to add to the flow.
- On success, responds with
AddFlowSourcesOutputwith field(s):flow_arn(Option<String>):The ARN of the flow that these sources were added to.
sources(Option<Vec::<Source>>):The details of the newly added sources.
- On failure, responds with
SdkError<AddFlowSourcesError>
Source§impl Client
impl Client
Sourcepub fn add_flow_vpc_interfaces(&self) -> AddFlowVpcInterfacesFluentBuilder
pub fn add_flow_vpc_interfaces(&self) -> AddFlowVpcInterfacesFluentBuilder
Constructs a fluent builder for the AddFlowVpcInterfaces operation.
- The fluent builder is configurable:
flow_arn(impl Into<String>)/set_flow_arn(Option<String>):
required: trueThe Amazon Resource Name (ARN) of the flow that you want to update.
vpc_interfaces(VpcInterfaceRequest)/set_vpc_interfaces(Option<Vec::<VpcInterfaceRequest>>):
required: trueA list of VPC interfaces that you want to add to the flow.
- On success, responds with
AddFlowVpcInterfacesOutputwith field(s):flow_arn(Option<String>):The ARN of the flow that these VPC interfaces were added to.
vpc_interfaces(Option<Vec::<VpcInterface>>):The details of the newly added VPC interfaces.
- On failure, responds with
SdkError<AddFlowVpcInterfacesError>
Source§impl Client
impl Client
Sourcepub fn create_bridge(&self) -> CreateBridgeFluentBuilder
pub fn create_bridge(&self) -> CreateBridgeFluentBuilder
Constructs a fluent builder for the CreateBridge operation.
- The fluent builder is configurable:
egress_gateway_bridge(AddEgressGatewayBridgeRequest)/set_egress_gateway_bridge(Option<AddEgressGatewayBridgeRequest>):
required: falseAn egress bridge is a cloud-to-ground bridge. The content comes from an existing MediaConnect flow and is delivered to your premises.
ingress_gateway_bridge(AddIngressGatewayBridgeRequest)/set_ingress_gateway_bridge(Option<AddIngressGatewayBridgeRequest>):
required: falseAn ingress bridge is a ground-to-cloud bridge. The content originates at your premises and is delivered to the cloud.
name(impl Into<String>)/set_name(Option<String>):
required: trueThe name of the bridge. This name can not be modified after the bridge is created.
outputs(AddBridgeOutputRequest)/set_outputs(Option<Vec::<AddBridgeOutputRequest>>):
required: falseThe outputs that you want to add to this bridge.
placement_arn(impl Into<String>)/set_placement_arn(Option<String>):
required: trueThe bridge placement Amazon Resource Number (ARN).
source_failover_config(FailoverConfig)/set_source_failover_config(Option<FailoverConfig>):
required: falseThe settings for source failover.
sources(AddBridgeSourceRequest)/set_sources(Option<Vec::<AddBridgeSourceRequest>>):
required: trueThe sources that you want to add to this bridge.
- On success, responds with
CreateBridgeOutputwith field(s):bridge(Option<Bridge>):The name of the bridge that was created.
- On failure, responds with
SdkError<CreateBridgeError>
Source§impl Client
impl Client
Sourcepub fn create_flow(&self) -> CreateFlowFluentBuilder
pub fn create_flow(&self) -> CreateFlowFluentBuilder
Constructs a fluent builder for the CreateFlow operation.
- The fluent builder is configurable:
availability_zone(impl Into<String>)/set_availability_zone(Option<String>):
required: falseThe Availability Zone that you want to create the flow in. These options are limited to the Availability Zones within the current Amazon Web Services Region.
entitlements(GrantEntitlementRequest)/set_entitlements(Option<Vec::<GrantEntitlementRequest>>):
required: falseThe entitlements that you want to grant on a flow.
media_streams(AddMediaStreamRequest)/set_media_streams(Option<Vec::<AddMediaStreamRequest>>):
required: falseThe media streams that you want to add to the flow. You can associate these media streams with sources and outputs on the flow.
name(impl Into<String>)/set_name(Option<String>):
required: trueThe name of the flow.
outputs(AddOutputRequest)/set_outputs(Option<Vec::<AddOutputRequest>>):
required: falseThe outputs that you want to add to this flow.
source(SetSourceRequest)/set_source(Option<SetSourceRequest>):
required: falseThe settings for the source that you want to use for the new flow.
source_failover_config(FailoverConfig)/set_source_failover_config(Option<FailoverConfig>):
required: falseThe settings for source failover.
sources(SetSourceRequest)/set_sources(Option<Vec::<SetSourceRequest>>):
required: falseThe sources that are assigned to the flow.
vpc_interfaces(VpcInterfaceRequest)/set_vpc_interfaces(Option<Vec::<VpcInterfaceRequest>>):
required: falseThe VPC interfaces you want on the flow.
maintenance(AddMaintenance)/set_maintenance(Option<AddMaintenance>):
required: falseThe maintenance settings you want to use for the flow.
source_monitoring_config(MonitoringConfig)/set_source_monitoring_config(Option<MonitoringConfig>):
required: falseThe settings for source monitoring.
flow_size(FlowSize)/set_flow_size(Option<FlowSize>):
required: falseDetermines the processing capacity and feature set of the flow. Set this optional parameter to
LARGEif you want to enable NDI outputs on the flow.ndi_config(NdiConfig)/set_ndi_config(Option<NdiConfig>):
required: falseSpecifies the configuration settings for NDI outputs. Required when the flow includes NDI outputs.
flow_tags(impl Into<String>, impl Into<String>)/set_flow_tags(Option<HashMap::<String, String>>):
required: falseThe key-value pairs that can be used to tag and organize the flow.
- On success, responds with
CreateFlowOutputwith field(s):flow(Option<Flow>):The flow that you created.
- On failure, responds with
SdkError<CreateFlowError>
Source§impl Client
impl Client
Sourcepub fn create_gateway(&self) -> CreateGatewayFluentBuilder
pub fn create_gateway(&self) -> CreateGatewayFluentBuilder
Constructs a fluent builder for the CreateGateway operation.
- The fluent builder is configurable:
egress_cidr_blocks(impl Into<String>)/set_egress_cidr_blocks(Option<Vec::<String>>):
required: trueThe range of IP addresses that are allowed to contribute content or initiate output requests for flows communicating with this gateway. These IP addresses should be in the form of a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16.
name(impl Into<String>)/set_name(Option<String>):
required: trueThe name of the gateway. This name can not be modified after the gateway is created.
networks(GatewayNetwork)/set_networks(Option<Vec::<GatewayNetwork>>):
required: trueThe list of networks that you want to add to the gateway.
- On success, responds with
CreateGatewayOutputwith field(s):gateway(Option<Gateway>):The gateway that you created.
- On failure, responds with
SdkError<CreateGatewayError>
Source§impl Client
impl Client
Sourcepub fn delete_bridge(&self) -> DeleteBridgeFluentBuilder
pub fn delete_bridge(&self) -> DeleteBridgeFluentBuilder
Constructs a fluent builder for the DeleteBridge operation.
- The fluent builder is configurable:
bridge_arn(impl Into<String>)/set_bridge_arn(Option<String>):
required: trueThe Amazon Resource Name (ARN) of the bridge that you want to delete.
- On success, responds with
DeleteBridgeOutputwith field(s):bridge_arn(Option<String>):The ARN of the deleted bridge.
- On failure, responds with
SdkError<DeleteBridgeError>
Source§impl Client
impl Client
Sourcepub fn delete_flow(&self) -> DeleteFlowFluentBuilder
pub fn delete_flow(&self) -> DeleteFlowFluentBuilder
Constructs a fluent builder for the DeleteFlow operation.
- The fluent builder is configurable:
flow_arn(impl Into<String>)/set_flow_arn(Option<String>):
required: trueThe Amazon Resource Name (ARN) of the flow that you want to delete.
- On success, responds with
DeleteFlowOutputwith field(s):flow_arn(Option<String>):The ARN of the flow that was deleted.
status(Option<Status>):The status of the flow when the
DeleteFlowprocess begins.
- On failure, responds with
SdkError<DeleteFlowError>
Source§impl Client
impl Client
Sourcepub fn delete_gateway(&self) -> DeleteGatewayFluentBuilder
pub fn delete_gateway(&self) -> DeleteGatewayFluentBuilder
Constructs a fluent builder for the DeleteGateway operation.
- The fluent builder is configurable:
gateway_arn(impl Into<String>)/set_gateway_arn(Option<String>):
required: trueThe Amazon Resource Name (ARN) of the gateway that you want to delete.
- On success, responds with
DeleteGatewayOutputwith field(s):gateway_arn(Option<String>):The ARN of the gateway that was deleted.
- On failure, responds with
SdkError<DeleteGatewayError>
Source§impl Client
impl Client
Sourcepub fn deregister_gateway_instance(
&self,
) -> DeregisterGatewayInstanceFluentBuilder
pub fn deregister_gateway_instance( &self, ) -> DeregisterGatewayInstanceFluentBuilder
Constructs a fluent builder for the DeregisterGatewayInstance operation.
- The fluent builder is configurable:
force(bool)/set_force(Option<bool>):
required: falseForce the deregistration of an instance. Force will deregister an instance, even if there are bridges running on it.
gateway_instance_arn(impl Into<String>)/set_gateway_instance_arn(Option<String>):
required: trueThe Amazon Resource Name (ARN) of the gateway that contains the instance that you want to deregister.
- On success, responds with
DeregisterGatewayInstanceOutputwith field(s):gateway_instance_arn(Option<String>):The ARN of the instance.
instance_state(Option<InstanceState>):The status of the instance.
- On failure, responds with
SdkError<DeregisterGatewayInstanceError>
Source§impl Client
impl Client
Sourcepub fn describe_bridge(&self) -> DescribeBridgeFluentBuilder
pub fn describe_bridge(&self) -> DescribeBridgeFluentBuilder
Constructs a fluent builder for the DescribeBridge operation.
- The fluent builder is configurable:
bridge_arn(impl Into<String>)/set_bridge_arn(Option<String>):
required: trueThe Amazon Resource Name (ARN) of the bridge that you want to describe.
- On success, responds with
DescribeBridgeOutputwith field(s):bridge(Option<Bridge>):The bridge that you requested a description of.
- On failure, responds with
SdkError<DescribeBridgeError>
Source§impl Client
impl Client
Sourcepub fn describe_flow(&self) -> DescribeFlowFluentBuilder
pub fn describe_flow(&self) -> DescribeFlowFluentBuilder
Constructs a fluent builder for the DescribeFlow operation.
- The fluent builder is configurable:
flow_arn(impl Into<String>)/set_flow_arn(Option<String>):
required: trueThe ARN of the flow that you want to describe.
- On success, responds with
DescribeFlowOutputwith field(s):flow(Option<Flow>):The flow that you requested a description of.
messages(Option<Messages>):Any errors that apply currently to the flow. If there are no errors, MediaConnect will not include this field in the response.
- On failure, responds with
SdkError<DescribeFlowError>
Source§impl Client
impl Client
Sourcepub fn describe_flow_source_metadata(
&self,
) -> DescribeFlowSourceMetadataFluentBuilder
pub fn describe_flow_source_metadata( &self, ) -> DescribeFlowSourceMetadataFluentBuilder
Constructs a fluent builder for the DescribeFlowSourceMetadata operation.
- The fluent builder is configurable:
flow_arn(impl Into<String>)/set_flow_arn(Option<String>):
required: trueThe Amazon Resource Name (ARN) of the flow.
- On success, responds with
DescribeFlowSourceMetadataOutputwith field(s):flow_arn(Option<String>):The ARN of the flow that DescribeFlowSourceMetadata was performed on.
messages(Option<Vec::<MessageDetail>>):Provides a status code and message regarding issues found with the flow source metadata.
timestamp(Option<DateTime>):The timestamp of the most recent change in metadata for this flow’s source.
transport_media_info(Option<TransportMediaInfo>):Information about the flow’s transport media.
- On failure, responds with
SdkError<DescribeFlowSourceMetadataError>
Source§impl Client
impl Client
Sourcepub fn describe_flow_source_thumbnail(
&self,
) -> DescribeFlowSourceThumbnailFluentBuilder
pub fn describe_flow_source_thumbnail( &self, ) -> DescribeFlowSourceThumbnailFluentBuilder
Constructs a fluent builder for the DescribeFlowSourceThumbnail operation.
- The fluent builder is configurable:
flow_arn(impl Into<String>)/set_flow_arn(Option<String>):
required: trueThe Amazon Resource Name (ARN) of the flow.
- On success, responds with
DescribeFlowSourceThumbnailOutputwith field(s):thumbnail_details(Option<ThumbnailDetails>):The details of the thumbnail, including thumbnail base64 string, timecode and the time when thumbnail was generated.
- On failure, responds with
SdkError<DescribeFlowSourceThumbnailError>
Source§impl Client
impl Client
Sourcepub fn describe_gateway(&self) -> DescribeGatewayFluentBuilder
pub fn describe_gateway(&self) -> DescribeGatewayFluentBuilder
Constructs a fluent builder for the DescribeGateway operation.
- The fluent builder is configurable:
gateway_arn(impl Into<String>)/set_gateway_arn(Option<String>):
required: trueThe ARN of the gateway that you want to describe.
- On success, responds with
DescribeGatewayOutputwith field(s):gateway(Option<Gateway>):The gateway that you wanted to describe.
- On failure, responds with
SdkError<DescribeGatewayError>
Source§impl Client
impl Client
Sourcepub fn describe_gateway_instance(&self) -> DescribeGatewayInstanceFluentBuilder
pub fn describe_gateway_instance(&self) -> DescribeGatewayInstanceFluentBuilder
Constructs a fluent builder for the DescribeGatewayInstance operation.
- The fluent builder is configurable:
gateway_instance_arn(impl Into<String>)/set_gateway_instance_arn(Option<String>):
required: trueThe Amazon Resource Name (ARN) of the gateway instance that you want to describe.
- On success, responds with
DescribeGatewayInstanceOutputwith field(s):gateway_instance(Option<GatewayInstance>):The gateway instance that you requested a description of.
- On failure, responds with
SdkError<DescribeGatewayInstanceError>
Source§impl Client
impl Client
Sourcepub fn describe_offering(&self) -> DescribeOfferingFluentBuilder
pub fn describe_offering(&self) -> DescribeOfferingFluentBuilder
Constructs a fluent builder for the DescribeOffering operation.
- The fluent builder is configurable:
offering_arn(impl Into<String>)/set_offering_arn(Option<String>):
required: trueThe ARN of the offering.
- On success, responds with
DescribeOfferingOutputwith field(s):offering(Option<Offering>):The offering that you requested a description of.
- On failure, responds with
SdkError<DescribeOfferingError>
Source§impl Client
impl Client
Sourcepub fn describe_reservation(&self) -> DescribeReservationFluentBuilder
pub fn describe_reservation(&self) -> DescribeReservationFluentBuilder
Constructs a fluent builder for the DescribeReservation operation.
- The fluent builder is configurable:
reservation_arn(impl Into<String>)/set_reservation_arn(Option<String>):
required: trueThe Amazon Resource Name (ARN) of the offering.
- On success, responds with
DescribeReservationOutputwith field(s):reservation(Option<Reservation>):A pricing agreement for a discounted rate for a specific outbound bandwidth that your MediaConnect account will use each month over a specific time period. The discounted rate in the reservation applies to outbound bandwidth for all flows from your account until your account reaches the amount of bandwidth in your reservation. If you use more outbound bandwidth than the agreed upon amount in a single month, the overage is charged at the on-demand rate.
- On failure, responds with
SdkError<DescribeReservationError>
Source§impl Client
impl Client
Sourcepub fn grant_flow_entitlements(&self) -> GrantFlowEntitlementsFluentBuilder
pub fn grant_flow_entitlements(&self) -> GrantFlowEntitlementsFluentBuilder
Constructs a fluent builder for the GrantFlowEntitlements operation.
- The fluent builder is configurable:
entitlements(GrantEntitlementRequest)/set_entitlements(Option<Vec::<GrantEntitlementRequest>>):
required: trueThe list of entitlements that you want to grant.
flow_arn(impl Into<String>)/set_flow_arn(Option<String>):
required: trueThe Amazon Resource Name (ARN) of the flow that you want to grant entitlements on.
- On success, responds with
GrantFlowEntitlementsOutputwith field(s):entitlements(Option<Vec::<Entitlement>>):The entitlements that were just granted.
flow_arn(Option<String>):The ARN of the flow that these entitlements were granted to.
- On failure, responds with
SdkError<GrantFlowEntitlementsError>
Source§impl Client
impl Client
Sourcepub fn list_bridges(&self) -> ListBridgesFluentBuilder
pub fn list_bridges(&self) -> ListBridgesFluentBuilder
Constructs a fluent builder for the ListBridges operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
filter_arn(impl Into<String>)/set_filter_arn(Option<String>):
required: falseFilter the list results to display only the bridges associated with the selected ARN.
max_results(i32)/set_max_results(Option<i32>):
required: falseThe maximum number of results to return per API request.
For example, you submit a
ListBridgesrequest withMaxResultsset at 5. Although 20 items match your request, the service returns no more than the first 5 items. (The service also returns aNextTokenvalue that you can use to fetch the next batch of results.)The service might return fewer results than the
MaxResultsvalue. IfMaxResultsis not included in the request, the service defaults to pagination with a maximum of 10 results per page.next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseThe token that identifies the batch of results that you want to see.
For example, you submit a
ListBridgesrequest withMaxResultsset at 5. The service returns the first batch of results (up to 5) and aNextTokenvalue. To see the next batch of results, you can submit theListBridgesrequest a second time and specify theNextTokenvalue.
- On success, responds with
ListBridgesOutputwith field(s):bridges(Option<Vec::<ListedBridge>>):A list of bridge summaries.
next_token(Option<String>):The token that identifies the batch of results that you want to see.
For example, you submit a
ListBridgesrequest withMaxResultsset at 5. The service returns the first batch of results (up to 5) and aNextTokenvalue. To see the next batch of results, you can submit theListBridgesrequest a second time and specify theNextTokenvalue.
- On failure, responds with
SdkError<ListBridgesError>
Source§impl Client
impl Client
Sourcepub fn list_entitlements(&self) -> ListEntitlementsFluentBuilder
pub fn list_entitlements(&self) -> ListEntitlementsFluentBuilder
Constructs a fluent builder for the ListEntitlements operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
max_results(i32)/set_max_results(Option<i32>):
required: falseThe maximum number of results to return per API request.
For example, you submit a
ListEntitlementsrequest with set at 5. Although 20 items match your request, the service returns no more than the first 5 items. (The service also returns a NextToken value that you can use to fetch the next batch of results.)The service might return fewer results than the
MaxResultsvalue. IfMaxResultsis not included in the request, the service defaults to pagination with a maximum of 20 results per page.next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseThe token that identifies the batch of results that you want to see.
For example, you submit a
ListEntitlementsrequest withMaxResultsset at 5. The service returns the first batch of results (up to 5) and aNextTokenvalue. To see the next batch of results, you can submit theListEntitlementsrequest a second time and specify theNextTokenvalue.
- On success, responds with
ListEntitlementsOutputwith field(s):entitlements(Option<Vec::<ListedEntitlement>>):A list of entitlements that have been granted to you from other Amazon Web Services accounts.
next_token(Option<String>):The token that identifies the batch of results that you want to see.
For example, you submit a ListEntitlements request with
MaxResultsset at 5. The service returns the first batch of results (up to 5) and a NextToken value. To see the next batch of results, you can submit theListEntitlementsrequest a second time and specify theNextTokenvalue.
- On failure, responds with
SdkError<ListEntitlementsError>
Source§impl Client
impl Client
Sourcepub fn list_flows(&self) -> ListFlowsFluentBuilder
pub fn list_flows(&self) -> ListFlowsFluentBuilder
Constructs a fluent builder for the ListFlows operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
max_results(i32)/set_max_results(Option<i32>):
required: falseThe maximum number of results to return per API request.
For example, you submit a
ListFlowsrequest with MaxResults set at 5. Although 20 items match your request, the service returns no more than the first 5 items. (The service also returns aNextTokenvalue that you can use to fetch the next batch of results.)The service might return fewer results than the
MaxResultsvalue. IfMaxResultsis not included in the request, the service defaults to pagination with a maximum of 10 results per page.next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseThe token that identifies the batch of results that you want to see.
For example, you submit a
ListFlowsrequest with MaxResults set at 5. The service returns the first batch of results (up to 5) and aNextTokenvalue. To see the next batch of results, you can submit theListFlowsrequest a second time and specify theNextTokenvalue.
- On success, responds with
ListFlowsOutputwith field(s):flows(Option<Vec::<ListedFlow>>):A list of flow summaries.
next_token(Option<String>):The token that identifies the batch of results that you want to see.
For example, you submit a
ListFlowsrequest with MaxResults set at 5. The service returns the first batch of results (up to 5) and aNextTokenvalue. To see the next batch of results, you can submit theListFlowsrequest a second time and specify theNextTokenvalue.
- On failure, responds with
SdkError<ListFlowsError>
Source§impl Client
impl Client
Sourcepub fn list_gateway_instances(&self) -> ListGatewayInstancesFluentBuilder
pub fn list_gateway_instances(&self) -> ListGatewayInstancesFluentBuilder
Constructs a fluent builder for the ListGatewayInstances operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
filter_arn(impl Into<String>)/set_filter_arn(Option<String>):
required: falseFilter the list results to display only the instances associated with the selected Gateway ARN.
max_results(i32)/set_max_results(Option<i32>):
required: falseThe maximum number of results to return per API request.
For example, you submit a ListInstances request with
MaxResultsset at 5. Although 20 items match your request, the service returns no more than the first 5 items. (The service also returns aNextTokenvalue that you can use to fetch the next batch of results.)The service might return fewer results than the
MaxResultsvalue. IfMaxResultsis not included in the request, the service defaults to pagination with a maximum of 10 results per page.next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseThe token that identifies the batch of results that you want to see.
For example, you submit a
ListInstancesrequest withMaxResultsset at 5. The service returns the first batch of results (up to 5) and aNextTokenvalue. To see the next batch of results, you can submit theListInstancesrequest a second time and specify theNextTokenvalue.
- On success, responds with
ListGatewayInstancesOutputwith field(s):instances(Option<Vec::<ListedGatewayInstance>>):A list of instance summaries.
next_token(Option<String>):The token that identifies the batch of results that you want to see.
For example, you submit a
ListInstancesrequest with MaxResults set at 5. The service returns the first batch of results (up to 5) and aNextTokenvalue. To see the next batch of results, you can submit theListInstancesrequest a second time and specify theNextTokenvalue.
- On failure, responds with
SdkError<ListGatewayInstancesError>
Source§impl Client
impl Client
Sourcepub fn list_gateways(&self) -> ListGatewaysFluentBuilder
pub fn list_gateways(&self) -> ListGatewaysFluentBuilder
Constructs a fluent builder for the ListGateways operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
max_results(i32)/set_max_results(Option<i32>):
required: falseThe maximum number of results to return per API request.
For example, you submit a
ListGatewaysrequest withMaxResultsset at 5. Although 20 items match your request, the service returns no more than the first 5 items. (The service also returns aNextTokenvalue that you can use to fetch the next batch of results.)The service might return fewer results than the
MaxResultsvalue. IfMaxResultsis not included in the request, the service defaults to pagination with a maximum of 10 results per page.next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseThe token that identifies the batch of results that you want to see.
For example, you submit a
ListGatewaysrequest withMaxResultsset at 5. The service returns the first batch of results (up to 5) and aNextTokenvalue. To see the next batch of results, you can submit theListGatewaysrequest a second time and specify theNextTokenvalue.
- On success, responds with
ListGatewaysOutputwith field(s):gateways(Option<Vec::<ListedGateway>>):A list of gateway summaries.
next_token(Option<String>):The token that identifies the batch of results that you want to see.
For example, you submit a
ListGatewaysrequest withMaxResultsset at 5. The service returns the first batch of results (up to 5) and aNextTokenvalue. To see the next batch of results, you can submit theListGatewaysrequest a second time and specify theNextTokenvalue.
- On failure, responds with
SdkError<ListGatewaysError>
Source§impl Client
impl Client
Sourcepub fn list_offerings(&self) -> ListOfferingsFluentBuilder
pub fn list_offerings(&self) -> ListOfferingsFluentBuilder
Constructs a fluent builder for the ListOfferings operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
max_results(i32)/set_max_results(Option<i32>):
required: falseThe maximum number of results to return per API request.
For example, you submit a
ListOfferingsrequest withMaxResultsset at 5. Although 20 items match your request, the service returns no more than the first 5 items. (The service also returns aNextTokenvalue that you can use to fetch the next batch of results.)The service might return fewer results than the
MaxResultsvalue. IfMaxResultsis not included in the request, the service defaults to pagination with a maximum of 10 results per page.next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseThe token that identifies the batch of results that you want to see.
For example, you submit a
ListOfferingsrequest withMaxResultsset at 5. The service returns the first batch of results (up to 5) and aNextTokenvalue. To see the next batch of results, you can submit theListOfferingsrequest a second time and specify theNextTokenvalue.
- On success, responds with
ListOfferingsOutputwith field(s):next_token(Option<String>):The token that identifies the batch of results that you want to see.
For example, you submit a
ListOfferingsrequest withMaxResultsset at 5. The service returns the first batch of results (up to 5) and aNextTokenvalue. To see the next batch of results, you can submit theListOfferingsrequest a second time and specify theNextTokenvalue.offerings(Option<Vec::<Offering>>):A list of offerings that are available to this account in the current Amazon Web Services Region.
- On failure, responds with
SdkError<ListOfferingsError>
Source§impl Client
impl Client
Sourcepub fn list_reservations(&self) -> ListReservationsFluentBuilder
pub fn list_reservations(&self) -> ListReservationsFluentBuilder
Constructs a fluent builder for the ListReservations operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
max_results(i32)/set_max_results(Option<i32>):
required: falseThe maximum number of results to return per API request.
For example, you submit a
ListReservationsrequest withMaxResultsset at 5. Although 20 items match your request, the service returns no more than the first 5 items. (The service also returns a NextToken value that you can use to fetch the next batch of results.)The service might return fewer results than the
MaxResultsvalue. IfMaxResultsis not included in the request, the service defaults to pagination with a maximum of 10 results per page.next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseThe token that identifies the batch of results that you want to see.
For example, you submit a
ListReservationsrequest withMaxResultsset at 5. The service returns the first batch of results (up to 5) and aNextTokenvalue. To see the next batch of results, you can submit theListOfferingsrequest a second time and specify theNextTokenvalue.
- On success, responds with
ListReservationsOutputwith field(s):next_token(Option<String>):The token that identifies the batch of results that you want to see.
For example, you submit a
ListReservationsrequest withMaxResultsset at 5. The service returns the first batch of results (up to 5) and aNextTokenvalue. To see the next batch of results, you can submit theListReservationsrequest a second time and specify theNextTokenvalue.reservations(Option<Vec::<Reservation>>):A list of all reservations that have been purchased by this account in the current Amazon Web Services Region.
- On failure, responds with
SdkError<ListReservationsError>
Source§impl Client
impl Client
Constructs a fluent builder for the ListTagsForResource operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)/set_resource_arn(Option<String>):
required: trueThe Amazon Resource Name (ARN) that identifies the MediaConnect resource for which to list the tags.
- On success, responds with
ListTagsForResourceOutputwith field(s):tags(Option<HashMap::<String, String>>):A map from tag keys to values. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.
- On failure, responds with
SdkError<ListTagsForResourceError>
Source§impl Client
impl Client
Sourcepub fn purchase_offering(&self) -> PurchaseOfferingFluentBuilder
pub fn purchase_offering(&self) -> PurchaseOfferingFluentBuilder
Constructs a fluent builder for the PurchaseOffering operation.
- The fluent builder is configurable:
offering_arn(impl Into<String>)/set_offering_arn(Option<String>):
required: trueThe Amazon Resource Name (ARN) of the offering.
reservation_name(impl Into<String>)/set_reservation_name(Option<String>):
required: trueThe name that you want to use for the reservation.
start(impl Into<String>)/set_start(Option<String>):
required: trueThe date and time that you want the reservation to begin, in Coordinated Universal Time (UTC).
You can specify any date and time between 12:00am on the first day of the current month to the current time on today’s date, inclusive. Specify the start in a 24-hour notation. Use the following format:
YYYY-MM-DDTHH:mm:SSZ, whereTandZare literal characters. For example, to specify 11:30pm on March 5, 2020, enter2020-03-05T23:30:00Z.
- On success, responds with
PurchaseOfferingOutputwith field(s):reservation(Option<Reservation>):The details of the reservation that you just created when you purchased the offering.
- On failure, responds with
SdkError<PurchaseOfferingError>
Source§impl Client
impl Client
Sourcepub fn remove_bridge_output(&self) -> RemoveBridgeOutputFluentBuilder
pub fn remove_bridge_output(&self) -> RemoveBridgeOutputFluentBuilder
Constructs a fluent builder for the RemoveBridgeOutput operation.
- The fluent builder is configurable:
bridge_arn(impl Into<String>)/set_bridge_arn(Option<String>):
required: trueThe Amazon Resource Name (ARN) of the bridge that you want to update.
output_name(impl Into<String>)/set_output_name(Option<String>):
required: trueThe name of the bridge output that you want to remove.
- On success, responds with
RemoveBridgeOutputOutputwith field(s):bridge_arn(Option<String>):The ARN of the bridge from which the output was removed.
output_name(Option<String>):The name of the bridge output that was removed.
- On failure, responds with
SdkError<RemoveBridgeOutputError>
Source§impl Client
impl Client
Sourcepub fn remove_bridge_source(&self) -> RemoveBridgeSourceFluentBuilder
pub fn remove_bridge_source(&self) -> RemoveBridgeSourceFluentBuilder
Constructs a fluent builder for the RemoveBridgeSource operation.
- The fluent builder is configurable:
bridge_arn(impl Into<String>)/set_bridge_arn(Option<String>):
required: trueThe Amazon Resource Name (ARN) of the bridge that you want to update.
source_name(impl Into<String>)/set_source_name(Option<String>):
required: trueThe name of the bridge source that you want to remove.
- On success, responds with
RemoveBridgeSourceOutputwith field(s):bridge_arn(Option<String>):The ARN of the bridge from which the source was removed.
source_name(Option<String>):The name of the bridge source that was removed.
- On failure, responds with
SdkError<RemoveBridgeSourceError>
Source§impl Client
impl Client
Sourcepub fn remove_flow_media_stream(&self) -> RemoveFlowMediaStreamFluentBuilder
pub fn remove_flow_media_stream(&self) -> RemoveFlowMediaStreamFluentBuilder
Constructs a fluent builder for the RemoveFlowMediaStream operation.
- The fluent builder is configurable:
flow_arn(impl Into<String>)/set_flow_arn(Option<String>):
required: trueThe Amazon Resource Name (ARN) of the flow that you want to update.
media_stream_name(impl Into<String>)/set_media_stream_name(Option<String>):
required: trueThe name of the media stream that you want to remove.
- On success, responds with
RemoveFlowMediaStreamOutputwith field(s):flow_arn(Option<String>):The ARN of the flow that was updated.
media_stream_name(Option<String>):The name of the media stream that was removed.
- On failure, responds with
SdkError<RemoveFlowMediaStreamError>
Source§impl Client
impl Client
Sourcepub fn remove_flow_output(&self) -> RemoveFlowOutputFluentBuilder
pub fn remove_flow_output(&self) -> RemoveFlowOutputFluentBuilder
Constructs a fluent builder for the RemoveFlowOutput operation.
- The fluent builder is configurable:
flow_arn(impl Into<String>)/set_flow_arn(Option<String>):
required: trueThe Amazon Resource Name (ARN) of the flow that you want to remove an output from.
output_arn(impl Into<String>)/set_output_arn(Option<String>):
required: trueThe ARN of the output that you want to remove.
- On success, responds with
RemoveFlowOutputOutputwith field(s):flow_arn(Option<String>):The ARN of the flow that the output was removed from.
output_arn(Option<String>):The ARN of the output that was removed.
- On failure, responds with
SdkError<RemoveFlowOutputError>
Source§impl Client
impl Client
Sourcepub fn remove_flow_source(&self) -> RemoveFlowSourceFluentBuilder
pub fn remove_flow_source(&self) -> RemoveFlowSourceFluentBuilder
Constructs a fluent builder for the RemoveFlowSource operation.
- The fluent builder is configurable:
flow_arn(impl Into<String>)/set_flow_arn(Option<String>):
required: trueThe Amazon Resource Name (ARN) of the flow that you want to remove a source from.
source_arn(impl Into<String>)/set_source_arn(Option<String>):
required: trueThe ARN of the source that you want to remove.
- On success, responds with
RemoveFlowSourceOutputwith field(s):flow_arn(Option<String>):The ARN of the flow that the source was removed from.
source_arn(Option<String>):The ARN of the source that was removed.
- On failure, responds with
SdkError<RemoveFlowSourceError>
Source§impl Client
impl Client
Sourcepub fn remove_flow_vpc_interface(&self) -> RemoveFlowVpcInterfaceFluentBuilder
pub fn remove_flow_vpc_interface(&self) -> RemoveFlowVpcInterfaceFluentBuilder
Constructs a fluent builder for the RemoveFlowVpcInterface operation.
- The fluent builder is configurable:
flow_arn(impl Into<String>)/set_flow_arn(Option<String>):
required: trueThe Amazon Resource Name (ARN) of the flow that you want to remove a VPC interface from.
vpc_interface_name(impl Into<String>)/set_vpc_interface_name(Option<String>):
required: trueThe name of the VPC interface that you want to remove.
- On success, responds with
RemoveFlowVpcInterfaceOutputwith field(s):flow_arn(Option<String>):The ARN of the flow that is associated with the VPC interface you removed.
non_deleted_network_interface_ids(Option<Vec::<String>>):IDs of network interfaces associated with the removed VPC interface that MediaConnect was unable to remove.
vpc_interface_name(Option<String>):The name of the VPC interface that was removed.
- On failure, responds with
SdkError<RemoveFlowVpcInterfaceError>
Source§impl Client
impl Client
Sourcepub fn revoke_flow_entitlement(&self) -> RevokeFlowEntitlementFluentBuilder
pub fn revoke_flow_entitlement(&self) -> RevokeFlowEntitlementFluentBuilder
Constructs a fluent builder for the RevokeFlowEntitlement operation.
- The fluent builder is configurable:
entitlement_arn(impl Into<String>)/set_entitlement_arn(Option<String>):
required: trueThe Amazon Resource Name (ARN) of the entitlement that you want to revoke.
flow_arn(impl Into<String>)/set_flow_arn(Option<String>):
required: trueThe flow that you want to revoke an entitlement from.
- On success, responds with
RevokeFlowEntitlementOutputwith field(s):entitlement_arn(Option<String>):The ARN of the entitlement that was revoked.
flow_arn(Option<String>):The ARN of the flow that the entitlement was revoked from.
- On failure, responds with
SdkError<RevokeFlowEntitlementError>
Source§impl Client
impl Client
Sourcepub fn start_flow(&self) -> StartFlowFluentBuilder
pub fn start_flow(&self) -> StartFlowFluentBuilder
Constructs a fluent builder for the StartFlow operation.
- The fluent builder is configurable:
flow_arn(impl Into<String>)/set_flow_arn(Option<String>):
required: trueThe Amazon Resource Name (ARN) of the flow that you want to start.
- On success, responds with
StartFlowOutputwith field(s):flow_arn(Option<String>):The ARN of the flow that you started.
status(Option<Status>):The status of the flow when the
StartFlowprocess begins.
- On failure, responds with
SdkError<StartFlowError>
Source§impl Client
impl Client
Sourcepub fn stop_flow(&self) -> StopFlowFluentBuilder
pub fn stop_flow(&self) -> StopFlowFluentBuilder
Constructs a fluent builder for the StopFlow operation.
- The fluent builder is configurable:
flow_arn(impl Into<String>)/set_flow_arn(Option<String>):
required: trueThe Amazon Resource Name (ARN) of the flow that you want to stop.
- On success, responds with
StopFlowOutputwith field(s):flow_arn(Option<String>):The ARN of the flow that you stopped.
status(Option<Status>):The status of the flow when the
StopFlowprocess begins.
- On failure, responds with
SdkError<StopFlowError>
Source§impl Client
impl Client
Sourcepub fn tag_resource(&self) -> TagResourceFluentBuilder
pub fn tag_resource(&self) -> TagResourceFluentBuilder
Constructs a fluent builder for the TagResource operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)/set_resource_arn(Option<String>):
required: trueThe Amazon Resource Name (ARN) that identifies the MediaConnect resource to which to add tags.
tags(impl Into<String>, impl Into<String>)/set_tags(Option<HashMap::<String, String>>):
required: trueA map from tag keys to values. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.
- On success, responds with
TagResourceOutput - On failure, responds with
SdkError<TagResourceError>
Source§impl Client
impl Client
Sourcepub fn untag_resource(&self) -> UntagResourceFluentBuilder
pub fn untag_resource(&self) -> UntagResourceFluentBuilder
Constructs a fluent builder for the UntagResource operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)/set_resource_arn(Option<String>):
required: trueThe Amazon Resource Name (ARN) of the resource that you want to untag.
tag_keys(impl Into<String>)/set_tag_keys(Option<Vec::<String>>):
required: trueThe keys of the tags to be removed.
- On success, responds with
UntagResourceOutput - On failure, responds with
SdkError<UntagResourceError>
Source§impl Client
impl Client
Sourcepub fn update_bridge(&self) -> UpdateBridgeFluentBuilder
pub fn update_bridge(&self) -> UpdateBridgeFluentBuilder
Constructs a fluent builder for the UpdateBridge operation.
- The fluent builder is configurable:
bridge_arn(impl Into<String>)/set_bridge_arn(Option<String>):
required: trueTheAmazon Resource Name (ARN) of the bridge that you want to update.
egress_gateway_bridge(UpdateEgressGatewayBridgeRequest)/set_egress_gateway_bridge(Option<UpdateEgressGatewayBridgeRequest>):
required: falseA cloud-to-ground bridge. The content comes from an existing MediaConnect flow and is delivered to your premises.
ingress_gateway_bridge(UpdateIngressGatewayBridgeRequest)/set_ingress_gateway_bridge(Option<UpdateIngressGatewayBridgeRequest>):
required: falseA ground-to-cloud bridge. The content originates at your premises and is delivered to the cloud.
source_failover_config(UpdateFailoverConfig)/set_source_failover_config(Option<UpdateFailoverConfig>):
required: falseThe settings for source failover.
- On success, responds with
UpdateBridgeOutputwith field(s):bridge(Option<Bridge>):The bridge that was updated.
- On failure, responds with
SdkError<UpdateBridgeError>
Source§impl Client
impl Client
Sourcepub fn update_bridge_output(&self) -> UpdateBridgeOutputFluentBuilder
pub fn update_bridge_output(&self) -> UpdateBridgeOutputFluentBuilder
Constructs a fluent builder for the UpdateBridgeOutput operation.
- The fluent builder is configurable:
bridge_arn(impl Into<String>)/set_bridge_arn(Option<String>):
required: trueThe Amazon Resource Name (ARN) of the bridge that you want to update.
network_output(UpdateBridgeNetworkOutputRequest)/set_network_output(Option<UpdateBridgeNetworkOutputRequest>):
required: falseThe network of the bridge output.
output_name(impl Into<String>)/set_output_name(Option<String>):
required: trueTname of the output that you want to update.
- On success, responds with
UpdateBridgeOutputOutputwith field(s):bridge_arn(Option<String>):The ARN of the bridge that was updated.
output(Option<BridgeOutput>):The bridge output that was updated.
- On failure, responds with
SdkError<UpdateBridgeOutputError>
Source§impl Client
impl Client
Sourcepub fn update_bridge_source(&self) -> UpdateBridgeSourceFluentBuilder
pub fn update_bridge_source(&self) -> UpdateBridgeSourceFluentBuilder
Constructs a fluent builder for the UpdateBridgeSource operation.
- The fluent builder is configurable:
bridge_arn(impl Into<String>)/set_bridge_arn(Option<String>):
required: trueThe Amazon Resource Name (ARN) of the bridge that you want to update.
flow_source(UpdateBridgeFlowSourceRequest)/set_flow_source(Option<UpdateBridgeFlowSourceRequest>):
required: falseThe name of the flow that you want to update.
network_source(UpdateBridgeNetworkSourceRequest)/set_network_source(Option<UpdateBridgeNetworkSourceRequest>):
required: falseThe network for the bridge source.
source_name(impl Into<String>)/set_source_name(Option<String>):
required: trueThe name of the source that you want to update.
- On success, responds with
UpdateBridgeSourceOutputwith field(s):bridge_arn(Option<String>):The ARN of the updated bridge source.
source(Option<BridgeSource>):The updated bridge source.
- On failure, responds with
SdkError<UpdateBridgeSourceError>
Source§impl Client
impl Client
Sourcepub fn update_bridge_state(&self) -> UpdateBridgeStateFluentBuilder
pub fn update_bridge_state(&self) -> UpdateBridgeStateFluentBuilder
Constructs a fluent builder for the UpdateBridgeState operation.
- The fluent builder is configurable:
bridge_arn(impl Into<String>)/set_bridge_arn(Option<String>):
required: trueThe Amazon Resource Name (ARN) of the bridge that you want to update the state of.
desired_state(DesiredState)/set_desired_state(Option<DesiredState>):
required: trueThe desired state for the bridge.
- On success, responds with
UpdateBridgeStateOutputwith field(s):bridge_arn(Option<String>):The ARN of the updated bridge.
desired_state(Option<DesiredState>):The new state of the bridge.
- On failure, responds with
SdkError<UpdateBridgeStateError>
Source§impl Client
impl Client
Sourcepub fn update_flow(&self) -> UpdateFlowFluentBuilder
pub fn update_flow(&self) -> UpdateFlowFluentBuilder
Constructs a fluent builder for the UpdateFlow operation.
- The fluent builder is configurable:
flow_arn(impl Into<String>)/set_flow_arn(Option<String>):
required: trueThe Amazon Resource Name (ARN) of the flow that you want to update.
source_failover_config(UpdateFailoverConfig)/set_source_failover_config(Option<UpdateFailoverConfig>):
required: falseThe settings for source failover.
maintenance(UpdateMaintenance)/set_maintenance(Option<UpdateMaintenance>):
required: falseThe maintenance setting of the flow.
source_monitoring_config(MonitoringConfig)/set_source_monitoring_config(Option<MonitoringConfig>):
required: falseThe settings for source monitoring.
ndi_config(NdiConfig)/set_ndi_config(Option<NdiConfig>):
required: falseSpecifies the configuration settings for NDI outputs. Required when the flow includes NDI outputs.
flow_size(FlowSize)/set_flow_size(Option<FlowSize>):
required: falseDetermines the processing capacity and feature set of the flow.
- On success, responds with
UpdateFlowOutputwith field(s):flow(Option<Flow>):The updated flow.
- On failure, responds with
SdkError<UpdateFlowError>
Source§impl Client
impl Client
Sourcepub fn update_flow_entitlement(&self) -> UpdateFlowEntitlementFluentBuilder
pub fn update_flow_entitlement(&self) -> UpdateFlowEntitlementFluentBuilder
Constructs a fluent builder for the UpdateFlowEntitlement operation.
- The fluent builder is configurable:
description(impl Into<String>)/set_description(Option<String>):
required: falseA description of the entitlement. This description appears only on the MediaConnect console and will not be seen by the subscriber or end user.
encryption(UpdateEncryption)/set_encryption(Option<UpdateEncryption>):
required: falseThe type of encryption that will be used on the output associated with this entitlement. Allowable encryption types: static-key, speke.
entitlement_arn(impl Into<String>)/set_entitlement_arn(Option<String>):
required: trueThe Amazon Resource Name (ARN) of the entitlement that you want to update.
entitlement_status(EntitlementStatus)/set_entitlement_status(Option<EntitlementStatus>):
required: falseAn indication of whether you want to enable the entitlement to allow access, or disable it to stop streaming content to the subscriber’s flow temporarily. If you don’t specify the
entitlementStatusfield in your request, MediaConnect leaves the value unchanged.flow_arn(impl Into<String>)/set_flow_arn(Option<String>):
required: trueThe ARN of the flow that is associated with the entitlement that you want to update.
subscribers(impl Into<String>)/set_subscribers(Option<Vec::<String>>):
required: falseThe Amazon Web Services account IDs that you want to share your content with. The receiving accounts (subscribers) will be allowed to create their own flow using your content as the source.
- On success, responds with
UpdateFlowEntitlementOutputwith field(s):entitlement(Option<Entitlement>):The new configuration of the entitlement that you updated.
flow_arn(Option<String>):The ARN of the flow that this entitlement was granted on.
- On failure, responds with
SdkError<UpdateFlowEntitlementError>
Source§impl Client
impl Client
Sourcepub fn update_flow_media_stream(&self) -> UpdateFlowMediaStreamFluentBuilder
pub fn update_flow_media_stream(&self) -> UpdateFlowMediaStreamFluentBuilder
Constructs a fluent builder for the UpdateFlowMediaStream operation.
- The fluent builder is configurable:
attributes(MediaStreamAttributesRequest)/set_attributes(Option<MediaStreamAttributesRequest>):
required: falseThe attributes that you want to assign to the media stream.
clock_rate(i32)/set_clock_rate(Option<i32>):
required: falseThe sample rate for the stream. This value in measured in kHz.
description(impl Into<String>)/set_description(Option<String>):
required: falseA description that can help you quickly identify what your media stream is used for.
flow_arn(impl Into<String>)/set_flow_arn(Option<String>):
required: trueThe Amazon Resource Name (ARN) of the flow that is associated with the media stream that you updated.
media_stream_name(impl Into<String>)/set_media_stream_name(Option<String>):
required: trueThe media stream that you updated.
media_stream_type(MediaStreamType)/set_media_stream_type(Option<MediaStreamType>):
required: falseThe type of media stream.
video_format(impl Into<String>)/set_video_format(Option<String>):
required: falseThe resolution of the video.
- On success, responds with
UpdateFlowMediaStreamOutputwith field(s):flow_arn(Option<String>):The ARN of the flow that is associated with the media stream that you updated.
media_stream(Option<MediaStream>):The media stream that you updated.
- On failure, responds with
SdkError<UpdateFlowMediaStreamError>
Source§impl Client
impl Client
Sourcepub fn update_flow_output(&self) -> UpdateFlowOutputFluentBuilder
pub fn update_flow_output(&self) -> UpdateFlowOutputFluentBuilder
Constructs a fluent builder for the UpdateFlowOutput operation.
- The fluent builder is configurable:
cidr_allow_list(impl Into<String>)/set_cidr_allow_list(Option<Vec::<String>>):
required: falseThe range of IP addresses that should be allowed to initiate output requests to this flow. These IP addresses should be in the form of a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16.
description(impl Into<String>)/set_description(Option<String>):
required: falseA description of the output. This description appears only on the MediaConnect console and will not be seen by the end user.
destination(impl Into<String>)/set_destination(Option<String>):
required: falseThe IP address where you want to send the output.
encryption(UpdateEncryption)/set_encryption(Option<UpdateEncryption>):
required: falseThe type of key used for the encryption. If no
keyTypeis provided, the service will use the default setting (static-key). Allowable encryption types: static-key.flow_arn(impl Into<String>)/set_flow_arn(Option<String>):
required: trueThe Amazon Resource Name (ARN) of the flow that is associated with the output that you want to update.
max_latency(i32)/set_max_latency(Option<i32>):
required: falseThe maximum latency in milliseconds. This parameter applies only to RIST-based and Zixi-based streams.
media_stream_output_configurations(MediaStreamOutputConfigurationRequest)/set_media_stream_output_configurations(Option<Vec::<MediaStreamOutputConfigurationRequest>>):
required: falseThe media streams that are associated with the output, and the parameters for those associations.
min_latency(i32)/set_min_latency(Option<i32>):
required: falseThe minimum latency in milliseconds for SRT-based streams. In streams that use the SRT protocol, this value that you set on your MediaConnect source or output represents the minimal potential latency of that connection. The latency of the stream is set to the highest number between the sender’s minimum latency and the receiver’s minimum latency.
output_arn(impl Into<String>)/set_output_arn(Option<String>):
required: trueThe ARN of the output that you want to update.
port(i32)/set_port(Option<i32>):
required: falseThe port to use when content is distributed to this output.
protocol(Protocol)/set_protocol(Option<Protocol>):
required: falseThe protocol to use for the output.
Elemental MediaConnect no longer supports the Fujitsu QoS protocol. This reference is maintained for legacy purposes only.
remote_id(impl Into<String>)/set_remote_id(Option<String>):
required: falseThe remote ID for the Zixi-pull stream.
sender_control_port(i32)/set_sender_control_port(Option<i32>):
required: falseThe port that the flow uses to send outbound requests to initiate connection with the sender.
sender_ip_address(impl Into<String>)/set_sender_ip_address(Option<String>):
required: falseThe IP address that the flow communicates with to initiate connection with the sender.
smoothing_latency(i32)/set_smoothing_latency(Option<i32>):
required: falseThe smoothing latency in milliseconds for RIST, RTP, and RTP-FEC streams.
stream_id(impl Into<String>)/set_stream_id(Option<String>):
required: falseThe stream ID that you want to use for this transport. This parameter applies only to Zixi and SRT caller-based streams.
vpc_interface_attachment(VpcInterfaceAttachment)/set_vpc_interface_attachment(Option<VpcInterfaceAttachment>):
required: falseThe name of the VPC interface attachment to use for this output.
output_status(OutputStatus)/set_output_status(Option<OutputStatus>):
required: falseAn indication of whether the output should transmit data or not. If you don’t specify the
outputStatusfield in your request, MediaConnect leaves the value unchanged.ndi_program_name(impl Into<String>)/set_ndi_program_name(Option<String>):
required: falseA suffix for the names of the NDI sources that the flow creates. If a custom name isn’t specified, MediaConnect uses the output name.
ndi_speed_hq_quality(i32)/set_ndi_speed_hq_quality(Option<i32>):
required: falseA quality setting for the NDI Speed HQ encoder.
- On success, responds with
UpdateFlowOutputOutputwith field(s):flow_arn(Option<String>):The ARN of the flow that is associated with the updated output.
output(Option<Output>):The new settings of the output that you updated.
- On failure, responds with
SdkError<UpdateFlowOutputError>
Source§impl Client
impl Client
Sourcepub fn update_flow_source(&self) -> UpdateFlowSourceFluentBuilder
pub fn update_flow_source(&self) -> UpdateFlowSourceFluentBuilder
Constructs a fluent builder for the UpdateFlowSource operation.
- The fluent builder is configurable:
decryption(UpdateEncryption)/set_decryption(Option<UpdateEncryption>):
required: falseThe type of encryption that is used on the content ingested from the source.
description(impl Into<String>)/set_description(Option<String>):
required: falseA description of the source. This description is not visible outside of the current Amazon Web Services account.
entitlement_arn(impl Into<String>)/set_entitlement_arn(Option<String>):
required: falseThe Amazon Resource Name (ARN) of the entitlement that allows you to subscribe to the flow. The entitlement is set by the content originator, and the ARN is generated as part of the originator’s flow.
flow_arn(impl Into<String>)/set_flow_arn(Option<String>):
required: trueThe ARN of the flow that you want to update.
ingest_port(i32)/set_ingest_port(Option<i32>):
required: falseThe port that the flow listens on for incoming content. If the protocol of the source is Zixi, the port must be set to 2088.
max_bitrate(i32)/set_max_bitrate(Option<i32>):
required: falseThe maximum bitrate for RIST, RTP, and RTP-FEC streams.
max_latency(i32)/set_max_latency(Option<i32>):
required: falseThe maximum latency in milliseconds. This parameter applies only to RIST-based and Zixi-based streams.
max_sync_buffer(i32)/set_max_sync_buffer(Option<i32>):
required: falseThe size of the buffer (in milliseconds) to use to sync incoming source data.
media_stream_source_configurations(MediaStreamSourceConfigurationRequest)/set_media_stream_source_configurations(Option<Vec::<MediaStreamSourceConfigurationRequest>>):
required: falseThe media stream that is associated with the source, and the parameters for that association.
min_latency(i32)/set_min_latency(Option<i32>):
required: falseThe minimum latency in milliseconds for SRT-based streams. In streams that use the SRT protocol, this value that you set on your MediaConnect source or output represents the minimal potential latency of that connection. The latency of the stream is set to the highest number between the sender’s minimum latency and the receiver’s minimum latency.
protocol(Protocol)/set_protocol(Option<Protocol>):
required: falseThe protocol that the source uses to deliver the content to MediaConnect.
Elemental MediaConnect no longer supports the Fujitsu QoS protocol. This reference is maintained for legacy purposes only.
sender_control_port(i32)/set_sender_control_port(Option<i32>):
required: falseThe port that the flow uses to send outbound requests to initiate connection with the sender.
sender_ip_address(impl Into<String>)/set_sender_ip_address(Option<String>):
required: falseThe IP address that the flow communicates with to initiate connection with the sender.
source_arn(impl Into<String>)/set_source_arn(Option<String>):
required: trueThe ARN of the source that you want to update.
source_listener_address(impl Into<String>)/set_source_listener_address(Option<String>):
required: falseThe source IP or domain name for SRT-caller protocol.
source_listener_port(i32)/set_source_listener_port(Option<i32>):
required: falseSource port for SRT-caller protocol.
stream_id(impl Into<String>)/set_stream_id(Option<String>):
required: falseThe stream ID that you want to use for this transport. This parameter applies only to Zixi and SRT caller-based streams.
vpc_interface_name(impl Into<String>)/set_vpc_interface_name(Option<String>):
required: falseThe name of the VPC interface that you want to send your output to.
whitelist_cidr(impl Into<String>)/set_whitelist_cidr(Option<String>):
required: falseThe range of IP addresses that are allowed to contribute content to your source. Format the IP addresses as a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16.
gateway_bridge_source(UpdateGatewayBridgeSourceRequest)/set_gateway_bridge_source(Option<UpdateGatewayBridgeSourceRequest>):
required: falseThe source configuration for cloud flows receiving a stream from a bridge.
- On success, responds with
UpdateFlowSourceOutputwith field(s):flow_arn(Option<String>):The ARN of the flow that you was updated.
source(Option<Source>):The details of the sources that are assigned to the flow.
- On failure, responds with
SdkError<UpdateFlowSourceError>
Source§impl Client
impl Client
Sourcepub fn update_gateway_instance(&self) -> UpdateGatewayInstanceFluentBuilder
pub fn update_gateway_instance(&self) -> UpdateGatewayInstanceFluentBuilder
Constructs a fluent builder for the UpdateGatewayInstance operation.
- The fluent builder is configurable:
bridge_placement(BridgePlacement)/set_bridge_placement(Option<BridgePlacement>):
required: falseThe state of the instance.
ACTIVEorINACTIVE.gateway_instance_arn(impl Into<String>)/set_gateway_instance_arn(Option<String>):
required: trueThe Amazon Resource Name (ARN) of the gateway instance that you want to update.
- On success, responds with
UpdateGatewayInstanceOutputwith field(s):bridge_placement(Option<BridgePlacement>):The state of the instance.
ACTIVEorINACTIVE.gateway_instance_arn(Option<String>):The ARN of the instance that was updated.
- On failure, responds with
SdkError<UpdateGatewayInstanceError>
Source§impl Client
impl Client
Sourcepub fn from_conf(conf: Config) -> Self
pub fn from_conf(conf: Config) -> Self
Creates a new client from the service Config.
§Panics
This method will panic in the following cases:
- Retries or timeouts are enabled without a
sleep_implconfigured. - Identity caching is enabled without a
sleep_implandtime_sourceconfigured. - No
behavior_versionis provided.
The panic message for each of these will have instructions on how to resolve them.
Source§impl Client
impl Client
Sourcepub fn new(sdk_config: &SdkConfig) -> Self
pub fn new(sdk_config: &SdkConfig) -> Self
Creates a new client from an SDK Config.
§Panics
- This method will panic if the
sdk_configis missing an async sleep implementation. If you experience this panic, set thesleep_implon the Config passed into this function to fix it. - This method will panic if the
sdk_configis missing an HTTP connector. If you experience this panic, set thehttp_connectoron the Config passed into this function to fix it. - This method will panic if no
BehaviorVersionis provided. If you experience this panic, setbehavior_versionon the Config or enable thebehavior-version-latestCargo feature.
Trait Implementations§
Source§impl Waiters for Client
impl Waiters for Client
Source§fn wait_until_flow_active(&self) -> FlowActiveFluentBuilder
fn wait_until_flow_active(&self) -> FlowActiveFluentBuilder
Source§fn wait_until_flow_deleted(&self) -> FlowDeletedFluentBuilder
fn wait_until_flow_deleted(&self) -> FlowDeletedFluentBuilder
Source§fn wait_until_flow_standby(&self) -> FlowStandbyFluentBuilder
fn wait_until_flow_standby(&self) -> FlowStandbyFluentBuilder
Auto Trait Implementations§
impl Freeze for Client
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
Source§fn fg(&self, value: Color) -> Painted<&T>
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the foreground set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red() and
green(), which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg():
use yansi::{Paint, Color};
painted.fg(Color::White);Set foreground color to white using white().
use yansi::Paint;
painted.white();Source§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
Source§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
Source§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
Source§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
Source§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
Source§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
Source§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
Source§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
Source§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the background set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red() and
on_green(), which have the same functionality but
are pithier.
§Example
Set background color to red using fg():
use yansi::{Paint, Color};
painted.bg(Color::Red);Set background color to red using on_red().
use yansi::Paint;
painted.on_red();Source§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
Source§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
Source§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
Source§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
Source§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
Source§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
Source§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
Source§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
Source§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
Source§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
Source§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling Attribute value.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold() and
underline(), which have the same functionality
but are pithier.
§Example
Make text bold using attr():
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);Make text bold using using bold().
use yansi::Paint;
painted.bold();Source§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
Source§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi Quirk value.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask() and
wrap(), which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk():
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);Enable wrapping using wrap().
use yansi::Paint;
painted.wrap();Source§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear().
The clear() method will be removed in a future release.
fn clear(&self) -> Painted<&T>
resetting() due to conflicts with Vec::clear().
The clear() method will be removed in a future release.Source§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the Condition value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted only when both stdout and stderr are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);