MediaConnect
public struct MediaConnect
Client object for interacting with AWS MediaConnect service.
API for AWS Elemental MediaConnect
-
Undocumented
Declaration
Swift
public let client: AWSClient
-
Initialize the MediaConnect client
Declaration
Swift
public init(accessKeyId: String? = nil, secretAccessKey: String? = nil, sessionToken: String? = nil, region: AWSSDKSwiftCore.Region? = nil, endpoint: String? = nil, middlewares: [AWSServiceMiddleware] = [], eventLoopGroupProvider: AWSClient.EventLoopGroupProvider = .useAWSClientShared)
Parameters
accessKeyId
Public access key provided by AWS
secretAccessKey
Private access key provided by AWS
sessionToken
Token provided by STS.AssumeRole() which allows access to another AWS account
region
Region of server you want to communicate with
endpoint
Custom endpoint URL to use instead of standard AWS servers
middlewares
Array of middlewares to apply to requests and responses
eventLoopGroupProvider
EventLoopGroup to use. Use
useAWSClientShared
if the client shall manage its own EventLoopGroup.
-
Adds outputs to an existing flow. You can create up to 50 outputs per flow.
Declaration
Swift
public func addFlowOutputs(_ input: AddFlowOutputsRequest) -> EventLoopFuture<AddFlowOutputsResponse>
-
Adds Sources to flow
Declaration
Swift
public func addFlowSources(_ input: AddFlowSourcesRequest) -> EventLoopFuture<AddFlowSourcesResponse>
-
Adds VPC interfaces to flow
Declaration
Swift
public func addFlowVpcInterfaces(_ input: AddFlowVpcInterfacesRequest) -> EventLoopFuture<AddFlowVpcInterfacesResponse>
-
Creates a new flow. The request must include one source. The request optionally can include outputs (up to 50) and entitlements (up to 50).
Declaration
Swift
public func createFlow(_ input: CreateFlowRequest) -> EventLoopFuture<CreateFlowResponse>
-
Deletes a flow. Before you can delete a flow, you must stop the flow.
Declaration
Swift
public func deleteFlow(_ input: DeleteFlowRequest) -> EventLoopFuture<DeleteFlowResponse>
-
Displays the details of a flow. The response includes the flow ARN, name, and Availability Zone, as well as details about the source, outputs, and entitlements.
Declaration
Swift
public func describeFlow(_ input: DescribeFlowRequest) -> EventLoopFuture<DescribeFlowResponse>
-
Grants entitlements to an existing flow.
Declaration
Swift
public func grantFlowEntitlements(_ input: GrantFlowEntitlementsRequest) -> EventLoopFuture<GrantFlowEntitlementsResponse>
-
Displays a list of all entitlements that have been granted to this account. This request returns 20 results per page.
Declaration
Swift
public func listEntitlements(_ input: ListEntitlementsRequest) -> EventLoopFuture<ListEntitlementsResponse>
-
Displays a list of flows that are associated with this account. This request returns a paginated result.
Declaration
Swift
public func listFlows(_ input: ListFlowsRequest) -> EventLoopFuture<ListFlowsResponse>
-
List all tags on an AWS Elemental MediaConnect resource
Declaration
Swift
public func listTagsForResource(_ input: ListTagsForResourceRequest) -> EventLoopFuture<ListTagsForResourceResponse>
-
Removes an output from an existing flow. This request can be made only on an output that does not have an entitlement associated with it. If the output has an entitlement, you must revoke the entitlement instead. When an entitlement is revoked from a flow, the service automatically removes the associated output.
Declaration
Swift
public func removeFlowOutput(_ input: RemoveFlowOutputRequest) -> EventLoopFuture<RemoveFlowOutputResponse>
-
Removes a source from an existing flow. This request can be made only if there is more than one source on the flow.
Declaration
Swift
public func removeFlowSource(_ input: RemoveFlowSourceRequest) -> EventLoopFuture<RemoveFlowSourceResponse>
-
Removes a VPC Interface from an existing flow. This request can be made only on a VPC interface that does not have a Source or Output associated with it. If the VPC interface is referenced by a Source or Output, you must first delete or update the Source or Output to no longer reference the VPC interface.
Declaration
Swift
public func removeFlowVpcInterface(_ input: RemoveFlowVpcInterfaceRequest) -> EventLoopFuture<RemoveFlowVpcInterfaceResponse>
-
Revokes an entitlement from a flow. Once an entitlement is revoked, the content becomes unavailable to the subscriber and the associated output is removed.
Declaration
Swift
public func revokeFlowEntitlement(_ input: RevokeFlowEntitlementRequest) -> EventLoopFuture<RevokeFlowEntitlementResponse>
-
Starts a flow.
Declaration
Swift
public func startFlow(_ input: StartFlowRequest) -> EventLoopFuture<StartFlowResponse>
-
Stops a flow.
Declaration
Swift
public func stopFlow(_ input: StopFlowRequest) -> EventLoopFuture<StopFlowResponse>
-
Associates the specified tags to a resource with the specified resourceArn. If existing tags on a resource are not specified in the request parameters, they are not changed. When a resource is deleted, the tags associated with that resource are deleted as well.
Declaration
Swift
@discardableResult public func tagResource(_ input: TagResourceRequest) -> EventLoopFuture<Void>
-
Deletes specified tags from a resource.
Declaration
Swift
@discardableResult public func untagResource(_ input: UntagResourceRequest) -> EventLoopFuture<Void>
-
Updates flow
Declaration
Swift
public func updateFlow(_ input: UpdateFlowRequest) -> EventLoopFuture<UpdateFlowResponse>
-
You can change an entitlement’s description, subscribers, and encryption. If you change the subscribers, the service will remove the outputs that are are used by the subscribers that are removed.
Declaration
Swift
public func updateFlowEntitlement(_ input: UpdateFlowEntitlementRequest) -> EventLoopFuture<UpdateFlowEntitlementResponse>
-
Updates an existing flow output.
Declaration
Swift
public func updateFlowOutput(_ input: UpdateFlowOutputRequest) -> EventLoopFuture<UpdateFlowOutputResponse>
-
Updates the source of a flow.
Declaration
Swift
public func updateFlowSource(_ input: UpdateFlowSourceRequest) -> EventLoopFuture<UpdateFlowSourceResponse>
-
Displays a list of all entitlements that have been granted to this account. This request returns 20 results per page.
Declaration
Swift
public func listEntitlementsPaginator(_ input: ListEntitlementsRequest, onPage: @escaping (ListEntitlementsResponse, EventLoop) -> EventLoopFuture<Bool>) -> EventLoopFuture<Void>
-
Displays a list of flows that are associated with this account. This request returns a paginated result.
Declaration
Swift
public func listFlowsPaginator(_ input: ListFlowsRequest, onPage: @escaping (ListFlowsResponse, EventLoop) -> EventLoopFuture<Bool>) -> EventLoopFuture<Void>
-
Undocumented
See moreDeclaration
Swift
public struct ListEntitlementsRequest : AWSShape
extension MediaConnect.ListEntitlementsRequest: AWSPaginateStringToken
-
Undocumented
See moreDeclaration
Swift
public struct ListFlowsRequest : AWSShape
extension MediaConnect.ListFlowsRequest: AWSPaginateStringToken
-
Undocumented
See moreDeclaration
Swift
public enum Algorithm : String, CustomStringConvertible, Codable
-
Undocumented
See moreDeclaration
Swift
public enum EntitlementStatus : String, CustomStringConvertible, Codable
-
Undocumented
See moreDeclaration
Swift
public enum KeyType : String, CustomStringConvertible, Codable
-
Undocumented
See moreDeclaration
Swift
public enum `Protocol` : String, CustomStringConvertible, Codable
-
Undocumented
See moreDeclaration
Swift
public enum SourceType : String, CustomStringConvertible, Codable
-
Undocumented
See moreDeclaration
Swift
public enum State : String, CustomStringConvertible, Codable
-
Undocumented
See moreDeclaration
Swift
public enum Status : String, CustomStringConvertible, Codable