AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

MediaStore

import "github.com/aws/aws-sdk-go/service/mediastore"

type MediaStore struct { *client.Client }

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

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

Client

Type: *client.Client

Method

CreateContainer

func (c *MediaStore) CreateContainer(input *CreateContainerInput) (*CreateContainerOutput, error)

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

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Elemental MediaStore's API operation CreateContainer for usage and error information.

Returned Error Codes:

  • ErrCodeContainerInUseException "ContainerInUseException" The container that you specified in the request already exists or is being updated.

  • ErrCodeLimitExceededException "LimitExceededException" A service limit has been exceeded.

  • ErrCodeInternalServerError "InternalServerError" The service is temporarily unavailable.

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

CreateContainerRequest

func (c *MediaStore) CreateContainerRequest(input *CreateContainerInput) (req *request.Request, output *CreateContainerOutput)

CreateContainerRequest generates a "aws/request.Request" representing the client's request for the CreateContainer operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CreateContainer for more information on using the CreateContainer API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CreateContainerRequest method. req, resp := client.CreateContainerRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

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

CreateContainerWithContext

func (c *MediaStore) CreateContainerWithContext(ctx aws.Context, input *CreateContainerInput, opts ...request.Option) (*CreateContainerOutput, error)

CreateContainerWithContext is the same as CreateContainer with the addition of the ability to pass a context and additional request options.

See CreateContainer for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DeleteContainer

func (c *MediaStore) DeleteContainer(input *DeleteContainerInput) (*DeleteContainerOutput, error)

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

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Elemental MediaStore's API operation DeleteContainer for usage and error information.

Returned Error Codes:

  • ErrCodeContainerInUseException "ContainerInUseException" The container that you specified in the request already exists or is being updated.

  • ErrCodeContainerNotFoundException "ContainerNotFoundException" The container that you specified in the request does not exist.

  • ErrCodeInternalServerError "InternalServerError" The service is temporarily unavailable.

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

DeleteContainerPolicy

func (c *MediaStore) DeleteContainerPolicy(input *DeleteContainerPolicyInput) (*DeleteContainerPolicyOutput, error)

DeleteContainerPolicy API operation for AWS Elemental MediaStore.

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

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Elemental MediaStore's API operation DeleteContainerPolicy for usage and error information.

Returned Error Codes:

  • ErrCodeContainerInUseException "ContainerInUseException" The container that you specified in the request already exists or is being updated.

  • ErrCodeContainerNotFoundException "ContainerNotFoundException" The container that you specified in the request does not exist.

  • ErrCodePolicyNotFoundException "PolicyNotFoundException" The policy that you specified in the request does not exist.

  • ErrCodeInternalServerError "InternalServerError" The service is temporarily unavailable.

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

DeleteContainerPolicyRequest

func (c *MediaStore) DeleteContainerPolicyRequest(input *DeleteContainerPolicyInput) (req *request.Request, output *DeleteContainerPolicyOutput)

DeleteContainerPolicyRequest generates a "aws/request.Request" representing the client's request for the DeleteContainerPolicy operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteContainerPolicy for more information on using the DeleteContainerPolicy API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeleteContainerPolicyRequest method. req, resp := client.DeleteContainerPolicyRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

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

DeleteContainerPolicyWithContext

func (c *MediaStore) DeleteContainerPolicyWithContext(ctx aws.Context, input *DeleteContainerPolicyInput, opts ...request.Option) (*DeleteContainerPolicyOutput, error)

DeleteContainerPolicyWithContext is the same as DeleteContainerPolicy with the addition of the ability to pass a context and additional request options.

See DeleteContainerPolicy for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DeleteContainerRequest

func (c *MediaStore) DeleteContainerRequest(input *DeleteContainerInput) (req *request.Request, output *DeleteContainerOutput)

DeleteContainerRequest generates a "aws/request.Request" representing the client's request for the DeleteContainer operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteContainer for more information on using the DeleteContainer API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeleteContainerRequest method. req, resp := client.DeleteContainerRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

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

DeleteContainerWithContext

func (c *MediaStore) DeleteContainerWithContext(ctx aws.Context, input *DeleteContainerInput, opts ...request.Option) (*DeleteContainerOutput, error)

DeleteContainerWithContext is the same as DeleteContainer with the addition of the ability to pass a context and additional request options.

See DeleteContainer for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DeleteCorsPolicy

