Documentation ¶
Overview ¶
Package mediaconnectiface provides an interface to enable mocking the AWS MediaConnect service client for testing your code.
It is important to note that this interface will have breaking changes when the service model is updated and adds new API operations, paginators, and waiters.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MediaConnectAPI ¶
type MediaConnectAPI interface { AddBridgeOutputs(*mediaconnect.AddBridgeOutputsInput) (*mediaconnect.AddBridgeOutputsOutput, error) AddBridgeOutputsWithContext(aws.Context, *mediaconnect.AddBridgeOutputsInput, ...request.Option) (*mediaconnect.AddBridgeOutputsOutput, error) AddBridgeOutputsRequest(*mediaconnect.AddBridgeOutputsInput) (*request.Request, *mediaconnect.AddBridgeOutputsOutput) AddBridgeSources(*mediaconnect.AddBridgeSourcesInput) (*mediaconnect.AddBridgeSourcesOutput, error) AddBridgeSourcesWithContext(aws.Context, *mediaconnect.AddBridgeSourcesInput, ...request.Option) (*mediaconnect.AddBridgeSourcesOutput, error) AddBridgeSourcesRequest(*mediaconnect.AddBridgeSourcesInput) (*request.Request, *mediaconnect.AddBridgeSourcesOutput) AddFlowMediaStreams(*mediaconnect.AddFlowMediaStreamsInput) (*mediaconnect.AddFlowMediaStreamsOutput, error) AddFlowMediaStreamsWithContext(aws.Context, *mediaconnect.AddFlowMediaStreamsInput, ...request.Option) (*mediaconnect.AddFlowMediaStreamsOutput, error) AddFlowMediaStreamsRequest(*mediaconnect.AddFlowMediaStreamsInput) (*request.Request, *mediaconnect.AddFlowMediaStreamsOutput) AddFlowOutputs(*mediaconnect.AddFlowOutputsInput) (*mediaconnect.AddFlowOutputsOutput, error) AddFlowOutputsWithContext(aws.Context, *mediaconnect.AddFlowOutputsInput, ...request.Option) (*mediaconnect.AddFlowOutputsOutput, error) AddFlowOutputsRequest(*mediaconnect.AddFlowOutputsInput) (*request.Request, *mediaconnect.AddFlowOutputsOutput) AddFlowSources(*mediaconnect.AddFlowSourcesInput) (*mediaconnect.AddFlowSourcesOutput, error) AddFlowSourcesWithContext(aws.Context, *mediaconnect.AddFlowSourcesInput, ...request.Option) (*mediaconnect.AddFlowSourcesOutput, error) AddFlowSourcesRequest(*mediaconnect.AddFlowSourcesInput) (*request.Request, *mediaconnect.AddFlowSourcesOutput) AddFlowVpcInterfaces(*mediaconnect.AddFlowVpcInterfacesInput) (*mediaconnect.AddFlowVpcInterfacesOutput, error) AddFlowVpcInterfacesWithContext(aws.Context, *mediaconnect.AddFlowVpcInterfacesInput, ...request.Option) (*mediaconnect.AddFlowVpcInterfacesOutput, error) AddFlowVpcInterfacesRequest(*mediaconnect.AddFlowVpcInterfacesInput) (*request.Request, *mediaconnect.AddFlowVpcInterfacesOutput) CreateBridge(*mediaconnect.CreateBridgeInput) (*mediaconnect.CreateBridgeOutput, error) CreateBridgeWithContext(aws.Context, *mediaconnect.CreateBridgeInput, ...request.Option) (*mediaconnect.CreateBridgeOutput, error) CreateBridgeRequest(*mediaconnect.CreateBridgeInput) (*request.Request, *mediaconnect.CreateBridgeOutput) CreateFlow(*mediaconnect.CreateFlowInput) (*mediaconnect.CreateFlowOutput, error) CreateFlowWithContext(aws.Context, *mediaconnect.CreateFlowInput, ...request.Option) (*mediaconnect.CreateFlowOutput, error) CreateFlowRequest(*mediaconnect.CreateFlowInput) (*request.Request, *mediaconnect.CreateFlowOutput) CreateGateway(*mediaconnect.CreateGatewayInput) (*mediaconnect.CreateGatewayOutput, error) CreateGatewayWithContext(aws.Context, *mediaconnect.CreateGatewayInput, ...request.Option) (*mediaconnect.CreateGatewayOutput, error) CreateGatewayRequest(*mediaconnect.CreateGatewayInput) (*request.Request, *mediaconnect.CreateGatewayOutput) DeleteBridge(*mediaconnect.DeleteBridgeInput) (*mediaconnect.DeleteBridgeOutput, error) DeleteBridgeWithContext(aws.Context, *mediaconnect.DeleteBridgeInput, ...request.Option) (*mediaconnect.DeleteBridgeOutput, error) DeleteBridgeRequest(*mediaconnect.DeleteBridgeInput) (*request.Request, *mediaconnect.DeleteBridgeOutput) DeleteFlow(*mediaconnect.DeleteFlowInput) (*mediaconnect.DeleteFlowOutput, error) DeleteFlowWithContext(aws.Context, *mediaconnect.DeleteFlowInput, ...request.Option) (*mediaconnect.DeleteFlowOutput, error) DeleteFlowRequest(*mediaconnect.DeleteFlowInput) (*request.Request, *mediaconnect.DeleteFlowOutput) DeleteGateway(*mediaconnect.DeleteGatewayInput) (*mediaconnect.DeleteGatewayOutput, error) DeleteGatewayWithContext(aws.Context, *mediaconnect.DeleteGatewayInput, ...request.Option) (*mediaconnect.DeleteGatewayOutput, error) DeleteGatewayRequest(*mediaconnect.DeleteGatewayInput) (*request.Request, *mediaconnect.DeleteGatewayOutput) DeregisterGatewayInstance(*mediaconnect.DeregisterGatewayInstanceInput) (*mediaconnect.DeregisterGatewayInstanceOutput, error) DeregisterGatewayInstanceWithContext(aws.Context, *mediaconnect.DeregisterGatewayInstanceInput, ...request.Option) (*mediaconnect.DeregisterGatewayInstanceOutput, error) DeregisterGatewayInstanceRequest(*mediaconnect.DeregisterGatewayInstanceInput) (*request.Request, *mediaconnect.DeregisterGatewayInstanceOutput) DescribeBridge(*mediaconnect.DescribeBridgeInput) (*mediaconnect.DescribeBridgeOutput, error) DescribeBridgeWithContext(aws.Context, *mediaconnect.DescribeBridgeInput, ...request.Option) (*mediaconnect.DescribeBridgeOutput, error) DescribeBridgeRequest(*mediaconnect.DescribeBridgeInput) (*request.Request, *mediaconnect.DescribeBridgeOutput) DescribeFlow(*mediaconnect.DescribeFlowInput) (*mediaconnect.DescribeFlowOutput, error) DescribeFlowWithContext(aws.Context, *mediaconnect.DescribeFlowInput, ...request.Option) (*mediaconnect.DescribeFlowOutput, error) DescribeFlowRequest(*mediaconnect.DescribeFlowInput) (*request.Request, *mediaconnect.DescribeFlowOutput) DescribeGateway(*mediaconnect.DescribeGatewayInput) (*mediaconnect.DescribeGatewayOutput, error) DescribeGatewayWithContext(aws.Context, *mediaconnect.DescribeGatewayInput, ...request.Option) (*mediaconnect.DescribeGatewayOutput, error) DescribeGatewayRequest(*mediaconnect.DescribeGatewayInput) (*request.Request, *mediaconnect.DescribeGatewayOutput) DescribeGatewayInstance(*mediaconnect.DescribeGatewayInstanceInput) (*mediaconnect.DescribeGatewayInstanceOutput, error) DescribeGatewayInstanceWithContext(aws.Context, *mediaconnect.DescribeGatewayInstanceInput, ...request.Option) (*mediaconnect.DescribeGatewayInstanceOutput, error) DescribeGatewayInstanceRequest(*mediaconnect.DescribeGatewayInstanceInput) (*request.Request, *mediaconnect.DescribeGatewayInstanceOutput) DescribeOffering(*mediaconnect.DescribeOfferingInput) (*mediaconnect.DescribeOfferingOutput, error) DescribeOfferingWithContext(aws.Context, *mediaconnect.DescribeOfferingInput, ...request.Option) (*mediaconnect.DescribeOfferingOutput, error) DescribeOfferingRequest(*mediaconnect.DescribeOfferingInput) (*request.Request, *mediaconnect.DescribeOfferingOutput) DescribeReservation(*mediaconnect.DescribeReservationInput) (*mediaconnect.DescribeReservationOutput, error) DescribeReservationWithContext(aws.Context, *mediaconnect.DescribeReservationInput, ...request.Option) (*mediaconnect.DescribeReservationOutput, error) DescribeReservationRequest(*mediaconnect.DescribeReservationInput) (*request.Request, *mediaconnect.DescribeReservationOutput) GrantFlowEntitlements(*mediaconnect.GrantFlowEntitlementsInput) (*mediaconnect.GrantFlowEntitlementsOutput, error) GrantFlowEntitlementsWithContext(aws.Context, *mediaconnect.GrantFlowEntitlementsInput, ...request.Option) (*mediaconnect.GrantFlowEntitlementsOutput, error) GrantFlowEntitlementsRequest(*mediaconnect.GrantFlowEntitlementsInput) (*request.Request, *mediaconnect.GrantFlowEntitlementsOutput) ListBridges(*mediaconnect.ListBridgesInput) (*mediaconnect.ListBridgesOutput, error) ListBridgesWithContext(aws.Context, *mediaconnect.ListBridgesInput, ...request.Option) (*mediaconnect.ListBridgesOutput, error) ListBridgesRequest(*mediaconnect.ListBridgesInput) (*request.Request, *mediaconnect.ListBridgesOutput) ListBridgesPages(*mediaconnect.ListBridgesInput, func(*mediaconnect.ListBridgesOutput, bool) bool) error ListBridgesPagesWithContext(aws.Context, *mediaconnect.ListBridgesInput, func(*mediaconnect.ListBridgesOutput, bool) bool, ...request.Option) error ListEntitlements(*mediaconnect.ListEntitlementsInput) (*mediaconnect.ListEntitlementsOutput, error) ListEntitlementsWithContext(aws.Context, *mediaconnect.ListEntitlementsInput, ...request.Option) (*mediaconnect.ListEntitlementsOutput, error) ListEntitlementsRequest(*mediaconnect.ListEntitlementsInput) (*request.Request, *mediaconnect.ListEntitlementsOutput) ListEntitlementsPages(*mediaconnect.ListEntitlementsInput, func(*mediaconnect.ListEntitlementsOutput, bool) bool) error ListEntitlementsPagesWithContext(aws.Context, *mediaconnect.ListEntitlementsInput, func(*mediaconnect.ListEntitlementsOutput, bool) bool, ...request.Option) error ListFlows(*mediaconnect.ListFlowsInput) (*mediaconnect.ListFlowsOutput, error) ListFlowsWithContext(aws.Context, *mediaconnect.ListFlowsInput, ...request.Option) (*mediaconnect.ListFlowsOutput, error) ListFlowsRequest(*mediaconnect.ListFlowsInput) (*request.Request, *mediaconnect.ListFlowsOutput) ListFlowsPages(*mediaconnect.ListFlowsInput, func(*mediaconnect.ListFlowsOutput, bool) bool) error ListFlowsPagesWithContext(aws.Context, *mediaconnect.ListFlowsInput, func(*mediaconnect.ListFlowsOutput, bool) bool, ...request.Option) error ListGatewayInstances(*mediaconnect.ListGatewayInstancesInput) (*mediaconnect.ListGatewayInstancesOutput, error) ListGatewayInstancesWithContext(aws.Context, *mediaconnect.ListGatewayInstancesInput, ...request.Option) (*mediaconnect.ListGatewayInstancesOutput, error) ListGatewayInstancesRequest(*mediaconnect.ListGatewayInstancesInput) (*request.Request, *mediaconnect.ListGatewayInstancesOutput) ListGatewayInstancesPages(*mediaconnect.ListGatewayInstancesInput, func(*mediaconnect.ListGatewayInstancesOutput, bool) bool) error ListGatewayInstancesPagesWithContext(aws.Context, *mediaconnect.ListGatewayInstancesInput, func(*mediaconnect.ListGatewayInstancesOutput, bool) bool, ...request.Option) error ListGateways(*mediaconnect.ListGatewaysInput) (*mediaconnect.ListGatewaysOutput, error) ListGatewaysWithContext(aws.Context, *mediaconnect.ListGatewaysInput, ...request.Option) (*mediaconnect.ListGatewaysOutput, error) ListGatewaysRequest(*mediaconnect.ListGatewaysInput) (*request.Request, *mediaconnect.ListGatewaysOutput) ListGatewaysPages(*mediaconnect.ListGatewaysInput, func(*mediaconnect.ListGatewaysOutput, bool) bool) error ListGatewaysPagesWithContext(aws.Context, *mediaconnect.ListGatewaysInput, func(*mediaconnect.ListGatewaysOutput, bool) bool, ...request.Option) error ListOfferings(*mediaconnect.ListOfferingsInput) (*mediaconnect.ListOfferingsOutput, error) ListOfferingsWithContext(aws.Context, *mediaconnect.ListOfferingsInput, ...request.Option) (*mediaconnect.ListOfferingsOutput, error) ListOfferingsRequest(*mediaconnect.ListOfferingsInput) (*request.Request, *mediaconnect.ListOfferingsOutput) ListOfferingsPages(*mediaconnect.ListOfferingsInput, func(*mediaconnect.ListOfferingsOutput, bool) bool) error ListOfferingsPagesWithContext(aws.Context, *mediaconnect.ListOfferingsInput, func(*mediaconnect.ListOfferingsOutput, bool) bool, ...request.Option) error ListReservations(*mediaconnect.ListReservationsInput) (*mediaconnect.ListReservationsOutput, error) ListReservationsWithContext(aws.Context, *mediaconnect.ListReservationsInput, ...request.Option) (*mediaconnect.ListReservationsOutput, error) ListReservationsRequest(*mediaconnect.ListReservationsInput) (*request.Request, *mediaconnect.ListReservationsOutput) ListReservationsPages(*mediaconnect.ListReservationsInput, func(*mediaconnect.ListReservationsOutput, bool) bool) error ListReservationsPagesWithContext(aws.Context, *mediaconnect.ListReservationsInput, func(*mediaconnect.ListReservationsOutput, bool) bool, ...request.Option) error ListTagsForResource(*mediaconnect.ListTagsForResourceInput) (*mediaconnect.ListTagsForResourceOutput, error) ListTagsForResourceWithContext(aws.Context, *mediaconnect.ListTagsForResourceInput, ...request.Option) (*mediaconnect.ListTagsForResourceOutput, error) ListTagsForResourceRequest(*mediaconnect.ListTagsForResourceInput) (*request.Request, *mediaconnect.ListTagsForResourceOutput) PurchaseOffering(*mediaconnect.PurchaseOfferingInput) (*mediaconnect.PurchaseOfferingOutput, error) PurchaseOfferingWithContext(aws.Context, *mediaconnect.PurchaseOfferingInput, ...request.Option) (*mediaconnect.PurchaseOfferingOutput, error) PurchaseOfferingRequest(*mediaconnect.PurchaseOfferingInput) (*request.Request, *mediaconnect.PurchaseOfferingOutput) RemoveBridgeOutput(*mediaconnect.RemoveBridgeOutputInput) (*mediaconnect.RemoveBridgeOutputOutput, error) RemoveBridgeOutputWithContext(aws.Context, *mediaconnect.RemoveBridgeOutputInput, ...request.Option) (*mediaconnect.RemoveBridgeOutputOutput, error) RemoveBridgeOutputRequest(*mediaconnect.RemoveBridgeOutputInput) (*request.Request, *mediaconnect.RemoveBridgeOutputOutput) RemoveBridgeSource(*mediaconnect.RemoveBridgeSourceInput) (*mediaconnect.RemoveBridgeSourceOutput, error) RemoveBridgeSourceWithContext(aws.Context, *mediaconnect.RemoveBridgeSourceInput, ...request.Option) (*mediaconnect.RemoveBridgeSourceOutput, error) RemoveBridgeSourceRequest(*mediaconnect.RemoveBridgeSourceInput) (*request.Request, *mediaconnect.RemoveBridgeSourceOutput) RemoveFlowMediaStream(*mediaconnect.RemoveFlowMediaStreamInput) (*mediaconnect.RemoveFlowMediaStreamOutput, error) RemoveFlowMediaStreamWithContext(aws.Context, *mediaconnect.RemoveFlowMediaStreamInput, ...request.Option) (*mediaconnect.RemoveFlowMediaStreamOutput, error) RemoveFlowMediaStreamRequest(*mediaconnect.RemoveFlowMediaStreamInput) (*request.Request, *mediaconnect.RemoveFlowMediaStreamOutput) RemoveFlowOutput(*mediaconnect.RemoveFlowOutputInput) (*mediaconnect.RemoveFlowOutputOutput, error) RemoveFlowOutputWithContext(aws.Context, *mediaconnect.RemoveFlowOutputInput, ...request.Option) (*mediaconnect.RemoveFlowOutputOutput, error) RemoveFlowOutputRequest(*mediaconnect.RemoveFlowOutputInput) (*request.Request, *mediaconnect.RemoveFlowOutputOutput) RemoveFlowSource(*mediaconnect.RemoveFlowSourceInput) (*mediaconnect.RemoveFlowSourceOutput, error) RemoveFlowSourceWithContext(aws.Context, *mediaconnect.RemoveFlowSourceInput, ...request.Option) (*mediaconnect.RemoveFlowSourceOutput, error) RemoveFlowSourceRequest(*mediaconnect.RemoveFlowSourceInput) (*request.Request, *mediaconnect.RemoveFlowSourceOutput) RemoveFlowVpcInterface(*mediaconnect.RemoveFlowVpcInterfaceInput) (*mediaconnect.RemoveFlowVpcInterfaceOutput, error) RemoveFlowVpcInterfaceWithContext(aws.Context, *mediaconnect.RemoveFlowVpcInterfaceInput, ...request.Option) (*mediaconnect.RemoveFlowVpcInterfaceOutput, error) RemoveFlowVpcInterfaceRequest(*mediaconnect.RemoveFlowVpcInterfaceInput) (*request.Request, *mediaconnect.RemoveFlowVpcInterfaceOutput) RevokeFlowEntitlement(*mediaconnect.RevokeFlowEntitlementInput) (*mediaconnect.RevokeFlowEntitlementOutput, error) RevokeFlowEntitlementWithContext(aws.Context, *mediaconnect.RevokeFlowEntitlementInput, ...request.Option) (*mediaconnect.RevokeFlowEntitlementOutput, error) RevokeFlowEntitlementRequest(*mediaconnect.RevokeFlowEntitlementInput) (*request.Request, *mediaconnect.RevokeFlowEntitlementOutput) StartFlow(*mediaconnect.StartFlowInput) (*mediaconnect.StartFlowOutput, error) StartFlowWithContext(aws.Context, *mediaconnect.StartFlowInput, ...request.Option) (*mediaconnect.StartFlowOutput, error) StartFlowRequest(*mediaconnect.StartFlowInput) (*request.Request, *mediaconnect.StartFlowOutput) StopFlow(*mediaconnect.StopFlowInput) (*mediaconnect.StopFlowOutput, error) StopFlowWithContext(aws.Context, *mediaconnect.StopFlowInput, ...request.Option) (*mediaconnect.StopFlowOutput, error) StopFlowRequest(*mediaconnect.StopFlowInput) (*request.Request, *mediaconnect.StopFlowOutput) TagResource(*mediaconnect.TagResourceInput) (*mediaconnect.TagResourceOutput, error) TagResourceWithContext(aws.Context, *mediaconnect.TagResourceInput, ...request.Option) (*mediaconnect.TagResourceOutput, error) TagResourceRequest(*mediaconnect.TagResourceInput) (*request.Request, *mediaconnect.TagResourceOutput) UntagResource(*mediaconnect.UntagResourceInput) (*mediaconnect.UntagResourceOutput, error) UntagResourceWithContext(aws.Context, *mediaconnect.UntagResourceInput, ...request.Option) (*mediaconnect.UntagResourceOutput, error) UntagResourceRequest(*mediaconnect.UntagResourceInput) (*request.Request, *mediaconnect.UntagResourceOutput) UpdateBridge(*mediaconnect.UpdateBridgeInput) (*mediaconnect.UpdateBridgeOutput, error) UpdateBridgeWithContext(aws.Context, *mediaconnect.UpdateBridgeInput, ...request.Option) (*mediaconnect.UpdateBridgeOutput, error) UpdateBridgeRequest(*mediaconnect.UpdateBridgeInput) (*request.Request, *mediaconnect.UpdateBridgeOutput) UpdateBridgeOutput(*mediaconnect.UpdateBridgeOutputInput) (*mediaconnect.UpdateBridgeOutputOutput, error) UpdateBridgeOutputWithContext(aws.Context, *mediaconnect.UpdateBridgeOutputInput, ...request.Option) (*mediaconnect.UpdateBridgeOutputOutput, error) UpdateBridgeOutputRequest(*mediaconnect.UpdateBridgeOutputInput) (*request.Request, *mediaconnect.UpdateBridgeOutputOutput) UpdateBridgeSource(*mediaconnect.UpdateBridgeSourceInput) (*mediaconnect.UpdateBridgeSourceOutput, error) UpdateBridgeSourceWithContext(aws.Context, *mediaconnect.UpdateBridgeSourceInput, ...request.Option) (*mediaconnect.UpdateBridgeSourceOutput, error) UpdateBridgeSourceRequest(*mediaconnect.UpdateBridgeSourceInput) (*request.Request, *mediaconnect.UpdateBridgeSourceOutput) UpdateBridgeState(*mediaconnect.UpdateBridgeStateInput) (*mediaconnect.UpdateBridgeStateOutput, error) UpdateBridgeStateWithContext(aws.Context, *mediaconnect.UpdateBridgeStateInput, ...request.Option) (*mediaconnect.UpdateBridgeStateOutput, error) UpdateBridgeStateRequest(*mediaconnect.UpdateBridgeStateInput) (*request.Request, *mediaconnect.UpdateBridgeStateOutput) UpdateFlow(*mediaconnect.UpdateFlowInput) (*mediaconnect.UpdateFlowOutput, error) UpdateFlowWithContext(aws.Context, *mediaconnect.UpdateFlowInput, ...request.Option) (*mediaconnect.UpdateFlowOutput, error) UpdateFlowRequest(*mediaconnect.UpdateFlowInput) (*request.Request, *mediaconnect.UpdateFlowOutput) UpdateFlowEntitlement(*mediaconnect.UpdateFlowEntitlementInput) (*mediaconnect.UpdateFlowEntitlementOutput, error) UpdateFlowEntitlementWithContext(aws.Context, *mediaconnect.UpdateFlowEntitlementInput, ...request.Option) (*mediaconnect.UpdateFlowEntitlementOutput, error) UpdateFlowEntitlementRequest(*mediaconnect.UpdateFlowEntitlementInput) (*request.Request, *mediaconnect.UpdateFlowEntitlementOutput) UpdateFlowMediaStream(*mediaconnect.UpdateFlowMediaStreamInput) (*mediaconnect.UpdateFlowMediaStreamOutput, error) UpdateFlowMediaStreamWithContext(aws.Context, *mediaconnect.UpdateFlowMediaStreamInput, ...request.Option) (*mediaconnect.UpdateFlowMediaStreamOutput, error) UpdateFlowMediaStreamRequest(*mediaconnect.UpdateFlowMediaStreamInput) (*request.Request, *mediaconnect.UpdateFlowMediaStreamOutput) UpdateFlowOutput(*mediaconnect.UpdateFlowOutputInput) (*mediaconnect.UpdateFlowOutputOutput, error) UpdateFlowOutputWithContext(aws.Context, *mediaconnect.UpdateFlowOutputInput, ...request.Option) (*mediaconnect.UpdateFlowOutputOutput, error) UpdateFlowOutputRequest(*mediaconnect.UpdateFlowOutputInput) (*request.Request, *mediaconnect.UpdateFlowOutputOutput) UpdateFlowSource(*mediaconnect.UpdateFlowSourceInput) (*mediaconnect.UpdateFlowSourceOutput, error) UpdateFlowSourceWithContext(aws.Context, *mediaconnect.UpdateFlowSourceInput, ...request.Option) (*mediaconnect.UpdateFlowSourceOutput, error) UpdateFlowSourceRequest(*mediaconnect.UpdateFlowSourceInput) (*request.Request, *mediaconnect.UpdateFlowSourceOutput) UpdateGatewayInstance(*mediaconnect.UpdateGatewayInstanceInput) (*mediaconnect.UpdateGatewayInstanceOutput, error) UpdateGatewayInstanceWithContext(aws.Context, *mediaconnect.UpdateGatewayInstanceInput, ...request.Option) (*mediaconnect.UpdateGatewayInstanceOutput, error) UpdateGatewayInstanceRequest(*mediaconnect.UpdateGatewayInstanceInput) (*request.Request, *mediaconnect.UpdateGatewayInstanceOutput) WaitUntilFlowActive(*mediaconnect.DescribeFlowInput) error WaitUntilFlowActiveWithContext(aws.Context, *mediaconnect.DescribeFlowInput, ...request.WaiterOption) error WaitUntilFlowDeleted(*mediaconnect.DescribeFlowInput) error WaitUntilFlowDeletedWithContext(aws.Context, *mediaconnect.DescribeFlowInput, ...request.WaiterOption) error WaitUntilFlowStandby(*mediaconnect.DescribeFlowInput) error WaitUntilFlowStandbyWithContext(aws.Context, *mediaconnect.DescribeFlowInput, ...request.WaiterOption) error }
MediaConnectAPI provides an interface to enable mocking the mediaconnect.MediaConnect service client's API operation, paginators, and waiters. This make unit testing your code that calls out to the SDK's service client's calls easier.
The best way to use this interface is so the SDK's service client's calls can be stubbed out for unit testing your code with the SDK without needing to inject custom request handlers into the SDK's request pipeline.
// myFunc uses an SDK service client to make a request to // AWS MediaConnect. func myFunc(svc mediaconnectiface.MediaConnectAPI) bool { // Make svc.AddBridgeOutputs request } func main() { sess := session.New() svc := mediaconnect.New(sess) myFunc(svc) }
In your _test.go file:
// Define a mock struct to be used in your unit tests of myFunc. type mockMediaConnectClient struct { mediaconnectiface.MediaConnectAPI } func (m *mockMediaConnectClient) AddBridgeOutputs(input *mediaconnect.AddBridgeOutputsInput) (*mediaconnect.AddBridgeOutputsOutput, error) { // mock response/functionality } func TestMyFunc(t *testing.T) { // Setup Test mockSvc := &mockMediaConnectClient{} myfunc(mockSvc) // Verify myFunc's functionality }
It is important to note that this interface will have breaking changes when the service model is updated and adds new API operations, paginators, and waiters. Its suggested to use the pattern above for testing, or using tooling to generate mocks to satisfy the interfaces.