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
- type Client
- func (c *Client) CreateContainerRequest(input *CreateContainerInput) CreateContainerRequest
- func (c *Client) DeleteContainerPolicyRequest(input *DeleteContainerPolicyInput) DeleteContainerPolicyRequest
- func (c *Client) DeleteContainerRequest(input *DeleteContainerInput) DeleteContainerRequest
- func (c *Client) DeleteCorsPolicyRequest(input *DeleteCorsPolicyInput) DeleteCorsPolicyRequest
- func (c *Client) DeleteLifecyclePolicyRequest(input *DeleteLifecyclePolicyInput) DeleteLifecyclePolicyRequest
- func (c *Client) DescribeContainerRequest(input *DescribeContainerInput) DescribeContainerRequest
- func (c *Client) GetContainerPolicyRequest(input *GetContainerPolicyInput) GetContainerPolicyRequest
- func (c *Client) GetCorsPolicyRequest(input *GetCorsPolicyInput) GetCorsPolicyRequest
- func (c *Client) GetLifecyclePolicyRequest(input *GetLifecyclePolicyInput) GetLifecyclePolicyRequest
- func (c *Client) ListContainersRequest(input *ListContainersInput) ListContainersRequest
- func (c *Client) ListTagsForResourceRequest(input *ListTagsForResourceInput) ListTagsForResourceRequest
- func (c *Client) PutContainerPolicyRequest(input *PutContainerPolicyInput) PutContainerPolicyRequest
- func (c *Client) PutCorsPolicyRequest(input *PutCorsPolicyInput) PutCorsPolicyRequest
- func (c *Client) PutLifecyclePolicyRequest(input *PutLifecyclePolicyInput) PutLifecyclePolicyRequest
- func (c *Client) StartAccessLoggingRequest(input *StartAccessLoggingInput) StartAccessLoggingRequest
- func (c *Client) StopAccessLoggingRequest(input *StopAccessLoggingInput) StopAccessLoggingRequest
- func (c *Client) TagResourceRequest(input *TagResourceInput) TagResourceRequest
- func (c *Client) UntagResourceRequest(input *UntagResourceInput) UntagResourceRequest
- type Container
- type ContainerStatus
- type CorsRule
- type CreateContainerInput
- type CreateContainerOutput
- type CreateContainerRequest
- type CreateContainerResponse
- type DeleteContainerInput
- type DeleteContainerOutput
- type DeleteContainerPolicyInput
- type DeleteContainerPolicyOutput
- type DeleteContainerPolicyRequest
- type DeleteContainerPolicyResponse
- type DeleteContainerRequest
- type DeleteContainerResponse
- type DeleteCorsPolicyInput
- type DeleteCorsPolicyOutput
- type DeleteCorsPolicyRequest
- type DeleteCorsPolicyResponse
- type DeleteLifecyclePolicyInput
- type DeleteLifecyclePolicyOutput
- type DeleteLifecyclePolicyRequest
- type DeleteLifecyclePolicyResponse
- type DescribeContainerInput
- type DescribeContainerOutput
- type DescribeContainerRequest
- type DescribeContainerResponse
- type GetContainerPolicyInput
- type GetContainerPolicyOutput
- type GetContainerPolicyRequest
- type GetContainerPolicyResponse
- type GetCorsPolicyInput
- type GetCorsPolicyOutput
- type GetCorsPolicyRequest
- type GetCorsPolicyResponse
- type GetLifecyclePolicyInput
- type GetLifecyclePolicyOutput
- type GetLifecyclePolicyRequest
- type GetLifecyclePolicyResponse
- type ListContainersInput
- type ListContainersOutput
- type ListContainersPaginator
- type ListContainersRequest
- type ListContainersResponse
- type ListTagsForResourceInput
- type ListTagsForResourceOutput
- type ListTagsForResourceRequest
- type ListTagsForResourceResponse
- type MethodName
- type PutContainerPolicyInput
- type PutContainerPolicyOutput
- type PutContainerPolicyRequest
- type PutContainerPolicyResponse
- type PutCorsPolicyInput
- type PutCorsPolicyOutput
- type PutCorsPolicyRequest
- type PutCorsPolicyResponse
- type PutLifecyclePolicyInput
- type PutLifecyclePolicyOutput
- type PutLifecyclePolicyRequest
- type PutLifecyclePolicyResponse
- type StartAccessLoggingInput
- type StartAccessLoggingOutput
- type StartAccessLoggingRequest
- type StartAccessLoggingResponse
- type StopAccessLoggingInput
- type StopAccessLoggingOutput
- type StopAccessLoggingRequest
- type StopAccessLoggingResponse
- type Tag
- type TagResourceInput
- type TagResourceOutput
- type TagResourceRequest
- type TagResourceResponse
- type UntagResourceInput
- type UntagResourceOutput
- type UntagResourceRequest
- type UntagResourceResponse
Constants ¶
const ( ServiceName = "MediaStore" // Service's name ServiceID = "MediaStore" // Service's identifier EndpointsID = "mediastore" // Service's Endpoint identifier )
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
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 ¶
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) 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) 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) 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://aws.amazon.com/documentation/mediastore/tagging).
// 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" timestampFormat:"unix"` // 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. Please also see https://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/Container
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. Please also see https://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/CorsRule
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://aws.amazon.com/documentation/mediastore/tagging). Tags []Tag `type:"list"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/CreateContainerInput
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 }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/CreateContainerOutput
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 ¶
func (r CreateContainerRequest) Send(ctx context.Context) (*CreateContainerResponse, error)
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 }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/DeleteContainerInput
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
}
Please also see https://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/DeleteContainerOutput
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 }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/DeleteContainerPolicyInput
func (DeleteContainerPolicyInput) String ¶
func (s DeleteContainerPolicyInput) String() 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
}
Please also see https://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/DeleteContainerPolicyOutput
func (DeleteContainerPolicyOutput) String ¶
func (s DeleteContainerPolicyOutput) String() 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 ¶
func (r DeleteContainerPolicyRequest) Send(ctx context.Context) (*DeleteContainerPolicyResponse, error)
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 ¶
func (r DeleteContainerRequest) Send(ctx context.Context) (*DeleteContainerResponse, error)
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 }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/DeleteCorsPolicyInput
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
}
Please also see https://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/DeleteCorsPolicyOutput
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
func (r DeleteCorsPolicyRequest) Send(ctx context.Context) (*DeleteCorsPolicyResponse, error)
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 }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/DeleteLifecyclePolicyInput
func (DeleteLifecyclePolicyInput) String ¶ added in v0.7.0
func (s DeleteLifecyclePolicyInput) String() string
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
}
Please also see https://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/DeleteLifecyclePolicyOutput
func (DeleteLifecyclePolicyOutput) String ¶ added in v0.7.0
func (s DeleteLifecyclePolicyOutput) String() string
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
func (r DeleteLifecyclePolicyRequest) Send(ctx context.Context) (*DeleteLifecyclePolicyResponse, error)
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 DescribeContainerInput ¶
type DescribeContainerInput struct { // The name of the container to query. ContainerName *string `min:"1" type:"string"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/DescribeContainerInput
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 }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/DescribeContainerOutput
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 ¶
func (r DescribeContainerRequest) Send(ctx context.Context) (*DescribeContainerResponse, error)
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 }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/GetContainerPolicyInput
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 }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/GetContainerPolicyOutput
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 ¶
func (r GetContainerPolicyRequest) Send(ctx context.Context) (*GetContainerPolicyResponse, error)
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 }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/GetCorsPolicyInput
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 }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/GetCorsPolicyOutput
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
func (r GetCorsPolicyRequest) Send(ctx context.Context) (*GetCorsPolicyResponse, error)
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 }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/GetLifecyclePolicyInput
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 }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/GetLifecyclePolicyOutput
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
func (r GetLifecyclePolicyRequest) Send(ctx context.Context) (*GetLifecyclePolicyResponse, error)
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 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 }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/ListContainersInput
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 }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/ListContainersOutput
func (ListContainersOutput) String ¶
func (s ListContainersOutput) String() string
String returns the string representation
type ListContainersPaginator ¶ added in v0.10.0
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
func (p *ListContainersPaginator) CurrentPage() *ListContainersOutput
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 ¶
func (r ListContainersRequest) Send(ctx context.Context) (*ListContainersResponse, error)
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 }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/ListTagsForResourceInput
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 `type:"list"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/ListTagsForResourceOutput
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
func (r ListTagsForResourceRequest) Send(ctx context.Context) (*ListTagsForResourceResponse, error)
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 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 }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/PutContainerPolicyInput
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
}
Please also see https://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/PutContainerPolicyOutput
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 ¶
func (r PutContainerPolicyRequest) Send(ctx context.Context) (*PutContainerPolicyResponse, error)
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 }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/PutCorsPolicyInput
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
}
Please also see https://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/PutCorsPolicyOutput
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
func (r PutCorsPolicyRequest) Send(ctx context.Context) (*PutCorsPolicyResponse, error)
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 }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/PutLifecyclePolicyInput
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
}
Please also see https://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/PutLifecyclePolicyOutput
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
func (r PutLifecyclePolicyRequest) Send(ctx context.Context) (*PutLifecyclePolicyResponse, error)
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 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 }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/StartAccessLoggingInput
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
}
Please also see https://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/StartAccessLoggingOutput
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
func (r StartAccessLoggingRequest) Send(ctx context.Context) (*StartAccessLoggingResponse, error)
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 }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/StopAccessLoggingInput
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
}
Please also see https://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/StopAccessLoggingOutput
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
func (r StopAccessLoggingRequest) Send(ctx context.Context) (*StopAccessLoggingResponse, error)
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 *string `min:"1" type:"string"` // 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://aws.amazon.com/documentation/mediastore/tagging). Please also see https://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/Tag
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 `type:"list" required:"true"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/TagResourceInput
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
}
Please also see https://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/TagResourceOutput
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
func (r TagResourceRequest) Send(ctx context.Context) (*TagResourceResponse, error)
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 }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/UntagResourceInput
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
}
Please also see https://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/UntagResourceOutput
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
func (r UntagResourceRequest) Send(ctx context.Context) (*UntagResourceResponse, error)
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.
Source Files
¶
- api_client.go
- api_doc.go
- api_enums.go
- api_errors.go
- api_op_CreateContainer.go
- api_op_DeleteContainer.go
- api_op_DeleteContainerPolicy.go
- api_op_DeleteCorsPolicy.go
- api_op_DeleteLifecyclePolicy.go
- api_op_DescribeContainer.go
- api_op_GetContainerPolicy.go
- api_op_GetCorsPolicy.go
- api_op_GetLifecyclePolicy.go
- api_op_ListContainers.go
- api_op_ListTagsForResource.go
- api_op_PutContainerPolicy.go
- api_op_PutCorsPolicy.go
- api_op_PutLifecyclePolicy.go
- api_op_StartAccessLogging.go
- api_op_StopAccessLogging.go
- api_op_TagResource.go
- api_op_UntagResource.go
- api_types.go
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. |