func (c *MediaStore) DeleteCorsPolicy(input *DeleteCorsPolicyInput) (*DeleteCorsPolicyOutput, error)

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

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Elemental MediaStore's API operation DeleteCorsPolicy for usage and error information.

Returned Error Codes:

  • ErrCodeContainerInUseException "ContainerInUseException" The container that you specified in the request already exists or is being updated.

  • ErrCodeContainerNotFoundException "ContainerNotFoundException" The container that you specified in the request does not exist.

  • ErrCodeCorsPolicyNotFoundException "CorsPolicyNotFoundException" The CORS policy that you specified in the request does not exist.

  • ErrCodeInternalServerError "InternalServerError" The service is temporarily unavailable.

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

DeleteCorsPolicyRequest

func (c *MediaStore) DeleteCorsPolicyRequest(input *DeleteCorsPolicyInput) (req *request.Request, output *DeleteCorsPolicyOutput)

DeleteCorsPolicyRequest generates a "aws/request.Request" representing the client's request for the DeleteCorsPolicy operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteCorsPolicy for more information on using the DeleteCorsPolicy API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeleteCorsPolicyRequest method. req, resp := client.DeleteCorsPolicyRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

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

DeleteCorsPolicyWithContext

func (c *MediaStore) DeleteCorsPolicyWithContext(ctx aws.Context, input *DeleteCorsPolicyInput, opts ...request.Option) (*DeleteCorsPolicyOutput, error)

DeleteCorsPolicyWithContext is the same as DeleteCorsPolicy with the addition of the ability to pass a context and additional request options.

See DeleteCorsPolicy for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DeleteLifecyclePolicy

func (c *MediaStore) DeleteLifecyclePolicy(input *DeleteLifecyclePolicyInput) (*DeleteLifecyclePolicyOutput, error)

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

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Elemental MediaStore's API operation DeleteLifecyclePolicy for usage and error information.

Returned Error Codes:

  • ErrCodeContainerInUseException "ContainerInUseException" The container that you specified in the request already exists or is being updated.

  • ErrCodeContainerNotFoundException "ContainerNotFoundException" The container that you specified in the request does not exist.

  • ErrCodePolicyNotFoundException "PolicyNotFoundException" The policy that you specified in the request does not exist.

  • ErrCodeInternalServerError "InternalServerError" The service is temporarily unavailable.

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

DeleteLifecyclePolicyRequest

func (c *MediaStore) DeleteLifecyclePolicyRequest(input *DeleteLifecyclePolicyInput) (req *request.Request, output *DeleteLifecyclePolicyOutput)

DeleteLifecyclePolicyRequest generates a "aws/request.Request" representing the client's request for the DeleteLifecyclePolicy operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteLifecyclePolicy for more information on using the DeleteLifecyclePolicy API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeleteLifecyclePolicyRequest method. req, resp := client.DeleteLifecyclePolicyRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

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

DeleteLifecyclePolicyWithContext

func (c *MediaStore) DeleteLifecyclePolicyWithContext(ctx aws.Context, input *DeleteLifecyclePolicyInput, opts ...request.Option) (*DeleteLifecyclePolicyOutput, error)

DeleteLifecyclePolicyWithContext is the same as DeleteLifecyclePolicy with the addition of the ability to pass a context and additional request options.

See DeleteLifecyclePolicy for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DescribeContainer

func (c *MediaStore) DescribeContainer(input *DescribeContainerInput) (*DescribeContainerOutput, error)

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

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Elemental MediaStore's API operation DescribeContainer for usage and error information.

Returned Error Codes:

  • ErrCodeContainerNotFoundException "ContainerNotFoundException" The container that you specified in the request does not exist.

  • ErrCodeInternalServerError "InternalServerError" The service is temporarily unavailable.

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

DescribeContainerRequest

func (c *MediaStore) DescribeContainerRequest(input *DescribeContainerInput) (req *request.Request, output *DescribeContainerOutput)

DescribeContainerRequest generates a "aws/request.Request" representing the client's request for the DescribeContainer operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeContainer for more information on using the DescribeContainer API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribeContainerRequest method. req, resp := client.DescribeContainerRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

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

DescribeContainerWithContext

func (c *MediaStore) DescribeContainerWithContext(ctx aws.Context, input *DescribeContainerInput, opts ...request.Option) (*DescribeContainerOutput, error)

