Interface MediaPackageV2Client
- All Superinterfaces:
AutoCloseable,AwsClient,SdkAutoCloseable,SdkClient
builder() method.
This guide is intended for creating AWS Elemental MediaPackage resources in MediaPackage Version 2 (v2) starting from May 2023. To get started with MediaPackage v2, create your MediaPackage resources. There isn't an automated process to migrate your resources from MediaPackage v1 to MediaPackage v2.
The names of the entities that you use to access this API, like URLs and ARNs, all have the versioning information added, like "v2", to distinguish from the prior version. If you used MediaPackage prior to this release, you can't use the MediaPackage v2 CLI or the MediaPackage v2 API to access any MediaPackage v1 resources.
If you created resources in MediaPackage v1, use video on demand (VOD) workflows, and aren't looking to migrate to MediaPackage v2 yet, see the MediaPackage v1 Live API Reference.
This is the AWS Elemental MediaPackage v2 Live REST API Reference. It describes all the MediaPackage API operations for live content in detail, and provides sample requests, responses, and errors for the supported web services protocols.
We assume that you have the IAM permissions that you need to use MediaPackage via the REST API. We also assume that you are familiar with the features and operations of MediaPackage, as described in the AWS Elemental MediaPackage User Guide.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringValue for looking up the service's metadata from theServiceMetadataProvider.static final String -
Method Summary
Modifier and TypeMethodDescriptionstatic MediaPackageV2ClientBuilderbuilder()Create a builder that can be used to configure and create aMediaPackageV2Client.static MediaPackageV2Clientcreate()Create aMediaPackageV2Clientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.default CreateChannelResponsecreateChannel(Consumer<CreateChannelRequest.Builder> createChannelRequest) Create a channel to start receiving content streams.default CreateChannelResponsecreateChannel(CreateChannelRequest createChannelRequest) Create a channel to start receiving content streams.default CreateChannelGroupResponsecreateChannelGroup(Consumer<CreateChannelGroupRequest.Builder> createChannelGroupRequest) Create a channel group to group your channels and origin endpoints.default CreateChannelGroupResponsecreateChannelGroup(CreateChannelGroupRequest createChannelGroupRequest) Create a channel group to group your channels and origin endpoints.default CreateOriginEndpointResponsecreateOriginEndpoint(Consumer<CreateOriginEndpointRequest.Builder> createOriginEndpointRequest) The endpoint is attached to a channel, and represents the output of the live content.default CreateOriginEndpointResponsecreateOriginEndpoint(CreateOriginEndpointRequest createOriginEndpointRequest) The endpoint is attached to a channel, and represents the output of the live content.default DeleteChannelResponsedeleteChannel(Consumer<DeleteChannelRequest.Builder> deleteChannelRequest) Delete a channel to stop AWS Elemental MediaPackage from receiving further content.default DeleteChannelResponsedeleteChannel(DeleteChannelRequest deleteChannelRequest) Delete a channel to stop AWS Elemental MediaPackage from receiving further content.default DeleteChannelGroupResponsedeleteChannelGroup(Consumer<DeleteChannelGroupRequest.Builder> deleteChannelGroupRequest) Delete a channel group.default DeleteChannelGroupResponsedeleteChannelGroup(DeleteChannelGroupRequest deleteChannelGroupRequest) Delete a channel group.default DeleteChannelPolicyResponsedeleteChannelPolicy(Consumer<DeleteChannelPolicyRequest.Builder> deleteChannelPolicyRequest) Delete a channel policy.default DeleteChannelPolicyResponsedeleteChannelPolicy(DeleteChannelPolicyRequest deleteChannelPolicyRequest) Delete a channel policy.default DeleteOriginEndpointResponsedeleteOriginEndpoint(Consumer<DeleteOriginEndpointRequest.Builder> deleteOriginEndpointRequest) Origin endpoints can serve content until they're deleted.default DeleteOriginEndpointResponsedeleteOriginEndpoint(DeleteOriginEndpointRequest deleteOriginEndpointRequest) Origin endpoints can serve content until they're deleted.deleteOriginEndpointPolicy(Consumer<DeleteOriginEndpointPolicyRequest.Builder> deleteOriginEndpointPolicyRequest) Delete an origin endpoint policy.deleteOriginEndpointPolicy(DeleteOriginEndpointPolicyRequest deleteOriginEndpointPolicyRequest) Delete an origin endpoint policy.default GetChannelResponsegetChannel(Consumer<GetChannelRequest.Builder> getChannelRequest) Retrieves the specified channel that's configured in AWS Elemental MediaPackage, including the origin endpoints that are associated with it.default GetChannelResponsegetChannel(GetChannelRequest getChannelRequest) Retrieves the specified channel that's configured in AWS Elemental MediaPackage, including the origin endpoints that are associated with it.default GetChannelGroupResponsegetChannelGroup(Consumer<GetChannelGroupRequest.Builder> getChannelGroupRequest) Retrieves the specified channel group that's configured in AWS Elemental MediaPackage, including the channels and origin endpoints that are associated with it.default GetChannelGroupResponsegetChannelGroup(GetChannelGroupRequest getChannelGroupRequest) Retrieves the specified channel group that's configured in AWS Elemental MediaPackage, including the channels and origin endpoints that are associated with it.default GetChannelPolicyResponsegetChannelPolicy(Consumer<GetChannelPolicyRequest.Builder> getChannelPolicyRequest) Retrieves the specified channel policy that's configured in AWS Elemental MediaPackage.default GetChannelPolicyResponsegetChannelPolicy(GetChannelPolicyRequest getChannelPolicyRequest) Retrieves the specified channel policy that's configured in AWS Elemental MediaPackage.default GetOriginEndpointResponsegetOriginEndpoint(Consumer<GetOriginEndpointRequest.Builder> getOriginEndpointRequest) Retrieves the specified origin endpoint that's configured in AWS Elemental MediaPackage to obtain its playback URL and to view the packaging settings that it's currently using.default GetOriginEndpointResponsegetOriginEndpoint(GetOriginEndpointRequest getOriginEndpointRequest) Retrieves the specified origin endpoint that's configured in AWS Elemental MediaPackage to obtain its playback URL and to view the packaging settings that it's currently using.default GetOriginEndpointPolicyResponsegetOriginEndpointPolicy(Consumer<GetOriginEndpointPolicyRequest.Builder> getOriginEndpointPolicyRequest) Retrieves the specified origin endpoint policy that's configured in AWS Elemental MediaPackage.default GetOriginEndpointPolicyResponsegetOriginEndpointPolicy(GetOriginEndpointPolicyRequest getOriginEndpointPolicyRequest) Retrieves the specified origin endpoint policy that's configured in AWS Elemental MediaPackage.default ListChannelGroupsResponselistChannelGroups(Consumer<ListChannelGroupsRequest.Builder> listChannelGroupsRequest) Retrieves all channel groups that are configured in AWS Elemental MediaPackage, including the channels and origin endpoints that are associated with it.default ListChannelGroupsResponselistChannelGroups(ListChannelGroupsRequest listChannelGroupsRequest) Retrieves all channel groups that are configured in AWS Elemental MediaPackage, including the channels and origin endpoints that are associated with it.default ListChannelGroupsIterablelistChannelGroupsPaginator(Consumer<ListChannelGroupsRequest.Builder> listChannelGroupsRequest) This is a variant oflistChannelGroups(software.amazon.awssdk.services.mediapackagev2.model.ListChannelGroupsRequest)operation.default ListChannelGroupsIterablelistChannelGroupsPaginator(ListChannelGroupsRequest listChannelGroupsRequest) This is a variant oflistChannelGroups(software.amazon.awssdk.services.mediapackagev2.model.ListChannelGroupsRequest)operation.default ListChannelsResponselistChannels(Consumer<ListChannelsRequest.Builder> listChannelsRequest) Retrieves all channels in a specific channel group that are configured in AWS Elemental MediaPackage, including the origin endpoints that are associated with it.default ListChannelsResponselistChannels(ListChannelsRequest listChannelsRequest) Retrieves all channels in a specific channel group that are configured in AWS Elemental MediaPackage, including the origin endpoints that are associated with it.default ListChannelsIterablelistChannelsPaginator(Consumer<ListChannelsRequest.Builder> listChannelsRequest) This is a variant oflistChannels(software.amazon.awssdk.services.mediapackagev2.model.ListChannelsRequest)operation.default ListChannelsIterablelistChannelsPaginator(ListChannelsRequest listChannelsRequest) This is a variant oflistChannels(software.amazon.awssdk.services.mediapackagev2.model.ListChannelsRequest)operation.default ListOriginEndpointsResponselistOriginEndpoints(Consumer<ListOriginEndpointsRequest.Builder> listOriginEndpointsRequest) Retrieves all origin endpoints in a specific channel that are configured in AWS Elemental MediaPackage.default ListOriginEndpointsResponselistOriginEndpoints(ListOriginEndpointsRequest listOriginEndpointsRequest) Retrieves all origin endpoints in a specific channel that are configured in AWS Elemental MediaPackage.default ListOriginEndpointsIterablelistOriginEndpointsPaginator(Consumer<ListOriginEndpointsRequest.Builder> listOriginEndpointsRequest) This is a variant oflistOriginEndpoints(software.amazon.awssdk.services.mediapackagev2.model.ListOriginEndpointsRequest)operation.default ListOriginEndpointsIterablelistOriginEndpointsPaginator(ListOriginEndpointsRequest listOriginEndpointsRequest) This is a variant oflistOriginEndpoints(software.amazon.awssdk.services.mediapackagev2.model.ListOriginEndpointsRequest)operation.default ListTagsForResourceResponselistTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) Lists the tags assigned to a resource.default ListTagsForResourceResponselistTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) Lists the tags assigned to a resource.default PutChannelPolicyResponseputChannelPolicy(Consumer<PutChannelPolicyRequest.Builder> putChannelPolicyRequest) Attaches an IAM policy to the specified channel.default PutChannelPolicyResponseputChannelPolicy(PutChannelPolicyRequest putChannelPolicyRequest) Attaches an IAM policy to the specified channel.default PutOriginEndpointPolicyResponseputOriginEndpointPolicy(Consumer<PutOriginEndpointPolicyRequest.Builder> putOriginEndpointPolicyRequest) Attaches an IAM policy to the specified origin endpoint.default PutOriginEndpointPolicyResponseputOriginEndpointPolicy(PutOriginEndpointPolicyRequest putOriginEndpointPolicyRequest) Attaches an IAM policy to the specified origin endpoint.The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationstatic ServiceMetadatadefault TagResourceResponsetagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) Assigns one of more tags (key-value pairs) to the specified MediaPackage resource.default TagResourceResponsetagResource(TagResourceRequest tagResourceRequest) Assigns one of more tags (key-value pairs) to the specified MediaPackage resource.default UntagResourceResponseuntagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) Removes one or more tags from the specified resource.default UntagResourceResponseuntagResource(UntagResourceRequest untagResourceRequest) Removes one or more tags from the specified resource.default UpdateChannelResponseupdateChannel(Consumer<UpdateChannelRequest.Builder> updateChannelRequest) Update the specified channel.default UpdateChannelResponseupdateChannel(UpdateChannelRequest updateChannelRequest) Update the specified channel.default UpdateChannelGroupResponseupdateChannelGroup(Consumer<UpdateChannelGroupRequest.Builder> updateChannelGroupRequest) Update the specified channel group.default UpdateChannelGroupResponseupdateChannelGroup(UpdateChannelGroupRequest updateChannelGroupRequest) Update the specified channel group.default UpdateOriginEndpointResponseupdateOriginEndpoint(Consumer<UpdateOriginEndpointRequest.Builder> updateOriginEndpointRequest) Update the specified origin endpoint.default UpdateOriginEndpointResponseupdateOriginEndpoint(UpdateOriginEndpointRequest updateOriginEndpointRequest) Update the specified origin endpoint.Methods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable
closeMethods inherited from interface software.amazon.awssdk.core.SdkClient
serviceName
-
Field Details
-
SERVICE_NAME
- See Also:
-
SERVICE_METADATA_ID
Value for looking up the service's metadata from theServiceMetadataProvider.- See Also:
-
-
Method Details
-
createChannel
default CreateChannelResponse createChannel(CreateChannelRequest createChannelRequest) throws ThrottlingException, ConflictException, InternalServerException, AccessDeniedException, ValidationException, ResourceNotFoundException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, MediaPackageV2Exception Create a channel to start receiving content streams. The channel represents the input to MediaPackage for incoming live content from an encoder such as AWS Elemental MediaLive. The channel receives content, and after packaging it, outputs it through an origin endpoint to downstream devices (such as video players or CDNs) that request the content. You can create only one channel with each request. We recommend that you spread out channels between channel groups, such as putting redundant channels in the same AWS Region in different channel groups.
- Parameters:
createChannelRequest-- Returns:
- Result of the CreateChannel operation returned by the service.
- See Also:
-
createChannel
default CreateChannelResponse createChannel(Consumer<CreateChannelRequest.Builder> createChannelRequest) throws ThrottlingException, ConflictException, InternalServerException, AccessDeniedException, ValidationException, ResourceNotFoundException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, MediaPackageV2Exception Create a channel to start receiving content streams. The channel represents the input to MediaPackage for incoming live content from an encoder such as AWS Elemental MediaLive. The channel receives content, and after packaging it, outputs it through an origin endpoint to downstream devices (such as video players or CDNs) that request the content. You can create only one channel with each request. We recommend that you spread out channels between channel groups, such as putting redundant channels in the same AWS Region in different channel groups.
This is a convenience which creates an instance of the
CreateChannelRequest.Builderavoiding the need to create one manually viaCreateChannelRequest.builder()- Parameters:
createChannelRequest- AConsumerthat will call methods onCreateChannelRequest.Builderto create a request.- Returns:
- Result of the CreateChannel operation returned by the service.
- See Also:
-
createChannelGroup
default CreateChannelGroupResponse createChannelGroup(CreateChannelGroupRequest createChannelGroupRequest) throws ThrottlingException, ConflictException, InternalServerException, AccessDeniedException, ValidationException, ResourceNotFoundException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, MediaPackageV2Exception Create a channel group to group your channels and origin endpoints. A channel group is the top-level resource that consists of channels and origin endpoints that are associated with it and that provides predictable URLs for stream delivery. All channels and origin endpoints within the channel group are guaranteed to share the DNS. You can create only one channel group with each request.
- Parameters:
createChannelGroupRequest-- Returns:
- Result of the CreateChannelGroup operation returned by the service.
- See Also:
-
createChannelGroup
default CreateChannelGroupResponse createChannelGroup(Consumer<CreateChannelGroupRequest.Builder> createChannelGroupRequest) throws ThrottlingException, ConflictException, InternalServerException, AccessDeniedException, ValidationException, ResourceNotFoundException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, MediaPackageV2Exception Create a channel group to group your channels and origin endpoints. A channel group is the top-level resource that consists of channels and origin endpoints that are associated with it and that provides predictable URLs for stream delivery. All channels and origin endpoints within the channel group are guaranteed to share the DNS. You can create only one channel group with each request.
This is a convenience which creates an instance of the
CreateChannelGroupRequest.Builderavoiding the need to create one manually viaCreateChannelGroupRequest.builder()- Parameters:
createChannelGroupRequest- AConsumerthat will call methods onCreateChannelGroupRequest.Builderto create a request.- Returns:
- Result of the CreateChannelGroup operation returned by the service.
- See Also:
-
createOriginEndpoint
default CreateOriginEndpointResponse createOriginEndpoint(CreateOriginEndpointRequest createOriginEndpointRequest) throws ThrottlingException, ConflictException, InternalServerException, AccessDeniedException, ValidationException, ResourceNotFoundException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, MediaPackageV2Exception The endpoint is attached to a channel, and represents the output of the live content. You can associate multiple endpoints to a single channel. Each endpoint gives players and downstream CDNs (such as Amazon CloudFront) access to the content for playback. Content can't be served from a channel until it has an endpoint. You can create only one endpoint with each request.
- Parameters:
createOriginEndpointRequest-- Returns:
- Result of the CreateOriginEndpoint operation returned by the service.
- See Also:
-
createOriginEndpoint
default CreateOriginEndpointResponse createOriginEndpoint(Consumer<CreateOriginEndpointRequest.Builder> createOriginEndpointRequest) throws ThrottlingException, ConflictException, InternalServerException, AccessDeniedException, ValidationException, ResourceNotFoundException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, MediaPackageV2Exception The endpoint is attached to a channel, and represents the output of the live content. You can associate multiple endpoints to a single channel. Each endpoint gives players and downstream CDNs (such as Amazon CloudFront) access to the content for playback. Content can't be served from a channel until it has an endpoint. You can create only one endpoint with each request.
This is a convenience which creates an instance of the
CreateOriginEndpointRequest.Builderavoiding the need to create one manually viaCreateOriginEndpointRequest.builder()- Parameters:
createOriginEndpointRequest- AConsumerthat will call methods onCreateOriginEndpointRequest.Builderto create a request.- Returns:
- Result of the CreateOriginEndpoint operation returned by the service.
- See Also:
-
deleteChannel
default DeleteChannelResponse deleteChannel(DeleteChannelRequest deleteChannelRequest) throws ThrottlingException, ConflictException, InternalServerException, AccessDeniedException, ValidationException, AwsServiceException, SdkClientException, MediaPackageV2Exception Delete a channel to stop AWS Elemental MediaPackage from receiving further content. You must delete the channel's origin endpoints before you can delete the channel.
- Parameters:
deleteChannelRequest-- Returns:
- Result of the DeleteChannel operation returned by the service.
- See Also:
-
deleteChannel
default DeleteChannelResponse deleteChannel(Consumer<DeleteChannelRequest.Builder> deleteChannelRequest) throws ThrottlingException, ConflictException, InternalServerException, AccessDeniedException, ValidationException, AwsServiceException, SdkClientException, MediaPackageV2Exception Delete a channel to stop AWS Elemental MediaPackage from receiving further content. You must delete the channel's origin endpoints before you can delete the channel.
This is a convenience which creates an instance of the
DeleteChannelRequest.Builderavoiding the need to create one manually viaDeleteChannelRequest.builder()- Parameters:
deleteChannelRequest- AConsumerthat will call methods onDeleteChannelRequest.Builderto create a request.- Returns:
- Result of the DeleteChannel operation returned by the service.
- See Also:
-
deleteChannelGroup
default DeleteChannelGroupResponse deleteChannelGroup(DeleteChannelGroupRequest deleteChannelGroupRequest) throws ThrottlingException, ConflictException, InternalServerException, AccessDeniedException, ValidationException, AwsServiceException, SdkClientException, MediaPackageV2Exception Delete a channel group. You must delete the channel group's channels and origin endpoints before you can delete the channel group. If you delete a channel group, you'll lose access to the egress domain and will have to create a new channel group to replace it.
- Parameters:
deleteChannelGroupRequest-- Returns:
- Result of the DeleteChannelGroup operation returned by the service.
- See Also:
-
deleteChannelGroup
default DeleteChannelGroupResponse deleteChannelGroup(Consumer<DeleteChannelGroupRequest.Builder> deleteChannelGroupRequest) throws ThrottlingException, ConflictException, InternalServerException, AccessDeniedException, ValidationException, AwsServiceException, SdkClientException, MediaPackageV2Exception Delete a channel group. You must delete the channel group's channels and origin endpoints before you can delete the channel group. If you delete a channel group, you'll lose access to the egress domain and will have to create a new channel group to replace it.
This is a convenience which creates an instance of the
DeleteChannelGroupRequest.Builderavoiding the need to create one manually viaDeleteChannelGroupRequest.builder()- Parameters:
deleteChannelGroupRequest- AConsumerthat will call methods onDeleteChannelGroupRequest.Builderto create a request.- Returns:
- Result of the DeleteChannelGroup operation returned by the service.
- See Also:
-
deleteChannelPolicy
default DeleteChannelPolicyResponse deleteChannelPolicy(DeleteChannelPolicyRequest deleteChannelPolicyRequest) throws ThrottlingException, ConflictException, InternalServerException, AccessDeniedException, ValidationException, AwsServiceException, SdkClientException, MediaPackageV2Exception Delete a channel policy.
- Parameters:
deleteChannelPolicyRequest-- Returns:
- Result of the DeleteChannelPolicy operation returned by the service.
- See Also:
-
deleteChannelPolicy
default DeleteChannelPolicyResponse deleteChannelPolicy(Consumer<DeleteChannelPolicyRequest.Builder> deleteChannelPolicyRequest) throws ThrottlingException, ConflictException, InternalServerException, AccessDeniedException, ValidationException, AwsServiceException, SdkClientException, MediaPackageV2Exception Delete a channel policy.
This is a convenience which creates an instance of the
DeleteChannelPolicyRequest.Builderavoiding the need to create one manually viaDeleteChannelPolicyRequest.builder()- Parameters:
deleteChannelPolicyRequest- AConsumerthat will call methods onDeleteChannelPolicyRequest.Builderto create a request.- Returns:
- Result of the DeleteChannelPolicy operation returned by the service.
- See Also:
-
deleteOriginEndpoint
default DeleteOriginEndpointResponse deleteOriginEndpoint(DeleteOriginEndpointRequest deleteOriginEndpointRequest) throws ThrottlingException, InternalServerException, AccessDeniedException, ValidationException, AwsServiceException, SdkClientException, MediaPackageV2Exception Origin endpoints can serve content until they're deleted. Delete the endpoint if it should no longer respond to playback requests. You must delete all endpoints from a channel before you can delete the channel.
- Parameters:
deleteOriginEndpointRequest-- Returns:
- Result of the DeleteOriginEndpoint operation returned by the service.
- See Also:
-
deleteOriginEndpoint
default DeleteOriginEndpointResponse deleteOriginEndpoint(Consumer<DeleteOriginEndpointRequest.Builder> deleteOriginEndpointRequest) throws ThrottlingException, InternalServerException, AccessDeniedException, ValidationException, AwsServiceException, SdkClientException, MediaPackageV2Exception Origin endpoints can serve content until they're deleted. Delete the endpoint if it should no longer respond to playback requests. You must delete all endpoints from a channel before you can delete the channel.
This is a convenience which creates an instance of the
DeleteOriginEndpointRequest.Builderavoiding the need to create one manually viaDeleteOriginEndpointRequest.builder()- Parameters:
deleteOriginEndpointRequest- AConsumerthat will call methods onDeleteOriginEndpointRequest.Builderto create a request.- Returns:
- Result of the DeleteOriginEndpoint operation returned by the service.
- See Also:
-
deleteOriginEndpointPolicy
default DeleteOriginEndpointPolicyResponse deleteOriginEndpointPolicy(DeleteOriginEndpointPolicyRequest deleteOriginEndpointPolicyRequest) throws ThrottlingException, ConflictException, InternalServerException, AccessDeniedException, ValidationException, AwsServiceException, SdkClientException, MediaPackageV2Exception Delete an origin endpoint policy.
- Parameters:
deleteOriginEndpointPolicyRequest-- Returns:
- Result of the DeleteOriginEndpointPolicy operation returned by the service.
- See Also:
-
deleteOriginEndpointPolicy
default DeleteOriginEndpointPolicyResponse deleteOriginEndpointPolicy(Consumer<DeleteOriginEndpointPolicyRequest.Builder> deleteOriginEndpointPolicyRequest) throws ThrottlingException, ConflictException, InternalServerException, AccessDeniedException, ValidationException, AwsServiceException, SdkClientException, MediaPackageV2Exception Delete an origin endpoint policy.
This is a convenience which creates an instance of the
DeleteOriginEndpointPolicyRequest.Builderavoiding the need to create one manually viaDeleteOriginEndpointPolicyRequest.builder()- Parameters:
deleteOriginEndpointPolicyRequest- AConsumerthat will call methods onDeleteOriginEndpointPolicyRequest.Builderto create a request.- Returns:
- Result of the DeleteOriginEndpointPolicy operation returned by the service.
- See Also:
-
getChannel
default GetChannelResponse getChannel(GetChannelRequest getChannelRequest) throws ThrottlingException, InternalServerException, AccessDeniedException, ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, MediaPackageV2Exception Retrieves the specified channel that's configured in AWS Elemental MediaPackage, including the origin endpoints that are associated with it.
- Parameters:
getChannelRequest-- Returns:
- Result of the GetChannel operation returned by the service.
- See Also:
-
getChannel
default GetChannelResponse getChannel(Consumer<GetChannelRequest.Builder> getChannelRequest) throws ThrottlingException, InternalServerException, AccessDeniedException, ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, MediaPackageV2Exception Retrieves the specified channel that's configured in AWS Elemental MediaPackage, including the origin endpoints that are associated with it.
This is a convenience which creates an instance of the
GetChannelRequest.Builderavoiding the need to create one manually viaGetChannelRequest.builder()- Parameters:
getChannelRequest- AConsumerthat will call methods onGetChannelRequest.Builderto create a request.- Returns:
- Result of the GetChannel operation returned by the service.
- See Also:
-
getChannelGroup
default GetChannelGroupResponse getChannelGroup(GetChannelGroupRequest getChannelGroupRequest) throws ThrottlingException, InternalServerException, AccessDeniedException, ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, MediaPackageV2Exception Retrieves the specified channel group that's configured in AWS Elemental MediaPackage, including the channels and origin endpoints that are associated with it.
- Parameters:
getChannelGroupRequest-- Returns:
- Result of the GetChannelGroup operation returned by the service.
- See Also:
-
getChannelGroup
default GetChannelGroupResponse getChannelGroup(Consumer<GetChannelGroupRequest.Builder> getChannelGroupRequest) throws ThrottlingException, InternalServerException, AccessDeniedException, ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, MediaPackageV2Exception Retrieves the specified channel group that's configured in AWS Elemental MediaPackage, including the channels and origin endpoints that are associated with it.
This is a convenience which creates an instance of the
GetChannelGroupRequest.Builderavoiding the need to create one manually viaGetChannelGroupRequest.builder()- Parameters:
getChannelGroupRequest- AConsumerthat will call methods onGetChannelGroupRequest.Builderto create a request.- Returns:
- Result of the GetChannelGroup operation returned by the service.
- See Also:
-
getChannelPolicy
default GetChannelPolicyResponse getChannelPolicy(GetChannelPolicyRequest getChannelPolicyRequest) throws ThrottlingException, InternalServerException, AccessDeniedException, ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, MediaPackageV2Exception Retrieves the specified channel policy that's configured in AWS Elemental MediaPackage. With policies, you can specify who has access to AWS resources and what actions they can perform on those resources.
- Parameters:
getChannelPolicyRequest-- Returns:
- Result of the GetChannelPolicy operation returned by the service.
- See Also:
-
getChannelPolicy
default GetChannelPolicyResponse getChannelPolicy(Consumer<GetChannelPolicyRequest.Builder> getChannelPolicyRequest) throws ThrottlingException, InternalServerException, AccessDeniedException, ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, MediaPackageV2Exception Retrieves the specified channel policy that's configured in AWS Elemental MediaPackage. With policies, you can specify who has access to AWS resources and what actions they can perform on those resources.
This is a convenience which creates an instance of the
GetChannelPolicyRequest.Builderavoiding the need to create one manually viaGetChannelPolicyRequest.builder()- Parameters:
getChannelPolicyRequest- AConsumerthat will call methods onGetChannelPolicyRequest.Builderto create a request.- Returns:
- Result of the GetChannelPolicy operation returned by the service.
- See Also:
-
getOriginEndpoint
default GetOriginEndpointResponse getOriginEndpoint(GetOriginEndpointRequest getOriginEndpointRequest) throws ThrottlingException, InternalServerException, AccessDeniedException, ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, MediaPackageV2Exception Retrieves the specified origin endpoint that's configured in AWS Elemental MediaPackage to obtain its playback URL and to view the packaging settings that it's currently using.
- Parameters:
getOriginEndpointRequest-- Returns:
- Result of the GetOriginEndpoint operation returned by the service.
- See Also:
-
getOriginEndpoint
default GetOriginEndpointResponse getOriginEndpoint(Consumer<GetOriginEndpointRequest.Builder> getOriginEndpointRequest) throws ThrottlingException, InternalServerException, AccessDeniedException, ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, MediaPackageV2Exception Retrieves the specified origin endpoint that's configured in AWS Elemental MediaPackage to obtain its playback URL and to view the packaging settings that it's currently using.
This is a convenience which creates an instance of the
GetOriginEndpointRequest.Builderavoiding the need to create one manually viaGetOriginEndpointRequest.builder()- Parameters:
getOriginEndpointRequest- AConsumerthat will call methods onGetOriginEndpointRequest.Builderto create a request.- Returns:
- Result of the GetOriginEndpoint operation returned by the service.
- See Also:
-
getOriginEndpointPolicy
default GetOriginEndpointPolicyResponse getOriginEndpointPolicy(GetOriginEndpointPolicyRequest getOriginEndpointPolicyRequest) throws ThrottlingException, InternalServerException, AccessDeniedException, ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, MediaPackageV2Exception Retrieves the specified origin endpoint policy that's configured in AWS Elemental MediaPackage.
- Parameters:
getOriginEndpointPolicyRequest-- Returns:
- Result of the GetOriginEndpointPolicy operation returned by the service.
- See Also:
-
getOriginEndpointPolicy
default GetOriginEndpointPolicyResponse getOriginEndpointPolicy(Consumer<GetOriginEndpointPolicyRequest.Builder> getOriginEndpointPolicyRequest) throws ThrottlingException, InternalServerException, AccessDeniedException, ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, MediaPackageV2Exception Retrieves the specified origin endpoint policy that's configured in AWS Elemental MediaPackage.
This is a convenience which creates an instance of the
GetOriginEndpointPolicyRequest.Builderavoiding the need to create one manually viaGetOriginEndpointPolicyRequest.builder()- Parameters:
getOriginEndpointPolicyRequest- AConsumerthat will call methods onGetOriginEndpointPolicyRequest.Builderto create a request.- Returns:
- Result of the GetOriginEndpointPolicy operation returned by the service.
- See Also:
-
listChannelGroups
default ListChannelGroupsResponse listChannelGroups(ListChannelGroupsRequest listChannelGroupsRequest) throws ThrottlingException, InternalServerException, AccessDeniedException, ValidationException, AwsServiceException, SdkClientException, MediaPackageV2Exception Retrieves all channel groups that are configured in AWS Elemental MediaPackage, including the channels and origin endpoints that are associated with it.
- Parameters:
listChannelGroupsRequest-- Returns:
- Result of the ListChannelGroups operation returned by the service.
- See Also:
-
listChannelGroups
default ListChannelGroupsResponse listChannelGroups(Consumer<ListChannelGroupsRequest.Builder> listChannelGroupsRequest) throws ThrottlingException, InternalServerException, AccessDeniedException, ValidationException, AwsServiceException, SdkClientException, MediaPackageV2Exception Retrieves all channel groups that are configured in AWS Elemental MediaPackage, including the channels and origin endpoints that are associated with it.
This is a convenience which creates an instance of the
ListChannelGroupsRequest.Builderavoiding the need to create one manually viaListChannelGroupsRequest.builder()- Parameters:
listChannelGroupsRequest- AConsumerthat will call methods onListChannelGroupsRequest.Builderto create a request.- Returns:
- Result of the ListChannelGroups operation returned by the service.
- See Also:
-
listChannelGroupsPaginator
default ListChannelGroupsIterable listChannelGroupsPaginator(ListChannelGroupsRequest listChannelGroupsRequest) throws ThrottlingException, InternalServerException, AccessDeniedException, ValidationException, AwsServiceException, SdkClientException, MediaPackageV2Exception This is a variant of
listChannelGroups(software.amazon.awssdk.services.mediapackagev2.model.ListChannelGroupsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.mediapackagev2.paginators.ListChannelGroupsIterable responses = client.listChannelGroupsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.mediapackagev2.paginators.ListChannelGroupsIterable responses = client .listChannelGroupsPaginator(request); for (software.amazon.awssdk.services.mediapackagev2.model.ListChannelGroupsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.mediapackagev2.paginators.ListChannelGroupsIterable responses = client.listChannelGroupsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listChannelGroups(software.amazon.awssdk.services.mediapackagev2.model.ListChannelGroupsRequest)operation.- Parameters:
listChannelGroupsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listChannelGroupsPaginator
default ListChannelGroupsIterable listChannelGroupsPaginator(Consumer<ListChannelGroupsRequest.Builder> listChannelGroupsRequest) throws ThrottlingException, InternalServerException, AccessDeniedException, ValidationException, AwsServiceException, SdkClientException, MediaPackageV2Exception This is a variant of
listChannelGroups(software.amazon.awssdk.services.mediapackagev2.model.ListChannelGroupsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.mediapackagev2.paginators.ListChannelGroupsIterable responses = client.listChannelGroupsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.mediapackagev2.paginators.ListChannelGroupsIterable responses = client .listChannelGroupsPaginator(request); for (software.amazon.awssdk.services.mediapackagev2.model.ListChannelGroupsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.mediapackagev2.paginators.ListChannelGroupsIterable responses = client.listChannelGroupsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listChannelGroups(software.amazon.awssdk.services.mediapackagev2.model.ListChannelGroupsRequest)operation.
This is a convenience which creates an instance of the
ListChannelGroupsRequest.Builderavoiding the need to create one manually viaListChannelGroupsRequest.builder()- Parameters:
listChannelGroupsRequest- AConsumerthat will call methods onListChannelGroupsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listChannels
default ListChannelsResponse listChannels(ListChannelsRequest listChannelsRequest) throws ThrottlingException, InternalServerException, AccessDeniedException, ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, MediaPackageV2Exception Retrieves all channels in a specific channel group that are configured in AWS Elemental MediaPackage, including the origin endpoints that are associated with it.
- Parameters:
listChannelsRequest-- Returns:
- Result of the ListChannels operation returned by the service.
- See Also:
-
listChannels
default ListChannelsResponse listChannels(Consumer<ListChannelsRequest.Builder> listChannelsRequest) throws ThrottlingException, InternalServerException, AccessDeniedException, ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, MediaPackageV2Exception Retrieves all channels in a specific channel group that are configured in AWS Elemental MediaPackage, including the origin endpoints that are associated with it.
This is a convenience which creates an instance of the
ListChannelsRequest.Builderavoiding the need to create one manually viaListChannelsRequest.builder()- Parameters:
listChannelsRequest- AConsumerthat will call methods onListChannelsRequest.Builderto create a request.- Returns:
- Result of the ListChannels operation returned by the service.
- See Also:
-
listChannelsPaginator
default ListChannelsIterable listChannelsPaginator(ListChannelsRequest listChannelsRequest) throws ThrottlingException, InternalServerException, AccessDeniedException, ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, MediaPackageV2Exception This is a variant of
listChannels(software.amazon.awssdk.services.mediapackagev2.model.ListChannelsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.mediapackagev2.paginators.ListChannelsIterable responses = client.listChannelsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.mediapackagev2.paginators.ListChannelsIterable responses = client .listChannelsPaginator(request); for (software.amazon.awssdk.services.mediapackagev2.model.ListChannelsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.mediapackagev2.paginators.ListChannelsIterable responses = client.listChannelsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listChannels(software.amazon.awssdk.services.mediapackagev2.model.ListChannelsRequest)operation.- Parameters:
listChannelsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listChannelsPaginator
default ListChannelsIterable listChannelsPaginator(Consumer<ListChannelsRequest.Builder> listChannelsRequest) throws ThrottlingException, InternalServerException, AccessDeniedException, ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, MediaPackageV2Exception This is a variant of
listChannels(software.amazon.awssdk.services.mediapackagev2.model.ListChannelsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.mediapackagev2.paginators.ListChannelsIterable responses = client.listChannelsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.mediapackagev2.paginators.ListChannelsIterable responses = client .listChannelsPaginator(request); for (software.amazon.awssdk.services.mediapackagev2.model.ListChannelsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.mediapackagev2.paginators.ListChannelsIterable responses = client.listChannelsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listChannels(software.amazon.awssdk.services.mediapackagev2.model.ListChannelsRequest)operation.
This is a convenience which creates an instance of the
ListChannelsRequest.Builderavoiding the need to create one manually viaListChannelsRequest.builder()- Parameters:
listChannelsRequest- AConsumerthat will call methods onListChannelsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listOriginEndpoints
default ListOriginEndpointsResponse listOriginEndpoints(ListOriginEndpointsRequest listOriginEndpointsRequest) throws ThrottlingException, InternalServerException, AccessDeniedException, ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, MediaPackageV2Exception Retrieves all origin endpoints in a specific channel that are configured in AWS Elemental MediaPackage.
- Parameters:
listOriginEndpointsRequest-- Returns:
- Result of the ListOriginEndpoints operation returned by the service.
- See Also:
-
listOriginEndpoints
default ListOriginEndpointsResponse listOriginEndpoints(Consumer<ListOriginEndpointsRequest.Builder> listOriginEndpointsRequest) throws ThrottlingException, InternalServerException, AccessDeniedException, ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, MediaPackageV2Exception Retrieves all origin endpoints in a specific channel that are configured in AWS Elemental MediaPackage.
This is a convenience which creates an instance of the
ListOriginEndpointsRequest.Builderavoiding the need to create one manually viaListOriginEndpointsRequest.builder()- Parameters:
listOriginEndpointsRequest- AConsumerthat will call methods onListOriginEndpointsRequest.Builderto create a request.- Returns:
- Result of the ListOriginEndpoints operation returned by the service.
- See Also:
-
listOriginEndpointsPaginator
default ListOriginEndpointsIterable listOriginEndpointsPaginator(ListOriginEndpointsRequest listOriginEndpointsRequest) throws ThrottlingException, InternalServerException, AccessDeniedException, ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, MediaPackageV2Exception This is a variant of
listOriginEndpoints(software.amazon.awssdk.services.mediapackagev2.model.ListOriginEndpointsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.mediapackagev2.paginators.ListOriginEndpointsIterable responses = client.listOriginEndpointsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.mediapackagev2.paginators.ListOriginEndpointsIterable responses = client .listOriginEndpointsPaginator(request); for (software.amazon.awssdk.services.mediapackagev2.model.ListOriginEndpointsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.mediapackagev2.paginators.ListOriginEndpointsIterable responses = client.listOriginEndpointsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listOriginEndpoints(software.amazon.awssdk.services.mediapackagev2.model.ListOriginEndpointsRequest)operation.- Parameters:
listOriginEndpointsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listOriginEndpointsPaginator
default ListOriginEndpointsIterable listOriginEndpointsPaginator(Consumer<ListOriginEndpointsRequest.Builder> listOriginEndpointsRequest) throws ThrottlingException, InternalServerException, AccessDeniedException, ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, MediaPackageV2Exception This is a variant of
listOriginEndpoints(software.amazon.awssdk.services.mediapackagev2.model.ListOriginEndpointsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.mediapackagev2.paginators.ListOriginEndpointsIterable responses = client.listOriginEndpointsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.mediapackagev2.paginators.ListOriginEndpointsIterable responses = client .listOriginEndpointsPaginator(request); for (software.amazon.awssdk.services.mediapackagev2.model.ListOriginEndpointsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.mediapackagev2.paginators.ListOriginEndpointsIterable responses = client.listOriginEndpointsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listOriginEndpoints(software.amazon.awssdk.services.mediapackagev2.model.ListOriginEndpointsRequest)operation.
This is a convenience which creates an instance of the
ListOriginEndpointsRequest.Builderavoiding the need to create one manually viaListOriginEndpointsRequest.builder()- Parameters:
listOriginEndpointsRequest- AConsumerthat will call methods onListOriginEndpointsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listTagsForResource
default ListTagsForResourceResponse listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) throws ValidationException, AwsServiceException, SdkClientException, MediaPackageV2Exception Lists the tags assigned to a resource.
- Parameters:
listTagsForResourceRequest-- Returns:
- Result of the ListTagsForResource operation returned by the service.
- See Also:
-
listTagsForResource
default ListTagsForResourceResponse listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) throws ValidationException, AwsServiceException, SdkClientException, MediaPackageV2Exception Lists the tags assigned to a resource.
This is a convenience which creates an instance of the
ListTagsForResourceRequest.Builderavoiding the need to create one manually viaListTagsForResourceRequest.builder()- Parameters:
listTagsForResourceRequest- AConsumerthat will call methods onListTagsForResourceRequest.Builderto create a request.- Returns:
- Result of the ListTagsForResource operation returned by the service.
- See Also:
-
putChannelPolicy
default PutChannelPolicyResponse putChannelPolicy(PutChannelPolicyRequest putChannelPolicyRequest) throws ThrottlingException, ConflictException, InternalServerException, AccessDeniedException, ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, MediaPackageV2Exception Attaches an IAM policy to the specified channel. With policies, you can specify who has access to AWS resources and what actions they can perform on those resources. You can attach only one policy with each request.
- Parameters:
putChannelPolicyRequest-- Returns:
- Result of the PutChannelPolicy operation returned by the service.
- See Also:
-
putChannelPolicy
default PutChannelPolicyResponse putChannelPolicy(Consumer<PutChannelPolicyRequest.Builder> putChannelPolicyRequest) throws ThrottlingException, ConflictException, InternalServerException, AccessDeniedException, ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, MediaPackageV2Exception Attaches an IAM policy to the specified channel. With policies, you can specify who has access to AWS resources and what actions they can perform on those resources. You can attach only one policy with each request.
This is a convenience which creates an instance of the
PutChannelPolicyRequest.Builderavoiding the need to create one manually viaPutChannelPolicyRequest.builder()- Parameters:
putChannelPolicyRequest- AConsumerthat will call methods onPutChannelPolicyRequest.Builderto create a request.- Returns:
- Result of the PutChannelPolicy operation returned by the service.
- See Also:
-
putOriginEndpointPolicy
default PutOriginEndpointPolicyResponse putOriginEndpointPolicy(PutOriginEndpointPolicyRequest putOriginEndpointPolicyRequest) throws ThrottlingException, ConflictException, InternalServerException, AccessDeniedException, ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, MediaPackageV2Exception Attaches an IAM policy to the specified origin endpoint. You can attach only one policy with each request.
- Parameters:
putOriginEndpointPolicyRequest-- Returns:
- Result of the PutOriginEndpointPolicy operation returned by the service.
- See Also:
-
putOriginEndpointPolicy
default PutOriginEndpointPolicyResponse putOriginEndpointPolicy(Consumer<PutOriginEndpointPolicyRequest.Builder> putOriginEndpointPolicyRequest) throws ThrottlingException, ConflictException, InternalServerException, AccessDeniedException, ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, MediaPackageV2Exception Attaches an IAM policy to the specified origin endpoint. You can attach only one policy with each request.
This is a convenience which creates an instance of the
PutOriginEndpointPolicyRequest.Builderavoiding the need to create one manually viaPutOriginEndpointPolicyRequest.builder()- Parameters:
putOriginEndpointPolicyRequest- AConsumerthat will call methods onPutOriginEndpointPolicyRequest.Builderto create a request.- Returns:
- Result of the PutOriginEndpointPolicy operation returned by the service.
- See Also:
-
tagResource
default TagResourceResponse tagResource(TagResourceRequest tagResourceRequest) throws ValidationException, AwsServiceException, SdkClientException, MediaPackageV2Exception Assigns one of more tags (key-value pairs) to the specified MediaPackage resource.
Tags can help you organize and categorize your resources. You can also use them to scope user permissions, by granting a user permission to access or change only resources with certain tag values. You can use the TagResource operation with a resource that already has tags. If you specify a new tag key for the resource, this tag is appended to the list of tags associated with the resource. If you specify a tag key that is already associated with the resource, the new tag value that you specify replaces the previous value for that tag.
- Parameters:
tagResourceRequest-- Returns:
- Result of the TagResource operation returned by the service.
- See Also:
-
tagResource
default TagResourceResponse tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) throws ValidationException, AwsServiceException, SdkClientException, MediaPackageV2Exception Assigns one of more tags (key-value pairs) to the specified MediaPackage resource.
Tags can help you organize and categorize your resources. You can also use them to scope user permissions, by granting a user permission to access or change only resources with certain tag values. You can use the TagResource operation with a resource that already has tags. If you specify a new tag key for the resource, this tag is appended to the list of tags associated with the resource. If you specify a tag key that is already associated with the resource, the new tag value that you specify replaces the previous value for that tag.
This is a convenience which creates an instance of the
TagResourceRequest.Builderavoiding the need to create one manually viaTagResourceRequest.builder()- Parameters:
tagResourceRequest- AConsumerthat will call methods onTagResourceRequest.Builderto create a request.- Returns:
- Result of the TagResource operation returned by the service.
- See Also:
-
untagResource
default UntagResourceResponse untagResource(UntagResourceRequest untagResourceRequest) throws ValidationException, AwsServiceException, SdkClientException, MediaPackageV2Exception Removes one or more tags from the specified resource.
- Parameters:
untagResourceRequest-- Returns:
- Result of the UntagResource operation returned by the service.
- See Also:
-
untagResource
default UntagResourceResponse untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) throws ValidationException, AwsServiceException, SdkClientException, MediaPackageV2Exception Removes one or more tags from the specified resource.
This is a convenience which creates an instance of the
UntagResourceRequest.Builderavoiding the need to create one manually viaUntagResourceRequest.builder()- Parameters:
untagResourceRequest- AConsumerthat will call methods onUntagResourceRequest.Builderto create a request.- Returns:
- Result of the UntagResource operation returned by the service.
- See Also:
-
updateChannel
default UpdateChannelResponse updateChannel(UpdateChannelRequest updateChannelRequest) throws ThrottlingException, ConflictException, InternalServerException, AccessDeniedException, ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, MediaPackageV2Exception Update the specified channel. You can edit if MediaPackage sends ingest or egress access logs to the CloudWatch log group, if content will be encrypted, the description on a channel, and your channel's policy settings. You can't edit the name of the channel or CloudFront distribution details.
Any edits you make that impact the video output may not be reflected for a few minutes.
- Parameters:
updateChannelRequest-- Returns:
- Result of the UpdateChannel operation returned by the service.
- See Also:
-
updateChannel
default UpdateChannelResponse updateChannel(Consumer<UpdateChannelRequest.Builder> updateChannelRequest) throws ThrottlingException, ConflictException, InternalServerException, AccessDeniedException, ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, MediaPackageV2Exception Update the specified channel. You can edit if MediaPackage sends ingest or egress access logs to the CloudWatch log group, if content will be encrypted, the description on a channel, and your channel's policy settings. You can't edit the name of the channel or CloudFront distribution details.
Any edits you make that impact the video output may not be reflected for a few minutes.
This is a convenience which creates an instance of the
UpdateChannelRequest.Builderavoiding the need to create one manually viaUpdateChannelRequest.builder()- Parameters:
updateChannelRequest- AConsumerthat will call methods onUpdateChannelRequest.Builderto create a request.- Returns:
- Result of the UpdateChannel operation returned by the service.
- See Also:
-
updateChannelGroup
default UpdateChannelGroupResponse updateChannelGroup(UpdateChannelGroupRequest updateChannelGroupRequest) throws ThrottlingException, ConflictException, InternalServerException, AccessDeniedException, ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, MediaPackageV2Exception Update the specified channel group. You can edit the description on a channel group for easier identification later from the AWS Elemental MediaPackage console. You can't edit the name of the channel group.
Any edits you make that impact the video output may not be reflected for a few minutes.
- Parameters:
updateChannelGroupRequest-- Returns:
- Result of the UpdateChannelGroup operation returned by the service.
- See Also:
-
updateChannelGroup
default UpdateChannelGroupResponse updateChannelGroup(Consumer<UpdateChannelGroupRequest.Builder> updateChannelGroupRequest) throws ThrottlingException, ConflictException, InternalServerException, AccessDeniedException, ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, MediaPackageV2Exception Update the specified channel group. You can edit the description on a channel group for easier identification later from the AWS Elemental MediaPackage console. You can't edit the name of the channel group.
Any edits you make that impact the video output may not be reflected for a few minutes.
This is a convenience which creates an instance of the
UpdateChannelGroupRequest.Builderavoiding the need to create one manually viaUpdateChannelGroupRequest.builder()- Parameters:
updateChannelGroupRequest- AConsumerthat will call methods onUpdateChannelGroupRequest.Builderto create a request.- Returns:
- Result of the UpdateChannelGroup operation returned by the service.
- See Also:
-
updateOriginEndpoint
default UpdateOriginEndpointResponse updateOriginEndpoint(UpdateOriginEndpointRequest updateOriginEndpointRequest) throws ThrottlingException, ConflictException, InternalServerException, AccessDeniedException, ValidationException, ResourceNotFoundException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, MediaPackageV2Exception Update the specified origin endpoint. Edit the packaging preferences on an endpoint to optimize the viewing experience. You can't edit the name of the endpoint.
Any edits you make that impact the video output may not be reflected for a few minutes.
- Parameters:
updateOriginEndpointRequest-- Returns:
- Result of the UpdateOriginEndpoint operation returned by the service.
- See Also:
-
updateOriginEndpoint
default UpdateOriginEndpointResponse updateOriginEndpoint(Consumer<UpdateOriginEndpointRequest.Builder> updateOriginEndpointRequest) throws ThrottlingException, ConflictException, InternalServerException, AccessDeniedException, ValidationException, ResourceNotFoundException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, MediaPackageV2Exception Update the specified origin endpoint. Edit the packaging preferences on an endpoint to optimize the viewing experience. You can't edit the name of the endpoint.
Any edits you make that impact the video output may not be reflected for a few minutes.
This is a convenience which creates an instance of the
UpdateOriginEndpointRequest.Builderavoiding the need to create one manually viaUpdateOriginEndpointRequest.builder()- Parameters:
updateOriginEndpointRequest- AConsumerthat will call methods onUpdateOriginEndpointRequest.Builderto create a request.- Returns:
- Result of the UpdateOriginEndpoint operation returned by the service.
- See Also:
-
create
Create aMediaPackageV2Clientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider. -
builder
Create a builder that can be used to configure and create aMediaPackageV2Client. -
serviceMetadata
-
serviceClientConfiguration
Description copied from interface:SdkClientThe SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfiguration- Specified by:
serviceClientConfigurationin interfaceAwsClient- Specified by:
serviceClientConfigurationin interfaceSdkClient- Returns:
- SdkServiceClientConfiguration
-