amazonka-mediastore-2.0: Amazon Elemental MediaStore SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.MediaStore.Types

Description

 
Synopsis

Service Configuration

defaultService :: Service Source #

API version 2017-09-01 of the Amazon Elemental MediaStore SDK configuration.

Errors

_ContainerInUseException :: AsError a => Fold a ServiceError Source #

The container that you specified in the request already exists or is being updated.

_ContainerNotFoundException :: AsError a => Fold a ServiceError Source #

The container that you specified in the request does not exist.

_CorsPolicyNotFoundException :: AsError a => Fold a ServiceError Source #

The CORS policy that you specified in the request does not exist.

_InternalServerError :: AsError a => Fold a ServiceError Source #

The service is temporarily unavailable.

_LimitExceededException :: AsError a => Fold a ServiceError Source #

A service limit has been exceeded.

_PolicyNotFoundException :: AsError a => Fold a ServiceError Source #

The policy that you specified in the request does not exist.

ContainerLevelMetrics

newtype ContainerLevelMetrics Source #

Instances

Instances details
FromJSON ContainerLevelMetrics Source # 
Instance details

Defined in Amazonka.MediaStore.Types.ContainerLevelMetrics

FromJSONKey ContainerLevelMetrics Source # 
Instance details

Defined in Amazonka.MediaStore.Types.ContainerLevelMetrics

ToJSON ContainerLevelMetrics Source # 
Instance details

Defined in Amazonka.MediaStore.Types.ContainerLevelMetrics

ToJSONKey ContainerLevelMetrics Source # 
Instance details

Defined in Amazonka.MediaStore.Types.ContainerLevelMetrics

ToByteString ContainerLevelMetrics Source # 
Instance details

Defined in Amazonka.MediaStore.Types.ContainerLevelMetrics

ToHeader ContainerLevelMetrics Source # 
Instance details

Defined in Amazonka.MediaStore.Types.ContainerLevelMetrics

ToLog ContainerLevelMetrics Source # 
Instance details

Defined in Amazonka.MediaStore.Types.ContainerLevelMetrics

ToQuery ContainerLevelMetrics Source # 
Instance details

Defined in Amazonka.MediaStore.Types.ContainerLevelMetrics

FromText ContainerLevelMetrics Source # 
Instance details

Defined in Amazonka.MediaStore.Types.ContainerLevelMetrics

ToText ContainerLevelMetrics Source # 
Instance details

Defined in Amazonka.MediaStore.Types.ContainerLevelMetrics

FromXML ContainerLevelMetrics Source # 
Instance details

Defined in Amazonka.MediaStore.Types.ContainerLevelMetrics

ToXML ContainerLevelMetrics Source # 
Instance details

Defined in Amazonka.MediaStore.Types.ContainerLevelMetrics

Generic ContainerLevelMetrics Source # 
Instance details

Defined in Amazonka.MediaStore.Types.ContainerLevelMetrics

Associated Types

type Rep ContainerLevelMetrics :: Type -> Type #

Read ContainerLevelMetrics Source # 
Instance details

Defined in Amazonka.MediaStore.Types.ContainerLevelMetrics

Show ContainerLevelMetrics Source # 
Instance details

Defined in Amazonka.MediaStore.Types.ContainerLevelMetrics

NFData ContainerLevelMetrics Source # 
Instance details

Defined in Amazonka.MediaStore.Types.ContainerLevelMetrics

Methods

rnf :: ContainerLevelMetrics -> () #

Eq ContainerLevelMetrics Source # 
Instance details

Defined in Amazonka.MediaStore.Types.ContainerLevelMetrics

Ord ContainerLevelMetrics Source # 
Instance details

Defined in Amazonka.MediaStore.Types.ContainerLevelMetrics

Hashable ContainerLevelMetrics Source # 
Instance details

Defined in Amazonka.MediaStore.Types.ContainerLevelMetrics

type Rep ContainerLevelMetrics Source # 
Instance details

Defined in Amazonka.MediaStore.Types.ContainerLevelMetrics