DescribeContainerWithContext is the same as DescribeContainer with the addition of the ability to pass a context and additional request options.

See DescribeContainer for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

GetContainerPolicy

func (c *MediaStore) GetContainerPolicy(input *GetContainerPolicyInput) (*GetContainerPolicyOutput, error)

GetContainerPolicy 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/).

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Elemental MediaStore's API operation GetContainerPolicy for usage and error information.

Returned Error Codes:

  • ErrCodeContainerInUseException "ContainerInUseException" The container that you specified in the request already exists or is being updated.

  • ErrCodeContainerNotFoundException "ContainerNotFoundException" The container that you specified in the request does not exist.

  • ErrCodePolicyNotFoundException "PolicyNotFoundException" The policy that you specified in the request does not exist.

  • ErrCodeInternalServerError "InternalServerError" The service is temporarily unavailable.

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

GetContainerPolicyRequest

func (c *MediaStore) GetContainerPolicyRequest(input *GetContainerPolicyInput) (req *request.Request, output *GetContainerPolicyOutput)

GetContainerPolicyRequest generates a "aws/request.Request" representing the client's request for the GetContainerPolicy operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetContainerPolicy for more information on using the GetContainerPolicy API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetContainerPolicyRequest method. req, resp := client.GetContainerPolicyRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

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

GetContainerPolicyWithContext

func (c *MediaStore) GetContainerPolicyWithContext(ctx aws.Context, input *GetContainerPolicyInput, opts ...request.Option) (*GetContainerPolicyOutput, error)

GetContainerPolicyWithContext is the same as GetContainerPolicy with the addition of the ability to pass a context and additional request options.

See GetContainerPolicy for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

GetCorsPolicy

func (c *MediaStore) GetCorsPolicy(input *GetCorsPolicyInput) (*GetCorsPolicyOutput, error)

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

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Elemental MediaStore's API operation GetCorsPolicy for usage and error information.

Returned Error Codes:

  • ErrCodeContainerInUseException "ContainerInUseException" The container that you specified in the request already exists or is being updated.

  • ErrCodeContainerNotFoundException "ContainerNotFoundException" The container that you specified in the request does not exist.

  • ErrCodeCorsPolicyNotFoundException "CorsPolicyNotFoundException" The CORS policy that you specified in the request does not exist.

  • ErrCodeInternalServerError "InternalServerError" The service is temporarily unavailable.

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

GetCorsPolicyRequest

func (c *MediaStore) GetCorsPolicyRequest(input *GetCorsPolicyInput) (req *request.Request, output *GetCorsPolicyOutput)

GetCorsPolicyRequest generates a "aws/request.Request" representing the client's request for the GetCorsPolicy operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetCorsPolicy for more information on using the GetCorsPolicy API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetCorsPolicyRequest method. req, resp := client.GetCorsPolicyRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

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

GetCorsPolicyWithContext

func (c *MediaStore) GetCorsPolicyWithContext(ctx aws.Context, input *GetCorsPolicyInput, opts ...request.Option) (*GetCorsPolicyOutput, error)

GetCorsPolicyWithContext is the same as GetCorsPolicy with the addition of the ability to pass a context and additional request options.

See GetCorsPolicy for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

GetLifecyclePolicy

func (c *MediaStore) GetLifecyclePolicy(input *GetLifecyclePolicyInput) (*GetLifecyclePolicyOutput, error)

GetLifecyclePolicy API operation for AWS Elemental MediaStore.

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

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Elemental MediaStore's API operation GetLifecyclePolicy for usage and error information.

Returned Error Codes:

  • ErrCodeContainerInUseException "ContainerInUseException" The container that you specified in the request already exists or is being updated.

  • ErrCodeContainerNotFoundException "ContainerNotFoundException" The container that you specified in the request does not exist.

  • ErrCodePolicyNotFoundException "PolicyNotFoundException" The policy that you specified in the request does not exist.

  • ErrCodeInternalServerError "InternalServerError" The service is temporarily unavailable.

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

GetLifecyclePolicyRequest

func (c *MediaStore) GetLifecyclePolicyRequest(input *GetLifecyclePolicyInput) (req *request.Request, output *GetLifecyclePolicyOutput)

