mediastore

package
v0.24.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 22, 2020 License: Apache-2.0 Imports: 8 Imported by: 30

Documentation

Overview

Package mediastore provides the client and types for making API requests to MediaStore.

An AWS Elemental MediaStore container is a namespace that holds folders and objects. You use a container endpoint to create, read, and delete objects.

See https://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01 for more information on this service.

See mediastore package documentation for more information. https://docs.aws.amazon.com/sdk-for-go/api/service/mediastore/

Using the Client

To use MediaStore with the SDK use the New function to create a new service client. With that client you can make API requests to the service. These clients are safe to use concurrently.

See the SDK's documentation for more information on how to use the SDK. https://docs.aws.amazon.com/sdk-for-go/api/

See aws.Config documentation for more information on configuring SDK clients. https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config

See the MediaStore client for more information on creating client for this service. https://docs.aws.amazon.com/sdk-for-go/api/service/mediastore/#New

Index

Constants

View Source
const (
	ServiceName = "MediaStore" // Service's name
	ServiceID   = "MediaStore" // Service's identifier
	EndpointsID = "mediastore" // Service's Endpoint identifier
)
View Source
const (

	// ErrCodeContainerInUseException for service response error code
	// "ContainerInUseException".
	//
	// The container that you specified in the request already exists or is being
	// updated.
	ErrCodeContainerInUseException = "ContainerInUseException"

	// ErrCodeContainerNotFoundException for service response error code
	// "ContainerNotFoundException".
	//
	// The container that you specified in the request does not exist.
	ErrCodeContainerNotFoundException = "ContainerNotFoundException"

	// ErrCodeCorsPolicyNotFoundException for service response error code
	// "CorsPolicyNotFoundException".
	//
	// The CORS policy that you specified in the request does not exist.
	ErrCodeCorsPolicyNotFoundException = "CorsPolicyNotFoundException"

	// ErrCodeInternalServerError for service response error code
	// "InternalServerError".
	//
	// The service is temporarily unavailable.
	ErrCodeInternalServerError = "InternalServerError"

	// ErrCodeLimitExceededException for service response error code
	// "LimitExceededException".
	//
	// A service limit has been exceeded.
	ErrCodeLimitExceededException = "LimitExceededException"

	// ErrCodePolicyNotFoundException for service response error code
	// "PolicyNotFoundException".
	//
	// The policy that you specified in the request does not exist.
	ErrCodePolicyNotFoundException = "PolicyNotFoundException"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client added in v0.9.0

type Client struct {
	*aws.Client
}

Client provides the API operation methods for making requests to MediaStore. See this package's package overview docs for details on the service.

The client's methods are safe to use concurrently. It is not safe to modify mutate any of the struct's properties though.

func New

func New(config aws.Config) *Client

New creates a new instance of the client from the provided Config.

Example:

// Create a client from just a config.
svc := mediastore.New(myConfig)

func (*Client) CreateContainerRequest added in v0.9.0

func (c *Client) CreateContainerRequest(input *CreateContainerInput) CreateContainerRequest

CreateContainerRequest returns a request value for making API operation for AWS Elemental MediaStore.

Creates a storage container to hold objects. A container is similar to a bucket in the Amazon S3 service.

// Example sending a request using CreateContainerRequest.
req := client.CreateContainerRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/CreateContainer

func (*Client) DeleteContainerPolicyRequest added in v0.9.0

func (c *Client) DeleteContainerPolicyRequest(input *DeleteContainerPolicyInput) DeleteContainerPolicyRequest

DeleteContainerPolicyRequest returns a request value for making API operation for AWS Elemental MediaStore.

Deletes the access policy that is associated with the specified container.

// Example sending a request using DeleteContainerPolicyRequest.
req := client.DeleteContainerPolicyRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/DeleteContainerPolicy

func (*Client) DeleteContainerRequest added in v0.9.0

func (c *Client) DeleteContainerRequest(input *DeleteContainerInput) DeleteContainerRequest

DeleteContainerRequest returns a request value for making API operation for AWS Elemental MediaStore.

Deletes the specified container. Before you make a DeleteContainer request, delete any objects in the container or in any folders in the container. You can delete only empty containers.

// Example sending a request using DeleteContainerRequest.
req := client.DeleteContainerRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/DeleteContainer

func (*Client) DeleteCorsPolicyRequest added in v0.9.0

func (c *Client) DeleteCorsPolicyRequest(input *DeleteCorsPolicyInput) DeleteCorsPolicyRequest

DeleteCorsPolicyRequest returns a request value for making API operation for AWS Elemental MediaStore.

Deletes the cross-origin resource sharing (CORS) configuration information that is set for the container.

To use this operation, you must have permission to perform the MediaStore:DeleteCorsPolicy action. The container owner has this permission by default and can grant this permission to others.

// Example sending a request using DeleteCorsPolicyRequest.
req := client.DeleteCorsPolicyRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/DeleteCorsPolicy

func (*Client) DeleteLifecyclePolicyRequest added in v0.9.0

func (c *Client) DeleteLifecyclePolicyRequest(input *DeleteLifecyclePolicyInput) DeleteLifecyclePolicyRequest

DeleteLifecyclePolicyRequest returns a request value for making API operation for AWS Elemental MediaStore.

Removes an object lifecycle policy from a container. It takes up to 20 minutes for the change to take effect.

// Example sending a request using DeleteLifecyclePolicyRequest.
req := client.DeleteLifecyclePolicyRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/DeleteLifecyclePolicy

func (*Client) DeleteMetricPolicyRequest added in v0.21.0

func (c *Client) DeleteMetricPolicyRequest(input *DeleteMetricPolicyInput) DeleteMetricPolicyRequest

DeleteMetricPolicyRequest returns a request value for making API operation for AWS Elemental MediaStore.

Deletes the metric policy that is associated with the specified container. If there is no metric policy associated with the container, MediaStore doesn't send metrics to CloudWatch.

// Example sending a request using DeleteMetricPolicyRequest.
req := client.DeleteMetricPolicyRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/DeleteMetricPolicy

func (*Client) DescribeContainerRequest added in v0.9.0

func (c *Client) DescribeContainerRequest(input *DescribeContainerInput) DescribeContainerRequest

DescribeContainerRequest returns a request value for making API operation for AWS Elemental MediaStore.

Retrieves the properties of the requested container. This request is commonly used to retrieve the endpoint of a container. An endpoint is a value assigned by the service when a new container is created. A container's endpoint does not change after it has been assigned. The DescribeContainer request returns a single Container object based on ContainerName. To return all Container objects that are associated with a specified AWS account, use ListContainers.

// Example sending a request using DescribeContainerRequest.
req := client.DescribeContainerRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/DescribeContainer

func (*Client) GetContainerPolicyRequest added in v0.9.0

func (c *Client) GetContainerPolicyRequest(input *GetContainerPolicyInput) GetContainerPolicyRequest

GetContainerPolicyRequest returns a request value for making API operation for AWS Elemental MediaStore.

Retrieves the access policy for the specified container. For information about the data that is included in an access policy, see the AWS Identity and Access Management User Guide (https://aws.amazon.com/documentation/iam/).

// Example sending a request using GetContainerPolicyRequest.
req := client.GetContainerPolicyRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/GetContainerPolicy

func (*Client) GetCorsPolicyRequest added in v0.9.0

func (c *Client) GetCorsPolicyRequest(input *GetCorsPolicyInput) GetCorsPolicyRequest

GetCorsPolicyRequest returns a request value for making API operation for AWS Elemental MediaStore.

Returns the cross-origin resource sharing (CORS) configuration information that is set for the container.

To use this operation, you must have permission to perform the MediaStore:GetCorsPolicy action. By default, the container owner has this permission and can grant it to others.

// Example sending a request using GetCorsPolicyRequest.
req := client.GetCorsPolicyRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/GetCorsPolicy

func (*Client) GetLifecyclePolicyRequest added in v0.9.0

func (c *Client) GetLifecyclePolicyRequest(input *GetLifecyclePolicyInput) GetLifecyclePolicyRequest

GetLifecyclePolicyRequest returns a request value for making API operation for AWS Elemental MediaStore.

Retrieves the object lifecycle policy that is assigned to a container.

// Example sending a request using GetLifecyclePolicyRequest.
req := client.GetLifecyclePolicyRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/GetLifecyclePolicy

func (*Client) GetMetricPolicyRequest added in v0.21.0

func (c *Client) GetMetricPolicyRequest(input *GetMetricPolicyInput) GetMetricPolicyRequest

GetMetricPolicyRequest returns a request value for making API operation for AWS Elemental MediaStore.

Returns the metric policy for the specified container.

// Example sending a request using GetMetricPolicyRequest.
req := client.GetMetricPolicyRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/GetMetricPolicy

func (*Client) ListContainersRequest added in v0.9.0

func (c *Client) ListContainersRequest(input *ListContainersInput) ListContainersRequest

ListContainersRequest returns a request value for making API operation for AWS Elemental MediaStore.

Lists the properties of all containers in AWS Elemental MediaStore.

You can query to receive all the containers in one response. Or you can include the MaxResults parameter to receive a limited number of containers in each response. In this case, the response includes a token. To get the next set of containers, send the command again, this time with the NextToken parameter (with the returned token as its value). The next set of responses appears, with a token if there are still more containers to receive.

See also DescribeContainer, which gets the properties of one container.

// Example sending a request using ListContainersRequest.
req := client.ListContainersRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/ListContainers

func (*Client) ListTagsForResourceRequest added in v0.10.0

func (c *Client) ListTagsForResourceRequest(input *ListTagsForResourceInput) ListTagsForResourceRequest

ListTagsForResourceRequest returns a request value for making API operation for AWS Elemental MediaStore.

Returns a list of the tags assigned to the specified container.

// Example sending a request using ListTagsForResourceRequest.
req := client.ListTagsForResourceRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/ListTagsForResource

func (*Client) PutContainerPolicyRequest added in v0.9.0

func (c *Client) PutContainerPolicyRequest(input *PutContainerPolicyInput) PutContainerPolicyRequest

PutContainerPolicyRequest returns a request value for making API operation for AWS Elemental MediaStore.

Creates an access policy for the specified container to restrict the users and clients that can access it. For information about the data that is included in an access policy, see the AWS Identity and Access Management User Guide (https://aws.amazon.com/documentation/iam/).

For this release of the REST API, you can create only one policy for a container. If you enter PutContainerPolicy twice, the second command modifies the existing policy.

// Example sending a request using PutContainerPolicyRequest.
req := client.PutContainerPolicyRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/PutContainerPolicy

func (*Client) PutCorsPolicyRequest added in v0.9.0

func (c *Client) PutCorsPolicyRequest(input *PutCorsPolicyInput) PutCorsPolicyRequest

PutCorsPolicyRequest returns a request value for making API operation for AWS Elemental MediaStore.

Sets the cross-origin resource sharing (CORS) configuration on a container so that the container can service cross-origin requests. For example, you might want to enable a request whose origin is http://www.example.com to access your AWS Elemental MediaStore container at my.example.container.com by using the browser's XMLHttpRequest capability.

To enable CORS on a container, you attach a CORS policy to the container. In the CORS policy, you configure rules that identify origins and the HTTP methods that can be executed on your container. The policy can contain up to 398,000 characters. 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.

To learn more about CORS, see Cross-Origin Resource Sharing (CORS) in AWS Elemental MediaStore (https://docs.aws.amazon.com/mediastore/latest/ug/cors-policy.html).

// Example sending a request using PutCorsPolicyRequest.
req := client.PutCorsPolicyRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/PutCorsPolicy

func (*Client) PutLifecyclePolicyRequest added in v0.9.0

func (c *Client) PutLifecyclePolicyRequest(input *PutLifecyclePolicyInput) PutLifecyclePolicyRequest

PutLifecyclePolicyRequest returns a request value for making API operation for AWS Elemental MediaStore.

Writes an object lifecycle policy to a container. If the container already has an object lifecycle policy, the service replaces the existing policy with the new policy. It takes up to 20 minutes for the change to take effect.

For information about how to construct an object lifecycle policy, see Components of an Object Lifecycle Policy (https://docs.aws.amazon.com/mediastore/latest/ug/policies-object-lifecycle-components.html).

// Example sending a request using PutLifecyclePolicyRequest.
req := client.PutLifecyclePolicyRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/PutLifecyclePolicy

func (*Client) PutMetricPolicyRequest added in v0.21.0

func (c *Client) PutMetricPolicyRequest(input *PutMetricPolicyInput) PutMetricPolicyRequest

PutMetricPolicyRequest returns a request value for making API operation for AWS Elemental MediaStore.

The metric policy that you want to add to the container. A metric policy allows AWS Elemental MediaStore to send metrics to Amazon CloudWatch. It takes up to 20 minutes for the new policy to take effect.

// Example sending a request using PutMetricPolicyRequest.
req := client.PutMetricPolicyRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/PutMetricPolicy

func (*Client) StartAccessLoggingRequest added in v0.9.0

func (c *Client) StartAccessLoggingRequest(input *StartAccessLoggingInput) StartAccessLoggingRequest

StartAccessLoggingRequest returns a request value for making API operation for AWS Elemental MediaStore.

Starts access logging on the specified container. When you enable access logging on a container, MediaStore delivers access logs for objects stored in that container to Amazon CloudWatch Logs.

// Example sending a request using StartAccessLoggingRequest.
req := client.StartAccessLoggingRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/StartAccessLogging

func (*Client) StopAccessLoggingRequest added in v0.9.0

func (c *Client) StopAccessLoggingRequest(input *StopAccessLoggingInput) StopAccessLoggingRequest

StopAccessLoggingRequest returns a request value for making API operation for AWS Elemental MediaStore.

Stops access logging on the specified container. When you stop access logging on a container, MediaStore stops sending access logs to Amazon CloudWatch Logs. These access logs are not saved and are not retrievable.

// Example sending a request using StopAccessLoggingRequest.
req := client.StopAccessLoggingRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/StopAccessLogging

func (*Client) TagResourceRequest added in v0.10.0

func (c *Client) TagResourceRequest(input *TagResourceInput) TagResourceRequest

TagResourceRequest returns a request value for making API operation for AWS Elemental MediaStore.

Adds tags to the specified AWS Elemental MediaStore container. Tags are key:value pairs that you can associate with AWS resources. For example, the tag key might be "customer" and the tag value might be "companyA." You can specify one or more tags to add to each container. 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 (https://docs.aws.amazon.com/mediastore/latest/ug/tagging.html).

// Example sending a request using TagResourceRequest.
req := client.TagResourceRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/TagResource

func (*Client) UntagResourceRequest added in v0.10.0

func (c *Client) UntagResourceRequest(input *UntagResourceInput) UntagResourceRequest

UntagResourceRequest returns a request value for making API operation for AWS Elemental MediaStore.

Removes tags from the specified container. You can specify one or more tags to remove.

// Example sending a request using UntagResourceRequest.
req := client.UntagResourceRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/UntagResource

type Container

type Container struct {

	// 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
	ARN *string `min:"1" type:"string"`

	// 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.
	AccessLoggingEnabled *bool `type:"boolean"`

	// Unix timestamp.
	CreationTime *time.Time `type:"timestamp"`

	// 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.
	Endpoint *string `min:"1" type:"string"`

	// The name of the container.
	Name *string `min:"1" type:"string"`

	// 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.
	Status ContainerStatus `min:"1" type:"string" enum:"true"`
	// contains filtered or unexported fields
}

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

func (Container) String

func (s Container) String() string

String returns the string representation

type ContainerLevelMetrics added in v0.21.0

type ContainerLevelMetrics string
const (
	ContainerLevelMetricsEnabled  ContainerLevelMetrics = "ENABLED"
	ContainerLevelMetricsDisabled ContainerLevelMetrics = "DISABLED"
)

Enum values for ContainerLevelMetrics

func (ContainerLevelMetrics) MarshalValue added in v0.21.0

func (enum ContainerLevelMetrics) MarshalValue() (string, error)

func (ContainerLevelMetrics) MarshalValueBuf added in v0.21.0

func (enum ContainerLevelMetrics) MarshalValueBuf(b []byte) ([]byte, error)

type ContainerStatus

type ContainerStatus string
const (
	ContainerStatusActive   ContainerStatus = "ACTIVE"
	ContainerStatusCreating ContainerStatus = "CREATING"
	ContainerStatusDeleting ContainerStatus = "DELETING"
)

Enum values for ContainerStatus

func (ContainerStatus) MarshalValue added in v0.3.0

func (enum ContainerStatus) MarshalValue() (string, error)

func (ContainerStatus) MarshalValueBuf added in v0.3.0

func (enum ContainerStatus) MarshalValueBuf(b []byte) ([]byte, error)

type CorsRule added in v0.3.0

type CorsRule struct {

	// 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 (*).
	//
	// AllowedHeaders is a required field
	AllowedHeaders []string `type:"list" required:"true"`

	// 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.
	AllowedMethods []MethodName `min:"1" type:"list"`

	// 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.
	//
	// AllowedOrigins is a required field
	AllowedOrigins []string `min:"1" type:"list" required:"true"`

	// 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.
	ExposeHeaders []string `type:"list"`

	// The time in seconds that your browser caches the preflight response for the
	// specified resource.
	//
	// A CORS rule can have only one MaxAgeSeconds element.
	MaxAgeSeconds *int64 `type:"integer"`
	// contains filtered or unexported fields
}

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.

func (CorsRule) String added in v0.3.0

func (s CorsRule) String() string

String returns the string representation

func (*CorsRule) Validate added in v0.7.0

func (s *CorsRule) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type CreateContainerInput

type CreateContainerInput struct {

	// 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.
	//
	// ContainerName is a required field
	ContainerName *string `min:"1" type:"string" required:"true"`

	// 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 (https://docs.aws.amazon.com/mediastore/latest/ug/tagging.html).
	Tags []Tag `min:"1" type:"list"`
	// contains filtered or unexported fields
}

func (CreateContainerInput) String

func (s CreateContainerInput) String() string

String returns the string representation

func (*CreateContainerInput) Validate

func (s *CreateContainerInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type CreateContainerOutput

type CreateContainerOutput struct {

	// 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.
	//
	// Container is a required field
	Container *Container `type:"structure" required:"true"`
	// contains filtered or unexported fields
}

func (CreateContainerOutput) String

func (s CreateContainerOutput) String() string

String returns the string representation

type CreateContainerRequest

type CreateContainerRequest struct {
	*aws.Request
	Input *CreateContainerInput
	Copy  func(*CreateContainerInput) CreateContainerRequest
}

CreateContainerRequest is the request type for the CreateContainer API operation.

func (CreateContainerRequest) Send

Send marshals and sends the CreateContainer API request.

type CreateContainerResponse added in v0.9.0

type CreateContainerResponse struct {
	*CreateContainerOutput
	// contains filtered or unexported fields
}

CreateContainerResponse is the response type for the CreateContainer API operation.

func (*CreateContainerResponse) SDKResponseMetdata added in v0.9.0

func (r *CreateContainerResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the CreateContainer request.

type DeleteContainerInput

type DeleteContainerInput struct {

	// The name of the container to delete.
	//
	// ContainerName is a required field
	ContainerName *string `min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (DeleteContainerInput) String

func (s DeleteContainerInput) String() string

String returns the string representation

func (*DeleteContainerInput) Validate

func (s *DeleteContainerInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DeleteContainerOutput

type DeleteContainerOutput struct {
	// contains filtered or unexported fields
}

func (DeleteContainerOutput) String

func (s DeleteContainerOutput) String() string

String returns the string representation

type DeleteContainerPolicyInput

type DeleteContainerPolicyInput struct {

	// The name of the container that holds the policy.
	//
	// ContainerName is a required field
	ContainerName *string `min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (DeleteContainerPolicyInput) String

String returns the string representation

func (*DeleteContainerPolicyInput) Validate

func (s *DeleteContainerPolicyInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DeleteContainerPolicyOutput

type DeleteContainerPolicyOutput struct {
	// contains filtered or unexported fields
}

func (DeleteContainerPolicyOutput) String

String returns the string representation

type DeleteContainerPolicyRequest

type DeleteContainerPolicyRequest struct {
	*aws.Request
	Input *DeleteContainerPolicyInput
	Copy  func(*DeleteContainerPolicyInput) DeleteContainerPolicyRequest
}

DeleteContainerPolicyRequest is the request type for the DeleteContainerPolicy API operation.

func (DeleteContainerPolicyRequest) Send

Send marshals and sends the DeleteContainerPolicy API request.

type DeleteContainerPolicyResponse added in v0.9.0

type DeleteContainerPolicyResponse struct {
	*DeleteContainerPolicyOutput
	// contains filtered or unexported fields
}

DeleteContainerPolicyResponse is the response type for the DeleteContainerPolicy API operation.

func (*DeleteContainerPolicyResponse) SDKResponseMetdata added in v0.9.0

func (r *DeleteContainerPolicyResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DeleteContainerPolicy request.

type DeleteContainerRequest

type DeleteContainerRequest struct {
	*aws.Request
	Input *DeleteContainerInput
	Copy  func(*DeleteContainerInput) DeleteContainerRequest
}

DeleteContainerRequest is the request type for the DeleteContainer API operation.

func (DeleteContainerRequest) Send

Send marshals and sends the DeleteContainer API request.

type DeleteContainerResponse added in v0.9.0

type DeleteContainerResponse struct {
	*DeleteContainerOutput
	// contains filtered or unexported fields
}

DeleteContainerResponse is the response type for the DeleteContainer API operation.

func (*DeleteContainerResponse) SDKResponseMetdata added in v0.9.0

func (r *DeleteContainerResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DeleteContainer request.

type DeleteCorsPolicyInput added in v0.3.0

type DeleteCorsPolicyInput struct {

	// The name of the container to remove the policy from.
	//
	// ContainerName is a required field
	ContainerName *string `min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (DeleteCorsPolicyInput) String added in v0.3.0

func (s DeleteCorsPolicyInput) String() string

String returns the string representation

func (*DeleteCorsPolicyInput) Validate added in v0.3.0

func (s *DeleteCorsPolicyInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DeleteCorsPolicyOutput added in v0.3.0

type DeleteCorsPolicyOutput struct {
	// contains filtered or unexported fields
}

func (DeleteCorsPolicyOutput) String added in v0.3.0

func (s DeleteCorsPolicyOutput) String() string

String returns the string representation

type DeleteCorsPolicyRequest added in v0.3.0

type DeleteCorsPolicyRequest struct {
	*aws.Request
	Input *DeleteCorsPolicyInput
	Copy  func(*DeleteCorsPolicyInput) DeleteCorsPolicyRequest
}

DeleteCorsPolicyRequest is the request type for the DeleteCorsPolicy API operation.

func (DeleteCorsPolicyRequest) Send added in v0.3.0

Send marshals and sends the DeleteCorsPolicy API request.

type DeleteCorsPolicyResponse added in v0.9.0

type DeleteCorsPolicyResponse struct {
	*DeleteCorsPolicyOutput
	// contains filtered or unexported fields
}

DeleteCorsPolicyResponse is the response type for the DeleteCorsPolicy API operation.

func (*DeleteCorsPolicyResponse) SDKResponseMetdata added in v0.9.0

func (r *DeleteCorsPolicyResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DeleteCorsPolicy request.

type DeleteLifecyclePolicyInput added in v0.7.0

type DeleteLifecyclePolicyInput struct {

	// The name of the container that holds the object lifecycle policy.
	//
	// ContainerName is a required field
	ContainerName *string `min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (DeleteLifecyclePolicyInput) String added in v0.7.0

String returns the string representation

func (*DeleteLifecyclePolicyInput) Validate added in v0.7.0

func (s *DeleteLifecyclePolicyInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DeleteLifecyclePolicyOutput added in v0.7.0

type DeleteLifecyclePolicyOutput struct {
	// contains filtered or unexported fields
}

func (DeleteLifecyclePolicyOutput) String added in v0.7.0

String returns the string representation

type DeleteLifecyclePolicyRequest added in v0.7.0

type DeleteLifecyclePolicyRequest struct {
	*aws.Request
	Input *DeleteLifecyclePolicyInput
	Copy  func(*DeleteLifecyclePolicyInput) DeleteLifecyclePolicyRequest
}

DeleteLifecyclePolicyRequest is the request type for the DeleteLifecyclePolicy API operation.

func (DeleteLifecyclePolicyRequest) Send added in v0.7.0

Send marshals and sends the DeleteLifecyclePolicy API request.

type DeleteLifecyclePolicyResponse added in v0.9.0

type DeleteLifecyclePolicyResponse struct {
	*DeleteLifecyclePolicyOutput
	// contains filtered or unexported fields
}

DeleteLifecyclePolicyResponse is the response type for the DeleteLifecyclePolicy API operation.

func (*DeleteLifecyclePolicyResponse) SDKResponseMetdata added in v0.9.0

func (r *DeleteLifecyclePolicyResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DeleteLifecyclePolicy request.

type DeleteMetricPolicyInput added in v0.21.0

type DeleteMetricPolicyInput struct {

	// The name of the container that is associated with the metric policy that
	// you want to delete.
	//
	// ContainerName is a required field
	ContainerName *string `min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (DeleteMetricPolicyInput) String added in v0.21.0

func (s DeleteMetricPolicyInput) String() string

String returns the string representation

func (*DeleteMetricPolicyInput) Validate added in v0.21.0

func (s *DeleteMetricPolicyInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DeleteMetricPolicyOutput added in v0.21.0

type DeleteMetricPolicyOutput struct {
	// contains filtered or unexported fields
}

func (DeleteMetricPolicyOutput) String added in v0.21.0

func (s DeleteMetricPolicyOutput) String() string

String returns the string representation

type DeleteMetricPolicyRequest added in v0.21.0

type DeleteMetricPolicyRequest struct {
	*aws.Request
	Input *DeleteMetricPolicyInput
	Copy  func(*DeleteMetricPolicyInput) DeleteMetricPolicyRequest
}

DeleteMetricPolicyRequest is the request type for the DeleteMetricPolicy API operation.

func (DeleteMetricPolicyRequest) Send added in v0.21.0

Send marshals and sends the DeleteMetricPolicy API request.

type DeleteMetricPolicyResponse added in v0.21.0

type DeleteMetricPolicyResponse struct {
	*DeleteMetricPolicyOutput
	// contains filtered or unexported fields
}

DeleteMetricPolicyResponse is the response type for the DeleteMetricPolicy API operation.

func (*DeleteMetricPolicyResponse) SDKResponseMetdata added in v0.21.0

func (r *DeleteMetricPolicyResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DeleteMetricPolicy request.

type DescribeContainerInput

type DescribeContainerInput struct {

	// The name of the container to query.
	ContainerName *string `min:"1" type:"string"`
	// contains filtered or unexported fields
}

func (DescribeContainerInput) String

func (s DescribeContainerInput) String() string

String returns the string representation

func (*DescribeContainerInput) Validate

func (s *DescribeContainerInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DescribeContainerOutput

type DescribeContainerOutput struct {

	// The name of the queried container.
	Container *Container `type:"structure"`
	// contains filtered or unexported fields
}

func (DescribeContainerOutput) String

func (s DescribeContainerOutput) String() string

String returns the string representation

type DescribeContainerRequest

type DescribeContainerRequest struct {
	*aws.Request
	Input *DescribeContainerInput
	Copy  func(*DescribeContainerInput) DescribeContainerRequest
}

DescribeContainerRequest is the request type for the DescribeContainer API operation.

func (DescribeContainerRequest) Send

Send marshals and sends the DescribeContainer API request.

type DescribeContainerResponse added in v0.9.0

type DescribeContainerResponse struct {
	*DescribeContainerOutput
	// contains filtered or unexported fields
}

DescribeContainerResponse is the response type for the DescribeContainer API operation.

func (*DescribeContainerResponse) SDKResponseMetdata added in v0.9.0

func (r *DescribeContainerResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeContainer request.

type GetContainerPolicyInput

type GetContainerPolicyInput struct {

	// The name of the container.
	//
	// ContainerName is a required field
	ContainerName *string `min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (GetContainerPolicyInput) String

func (s GetContainerPolicyInput) String() string

String returns the string representation

func (*GetContainerPolicyInput) Validate

func (s *GetContainerPolicyInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type GetContainerPolicyOutput

type GetContainerPolicyOutput struct {

	// The contents of the access policy.
	//
	// Policy is a required field
	Policy *string `min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (GetContainerPolicyOutput) String

func (s GetContainerPolicyOutput) String() string

String returns the string representation

type GetContainerPolicyRequest

type GetContainerPolicyRequest struct {
	*aws.Request
	Input *GetContainerPolicyInput
	Copy  func(*GetContainerPolicyInput) GetContainerPolicyRequest
}

GetContainerPolicyRequest is the request type for the GetContainerPolicy API operation.

func (GetContainerPolicyRequest) Send

Send marshals and sends the GetContainerPolicy API request.

type GetContainerPolicyResponse added in v0.9.0

type GetContainerPolicyResponse struct {
	*GetContainerPolicyOutput
	// contains filtered or unexported fields
}

GetContainerPolicyResponse is the response type for the GetContainerPolicy API operation.

func (*GetContainerPolicyResponse) SDKResponseMetdata added in v0.9.0

func (r *GetContainerPolicyResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the GetContainerPolicy request.

type GetCorsPolicyInput added in v0.3.0

type GetCorsPolicyInput struct {

	// The name of the container that the policy is assigned to.
	//
	// ContainerName is a required field
	ContainerName *string `min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (GetCorsPolicyInput) String added in v0.3.0

func (s GetCorsPolicyInput) String() string

String returns the string representation

func (*GetCorsPolicyInput) Validate added in v0.3.0

func (s *GetCorsPolicyInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type GetCorsPolicyOutput added in v0.3.0

type GetCorsPolicyOutput struct {

	// The CORS policy assigned to the container.
	//
	// CorsPolicy is a required field
	CorsPolicy []CorsRule `min:"1" type:"list" required:"true"`
	// contains filtered or unexported fields
}

func (GetCorsPolicyOutput) String added in v0.3.0

func (s GetCorsPolicyOutput) String() string

String returns the string representation

type GetCorsPolicyRequest added in v0.3.0

type GetCorsPolicyRequest struct {
	*aws.Request
	Input *GetCorsPolicyInput
	Copy  func(*GetCorsPolicyInput) GetCorsPolicyRequest
}

GetCorsPolicyRequest is the request type for the GetCorsPolicy API operation.

func (GetCorsPolicyRequest) Send added in v0.3.0

Send marshals and sends the GetCorsPolicy API request.

type GetCorsPolicyResponse added in v0.9.0

type GetCorsPolicyResponse struct {
	*GetCorsPolicyOutput
	// contains filtered or unexported fields
}

GetCorsPolicyResponse is the response type for the GetCorsPolicy API operation.

func (*GetCorsPolicyResponse) SDKResponseMetdata added in v0.9.0

func (r *GetCorsPolicyResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the GetCorsPolicy request.

type GetLifecyclePolicyInput added in v0.7.0

type GetLifecyclePolicyInput struct {

	// The name of the container that the object lifecycle policy is assigned to.
	//
	// ContainerName is a required field
	ContainerName *string `min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (GetLifecyclePolicyInput) String added in v0.7.0

func (s GetLifecyclePolicyInput) String() string

String returns the string representation

func (*GetLifecyclePolicyInput) Validate added in v0.7.0

func (s *GetLifecyclePolicyInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type GetLifecyclePolicyOutput added in v0.7.0

type GetLifecyclePolicyOutput struct {

	// The object lifecycle policy that is assigned to the container.
	//
	// LifecyclePolicy is a required field
	LifecyclePolicy *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (GetLifecyclePolicyOutput) String added in v0.7.0

func (s GetLifecyclePolicyOutput) String() string

String returns the string representation

type GetLifecyclePolicyRequest added in v0.7.0

type GetLifecyclePolicyRequest struct {
	*aws.Request
	Input *GetLifecyclePolicyInput
	Copy  func(*GetLifecyclePolicyInput) GetLifecyclePolicyRequest
}

GetLifecyclePolicyRequest is the request type for the GetLifecyclePolicy API operation.

func (GetLifecyclePolicyRequest) Send added in v0.7.0

Send marshals and sends the GetLifecyclePolicy API request.

type GetLifecyclePolicyResponse added in v0.9.0

type GetLifecyclePolicyResponse struct {
	*GetLifecyclePolicyOutput
	// contains filtered or unexported fields
}

GetLifecyclePolicyResponse is the response type for the GetLifecyclePolicy API operation.

func (*GetLifecyclePolicyResponse) SDKResponseMetdata added in v0.9.0

func (r *GetLifecyclePolicyResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the GetLifecyclePolicy request.

type GetMetricPolicyInput added in v0.21.0

type GetMetricPolicyInput struct {

	// The name of the container that is associated with the metric policy.
	//
	// ContainerName is a required field
	ContainerName *string `min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (GetMetricPolicyInput) String added in v0.21.0

func (s GetMetricPolicyInput) String() string

String returns the string representation

func (*GetMetricPolicyInput) Validate added in v0.21.0

func (s *GetMetricPolicyInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type GetMetricPolicyOutput added in v0.21.0

type GetMetricPolicyOutput struct {

	// The metric policy that is associated with the specific container.
	//
	// MetricPolicy is a required field
	MetricPolicy *MetricPolicy `type:"structure" required:"true"`
	// contains filtered or unexported fields
}

func (GetMetricPolicyOutput) String added in v0.21.0

func (s GetMetricPolicyOutput) String() string

String returns the string representation

type GetMetricPolicyRequest added in v0.21.0

type GetMetricPolicyRequest struct {
	*aws.Request
	Input *GetMetricPolicyInput
	Copy  func(*GetMetricPolicyInput) GetMetricPolicyRequest
}

GetMetricPolicyRequest is the request type for the GetMetricPolicy API operation.

func (GetMetricPolicyRequest) Send added in v0.21.0

Send marshals and sends the GetMetricPolicy API request.

type GetMetricPolicyResponse added in v0.21.0

type GetMetricPolicyResponse struct {
	*GetMetricPolicyOutput
	// contains filtered or unexported fields
}

GetMetricPolicyResponse is the response type for the GetMetricPolicy API operation.

func (*GetMetricPolicyResponse) SDKResponseMetdata added in v0.21.0

func (r *GetMetricPolicyResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the GetMetricPolicy request.

type ListContainersInput

type ListContainersInput struct {

	// Enter the maximum number of containers in the response. Use from 1 to 255
	// characters.
	MaxResults *int64 `min:"1" type:"integer"`

	// 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.
	NextToken *string `min:"1" type:"string"`
	// contains filtered or unexported fields
}

func (ListContainersInput) String

func (s ListContainersInput) String() string

String returns the string representation

func (*ListContainersInput) Validate

func (s *ListContainersInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type ListContainersOutput

type ListContainersOutput struct {

	// The names of the containers.
	//
	// Containers is a required field
	Containers []Container `type:"list" required:"true"`

	// 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.
	NextToken *string `min:"1" type:"string"`
	// contains filtered or unexported fields
}

func (ListContainersOutput) String

func (s ListContainersOutput) String() string

String returns the string representation

type ListContainersPaginator added in v0.10.0

type ListContainersPaginator struct {
	aws.Pager
}

ListContainersPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewListContainersPaginator added in v0.10.0

func NewListContainersPaginator(req ListContainersRequest) ListContainersPaginator

NewListContainersRequestPaginator returns a paginator for ListContainers. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

Note: This operation can generate multiple requests to a service.

// Example iterating over pages.
req := client.ListContainersRequest(input)
p := mediastore.NewListContainersRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*ListContainersPaginator) CurrentPage added in v0.10.0

type ListContainersRequest

type ListContainersRequest struct {
	*aws.Request
	Input *ListContainersInput
	Copy  func(*ListContainersInput) ListContainersRequest
}

ListContainersRequest is the request type for the ListContainers API operation.

func (ListContainersRequest) Send

Send marshals and sends the ListContainers API request.

type ListContainersResponse added in v0.9.0

type ListContainersResponse struct {
	*ListContainersOutput
	// contains filtered or unexported fields
}

ListContainersResponse is the response type for the ListContainers API operation.

func (*ListContainersResponse) SDKResponseMetdata added in v0.9.0

func (r *ListContainersResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the ListContainers request.

type ListTagsForResourceInput added in v0.10.0

type ListTagsForResourceInput struct {

	// The Amazon Resource Name (ARN) for the container.
	//
	// Resource is a required field
	Resource *string `min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (ListTagsForResourceInput) String added in v0.10.0

func (s ListTagsForResourceInput) String() string

String returns the string representation

func (*ListTagsForResourceInput) Validate added in v0.10.0

func (s *ListTagsForResourceInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type ListTagsForResourceOutput added in v0.10.0

type ListTagsForResourceOutput struct {

	// An array of key:value pairs that are assigned to the container.
	Tags []Tag `min:"1" type:"list"`
	// contains filtered or unexported fields
}

func (ListTagsForResourceOutput) String added in v0.10.0

func (s ListTagsForResourceOutput) String() string

String returns the string representation

type ListTagsForResourceRequest added in v0.10.0

type ListTagsForResourceRequest struct {
	*aws.Request
	Input *ListTagsForResourceInput
	Copy  func(*ListTagsForResourceInput) ListTagsForResourceRequest
}

ListTagsForResourceRequest is the request type for the ListTagsForResource API operation.

func (ListTagsForResourceRequest) Send added in v0.10.0

Send marshals and sends the ListTagsForResource API request.

type ListTagsForResourceResponse added in v0.10.0

type ListTagsForResourceResponse struct {
	*ListTagsForResourceOutput
	// contains filtered or unexported fields
}

ListTagsForResourceResponse is the response type for the ListTagsForResource API operation.

func (*ListTagsForResourceResponse) SDKResponseMetdata added in v0.10.0

func (r *ListTagsForResourceResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the ListTagsForResource request.

type MethodName added in v0.3.0

type MethodName string
const (
	MethodNamePut    MethodName = "PUT"
	MethodNameGet    MethodName = "GET"
	MethodNameDelete MethodName = "DELETE"
	MethodNameHead   MethodName = "HEAD"
)

Enum values for MethodName

func (MethodName) MarshalValue added in v0.3.0

func (enum MethodName) MarshalValue() (string, error)

func (MethodName) MarshalValueBuf added in v0.3.0

func (enum MethodName) MarshalValueBuf(b []byte) ([]byte, error)

type MetricPolicy added in v0.21.0

type MetricPolicy struct {

	// A setting to enable or disable metrics at the container level.
	//
	// ContainerLevelMetrics is a required field
	ContainerLevelMetrics ContainerLevelMetrics `type:"string" required:"true" enum:"true"`

	// 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 (https://console.aws.amazon.com/servicequotas/home?region=us-east-1#!/services/mediastore/quotas)
	// to allow up to 300 rules per policy.
	MetricPolicyRules []MetricPolicyRule `min:"1" type:"list"`
	// contains filtered or unexported fields
}

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 (https://docs.aws.amazon.com/mediastore/latest/ug/policies-metric-examples.html).

func (MetricPolicy) String added in v0.21.0

func (s MetricPolicy) String() string

String returns the string representation

func (*MetricPolicy) Validate added in v0.21.0

func (s *MetricPolicy) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type MetricPolicyRule added in v0.21.0

type MetricPolicyRule struct {

	// A path or file name that defines which objects to include in the group. Wildcards
	// (*) are acceptable.
	//
	// ObjectGroup is a required field
	ObjectGroup *string `min:"1" type:"string" required:"true"`

	// A name that allows you to refer to the object group.
	//
	// ObjectGroupName is a required field
	ObjectGroupName *string `min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

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 (https://console.aws.amazon.com/servicequotas/home?region=us-east-1#!/services/mediastore/quotas) to allow up to 300 rules per policy.

func (MetricPolicyRule) String added in v0.21.0

func (s MetricPolicyRule) String() string

String returns the string representation

func (*MetricPolicyRule) Validate added in v0.21.0

func (s *MetricPolicyRule) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type PutContainerPolicyInput

type PutContainerPolicyInput struct {

	// The name of the container.
	//
	// ContainerName is a required field
	ContainerName *string `min:"1" type:"string" required:"true"`

	// The contents of the policy, which includes the following:
	//
	//    * One Version tag
	//
	//    * One Statement tag that contains the standard tags for the policy.
	//
	// Policy is a required field
	Policy *string `min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (PutContainerPolicyInput) String

func (s PutContainerPolicyInput) String() string

String returns the string representation

func (*PutContainerPolicyInput) Validate

func (s *PutContainerPolicyInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type PutContainerPolicyOutput

type PutContainerPolicyOutput struct {
	// contains filtered or unexported fields
}

func (PutContainerPolicyOutput) String

func (s PutContainerPolicyOutput) String() string

String returns the string representation

type PutContainerPolicyRequest

type PutContainerPolicyRequest struct {
	*aws.Request
	Input *PutContainerPolicyInput
	Copy  func(*PutContainerPolicyInput) PutContainerPolicyRequest
}

PutContainerPolicyRequest is the request type for the PutContainerPolicy API operation.

func (PutContainerPolicyRequest) Send

Send marshals and sends the PutContainerPolicy API request.

type PutContainerPolicyResponse added in v0.9.0

type PutContainerPolicyResponse struct {
	*PutContainerPolicyOutput
	// contains filtered or unexported fields
}

PutContainerPolicyResponse is the response type for the PutContainerPolicy API operation.

func (*PutContainerPolicyResponse) SDKResponseMetdata added in v0.9.0

func (r *PutContainerPolicyResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the PutContainerPolicy request.

type PutCorsPolicyInput added in v0.3.0

type PutCorsPolicyInput struct {

	// The name of the container that you want to assign the CORS policy to.
	//
	// ContainerName is a required field
	ContainerName *string `min:"1" type:"string" required:"true"`

	// The CORS policy to apply to the container.
	//
	// CorsPolicy is a required field
	CorsPolicy []CorsRule `min:"1" type:"list" required:"true"`
	// contains filtered or unexported fields
}

func (PutCorsPolicyInput) String added in v0.3.0

func (s PutCorsPolicyInput) String() string

String returns the string representation

func (*PutCorsPolicyInput) Validate added in v0.3.0

func (s *PutCorsPolicyInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type PutCorsPolicyOutput added in v0.3.0

type PutCorsPolicyOutput struct {
	// contains filtered or unexported fields
}

func (PutCorsPolicyOutput) String added in v0.3.0

func (s PutCorsPolicyOutput) String() string

String returns the string representation

type PutCorsPolicyRequest added in v0.3.0

type PutCorsPolicyRequest struct {
	*aws.Request
	Input *PutCorsPolicyInput
	Copy  func(*PutCorsPolicyInput) PutCorsPolicyRequest
}

PutCorsPolicyRequest is the request type for the PutCorsPolicy API operation.

func (PutCorsPolicyRequest) Send added in v0.3.0

Send marshals and sends the PutCorsPolicy API request.

type PutCorsPolicyResponse added in v0.9.0

type PutCorsPolicyResponse struct {
	*PutCorsPolicyOutput
	// contains filtered or unexported fields
}

PutCorsPolicyResponse is the response type for the PutCorsPolicy API operation.

func (*PutCorsPolicyResponse) SDKResponseMetdata added in v0.9.0

func (r *PutCorsPolicyResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the PutCorsPolicy request.

type PutLifecyclePolicyInput added in v0.7.0

type PutLifecyclePolicyInput struct {

	// The name of the container that you want to assign the object lifecycle policy
	// to.
	//
	// ContainerName is a required field
	ContainerName *string `min:"1" type:"string" required:"true"`

	// The object lifecycle policy to apply to the container.
	//
	// LifecyclePolicy is a required field
	LifecyclePolicy *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (PutLifecyclePolicyInput) String added in v0.7.0

func (s PutLifecyclePolicyInput) String() string

String returns the string representation

func (*PutLifecyclePolicyInput) Validate added in v0.7.0

func (s *PutLifecyclePolicyInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type PutLifecyclePolicyOutput added in v0.7.0

type PutLifecyclePolicyOutput struct {
	// contains filtered or unexported fields
}

func (PutLifecyclePolicyOutput) String added in v0.7.0

func (s PutLifecyclePolicyOutput) String() string

String returns the string representation

type PutLifecyclePolicyRequest added in v0.7.0

type PutLifecyclePolicyRequest struct {
	*aws.Request
	Input *PutLifecyclePolicyInput
	Copy  func(*PutLifecyclePolicyInput) PutLifecyclePolicyRequest
}

PutLifecyclePolicyRequest is the request type for the PutLifecyclePolicy API operation.

func (PutLifecyclePolicyRequest) Send added in v0.7.0

Send marshals and sends the PutLifecyclePolicy API request.

type PutLifecyclePolicyResponse added in v0.9.0

type PutLifecyclePolicyResponse struct {
	*PutLifecyclePolicyOutput
	// contains filtered or unexported fields
}

PutLifecyclePolicyResponse is the response type for the PutLifecyclePolicy API operation.

func (*PutLifecyclePolicyResponse) SDKResponseMetdata added in v0.9.0

func (r *PutLifecyclePolicyResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the PutLifecyclePolicy request.

type PutMetricPolicyInput added in v0.21.0

type PutMetricPolicyInput struct {

	// The name of the container that you want to add the metric policy to.
	//
	// ContainerName is a required field
	ContainerName *string `min:"1" type:"string" required:"true"`

	// 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).
	//
	// MetricPolicy is a required field
	MetricPolicy *MetricPolicy `type:"structure" required:"true"`
	// contains filtered or unexported fields
}

func (PutMetricPolicyInput) String added in v0.21.0

func (s PutMetricPolicyInput) String() string

String returns the string representation

func (*PutMetricPolicyInput) Validate added in v0.21.0

func (s *PutMetricPolicyInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type PutMetricPolicyOutput added in v0.21.0

type PutMetricPolicyOutput struct {
	// contains filtered or unexported fields
}

func (PutMetricPolicyOutput) String added in v0.21.0

func (s PutMetricPolicyOutput) String() string

String returns the string representation

type PutMetricPolicyRequest added in v0.21.0

type PutMetricPolicyRequest struct {
	*aws.Request
	Input *PutMetricPolicyInput
	Copy  func(*PutMetricPolicyInput) PutMetricPolicyRequest
}

PutMetricPolicyRequest is the request type for the PutMetricPolicy API operation.

func (PutMetricPolicyRequest) Send added in v0.21.0

Send marshals and sends the PutMetricPolicy API request.

type PutMetricPolicyResponse added in v0.21.0

type PutMetricPolicyResponse struct {
	*PutMetricPolicyOutput
	// contains filtered or unexported fields
}

PutMetricPolicyResponse is the response type for the PutMetricPolicy API operation.

func (*PutMetricPolicyResponse) SDKResponseMetdata added in v0.21.0

func (r *PutMetricPolicyResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the PutMetricPolicy request.

type StartAccessLoggingInput added in v0.8.0

type StartAccessLoggingInput struct {

	// The name of the container that you want to start access logging on.
	//
	// ContainerName is a required field
	ContainerName *string `min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (StartAccessLoggingInput) String added in v0.8.0

func (s StartAccessLoggingInput) String() string

String returns the string representation

func (*StartAccessLoggingInput) Validate added in v0.8.0

func (s *StartAccessLoggingInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type StartAccessLoggingOutput added in v0.8.0

type StartAccessLoggingOutput struct {
	// contains filtered or unexported fields
}

func (StartAccessLoggingOutput) String added in v0.8.0

func (s StartAccessLoggingOutput) String() string

String returns the string representation

type StartAccessLoggingRequest added in v0.8.0

type StartAccessLoggingRequest struct {
	*aws.Request
	Input *StartAccessLoggingInput
	Copy  func(*StartAccessLoggingInput) StartAccessLoggingRequest
}

StartAccessLoggingRequest is the request type for the StartAccessLogging API operation.

func (StartAccessLoggingRequest) Send added in v0.8.0

Send marshals and sends the StartAccessLogging API request.

type StartAccessLoggingResponse added in v0.9.0

type StartAccessLoggingResponse struct {
	*StartAccessLoggingOutput
	// contains filtered or unexported fields
}

StartAccessLoggingResponse is the response type for the StartAccessLogging API operation.

func (*StartAccessLoggingResponse) SDKResponseMetdata added in v0.9.0

func (r *StartAccessLoggingResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the StartAccessLogging request.

type StopAccessLoggingInput added in v0.8.0

type StopAccessLoggingInput struct {

	// The name of the container that you want to stop access logging on.
	//
	// ContainerName is a required field
	ContainerName *string `min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (StopAccessLoggingInput) String added in v0.8.0

func (s StopAccessLoggingInput) String() string

String returns the string representation

func (*StopAccessLoggingInput) Validate added in v0.8.0

func (s *StopAccessLoggingInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type StopAccessLoggingOutput added in v0.8.0

type StopAccessLoggingOutput struct {
	// contains filtered or unexported fields
}

func (StopAccessLoggingOutput) String added in v0.8.0

func (s StopAccessLoggingOutput) String() string

String returns the string representation

type StopAccessLoggingRequest added in v0.8.0

type StopAccessLoggingRequest struct {
	*aws.Request
	Input *StopAccessLoggingInput
	Copy  func(*StopAccessLoggingInput) StopAccessLoggingRequest
}

StopAccessLoggingRequest is the request type for the StopAccessLogging API operation.

func (StopAccessLoggingRequest) Send added in v0.8.0

Send marshals and sends the StopAccessLogging API request.

type StopAccessLoggingResponse added in v0.9.0

type StopAccessLoggingResponse struct {
	*StopAccessLoggingOutput
	// contains filtered or unexported fields
}

StopAccessLoggingResponse is the response type for the StopAccessLogging API operation.

func (*StopAccessLoggingResponse) SDKResponseMetdata added in v0.9.0

func (r *StopAccessLoggingResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the StopAccessLogging request.

type Tag added in v0.10.0

type Tag struct {

	// 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.
	//
	// Key is a required field
	Key *string `min:"1" type:"string" required:"true"`

	// 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.
	Value *string `type:"string"`
	// contains filtered or unexported fields
}

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 (https://docs.aws.amazon.com/mediastore/latest/ug/tagging.html).

func (Tag) String added in v0.10.0

func (s Tag) String() string

String returns the string representation

func (*Tag) Validate added in v0.10.0

func (s *Tag) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type TagResourceInput added in v0.10.0

type TagResourceInput struct {

	// The Amazon Resource Name (ARN) for the container.
	//
	// Resource is a required field
	Resource *string `min:"1" type:"string" required:"true"`

	// 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.
	//
	// Tags is a required field
	Tags []Tag `min:"1" type:"list" required:"true"`
	// contains filtered or unexported fields
}

func (TagResourceInput) String added in v0.10.0

func (s TagResourceInput) String() string

String returns the string representation

func (*TagResourceInput) Validate added in v0.10.0

func (s *TagResourceInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type TagResourceOutput added in v0.10.0

type TagResourceOutput struct {
	// contains filtered or unexported fields
}

func (TagResourceOutput) String added in v0.10.0

func (s TagResourceOutput) String() string

String returns the string representation

type TagResourceRequest added in v0.10.0

type TagResourceRequest struct {
	*aws.Request
	Input *TagResourceInput
	Copy  func(*TagResourceInput) TagResourceRequest
}

TagResourceRequest is the request type for the TagResource API operation.

func (TagResourceRequest) Send added in v0.10.0

Send marshals and sends the TagResource API request.

type TagResourceResponse added in v0.10.0

type TagResourceResponse struct {
	*TagResourceOutput
	// contains filtered or unexported fields
}

TagResourceResponse is the response type for the TagResource API operation.

func (*TagResourceResponse) SDKResponseMetdata added in v0.10.0

func (r *TagResourceResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the TagResource request.

type UntagResourceInput added in v0.10.0

type UntagResourceInput struct {

	// The Amazon Resource Name (ARN) for the container.
	//
	// Resource is a required field
	Resource *string `min:"1" type:"string" required:"true"`

	// 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).
	//
	// TagKeys is a required field
	TagKeys []string `type:"list" required:"true"`
	// contains filtered or unexported fields
}

func (UntagResourceInput) String added in v0.10.0

func (s UntagResourceInput) String() string

String returns the string representation

func (*UntagResourceInput) Validate added in v0.10.0

func (s *UntagResourceInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type UntagResourceOutput added in v0.10.0

type UntagResourceOutput struct {
	// contains filtered or unexported fields
}

func (UntagResourceOutput) String added in v0.10.0

func (s UntagResourceOutput) String() string

String returns the string representation

type UntagResourceRequest added in v0.10.0

type UntagResourceRequest struct {
	*aws.Request
	Input *UntagResourceInput
	Copy  func(*UntagResourceInput) UntagResourceRequest
}

UntagResourceRequest is the request type for the UntagResource API operation.

func (UntagResourceRequest) Send added in v0.10.0

Send marshals and sends the UntagResource API request.

type UntagResourceResponse added in v0.10.0

type UntagResourceResponse struct {
	*UntagResourceOutput
	// contains filtered or unexported fields
}

UntagResourceResponse is the response type for the UntagResource API operation.

func (*UntagResourceResponse) SDKResponseMetdata added in v0.10.0

func (r *UntagResourceResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the UntagResource request.

Directories

Path Synopsis
Package mediastoreiface provides an interface to enable mocking the AWS Elemental MediaStore service client for testing your code.
Package mediastoreiface provides an interface to enable mocking the AWS Elemental MediaStore service client for testing your code.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL