Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
- Service Configuration
- Errors
- Waiters
- Operations
- StopAccessLogging
- PutLifecyclePolicy
- DeleteLifecyclePolicy
- ListTagsForResource
- CreateContainer
- ListContainers (Paginated)
- DeleteContainer
- PutCorsPolicy
- DeleteCorsPolicy
- StartAccessLogging
- DescribeContainer
- GetMetricPolicy
- DeleteMetricPolicy
- PutMetricPolicy
- GetLifecyclePolicy
- TagResource
- GetCorsPolicy
- UntagResource
- DeleteContainerPolicy
- PutContainerPolicy
- GetContainerPolicy
- Types
Derived from API version 2017-09-01
of the AWS service descriptions, licensed under Apache 2.0.
An AWS Elemental MediaStore container is a namespace that holds folders and objects. You use a container endpoint to create, read, and delete objects.
Synopsis
- defaultService :: Service
- _PolicyNotFoundException :: AsError a => Getting (First ServiceError) a ServiceError
- _CorsPolicyNotFoundException :: AsError a => Getting (First ServiceError) a ServiceError
- _ContainerInUseException :: AsError a => Getting (First ServiceError) a ServiceError
- _InternalServerError :: AsError a => Getting (First ServiceError) a ServiceError
- _ContainerNotFoundException :: AsError a => Getting (First ServiceError) a ServiceError
- _LimitExceededException :: AsError a => Getting (First ServiceError) a ServiceError
- data StopAccessLogging = StopAccessLogging' Text
- newStopAccessLogging :: Text -> StopAccessLogging
- data StopAccessLoggingResponse = StopAccessLoggingResponse' Int
- newStopAccessLoggingResponse :: Int -> StopAccessLoggingResponse
- data PutLifecyclePolicy = PutLifecyclePolicy' Text Text
- newPutLifecyclePolicy :: Text -> Text -> PutLifecyclePolicy
- data PutLifecyclePolicyResponse = PutLifecyclePolicyResponse' Int
- newPutLifecyclePolicyResponse :: Int -> PutLifecyclePolicyResponse
- data DeleteLifecyclePolicy = DeleteLifecyclePolicy' Text
- newDeleteLifecyclePolicy :: Text -> DeleteLifecyclePolicy
- data DeleteLifecyclePolicyResponse = DeleteLifecyclePolicyResponse' Int
- newDeleteLifecyclePolicyResponse :: Int -> DeleteLifecyclePolicyResponse
- data ListTagsForResource = ListTagsForResource' Text
- newListTagsForResource :: Text -> ListTagsForResource
- data ListTagsForResourceResponse = ListTagsForResourceResponse' (Maybe (NonEmpty Tag)) Int
- newListTagsForResourceResponse :: Int -> ListTagsForResourceResponse
- data CreateContainer = CreateContainer' (Maybe (NonEmpty Tag)) Text
- newCreateContainer :: Text -> CreateContainer
- data CreateContainerResponse = CreateContainerResponse' Int Container
- newCreateContainerResponse :: Int -> Container -> CreateContainerResponse
- data ListContainers = ListContainers' (Maybe Text) (Maybe Natural)
- newListContainers :: ListContainers
- data ListContainersResponse = ListContainersResponse' (Maybe Text) Int [Container]
- newListContainersResponse :: Int -> ListContainersResponse
- data DeleteContainer = DeleteContainer' Text
- newDeleteContainer :: Text -> DeleteContainer
- data DeleteContainerResponse = DeleteContainerResponse' Int
- newDeleteContainerResponse :: Int -> DeleteContainerResponse
- data PutCorsPolicy = PutCorsPolicy' Text (NonEmpty CorsRule)
- newPutCorsPolicy :: Text -> NonEmpty CorsRule -> PutCorsPolicy
- data PutCorsPolicyResponse = PutCorsPolicyResponse' Int
- newPutCorsPolicyResponse :: Int -> PutCorsPolicyResponse
- data DeleteCorsPolicy = DeleteCorsPolicy' Text
- newDeleteCorsPolicy :: Text -> DeleteCorsPolicy
- data DeleteCorsPolicyResponse = DeleteCorsPolicyResponse' Int
- newDeleteCorsPolicyResponse :: Int -> DeleteCorsPolicyResponse
- data StartAccessLogging = StartAccessLogging' Text
- newStartAccessLogging :: Text -> StartAccessLogging
- data StartAccessLoggingResponse = StartAccessLoggingResponse' Int
- newStartAccessLoggingResponse :: Int -> StartAccessLoggingResponse
- data DescribeContainer = DescribeContainer' (Maybe Text)
- newDescribeContainer :: DescribeContainer
- data DescribeContainerResponse = DescribeContainerResponse' (Maybe Container) Int
- newDescribeContainerResponse :: Int -> DescribeContainerResponse
- data GetMetricPolicy = GetMetricPolicy' Text
- newGetMetricPolicy :: Text -> GetMetricPolicy
- data GetMetricPolicyResponse = GetMetricPolicyResponse' Int MetricPolicy
- newGetMetricPolicyResponse :: Int -> MetricPolicy -> GetMetricPolicyResponse
- data DeleteMetricPolicy = DeleteMetricPolicy' Text
- newDeleteMetricPolicy :: Text -> DeleteMetricPolicy
- data DeleteMetricPolicyResponse = DeleteMetricPolicyResponse' Int
- newDeleteMetricPolicyResponse :: Int -> DeleteMetricPolicyResponse
- data PutMetricPolicy = PutMetricPolicy' Text MetricPolicy
- newPutMetricPolicy :: Text -> MetricPolicy -> PutMetricPolicy
- data PutMetricPolicyResponse = PutMetricPolicyResponse' Int
- newPutMetricPolicyResponse :: Int -> PutMetricPolicyResponse
- data GetLifecyclePolicy = GetLifecyclePolicy' Text
- newGetLifecyclePolicy :: Text -> GetLifecyclePolicy
- data GetLifecyclePolicyResponse = GetLifecyclePolicyResponse' Int Text
- newGetLifecyclePolicyResponse :: Int -> Text -> GetLifecyclePolicyResponse
- data TagResource = TagResource' Text (NonEmpty Tag)
- newTagResource :: Text -> NonEmpty Tag -> TagResource
- data TagResourceResponse = TagResourceResponse' Int
- newTagResourceResponse :: Int -> TagResourceResponse
- data GetCorsPolicy = GetCorsPolicy' Text
- newGetCorsPolicy :: Text -> GetCorsPolicy
- data GetCorsPolicyResponse = GetCorsPolicyResponse' Int (NonEmpty CorsRule)
- newGetCorsPolicyResponse :: Int -> NonEmpty CorsRule -> GetCorsPolicyResponse
- data UntagResource = UntagResource' Text [Text]
- newUntagResource :: Text -> UntagResource
- data UntagResourceResponse = UntagResourceResponse' Int
- newUntagResourceResponse :: Int -> UntagResourceResponse
- data DeleteContainerPolicy = DeleteContainerPolicy' Text
- newDeleteContainerPolicy :: Text -> DeleteContainerPolicy
- data DeleteContainerPolicyResponse = DeleteContainerPolicyResponse' Int
- newDeleteContainerPolicyResponse :: Int -> DeleteContainerPolicyResponse
- data PutContainerPolicy = PutContainerPolicy' Text Text
- newPutContainerPolicy :: Text -> Text -> PutContainerPolicy
- data PutContainerPolicyResponse = PutContainerPolicyResponse' Int
- newPutContainerPolicyResponse :: Int -> PutContainerPolicyResponse
- data GetContainerPolicy = GetContainerPolicy' Text
- newGetContainerPolicy :: Text -> GetContainerPolicy
- data GetContainerPolicyResponse = GetContainerPolicyResponse' Int Text
- newGetContainerPolicyResponse :: Int -> Text -> GetContainerPolicyResponse
- newtype ContainerLevelMetrics where
- newtype ContainerStatus where
- ContainerStatus' { }
- pattern ContainerStatus_ACTIVE :: ContainerStatus
- pattern ContainerStatus_CREATING :: ContainerStatus
- pattern ContainerStatus_DELETING :: ContainerStatus
- newtype MethodName where
- MethodName' { }
- pattern MethodName_DELETE :: MethodName
- pattern MethodName_GET :: MethodName
- pattern MethodName_HEAD :: MethodName
- pattern MethodName_PUT :: MethodName
- data Container = Container' (Maybe POSIX) (Maybe ContainerStatus) (Maybe Bool) (Maybe Text) (Maybe Text) (Maybe Text)
- newContainer :: Container
- data CorsRule = CorsRule' (Maybe (NonEmpty MethodName)) (Maybe Natural) (Maybe [Text]) (NonEmpty Text) [Text]
- newCorsRule :: NonEmpty Text -> CorsRule
- data MetricPolicy = MetricPolicy' (Maybe (NonEmpty MetricPolicyRule)) ContainerLevelMetrics
- newMetricPolicy :: ContainerLevelMetrics -> MetricPolicy
- data MetricPolicyRule = MetricPolicyRule' Text Text
- newMetricPolicyRule :: Text -> Text -> MetricPolicyRule
- data Tag = Tag' (Maybe Text) Text
- newTag :: Text -> Tag
Service Configuration
defaultService :: Service Source #
API version 2017-09-01
of the Amazon Elemental MediaStore SDK configuration.
Errors
Error matchers are designed for use with the functions provided by
Control.Exception.Lens.
This allows catching (and rethrowing) service specific errors returned
by MediaStore
.
PolicyNotFoundException
_PolicyNotFoundException :: AsError a => Getting (First ServiceError) a ServiceError Source #
The policy that you specified in the request does not exist.
CorsPolicyNotFoundException
_CorsPolicyNotFoundException :: AsError a => Getting (First ServiceError) a ServiceError Source #
The CORS policy that you specified in the request does not exist.
ContainerInUseException
_ContainerInUseException :: AsError a => Getting (First ServiceError) a ServiceError Source #
The container that you specified in the request already exists or is being updated.
InternalServerError
_InternalServerError :: AsError a => Getting (First ServiceError) a ServiceError Source #
The service is temporarily unavailable.
ContainerNotFoundException
_ContainerNotFoundException :: AsError a => Getting (First ServiceError) a ServiceError Source #
The container that you specified in the request does not exist.
LimitExceededException
_LimitExceededException :: AsError a => Getting (First ServiceError) a ServiceError Source #
A service limit has been exceeded.
Waiters
Waiters poll by repeatedly sending a request until some remote success condition
configured by the Wait
specification is fulfilled. The Wait
specification
determines how many attempts should be made, in addition to delay and retry strategies.
Operations
Some AWS operations return results that are incomplete and require subsequent
requests in order to obtain the entire result set. The process of sending
subsequent requests to continue where a previous request left off is called
pagination. For example, the ListObjects
operation of Amazon S3 returns up to
1000 objects at a time, and you must send subsequent requests with the
appropriate Marker in order to retrieve the next page of results.
Operations that have an AWSPager
instance can transparently perform subsequent
requests, correctly setting Markers and other request facets to iterate through
the entire result set of a truncated API operation. Operations which support
this have an additional note in the documentation.
Many operations have the ability to filter results on the server side. See the individual operation parameters for details.
StopAccessLogging
data StopAccessLogging Source #
See: newStopAccessLogging
smart constructor.
Instances
Create a value of StopAccessLogging
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:containerName:StopAccessLogging'
, stopAccessLogging_containerName
- The name of the container that you want to stop access logging on.
data StopAccessLoggingResponse Source #
See: newStopAccessLoggingResponse
smart constructor.
Instances
newStopAccessLoggingResponse Source #
Create a value of StopAccessLoggingResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:httpStatus:StopAccessLoggingResponse'
, stopAccessLoggingResponse_httpStatus
- The response's http status code.
PutLifecyclePolicy
data PutLifecyclePolicy Source #
See: newPutLifecyclePolicy
smart constructor.
Instances
newPutLifecyclePolicy Source #
:: Text | |
-> Text | |
-> PutLifecyclePolicy |
Create a value of PutLifecyclePolicy
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:containerName:PutLifecyclePolicy'
, putLifecyclePolicy_containerName
- The name of the container that you want to assign the object lifecycle
policy to.
$sel:lifecyclePolicy:PutLifecyclePolicy'
, putLifecyclePolicy_lifecyclePolicy
- The object lifecycle policy to apply to the container.
data PutLifecyclePolicyResponse Source #
See: newPutLifecyclePolicyResponse
smart constructor.
Instances
newPutLifecyclePolicyResponse Source #
Create a value of PutLifecyclePolicyResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:httpStatus:PutLifecyclePolicyResponse'
, putLifecyclePolicyResponse_httpStatus
- The response's http status code.
DeleteLifecyclePolicy
data DeleteLifecyclePolicy Source #
See: newDeleteLifecyclePolicy
smart constructor.
Instances
newDeleteLifecyclePolicy Source #
Create a value of DeleteLifecyclePolicy
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:containerName:DeleteLifecyclePolicy'
, deleteLifecyclePolicy_containerName
- The name of the container that holds the object lifecycle policy.
data DeleteLifecyclePolicyResponse Source #
See: newDeleteLifecyclePolicyResponse
smart constructor.
Instances
newDeleteLifecyclePolicyResponse Source #
Create a value of DeleteLifecyclePolicyResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:httpStatus:DeleteLifecyclePolicyResponse'
, deleteLifecyclePolicyResponse_httpStatus
- The response's http status code.
ListTagsForResource
data ListTagsForResource Source #
See: newListTagsForResource
smart constructor.
Instances
newListTagsForResource Source #
Create a value of ListTagsForResource
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:resource:ListTagsForResource'
, listTagsForResource_resource
- The Amazon Resource Name (ARN) for the container.
data ListTagsForResourceResponse Source #
See: newListTagsForResourceResponse
smart constructor.
Instances
newListTagsForResourceResponse Source #
Create a value of ListTagsForResourceResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:tags:ListTagsForResourceResponse'
, listTagsForResourceResponse_tags
- An array of key:value pairs that are assigned to the container.
$sel:httpStatus:ListTagsForResourceResponse'
, listTagsForResourceResponse_httpStatus
- The response's http status code.
CreateContainer
data CreateContainer Source #
See: newCreateContainer
smart constructor.
Instances
Create a value of CreateContainer
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:tags:CreateContainer'
, createContainer_tags
- An array of key:value pairs that you define. These values can be
anything that you want. Typically, the tag key represents a category
(such as "environment") and the tag value represents a specific value
within that category (such as "test," "development," or
"production"). You can add up to 50 tags to each container. For more
information about tagging, including naming and usage conventions, see
Tagging Resources in MediaStore.
$sel:containerName:CreateContainer'
, createContainer_containerName
- The name for the container. The name must be from 1 to 255 characters.
Container names must be unique to your AWS account within a specific
region. As an example, you could create a container named movies
in
every region, as long as you don’t have an existing container with that
name.
data CreateContainerResponse Source #
See: newCreateContainerResponse
smart constructor.
Instances
newCreateContainerResponse Source #
:: Int | |
-> Container | |
-> CreateContainerResponse |
Create a value of CreateContainerResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:httpStatus:CreateContainerResponse'
, createContainerResponse_httpStatus
- The response's http status code.
$sel:container:CreateContainerResponse'
, createContainerResponse_container
- ContainerARN: The Amazon Resource Name (ARN) of the newly created
container. The ARN has the following format: arn:aws:<region>:<account
that owns this container>:container/<name of container>. For example:
arn:aws:mediastore:us-west-2:111122223333:container/movies
ContainerName: The container name as specified in the request.
CreationTime: Unix time stamp.
Status: The status of container creation or deletion. The status is one
of the following: CREATING
, ACTIVE
, or DELETING
. While the service
is creating the container, the status is CREATING
. When an endpoint is
available, the status changes to ACTIVE
.
The return value does not include the container's endpoint. To make downstream requests, you must obtain this value by using DescribeContainer or ListContainers.
ListContainers (Paginated)
data ListContainers Source #
See: newListContainers
smart constructor.
Instances
newListContainers :: ListContainers Source #
Create a value of ListContainers
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:nextToken:ListContainers'
, listContainers_nextToken
- Only if you used MaxResults
in the first command, enter the token
(which was included in the previous response) to obtain the next set of
containers. This token is included in a response only if there actually
are more containers to list.
$sel:maxResults:ListContainers'
, listContainers_maxResults
- Enter the maximum number of containers in the response. Use from 1 to
255 characters.
data ListContainersResponse Source #
See: newListContainersResponse
smart constructor.
Instances
newListContainersResponse Source #
Create a value of ListContainersResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:nextToken:ListContainers'
, listContainersResponse_nextToken
- NextToken
is the token to use in the next call to ListContainers
.
This token is returned only if you included the MaxResults
tag in the
original command, and only if there are still containers to return.
$sel:httpStatus:ListContainersResponse'
, listContainersResponse_httpStatus
- The response's http status code.
$sel:containers:ListContainersResponse'
, listContainersResponse_containers
- The names of the containers.
DeleteContainer
data DeleteContainer Source #
See: newDeleteContainer
smart constructor.
Instances
Create a value of DeleteContainer
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:containerName:DeleteContainer'
, deleteContainer_containerName
- The name of the container to delete.
data DeleteContainerResponse Source #
See: newDeleteContainerResponse
smart constructor.
Instances
newDeleteContainerResponse Source #
Create a value of DeleteContainerResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:httpStatus:DeleteContainerResponse'
, deleteContainerResponse_httpStatus
- The response's http status code.
PutCorsPolicy
data PutCorsPolicy Source #
See: newPutCorsPolicy
smart constructor.
Instances
:: Text | |
-> NonEmpty CorsRule | |
-> PutCorsPolicy |
Create a value of PutCorsPolicy
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:containerName:PutCorsPolicy'
, putCorsPolicy_containerName
- The name of the container that you want to assign the CORS policy to.
$sel:corsPolicy:PutCorsPolicy'
, putCorsPolicy_corsPolicy
- The CORS policy to apply to the container.
data PutCorsPolicyResponse Source #
See: newPutCorsPolicyResponse
smart constructor.
Instances
newPutCorsPolicyResponse Source #
Create a value of PutCorsPolicyResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:httpStatus:PutCorsPolicyResponse'
, putCorsPolicyResponse_httpStatus
- The response's http status code.
DeleteCorsPolicy
data DeleteCorsPolicy Source #
See: newDeleteCorsPolicy
smart constructor.
Instances
Create a value of DeleteCorsPolicy
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:containerName:DeleteCorsPolicy'
, deleteCorsPolicy_containerName
- The name of the container to remove the policy from.
data DeleteCorsPolicyResponse Source #
See: newDeleteCorsPolicyResponse
smart constructor.
Instances
newDeleteCorsPolicyResponse Source #
Create a value of DeleteCorsPolicyResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:httpStatus:DeleteCorsPolicyResponse'
, deleteCorsPolicyResponse_httpStatus
- The response's http status code.
StartAccessLogging
data StartAccessLogging Source #
See: newStartAccessLogging
smart constructor.
Instances
newStartAccessLogging Source #
Create a value of StartAccessLogging
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:containerName:StartAccessLogging'
, startAccessLogging_containerName
- The name of the container that you want to start access logging on.
data StartAccessLoggingResponse Source #
See: newStartAccessLoggingResponse
smart constructor.
Instances
newStartAccessLoggingResponse Source #
Create a value of StartAccessLoggingResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:httpStatus:StartAccessLoggingResponse'
, startAccessLoggingResponse_httpStatus
- The response's http status code.
DescribeContainer
data DescribeContainer Source #
See: newDescribeContainer
smart constructor.
Instances
newDescribeContainer :: DescribeContainer Source #
Create a value of DescribeContainer
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:containerName:DescribeContainer'
, describeContainer_containerName
- The name of the container to query.
data DescribeContainerResponse Source #
See: newDescribeContainerResponse
smart constructor.
Instances
newDescribeContainerResponse Source #
Create a value of DescribeContainerResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:container:DescribeContainerResponse'
, describeContainerResponse_container
- The name of the queried container.
$sel:httpStatus:DescribeContainerResponse'
, describeContainerResponse_httpStatus
- The response's http status code.
GetMetricPolicy
data GetMetricPolicy Source #
See: newGetMetricPolicy
smart constructor.
Instances
Create a value of GetMetricPolicy
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:containerName:GetMetricPolicy'
, getMetricPolicy_containerName
- The name of the container that is associated with the metric policy.
data GetMetricPolicyResponse Source #
See: newGetMetricPolicyResponse
smart constructor.
Instances
newGetMetricPolicyResponse Source #
Create a value of GetMetricPolicyResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:httpStatus:GetMetricPolicyResponse'
, getMetricPolicyResponse_httpStatus
- The response's http status code.
$sel:metricPolicy:GetMetricPolicyResponse'
, getMetricPolicyResponse_metricPolicy
- The metric policy that is associated with the specific container.
DeleteMetricPolicy
data DeleteMetricPolicy Source #
See: newDeleteMetricPolicy
smart constructor.
Instances
newDeleteMetricPolicy Source #
Create a value of DeleteMetricPolicy
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:containerName:DeleteMetricPolicy'
, deleteMetricPolicy_containerName
- The name of the container that is associated with the metric policy that
you want to delete.
data DeleteMetricPolicyResponse Source #
See: newDeleteMetricPolicyResponse
smart constructor.
Instances
newDeleteMetricPolicyResponse Source #
Create a value of DeleteMetricPolicyResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:httpStatus:DeleteMetricPolicyResponse'
, deleteMetricPolicyResponse_httpStatus
- The response's http status code.
PutMetricPolicy
data PutMetricPolicy Source #
See: newPutMetricPolicy
smart constructor.
Instances
:: Text | |
-> MetricPolicy | |
-> PutMetricPolicy |
Create a value of PutMetricPolicy
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:containerName:PutMetricPolicy'
, putMetricPolicy_containerName
- The name of the container that you want to add the metric policy to.
$sel:metricPolicy:PutMetricPolicy'
, putMetricPolicy_metricPolicy
- The metric policy that you want to associate with the container. In the
policy, you must indicate whether you want MediaStore to send
container-level metrics. You can also include up to five rules to define
groups of objects that you want MediaStore to send object-level metrics
for. If you include rules in the policy, construct each rule with both
of the following:
- An object group that defines which objects to include in the group. The definition can be a path or a file name, but it can't have more than 900 characters. Valid characters are: a-z, A-Z, 0-9, _ (underscore), = (equal), : (colon), . (period), - (hyphen), ~ (tilde), / (forward slash), and * (asterisk). Wildcards (*) are acceptable.
- An object group name that allows you to refer to the object group. The name can't have more than 30 characters. Valid characters are: a-z, A-Z, 0-9, and _ (underscore).
data PutMetricPolicyResponse Source #
See: newPutMetricPolicyResponse
smart constructor.
Instances
newPutMetricPolicyResponse Source #
Create a value of PutMetricPolicyResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:httpStatus:PutMetricPolicyResponse'
, putMetricPolicyResponse_httpStatus
- The response's http status code.
GetLifecyclePolicy
data GetLifecyclePolicy Source #
See: newGetLifecyclePolicy
smart constructor.
Instances
newGetLifecyclePolicy Source #
Create a value of GetLifecyclePolicy
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:containerName:GetLifecyclePolicy'
, getLifecyclePolicy_containerName
- The name of the container that the object lifecycle policy is assigned
to.
data GetLifecyclePolicyResponse Source #
See: newGetLifecyclePolicyResponse
smart constructor.
Instances
newGetLifecyclePolicyResponse Source #
:: Int | |
-> Text | |
-> GetLifecyclePolicyResponse |
Create a value of GetLifecyclePolicyResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:httpStatus:GetLifecyclePolicyResponse'
, getLifecyclePolicyResponse_httpStatus
- The response's http status code.
$sel:lifecyclePolicy:GetLifecyclePolicyResponse'
, getLifecyclePolicyResponse_lifecyclePolicy
- The object lifecycle policy that is assigned to the container.
TagResource
data TagResource Source #
See: newTagResource
smart constructor.
Instances
Create a value of TagResource
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:resource:TagResource'
, tagResource_resource
- The Amazon Resource Name (ARN) for the container.
$sel:tags:TagResource'
, tagResource_tags
- An array of key:value pairs that you want to add to the container. You
need to specify only the tags that you want to add or update. For
example, suppose a container already has two tags (customer:CompanyA and
priority:High). You want to change the priority tag and also add a third
tag (type:Contract). For TagResource, you specify the following tags:
priority:Medium, type:Contract. The result is that your container has
three tags: customer:CompanyA, priority:Medium, and type:Contract.
data TagResourceResponse Source #
See: newTagResourceResponse
smart constructor.
Instances
newTagResourceResponse Source #
Create a value of TagResourceResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:httpStatus:TagResourceResponse'
, tagResourceResponse_httpStatus
- The response's http status code.
GetCorsPolicy
data GetCorsPolicy Source #
See: newGetCorsPolicy
smart constructor.
Instances
Create a value of GetCorsPolicy
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:containerName:GetCorsPolicy'
, getCorsPolicy_containerName
- The name of the container that the policy is assigned to.
data GetCorsPolicyResponse Source #
See: newGetCorsPolicyResponse
smart constructor.
Instances
newGetCorsPolicyResponse Source #
:: Int | |
-> NonEmpty CorsRule | |
-> GetCorsPolicyResponse |
Create a value of GetCorsPolicyResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:httpStatus:GetCorsPolicyResponse'
, getCorsPolicyResponse_httpStatus
- The response's http status code.
$sel:corsPolicy:GetCorsPolicyResponse'
, getCorsPolicyResponse_corsPolicy
- The CORS policy assigned to the container.
UntagResource
data UntagResource Source #
See: newUntagResource
smart constructor.
Instances
Create a value of UntagResource
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:resource:UntagResource'
, untagResource_resource
- The Amazon Resource Name (ARN) for the container.
$sel:tagKeys:UntagResource'
, untagResource_tagKeys
- A comma-separated list of keys for tags that you want to remove from the
container. For example, if your container has two tags
(customer:CompanyA and priority:High) and you want to remove one of the
tags (priority:High), you specify the key for the tag that you want to
remove (priority).
data UntagResourceResponse Source #
See: newUntagResourceResponse
smart constructor.
Instances
newUntagResourceResponse Source #
Create a value of UntagResourceResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:httpStatus:UntagResourceResponse'
, untagResourceResponse_httpStatus
- The response's http status code.
DeleteContainerPolicy
data DeleteContainerPolicy Source #
See: newDeleteContainerPolicy
smart constructor.
Instances
newDeleteContainerPolicy Source #
Create a value of DeleteContainerPolicy
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:containerName:DeleteContainerPolicy'
, deleteContainerPolicy_containerName
- The name of the container that holds the policy.
data DeleteContainerPolicyResponse Source #
See: newDeleteContainerPolicyResponse
smart constructor.
Instances
newDeleteContainerPolicyResponse Source #
Create a value of DeleteContainerPolicyResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:httpStatus:DeleteContainerPolicyResponse'
, deleteContainerPolicyResponse_httpStatus
- The response's http status code.
PutContainerPolicy
data PutContainerPolicy Source #
See: newPutContainerPolicy
smart constructor.
Instances
newPutContainerPolicy Source #
:: Text | |
-> Text | |
-> PutContainerPolicy |
Create a value of PutContainerPolicy
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:containerName:PutContainerPolicy'
, putContainerPolicy_containerName
- The name of the container.
$sel:policy:PutContainerPolicy'
, putContainerPolicy_policy
- The contents of the policy, which includes the following:
- One
Version
tag - One
Statement
tag that contains the standard tags for the policy.
data PutContainerPolicyResponse Source #
See: newPutContainerPolicyResponse
smart constructor.
Instances
newPutContainerPolicyResponse Source #
Create a value of PutContainerPolicyResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:httpStatus:PutContainerPolicyResponse'
, putContainerPolicyResponse_httpStatus
- The response's http status code.
GetContainerPolicy
data GetContainerPolicy Source #
See: newGetContainerPolicy
smart constructor.
Instances
newGetContainerPolicy Source #
Create a value of GetContainerPolicy
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:containerName:GetContainerPolicy'
, getContainerPolicy_containerName
- The name of the container.
data GetContainerPolicyResponse Source #
See: newGetContainerPolicyResponse
smart constructor.
Instances
newGetContainerPolicyResponse Source #
:: Int | |
-> Text | |
-> GetContainerPolicyResponse |
Create a value of GetContainerPolicyResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:httpStatus:GetContainerPolicyResponse'
, getContainerPolicyResponse_httpStatus
- The response's http status code.
$sel:policy:GetContainerPolicyResponse'
, getContainerPolicyResponse_policy
- The contents of the access policy.
Types
ContainerLevelMetrics
newtype ContainerLevelMetrics Source #
pattern ContainerLevelMetrics_DISABLED :: ContainerLevelMetrics | |
pattern ContainerLevelMetrics_ENABLED :: ContainerLevelMetrics |
Instances
ContainerStatus
newtype ContainerStatus Source #
pattern ContainerStatus_ACTIVE :: ContainerStatus | |
pattern ContainerStatus_CREATING :: ContainerStatus | |
pattern ContainerStatus_DELETING :: ContainerStatus |
Instances
MethodName
newtype MethodName Source #
pattern MethodName_DELETE :: MethodName | |
pattern MethodName_GET :: MethodName | |
pattern MethodName_HEAD :: MethodName | |
pattern MethodName_PUT :: MethodName |
Instances
Container
This section describes operations that you can perform on an AWS Elemental MediaStore container.
See: newContainer
smart constructor.
Container' (Maybe POSIX) (Maybe ContainerStatus) (Maybe Bool) (Maybe Text) (Maybe Text) (Maybe Text) |
Instances
newContainer :: Container Source #
Create a value of Container
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:creationTime:Container'
, container_creationTime
- Unix timestamp.
$sel:status:Container'
, container_status
- The status of container creation or deletion. The status is one of the
following: CREATING
, ACTIVE
, or DELETING
. While the service is
creating the container, the status is CREATING
. When the endpoint is
available, the status changes to ACTIVE
.
$sel:accessLoggingEnabled:Container'
, container_accessLoggingEnabled
- The state of access logging on the container. This value is false
by
default, indicating that AWS Elemental MediaStore does not send access
logs to Amazon CloudWatch Logs. When you enable access logging on the
container, MediaStore changes this value to true
, indicating that the
service delivers access logs for objects stored in that container to
CloudWatch Logs.
$sel:arn:Container'
, container_arn
- The Amazon Resource Name (ARN) of the container. The ARN has the
following format:
arn:aws:<region>:<account that owns this container>:container/<name of container>
For example: arn:aws:mediastore:us-west-2:111122223333:container/movies
$sel:name:Container'
, container_name
- The name of the container.
$sel:endpoint:Container'
, container_endpoint
- The DNS endpoint of the container. Use the endpoint to identify the
specific container when sending requests to the data plane. The service
assigns this value when the container is created. Once the value has
been assigned, it does not change.
CorsRule
A rule for a CORS policy. You can add up to 100 rules to a CORS policy. If more than one rule applies, the service uses the first applicable rule listed.
See: newCorsRule
smart constructor.
Instances
Create a value of CorsRule
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:allowedMethods:CorsRule'
, corsRule_allowedMethods
- Identifies an HTTP method that the origin that is specified in the rule
is allowed to execute.
Each CORS rule must contain at least one AllowedMethods
and one
AllowedOrigins
element.
$sel:maxAgeSeconds:CorsRule'
, corsRule_maxAgeSeconds
- The time in seconds that your browser caches the preflight response for
the specified resource.
A CORS rule can have only one MaxAgeSeconds
element.
$sel:exposeHeaders:CorsRule'
, corsRule_exposeHeaders
- One or more headers in the response that you want users to be able to
access from their applications (for example, from a JavaScript
XMLHttpRequest
object).
This element is optional for each rule.
$sel:allowedOrigins:CorsRule'
, corsRule_allowedOrigins
- One or more response headers that you want users to be able to access
from their applications (for example, from a JavaScript XMLHttpRequest
object).
Each CORS rule must have at least one AllowedOrigins
element. The
string value can include only one wildcard character (*), for example,
http://*.example.com. Additionally, you can specify only one wildcard
character to allow cross-origin access for all origins.
$sel:allowedHeaders:CorsRule'
, corsRule_allowedHeaders
- Specifies which headers are allowed in a preflight OPTIONS
request
through the Access-Control-Request-Headers
header. Each header name
that is specified in Access-Control-Request-Headers
must have a
corresponding entry in the rule. Only the headers that were requested
are sent back.
This element can contain only one wildcard character (*).
MetricPolicy
data MetricPolicy Source #
The metric policy that is associated with the container. A metric policy allows AWS Elemental MediaStore to send metrics to Amazon CloudWatch. In the policy, you must indicate whether you want MediaStore to send container-level metrics. You can also include rules to define groups of objects that you want MediaStore to send object-level metrics for.
To view examples of how to construct a metric policy for your use case, see Example Metric Policies.
See: newMetricPolicy
smart constructor.
Instances
Create a value of MetricPolicy
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:metricPolicyRules:MetricPolicy'
, metricPolicy_metricPolicyRules
- A parameter that holds an array of rules that enable metrics at the
object level. This parameter is optional, but if you choose to include
it, you must also include at least one rule. By default, you can include
up to five rules. You can also
request a quota increase
to allow up to 300 rules per policy.
$sel:containerLevelMetrics:MetricPolicy'
, metricPolicy_containerLevelMetrics
- A setting to enable or disable metrics at the container level.
MetricPolicyRule
data MetricPolicyRule Source #
A setting that enables metrics at the object level. Each rule contains an object group and an object group name. If the policy includes the MetricPolicyRules parameter, you must include at least one rule. Each metric policy can include up to five rules by default. You can also request a quota increase to allow up to 300 rules per policy.
See: newMetricPolicyRule
smart constructor.
Instances
:: Text | |
-> Text | |
-> MetricPolicyRule |
Create a value of MetricPolicyRule
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:objectGroup:MetricPolicyRule'
, metricPolicyRule_objectGroup
- A path or file name that defines which objects to include in the group.
Wildcards (*) are acceptable.
$sel:objectGroupName:MetricPolicyRule'
, metricPolicyRule_objectGroupName
- A name that allows you to refer to the object group.
Tag
A collection of tags associated with a container. Each tag consists of a key:value pair, which can be anything you define. Typically, the tag key represents a category (such as "environment") and the tag value represents a specific value within that category (such as "test," "development," or "production"). You can add up to 50 tags to each container. For more information about tagging, including naming and usage conventions, see Tagging Resources in MediaStore.
See: newTag
smart constructor.
Instances
Eq Tag Source # | |
Read Tag Source # | |
Show Tag Source # | |
Generic Tag Source # | |
NFData Tag Source # | |
Defined in Amazonka.MediaStore.Types.Tag | |
Hashable Tag Source # | |
Defined in Amazonka.MediaStore.Types.Tag | |
ToJSON Tag Source # | |
Defined in Amazonka.MediaStore.Types.Tag | |
FromJSON Tag Source # | |
type Rep Tag Source # | |
Defined in Amazonka.MediaStore.Types.Tag type Rep Tag = D1 ('MetaData "Tag" "Amazonka.MediaStore.Types.Tag" "libZSservicesZSamazonka-mediastoreZSamazonka-mediastore" 'False) (C1 ('MetaCons "Tag'" 'PrefixI 'True) (S1 ('MetaSel ('Just "value") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "key") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))) |
Create a value of Tag
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:value:Tag'
, tag_value
- Part of the key:value pair that defines a tag. You can use a tag value
to describe a specific value within a category, such as "companyA" or
"companyB." Tag values are case-sensitive.
$sel:key:Tag'
, tag_key
- Part of the key:value pair that defines a tag. You can use a tag key to
describe a category of information, such as "customer." Tag keys are
case-sensitive.