GetLifecyclePolicyRequest generates a "aws/request.Request" representing the client's request for the GetLifecyclePolicy operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetLifecyclePolicy for more information on using the GetLifecyclePolicy API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetLifecyclePolicyRequest method. req, resp := client.GetLifecyclePolicyRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

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

GetLifecyclePolicyWithContext

func (c *MediaStore) GetLifecyclePolicyWithContext(ctx aws.Context, input *GetLifecyclePolicyInput, opts ...request.Option) (*GetLifecyclePolicyOutput, error)

GetLifecyclePolicyWithContext is the same as GetLifecyclePolicy with the addition of the ability to pass a context and additional request options.

See GetLifecyclePolicy for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

ListContainers

func (c *MediaStore) ListContainers(input *ListContainersInput) (*ListContainersOutput, error)

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

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Elemental MediaStore's API operation ListContainers for usage and error information.

Returned Error Codes:

  • ErrCodeInternalServerError "InternalServerError" The service is temporarily unavailable.

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

ListContainersRequest

func (c *MediaStore) ListContainersRequest(input *ListContainersInput) (req *request.Request, output *ListContainersOutput)

ListContainersRequest generates a "aws/request.Request" representing the client's request for the ListContainers operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ListContainers for more information on using the ListContainers API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ListContainersRequest method. req, resp := client.ListContainersRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

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

ListContainersWithContext

func (c *MediaStore) ListContainersWithContext(ctx aws.Context, input *ListContainersInput, opts ...request.Option) (*ListContainersOutput, error)

ListContainersWithContext is the same as ListContainers with the addition of the ability to pass a context and additional request options.

See ListContainers for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

PutContainerPolicy

func (c *MediaStore) PutContainerPolicy(input *PutContainerPolicyInput) (*PutContainerPolicyOutput, error)

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

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Elemental MediaStore's API operation PutContainerPolicy for usage and error information.

Returned Error Codes:

  • ErrCodeContainerNotFoundException "ContainerNotFoundException" The container that you specified in the request does not exist.

  • ErrCodeContainerInUseException "ContainerInUseException" The container that you specified in the request already exists or is being updated.

  • ErrCodeInternalServerError "InternalServerError" The service is temporarily unavailable.

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

PutContainerPolicyRequest

func (c *MediaStore) PutContainerPolicyRequest(input *PutContainerPolicyInput) (req *request.Request, output *PutContainerPolicyOutput)

PutContainerPolicyRequest generates a "aws/request.Request" representing the client's request for the PutContainerPolicy operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See PutContainerPolicy for more information on using the PutContainerPolicy API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the PutContainerPolicyRequest method. req, resp := client.PutContainerPolicyRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

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

PutContainerPolicyWithContext

func (c *MediaStore) PutContainerPolicyWithContext(ctx aws.Context, input *PutContainerPolicyInput, opts ...request.Option) (*PutContainerPolicyOutput, error)

PutContainerPolicyWithContext is the same as PutContainerPolicy with the addition of the ability to pass a context and additional request options.

See PutContainerPolicy for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

PutCorsPolicy

func (c *MediaStore) PutCorsPolicy(input *PutCorsPolicyInput) (*PutCorsPolicyOutput, error)

PutCorsPolicy 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).

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Elemental MediaStore's API operation PutCorsPolicy for usage and error information.

Returned Error Codes:

  • ErrCodeContainerNotFoundException "ContainerNotFoundException" The container that you specified in the request does not exist.

  • ErrCodeContainerInUseException "ContainerInUseException" The container that you specified in the request already exists or is being updated.

  • ErrCodeInternalServerError "InternalServerError" The service is temporarily unavailable.

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

PutCorsPolicyRequest

func (c *MediaStore) PutCorsPolicyRequest(input *PutCorsPolicyInput) (req *request.Request, output *PutCorsPolicyOutput)

PutCorsPolicyRequest generates a "aws/request.Request" representing the client's request for the PutCorsPolicy operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See PutCorsPolicy for more information on using the PutCorsPolicy API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the PutCorsPolicyRequest method. req, resp := client.PutCorsPolicyRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

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

PutCorsPolicyWithContext

func (c *MediaStore) PutCorsPolicyWithContext(ctx aws.Context, input *PutCorsPolicyInput, opts ...request.Option) (*PutCorsPolicyOutput, error)

PutCorsPolicyWithContext is the same as PutCorsPolicy with the addition of the ability to pass a context and additional request options.