type Rep ContainerLevelMetrics = D1 ('MetaData "ContainerLevelMetrics" "Amazonka.MediaStore.Types.ContainerLevelMetrics" "amazonka-mediastore-2.0-BBurv4SFAUa5diuD6Q5z4D" 'True) (C1 ('MetaCons "ContainerLevelMetrics'" 'PrefixI 'True) (S1 ('MetaSel ('Just "fromContainerLevelMetrics") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

ContainerStatus

newtype ContainerStatus Source #

Constructors

ContainerStatus' 

Instances

Instances details
FromJSON ContainerStatus Source # 
Instance details

Defined in Amazonka.MediaStore.Types.ContainerStatus

FromJSONKey ContainerStatus Source # 
Instance details

Defined in Amazonka.MediaStore.Types.ContainerStatus

ToJSON ContainerStatus Source # 
Instance details

Defined in Amazonka.MediaStore.Types.ContainerStatus

ToJSONKey ContainerStatus Source # 
Instance details

Defined in Amazonka.MediaStore.Types.ContainerStatus

ToByteString ContainerStatus Source # 
Instance details

Defined in Amazonka.MediaStore.Types.ContainerStatus

ToHeader ContainerStatus Source # 
Instance details

Defined in Amazonka.MediaStore.Types.ContainerStatus

ToLog ContainerStatus Source # 
Instance details

Defined in Amazonka.MediaStore.Types.ContainerStatus

ToQuery ContainerStatus Source # 
Instance details

Defined in Amazonka.MediaStore.Types.ContainerStatus

FromText ContainerStatus Source # 
Instance details

Defined in Amazonka.MediaStore.Types.ContainerStatus

ToText ContainerStatus Source # 
Instance details

Defined in Amazonka.MediaStore.Types.ContainerStatus

FromXML ContainerStatus Source # 
Instance details

Defined in Amazonka.MediaStore.Types.ContainerStatus

ToXML ContainerStatus Source # 
Instance details

Defined in Amazonka.MediaStore.Types.ContainerStatus

Methods

toXML :: ContainerStatus -> XML #

Generic ContainerStatus Source # 
Instance details

Defined in Amazonka.MediaStore.Types.ContainerStatus

Associated Types

type Rep ContainerStatus :: Type -> Type #

Read ContainerStatus Source # 
Instance details

Defined in Amazonka.MediaStore.Types.ContainerStatus

Show ContainerStatus Source # 
Instance details

Defined in Amazonka.MediaStore.Types.ContainerStatus

NFData ContainerStatus Source # 
Instance details

Defined in Amazonka.MediaStore.Types.ContainerStatus

Methods

rnf :: ContainerStatus -> () #

Eq ContainerStatus Source # 
Instance details

Defined in Amazonka.MediaStore.Types.ContainerStatus

Ord ContainerStatus Source # 
Instance details

Defined in Amazonka.MediaStore.Types.ContainerStatus

Hashable ContainerStatus Source # 
Instance details

Defined in Amazonka.MediaStore.Types.ContainerStatus

type Rep ContainerStatus Source # 
Instance details

Defined in Amazonka.MediaStore.Types.ContainerStatus

type Rep ContainerStatus = D1 ('MetaData "ContainerStatus" "Amazonka.MediaStore.Types.ContainerStatus" "amazonka-mediastore-2.0-BBurv4SFAUa5diuD6Q5z4D" 'True) (C1 ('MetaCons "ContainerStatus'" 'PrefixI 'True) (S1 ('MetaSel ('Just "fromContainerStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

MethodName

newtype MethodName Source #

Constructors

MethodName' 

Fields

Bundled Patterns

pattern MethodName_DELETE :: MethodName 
pattern MethodName_GET :: MethodName 
pattern MethodName_HEAD :: MethodName 
pattern MethodName_PUT :: MethodName 

Instances

Instances details
FromJSON MethodName Source # 
Instance details

Defined in Amazonka.MediaStore.Types.MethodName

FromJSONKey MethodName Source # 
Instance details

Defined in Amazonka.MediaStore.Types.MethodName

ToJSON MethodName Source # 
Instance details

Defined in Amazonka.MediaStore.Types.MethodName

ToJSONKey MethodName Source # 
Instance details

Defined in Amazonka.MediaStore.Types.MethodName

ToByteString MethodName Source # 
Instance details

Defined in Amazonka.MediaStore.Types.MethodName

ToHeader MethodName Source # 
Instance details

Defined in Amazonka.MediaStore.Types.MethodName

ToLog MethodName Source # 
Instance details

Defined in Amazonka.MediaStore.Types.MethodName

ToQuery MethodName Source # 
Instance details

Defined in Amazonka.MediaStore.Types.MethodName

FromText MethodName Source # 
Instance details

Defined in Amazonka.MediaStore.Types.MethodName

ToText MethodName Source # 
Instance details

Defined in Amazonka.MediaStore.Types.MethodName

Methods

toText :: MethodName -> Text #

FromXML MethodName Source # 
Instance details

Defined in Amazonka.MediaStore.Types.MethodName

ToXML MethodName Source # 
Instance details

Defined in Amazonka.MediaStore.Types.MethodName

Methods

toXML :: MethodName -> XML #

Generic MethodName Source # 
Instance details

Defined in Amazonka.MediaStore.Types.MethodName

Associated Types

type Rep MethodName :: Type -> Type #

Read MethodName Source # 
Instance details

Defined in Amazonka.MediaStore.Types.MethodName

Show MethodName Source # 
Instance details

Defined in Amazonka.MediaStore.Types.MethodName

NFData MethodName Source # 
Instance details

Defined in Amazonka.MediaStore.Types.MethodName

Methods

rnf :: MethodName -> () #

Eq MethodName Source # 
Instance details

Defined in Amazonka.MediaStore.Types.MethodName

Ord MethodName Source # 
Instance details

Defined in Amazonka.MediaStore.Types.MethodName

Hashable MethodName Source # 
Instance details

Defined in Amazonka.MediaStore.Types.MethodName

type Rep MethodName Source # 
Instance details

Defined in Amazonka.MediaStore.Types.MethodName

type Rep MethodName = D1 ('MetaData "MethodName" "Amazonka.MediaStore.Types.MethodName" "amazonka-mediastore-2.0-BBurv4SFAUa5diuD6Q5z4D" 'True) (C1 ('MetaCons "MethodName'" 'PrefixI 'True) (S1 ('MetaSel ('Just "fromMethodName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

Container

data Container Source #

This section describes operations that you can perform on an AWS Elemental MediaStore container.

See: newContainer smart constructor.

Constructors

Container' 

Fields

  • arn :: Maybe Text

    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

  • accessLoggingEnabled :: Maybe Bool

    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.

  • creationTime :: Maybe POSIX

    Unix timestamp.

  • endpoint :: Maybe Text

    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.

  • name :: Maybe Text

    The name of the container.

  • status :: Maybe ContainerStatus

    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.

Instances

Instances details
FromJSON Container Source # 
Instance details

Defined in Amazonka.MediaStore.Types.Container

Generic Container Source # 
Instance details

Defined in Amazonka.MediaStore.Types.Container

Associated Types

type Rep Container :: Type -> Type #

Read Container Source # 
Instance details

Defined in Amazonka.MediaStore.Types.Container

Show Container Source # 
Instance details

Defined in Amazonka.MediaStore.Types.Container

NFData Container Source # 
Instance details

Defined in Amazonka.MediaStore.Types.Container

Methods

rnf :: Container -> () #

Eq Container Source # 
Instance details

Defined in Amazonka.MediaStore.Types.Container

Hashable Container Source # 
Instance details

Defined in Amazonka.MediaStore.Types.Container

type Rep Container Source # 
Instance details

Defined in Amazonka.MediaStore.Types.Container

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: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: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:creationTime:Container', container_creationTime - Unix timestamp.

$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.

$sel:name:Container', container_name - The name of the container.

$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.

container_arn :: Lens' Container (Maybe Text) Source #

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

container_accessLoggingEnabled :: Lens' Container (Maybe Bool) Source #

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.

container_endpoint :: Lens' Container (Maybe Text) Source #

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.

container_name :: Lens' Container (Maybe Text) Source #

The name of the container.

container_status :: Lens' Container (Maybe ContainerStatus) Source #

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.

CorsRule

data CorsRule Source #

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.

Constructors

CorsRule' 

Fields

  • allowedMethods :: Maybe (NonEmpty MethodName)

    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.

  • exposeHeaders :: Maybe [Text]

    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.

  • maxAgeSeconds :: Maybe Natural

    The time in seconds that your browser caches the preflight response for the specified resource.

    A CORS rule can have only one MaxAgeSeconds element.

  • allowedOrigins :: NonEmpty Text

    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.

  • allowedHeaders :: [Text]

    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 (*).

Instances

Instances details
FromJSON CorsRule Source # 
Instance details

Defined in Amazonka.MediaStore.Types.CorsRule

ToJSON CorsRule Source # 
Instance details

Defined in Amazonka.MediaStore.Types.CorsRule

Generic CorsRule Source # 
Instance details

Defined in Amazonka.MediaStore.Types.CorsRule

Associated Types

type Rep CorsRule :: Type -> Type #

Methods

from :: CorsRule -> Rep CorsRule x #

to :: Rep CorsRule x -> CorsRule #

Read CorsRule Source # 
Instance details

Defined in Amazonka.MediaStore.Types.CorsRule

Show CorsRule Source # 
Instance details

Defined in Amazonka.MediaStore.Types.CorsRule

NFData CorsRule Source # 
Instance details

Defined in Amazonka.MediaStore.Types.CorsRule

Methods

rnf :: CorsRule -> () #

Eq CorsRule Source # 
Instance details

Defined in Amazonka.MediaStore.Types.CorsRule

Hashable CorsRule Source # 
Instance details

Defined in Amazonka.MediaStore.Types.CorsRule

Methods

hashWithSalt :: Int -> CorsRule -> Int #

hash :: CorsRule -> Int #

type Rep CorsRule Source # 
Instance details

Defined in Amazonka.MediaStore.Types.CorsRule

type Rep CorsRule = D1 ('MetaData "CorsRule" "Amazonka.MediaStore.Types.CorsRule" "amazonka-mediastore-2.0-BBurv4SFAUa5diuD6Q5z4D" 'False) (C1 ('MetaCons "CorsRule'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "allowedMethods") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (NonEmpty MethodName))) :*: S1 ('MetaSel ('Just "exposeHeaders") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text]))) :*: (S1 ('MetaSel ('Just "maxAgeSeconds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: (S1 ('MetaSel ('Just "allowedOrigins") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (NonEmpty Text)) :*: S1 ('MetaSel ('Just "allowedHeaders") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Text])))))

newCorsRule Source #

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: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: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: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 (*).

corsRule_allowedMethods :: Lens' CorsRule (Maybe (NonEmpty MethodName)) Source #

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.

corsRule_exposeHeaders :: Lens' CorsRule (Maybe [Text]) Source #

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.

corsRule_maxAgeSeconds :: Lens' CorsRule (Maybe Natural) Source #

The time in seconds that your browser caches the preflight response for the specified resource.

A CORS rule can have only one MaxAgeSeconds element.

corsRule_allowedOrigins :: Lens' CorsRule (NonEmpty Text) Source #

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.

corsRule_allowedHeaders :: Lens' CorsRule [Text] Source #

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.

Constructors

MetricPolicy' 

Fields

Instances

Instances details
FromJSON MetricPolicy Source # 
Instance details

Defined in Amazonka.MediaStore.Types.MetricPolicy

ToJSON MetricPolicy Source # 
Instance details

Defined in Amazonka.MediaStore.Types.MetricPolicy

Generic MetricPolicy Source # 
Instance details

Defined in Amazonka.MediaStore.Types.MetricPolicy

Associated Types

type Rep MetricPolicy :: Type -> Type #

Read MetricPolicy Source # 
Instance details

Defined in Amazonka.MediaStore.Types.MetricPolicy

Show MetricPolicy Source # 
Instance details

Defined in Amazonka.MediaStore.Types.MetricPolicy

NFData MetricPolicy Source # 
Instance details

Defined in Amazonka.MediaStore.Types.MetricPolicy

Methods

rnf :: MetricPolicy -> () #

Eq MetricPolicy Source # 
Instance details

Defined in Amazonka.MediaStore.Types.MetricPolicy

Hashable MetricPolicy Source # 
Instance details

Defined in Amazonka.MediaStore.Types.MetricPolicy

type Rep MetricPolicy Source # 
Instance details

Defined in Amazonka.MediaStore.Types.MetricPolicy

type Rep MetricPolicy = D1 ('MetaData "MetricPolicy" "Amazonka.MediaStore.Types.MetricPolicy" "amazonka-mediastore-2.0-BBurv4SFAUa5diuD6Q5z4D" 'False) (C1 ('MetaCons "MetricPolicy'" 'PrefixI 'True) (S1 ('MetaSel ('Just "metricPolicyRules") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (NonEmpty MetricPolicyRule))) :*: S1 ('MetaSel ('Just "containerLevelMetrics") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ContainerLevelMetrics)))

newMetricPolicy Source #

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.

metricPolicy_metricPolicyRules :: Lens' MetricPolicy (Maybe (NonEmpty MetricPolicyRule)) Source #

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.

metricPolicy_containerLevelMetrics :: Lens' MetricPolicy ContainerLevelMetrics Source #

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.

Constructors

MetricPolicyRule' 

Fields

  • objectGroup :: Text

    A path or file name that defines which objects to include in the group. Wildcards (*) are acceptable.

  • objectGroupName :: Text

    A name that allows you to refer to the object group.

Instances

Instances details
FromJSON MetricPolicyRule Source # 
Instance details

Defined in Amazonka.MediaStore.Types.MetricPolicyRule

ToJSON MetricPolicyRule Source # 
Instance details

Defined in Amazonka.MediaStore.Types.MetricPolicyRule

Generic MetricPolicyRule Source # 
Instance details

Defined in Amazonka.MediaStore.Types.MetricPolicyRule

Associated Types

type Rep MetricPolicyRule :: Type -> Type #

Read MetricPolicyRule Source # 
Instance details

Defined in Amazonka.MediaStore.Types.MetricPolicyRule

Show MetricPolicyRule Source # 
Instance details

Defined in Amazonka.MediaStore.Types.MetricPolicyRule

NFData MetricPolicyRule Source # 
Instance details

Defined in Amazonka.MediaStore.Types.MetricPolicyRule

Methods

rnf :: MetricPolicyRule -> () #

Eq MetricPolicyRule Source # 
Instance details

Defined in Amazonka.MediaStore.Types.MetricPolicyRule

Hashable MetricPolicyRule Source # 
Instance details

Defined in Amazonka.MediaStore.Types.MetricPolicyRule

type Rep MetricPolicyRule Source # 
Instance details

Defined in Amazonka.MediaStore.Types.MetricPolicyRule

type Rep MetricPolicyRule = D1 ('MetaData "MetricPolicyRule" "Amazonka.MediaStore.Types.MetricPolicyRule" "amazonka-mediastore-2.0-BBurv4SFAUa5diuD6Q5z4D" 'False) (C1 ('MetaCons "MetricPolicyRule'" 'PrefixI 'True) (S1 ('MetaSel ('Just "objectGroup") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "objectGroupName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newMetricPolicyRule Source #

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.

metricPolicyRule_objectGroup :: Lens' MetricPolicyRule Text Source #

A path or file name that defines which objects to include in the group. Wildcards (*) are acceptable.

metricPolicyRule_objectGroupName :: Lens' MetricPolicyRule Text Source #

A name that allows you to refer to the object group.

Tag

data Tag Source #

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.

Constructors

Tag' 

Fields

  • value :: Maybe Text

    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.

  • key :: Text

    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.

Instances

Instances details
FromJSON Tag Source # 
Instance details

Defined in Amazonka.MediaStore.Types.Tag

ToJSON Tag Source # 
Instance details

Defined in Amazonka.MediaStore.Types.Tag

Generic Tag Source # 
Instance details

Defined in Amazonka.MediaStore.Types.Tag

Associated Types

type Rep Tag :: Type -> Type #

Methods

from :: Tag -> Rep Tag x #

to :: Rep Tag x -> Tag #

Read Tag Source # 
Instance details

Defined in Amazonka.MediaStore.Types.Tag

Show Tag Source # 
Instance details

Defined in Amazonka.MediaStore.Types.Tag

Methods

showsPrec :: Int -> Tag -> ShowS #

show :: Tag -> String #

showList :: [Tag] -> ShowS #

NFData Tag Source # 
Instance details

Defined in Amazonka.MediaStore.Types.Tag

Methods

rnf :: Tag -> () #

Eq Tag Source # 
Instance details

Defined in Amazonka.MediaStore.Types.Tag

Methods

(==) :: Tag -> Tag -> Bool #

(/=) :: Tag -> Tag -> Bool #

Hashable Tag Source # 
Instance details

Defined in Amazonka.MediaStore.Types.Tag

Methods

hashWithSalt :: Int -> Tag -> Int #

hash :: Tag -> Int #

type Rep Tag Source # 
Instance details

Defined in Amazonka.MediaStore.Types.Tag

type Rep Tag = D1 ('MetaData "Tag" "Amazonka.MediaStore.Types.Tag" "amazonka-mediastore-2.0-BBurv4SFAUa5diuD6Q5z4D" '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)))

newTag Source #

Arguments

:: Text

$sel:key:Tag'

-> Tag 

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.

tag_value :: Lens' Tag (Maybe Text) Source #

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.

tag_key :: Lens' Tag Text Source #

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.