See PutCorsPolicy for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

PutLifecyclePolicy

func (c *MediaStore) PutLifecyclePolicy(input *PutLifecyclePolicyInput) (*PutLifecyclePolicyOutput, error)

PutLifecyclePolicy 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).

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Elemental MediaStore's API operation PutLifecyclePolicy for usage and error information.

Returned Error Codes:

  • ErrCodeContainerInUseException "ContainerInUseException" The container that you specified in the request already exists or is being updated.

  • ErrCodeContainerNotFoundException "ContainerNotFoundException" The container that you specified in the request does not exist.

  • ErrCodeInternalServerError "InternalServerError" The service is temporarily unavailable.

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

PutLifecyclePolicyRequest

func (c *MediaStore) PutLifecyclePolicyRequest(input *PutLifecyclePolicyInput) (req *request.Request, output *PutLifecyclePolicyOutput)

PutLifecyclePolicyRequest generates a "aws/request.Request" representing the client's request for the PutLifecyclePolicy operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See PutLifecyclePolicy for more information on using the PutLifecyclePolicy API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the PutLifecyclePolicyRequest method. req, resp := client.PutLifecyclePolicyRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

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

PutLifecyclePolicyWithContext

func (c *MediaStore) PutLifecyclePolicyWithContext(ctx aws.Context, input *PutLifecyclePolicyInput, opts ...request.Option) (*PutLifecyclePolicyOutput, error)

PutLifecyclePolicyWithContext is the same as PutLifecyclePolicy with the addition of the ability to pass a context and additional request options.

See PutLifecyclePolicy for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

StartAccessLogging

func (c *MediaStore) StartAccessLogging(input *StartAccessLoggingInput) (*StartAccessLoggingOutput, error)

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

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Elemental MediaStore's API operation StartAccessLogging for usage and error information.

Returned Error Codes:

  • ErrCodeContainerInUseException "ContainerInUseException" The container that you specified in the request already exists or is being updated.

  • ErrCodeContainerNotFoundException "ContainerNotFoundException" The container that you specified in the request does not exist.

  • ErrCodeInternalServerError "InternalServerError" The service is temporarily unavailable.

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

StartAccessLoggingRequest

func (c *MediaStore) StartAccessLoggingRequest(input *StartAccessLoggingInput) (req *request.Request, output *StartAccessLoggingOutput)

StartAccessLoggingRequest generates a "aws/request.Request" representing the client's request for the StartAccessLogging operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See StartAccessLogging for more information on using the StartAccessLogging API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the StartAccessLoggingRequest method. req, resp := client.StartAccessLoggingRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

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

StartAccessLoggingWithContext

func (c *MediaStore) StartAccessLoggingWithContext(ctx aws.Context, input *StartAccessLoggingInput, opts ...request.Option) (*StartAccessLoggingOutput, error)

StartAccessLoggingWithContext is the same as StartAccessLogging with the addition of the ability to pass a context and additional request options.

See StartAccessLogging for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

StopAccessLogging

func (c *MediaStore) StopAccessLogging(input *StopAccessLoggingInput) (*StopAccessLoggingOutput, error)

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

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Elemental MediaStore's API operation StopAccessLogging for usage and error information.

Returned Error Codes:

  • ErrCodeContainerInUseException "ContainerInUseException" The container that you specified in the request already exists or is being updated.

  • ErrCodeContainerNotFoundException "ContainerNotFoundException" The container that you specified in the request does not exist.

  • ErrCodeInternalServerError "InternalServerError" The service is temporarily unavailable.

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

StopAccessLoggingRequest

func (c *MediaStore) StopAccessLoggingRequest(input *StopAccessLoggingInput) (req *request.Request, output *StopAccessLoggingOutput)

StopAccessLoggingRequest generates a "aws/request.Request" representing the client's request for the StopAccessLogging operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See StopAccessLogging for more information on using the StopAccessLogging API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the StopAccessLoggingRequest method. req, resp := client.StopAccessLoggingRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

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

StopAccessLoggingWithContext

func (c *MediaStore) StopAccessLoggingWithContext(ctx aws.Context, input *StopAccessLoggingInput, opts ...request.Option) (*StopAccessLoggingOutput, error)

StopAccessLoggingWithContext is the same as StopAccessLogging with the addition of the ability to pass a context and additional request options.

See StopAccessLogging for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

On this page: