Documentation ¶
Overview ¶
Package mediastore provides the client and types for making API requests to AWS Elemental 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 contact AWS Elemental 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 AWS Elemental MediaStore client MediaStore for more information on creating client for this service. https://docs.aws.amazon.com/sdk-for-go/api/service/mediastore/#New
Index ¶
- Constants
- func ContainerLevelMetrics_Values() []string
- func ContainerStatus_Values() []string
- func MethodName_Values() []string
- type Container
- func (s Container) GoString() string
- func (s *Container) SetARN(v string) *Container
- func (s *Container) SetAccessLoggingEnabled(v bool) *Container
- func (s *Container) SetCreationTime(v time.Time) *Container
- func (s *Container) SetEndpoint(v string) *Container
- func (s *Container) SetName(v string) *Container
- func (s *Container) SetStatus(v string) *Container
- func (s Container) String() string
- type ContainerInUseException
- func (s *ContainerInUseException) Code() string
- func (s *ContainerInUseException) Error() string
- func (s ContainerInUseException) GoString() string
- func (s *ContainerInUseException) Message() string
- func (s *ContainerInUseException) OrigErr() error
- func (s *ContainerInUseException) RequestID() string
- func (s *ContainerInUseException) StatusCode() int
- func (s ContainerInUseException) String() string
- type ContainerNotFoundException
- func (s *ContainerNotFoundException) Code() string
- func (s *ContainerNotFoundException) Error() string
- func (s ContainerNotFoundException) GoString() string
- func (s *ContainerNotFoundException) Message() string
- func (s *ContainerNotFoundException) OrigErr() error
- func (s *ContainerNotFoundException) RequestID() string
- func (s *ContainerNotFoundException) StatusCode() int
- func (s ContainerNotFoundException) String() string
- type CorsPolicyNotFoundException
- func (s *CorsPolicyNotFoundException) Code() string
- func (s *CorsPolicyNotFoundException) Error() string
- func (s CorsPolicyNotFoundException) GoString() string
- func (s *CorsPolicyNotFoundException) Message() string
- func (s *CorsPolicyNotFoundException) OrigErr() error
- func (s *CorsPolicyNotFoundException) RequestID() string
- func (s *CorsPolicyNotFoundException) StatusCode() int
- func (s CorsPolicyNotFoundException) String() string
- type CorsRule
- func (s CorsRule) GoString() string
- func (s *CorsRule) SetAllowedHeaders(v []*string) *CorsRule
- func (s *CorsRule) SetAllowedMethods(v []*string) *CorsRule
- func (s *CorsRule) SetAllowedOrigins(v []*string) *CorsRule
- func (s *CorsRule) SetExposeHeaders(v []*string) *CorsRule
- func (s *CorsRule) SetMaxAgeSeconds(v int64) *CorsRule
- func (s CorsRule) String() string
- func (s *CorsRule) Validate() error
- type CreateContainerInput
- type CreateContainerOutput
- type DeleteContainerInput
- type DeleteContainerOutput
- type DeleteContainerPolicyInput
- type DeleteContainerPolicyOutput
- type DeleteCorsPolicyInput
- type DeleteCorsPolicyOutput
- type DeleteLifecyclePolicyInput
- type DeleteLifecyclePolicyOutput
- type DeleteMetricPolicyInput
- type DeleteMetricPolicyOutput
- type DescribeContainerInput
- type DescribeContainerOutput
- type GetContainerPolicyInput
- type GetContainerPolicyOutput
- type GetCorsPolicyInput
- type GetCorsPolicyOutput
- type GetLifecyclePolicyInput
- type GetLifecyclePolicyOutput
- type GetMetricPolicyInput
- type GetMetricPolicyOutput
- type InternalServerError
- func (s *InternalServerError) Code() string
- func (s *InternalServerError) Error() string
- func (s InternalServerError) GoString() string
- func (s *InternalServerError) Message() string
- func (s *InternalServerError) OrigErr() error
- func (s *InternalServerError) RequestID() string
- func (s *InternalServerError) StatusCode() int
- func (s InternalServerError) String() string
- type LimitExceededException
- func (s *LimitExceededException) Code() string
- func (s *LimitExceededException) Error() string
- func (s LimitExceededException) GoString() string
- func (s *LimitExceededException) Message() string
- func (s *LimitExceededException) OrigErr() error
- func (s *LimitExceededException) RequestID() string
- func (s *LimitExceededException) StatusCode() int
- func (s LimitExceededException) String() string
- type ListContainersInput
- type ListContainersOutput
- type ListTagsForResourceInput
- type ListTagsForResourceOutput
- type MediaStore
- func (c *MediaStore) CreateContainer(input *CreateContainerInput) (*CreateContainerOutput, error)
- func (c *MediaStore) CreateContainerRequest(input *CreateContainerInput) (req *request.Request, output *CreateContainerOutput)
- func (c *MediaStore) CreateContainerWithContext(ctx aws.Context, input *CreateContainerInput, opts ...request.Option) (*CreateContainerOutput, error)
- func (c *MediaStore) DeleteContainer(input *DeleteContainerInput) (*DeleteContainerOutput, error)
- func (c *MediaStore) DeleteContainerPolicy(input *DeleteContainerPolicyInput) (*DeleteContainerPolicyOutput, error)
- func (c *MediaStore) DeleteContainerPolicyRequest(input *DeleteContainerPolicyInput) (req *request.Request, output *DeleteContainerPolicyOutput)
- func (c *MediaStore) DeleteContainerPolicyWithContext(ctx aws.Context, input *DeleteContainerPolicyInput, opts ...request.Option) (*DeleteContainerPolicyOutput, error)
- func (c *MediaStore) DeleteContainerRequest(input *DeleteContainerInput) (req *request.Request, output *DeleteContainerOutput)
- func (c *MediaStore) DeleteContainerWithContext(ctx aws.Context, input *DeleteContainerInput, opts ...request.Option) (*DeleteContainerOutput, error)
- func (c *MediaStore) DeleteCorsPolicy(input *DeleteCorsPolicyInput) (*DeleteCorsPolicyOutput, error)
- func (c *MediaStore) DeleteCorsPolicyRequest(input *DeleteCorsPolicyInput) (req *request.Request, output *DeleteCorsPolicyOutput)
- func (c *MediaStore) DeleteCorsPolicyWithContext(ctx aws.Context, input *DeleteCorsPolicyInput, opts ...request.Option) (*DeleteCorsPolicyOutput, error)
- func (c *MediaStore) DeleteLifecyclePolicy(input *DeleteLifecyclePolicyInput) (*DeleteLifecyclePolicyOutput, error)
- func (c *MediaStore) DeleteLifecyclePolicyRequest(input *DeleteLifecyclePolicyInput) (req *request.Request, output *DeleteLifecyclePolicyOutput)
- func (c *MediaStore) DeleteLifecyclePolicyWithContext(ctx aws.Context, input *DeleteLifecyclePolicyInput, opts ...request.Option) (*DeleteLifecyclePolicyOutput, error)
- func (c *MediaStore) DeleteMetricPolicy(input *DeleteMetricPolicyInput) (*DeleteMetricPolicyOutput, error)
- func (c *MediaStore) DeleteMetricPolicyRequest(input *DeleteMetricPolicyInput) (req *request.Request, output *DeleteMetricPolicyOutput)
- func (c *MediaStore) DeleteMetricPolicyWithContext(ctx aws.Context, input *DeleteMetricPolicyInput, opts ...request.Option) (*DeleteMetricPolicyOutput, error)
- func (c *MediaStore) DescribeContainer(input *DescribeContainerInput) (*DescribeContainerOutput, error)
- func (c *MediaStore) DescribeContainerRequest(input *DescribeContainerInput) (req *request.Request, output *DescribeContainerOutput)
- func (c *MediaStore) DescribeContainerWithContext(ctx aws.Context, input *DescribeContainerInput, opts ...request.Option) (*DescribeContainerOutput, error)
- func (c *MediaStore) GetContainerPolicy(input *GetContainerPolicyInput) (*GetContainerPolicyOutput, error)
- func (c *MediaStore) GetContainerPolicyRequest(input *GetContainerPolicyInput) (req *request.Request, output *GetContainerPolicyOutput)
- func (c *MediaStore) GetContainerPolicyWithContext(ctx aws.Context, input *GetContainerPolicyInput, opts ...request.Option) (*GetContainerPolicyOutput, error)
- func (c *MediaStore) GetCorsPolicy(input *GetCorsPolicyInput) (*GetCorsPolicyOutput, error)
- func (c *MediaStore) GetCorsPolicyRequest(input *GetCorsPolicyInput) (req *request.Request, output *GetCorsPolicyOutput)
- func (c *MediaStore) GetCorsPolicyWithContext(ctx aws.Context, input *GetCorsPolicyInput, opts ...request.Option) (*GetCorsPolicyOutput, error)
- func (c *MediaStore) GetLifecyclePolicy(input *GetLifecyclePolicyInput) (*GetLifecyclePolicyOutput, error)
- func (c *MediaStore) GetLifecyclePolicyRequest(input *GetLifecyclePolicyInput) (req *request.Request, output *GetLifecyclePolicyOutput)
- func (c *MediaStore) GetLifecyclePolicyWithContext(ctx aws.Context, input *GetLifecyclePolicyInput, opts ...request.Option) (*GetLifecyclePolicyOutput, error)
- func (c *MediaStore) GetMetricPolicy(input *GetMetricPolicyInput) (*GetMetricPolicyOutput, error)
- func (c *MediaStore) GetMetricPolicyRequest(input *GetMetricPolicyInput) (req *request.Request, output *GetMetricPolicyOutput)
- func (c *MediaStore) GetMetricPolicyWithContext(ctx aws.Context, input *GetMetricPolicyInput, opts ...request.Option) (*GetMetricPolicyOutput, error)
- func (c *MediaStore) ListContainers(input *ListContainersInput) (*ListContainersOutput, error)
- func (c *MediaStore) ListContainersPages(input *ListContainersInput, fn func(*ListContainersOutput, bool) bool) error
- func (c *MediaStore) ListContainersPagesWithContext(ctx aws.Context, input *ListContainersInput, ...) error
- func (c *MediaStore) ListContainersRequest(input *ListContainersInput) (req *request.Request, output *ListContainersOutput)
- func (c *MediaStore) ListContainersWithContext(ctx aws.Context, input *ListContainersInput, opts ...request.Option) (*ListContainersOutput, error)
- func (c *MediaStore) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error)
- func (c *MediaStore) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput)
- func (c *MediaStore) ListTagsForResourceWithContext(ctx aws.Context, input *ListTagsForResourceInput, opts ...request.Option) (*ListTagsForResourceOutput, error)
- func (c *MediaStore) PutContainerPolicy(input *PutContainerPolicyInput) (*PutContainerPolicyOutput, error)
- func (c *MediaStore) PutContainerPolicyRequest(input *PutContainerPolicyInput) (req *request.Request, output *PutContainerPolicyOutput)
- func (c *MediaStore) PutContainerPolicyWithContext(ctx aws.Context, input *PutContainerPolicyInput, opts ...request.Option) (*PutContainerPolicyOutput, error)
- func (c *MediaStore) PutCorsPolicy(input *PutCorsPolicyInput) (*PutCorsPolicyOutput, error)
- func (c *MediaStore) PutCorsPolicyRequest(input *PutCorsPolicyInput) (req *request.Request, output *PutCorsPolicyOutput)
- func (c *MediaStore) PutCorsPolicyWithContext(ctx aws.Context, input *PutCorsPolicyInput, opts ...request.Option) (*PutCorsPolicyOutput, error)
- func (c *MediaStore) PutLifecyclePolicy(input *PutLifecyclePolicyInput) (*PutLifecyclePolicyOutput, error)
- func (c *MediaStore) PutLifecyclePolicyRequest(input *PutLifecyclePolicyInput) (req *request.Request, output *PutLifecyclePolicyOutput)
- func (c *MediaStore) PutLifecyclePolicyWithContext(ctx aws.Context, input *PutLifecyclePolicyInput, opts ...request.Option) (*PutLifecyclePolicyOutput, error)
- func (c *MediaStore) PutMetricPolicy(input *PutMetricPolicyInput) (*PutMetricPolicyOutput, error)
- func (c *MediaStore) PutMetricPolicyRequest(input *PutMetricPolicyInput) (req *request.Request, output *PutMetricPolicyOutput)
- func (c *MediaStore) PutMetricPolicyWithContext(ctx aws.Context, input *PutMetricPolicyInput, opts ...request.Option) (*PutMetricPolicyOutput, error)
- func (c *MediaStore) StartAccessLogging(input *StartAccessLoggingInput) (*StartAccessLoggingOutput, error)
- func (c *MediaStore) StartAccessLoggingRequest(input *StartAccessLoggingInput) (req *request.Request, output *StartAccessLoggingOutput)
- func (c *MediaStore) StartAccessLoggingWithContext(ctx aws.Context, input *StartAccessLoggingInput, opts ...request.Option) (*StartAccessLoggingOutput, error)
- func (c *MediaStore) StopAccessLogging(input *StopAccessLoggingInput) (*StopAccessLoggingOutput, error)
- func (c *MediaStore) StopAccessLoggingRequest(input *StopAccessLoggingInput) (req *request.Request, output *StopAccessLoggingOutput)
- func (c *MediaStore) StopAccessLoggingWithContext(ctx aws.Context, input *StopAccessLoggingInput, opts ...request.Option) (*StopAccessLoggingOutput, error)
- func (c *MediaStore) TagResource(input *TagResourceInput) (*TagResourceOutput, error)
- func (c *MediaStore) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput)
- func (c *MediaStore) TagResourceWithContext(ctx aws.Context, input *TagResourceInput, opts ...request.Option) (*TagResourceOutput, error)
- func (c *MediaStore) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error)
- func (c *MediaStore) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput)
- func (c *MediaStore) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error)
- type MetricPolicy
- type MetricPolicyRule
- type PolicyNotFoundException
- func (s *PolicyNotFoundException) Code() string
- func (s *PolicyNotFoundException) Error() string
- func (s PolicyNotFoundException) GoString() string
- func (s *PolicyNotFoundException) Message() string
- func (s *PolicyNotFoundException) OrigErr() error
- func (s *PolicyNotFoundException) RequestID() string
- func (s *PolicyNotFoundException) StatusCode() int
- func (s PolicyNotFoundException) String() string
- type PutContainerPolicyInput
- func (s PutContainerPolicyInput) GoString() string
- func (s *PutContainerPolicyInput) SetContainerName(v string) *PutContainerPolicyInput
- func (s *PutContainerPolicyInput) SetPolicy(v string) *PutContainerPolicyInput
- func (s PutContainerPolicyInput) String() string
- func (s *PutContainerPolicyInput) Validate() error
- type PutContainerPolicyOutput
- type PutCorsPolicyInput
- type PutCorsPolicyOutput
- type PutLifecyclePolicyInput
- func (s PutLifecyclePolicyInput) GoString() string
- func (s *PutLifecyclePolicyInput) SetContainerName(v string) *PutLifecyclePolicyInput
- func (s *PutLifecyclePolicyInput) SetLifecyclePolicy(v string) *PutLifecyclePolicyInput
- func (s PutLifecyclePolicyInput) String() string
- func (s *PutLifecyclePolicyInput) Validate() error
- type PutLifecyclePolicyOutput
- type PutMetricPolicyInput
- func (s PutMetricPolicyInput) GoString() string
- func (s *PutMetricPolicyInput) SetContainerName(v string) *PutMetricPolicyInput
- func (s *PutMetricPolicyInput) SetMetricPolicy(v *MetricPolicy) *PutMetricPolicyInput
- func (s PutMetricPolicyInput) String() string
- func (s *PutMetricPolicyInput) Validate() error
- type PutMetricPolicyOutput
- type StartAccessLoggingInput
- type StartAccessLoggingOutput
- type StopAccessLoggingInput
- type StopAccessLoggingOutput
- type Tag
- type TagResourceInput
- type TagResourceOutput
- type UntagResourceInput
- type UntagResourceOutput
Constants ¶
const ( // ContainerLevelMetricsEnabled is a ContainerLevelMetrics enum value ContainerLevelMetricsEnabled = "ENABLED" // ContainerLevelMetricsDisabled is a ContainerLevelMetrics enum value ContainerLevelMetricsDisabled = "DISABLED" )
const ( // ContainerStatusActive is a ContainerStatus enum value ContainerStatusActive = "ACTIVE" // ContainerStatusCreating is a ContainerStatus enum value ContainerStatusCreating = "CREATING" // ContainerStatusDeleting is a ContainerStatus enum value ContainerStatusDeleting = "DELETING" )
const ( // MethodNamePut is a MethodName enum value MethodNamePut = "PUT" // MethodNameGet is a MethodName enum value MethodNameGet = "GET" // MethodNameDelete is a MethodName enum value MethodNameDelete = "DELETE" // MethodNameHead is a MethodName enum value MethodNameHead = "HEAD" )
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" )
const ( ServiceName = "mediastore" // Name of service. EndpointsID = ServiceName // ID to lookup a service endpoint with. ServiceID = "MediaStore" // ServiceID is a unique identifier of a specific service. )
Service information constants
Variables ¶
This section is empty.
Functions ¶
func ContainerLevelMetrics_Values ¶
func ContainerLevelMetrics_Values() []string
ContainerLevelMetrics_Values returns all elements of the ContainerLevelMetrics enum
func ContainerStatus_Values ¶
func ContainerStatus_Values() []string
ContainerStatus_Values returns all elements of the ContainerStatus enum
func MethodName_Values ¶
func MethodName_Values() []string
MethodName_Values returns all elements of the MethodName enum
Types ¶
type Container ¶
type Container struct { // The Amazon Resource Name (ARN) of the container. The ARN has the following // format: // // arn:aws:<region>:<account that owns this container>:container/<name of container> // // For example: arn:aws:mediastore:us-west-2:111122223333:container/movies ARN *string `min:"1" type:"string"` // The state of access logging on the container. This value is false by default, // indicating that AWS Elemental MediaStore does not send access logs to Amazon // CloudWatch Logs. When you enable access logging on the container, MediaStore // changes this value to true, indicating that the service delivers access logs // for objects stored in that container to CloudWatch Logs. AccessLoggingEnabled *bool `type:"boolean"` // Unix timestamp. CreationTime *time.Time `type:"timestamp"` // The DNS endpoint of the container. Use the endpoint to identify the specific // container when sending requests to the data plane. The service assigns this // value when the container is created. Once the value has been assigned, it // does not change. Endpoint *string `min:"1" type:"string"` // The name of the container. Name *string `min:"1" type:"string"` // The status of container creation or deletion. The status is one of the following: // CREATING, ACTIVE, or DELETING. While the service is creating the container, // the status is CREATING. When the endpoint is available, the status changes // to ACTIVE. Status *string `min:"1" type:"string" enum:"ContainerStatus"` // contains filtered or unexported fields }
This section describes operations that you can perform on an AWS Elemental MediaStore container.
func (Container) GoString ¶
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*Container) SetAccessLoggingEnabled ¶
SetAccessLoggingEnabled sets the AccessLoggingEnabled field's value.
func (*Container) SetCreationTime ¶
SetCreationTime sets the CreationTime field's value.
func (*Container) SetEndpoint ¶
SetEndpoint sets the Endpoint field's value.
type ContainerInUseException ¶
type ContainerInUseException struct { RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"Message" min:"1" type:"string"` // contains filtered or unexported fields }
The container that you specified in the request already exists or is being updated.
func (*ContainerInUseException) Code ¶
func (s *ContainerInUseException) Code() string
Code returns the exception type name.
func (*ContainerInUseException) Error ¶
func (s *ContainerInUseException) Error() string
func (ContainerInUseException) GoString ¶
func (s ContainerInUseException) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*ContainerInUseException) Message ¶
func (s *ContainerInUseException) Message() string
Message returns the exception's message.
func (*ContainerInUseException) OrigErr ¶
func (s *ContainerInUseException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (*ContainerInUseException) RequestID ¶
func (s *ContainerInUseException) RequestID() string
RequestID returns the service's response RequestID for request.
func (*ContainerInUseException) StatusCode ¶
func (s *ContainerInUseException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (ContainerInUseException) String ¶
func (s ContainerInUseException) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type ContainerNotFoundException ¶
type ContainerNotFoundException struct { RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"Message" min:"1" type:"string"` // contains filtered or unexported fields }
The container that you specified in the request does not exist.
func (*ContainerNotFoundException) Code ¶
func (s *ContainerNotFoundException) Code() string
Code returns the exception type name.
func (*ContainerNotFoundException) Error ¶
func (s *ContainerNotFoundException) Error() string
func (ContainerNotFoundException) GoString ¶
func (s ContainerNotFoundException) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*ContainerNotFoundException) Message ¶
func (s *ContainerNotFoundException) Message() string
Message returns the exception's message.
func (*ContainerNotFoundException) OrigErr ¶
func (s *ContainerNotFoundException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (*ContainerNotFoundException) RequestID ¶
func (s *ContainerNotFoundException) RequestID() string
RequestID returns the service's response RequestID for request.
func (*ContainerNotFoundException) StatusCode ¶
func (s *ContainerNotFoundException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (ContainerNotFoundException) String ¶
func (s ContainerNotFoundException) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type CorsPolicyNotFoundException ¶
type CorsPolicyNotFoundException struct { RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"Message" min:"1" type:"string"` // contains filtered or unexported fields }
The CORS policy that you specified in the request does not exist.
func (*CorsPolicyNotFoundException) Code ¶
func (s *CorsPolicyNotFoundException) Code() string
Code returns the exception type name.
func (*CorsPolicyNotFoundException) Error ¶
func (s *CorsPolicyNotFoundException) Error() string
func (CorsPolicyNotFoundException) GoString ¶
func (s CorsPolicyNotFoundException) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*CorsPolicyNotFoundException) Message ¶
func (s *CorsPolicyNotFoundException) Message() string
Message returns the exception's message.
func (*CorsPolicyNotFoundException) OrigErr ¶
func (s *CorsPolicyNotFoundException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (*CorsPolicyNotFoundException) RequestID ¶
func (s *CorsPolicyNotFoundException) RequestID() string
RequestID returns the service's response RequestID for request.
func (*CorsPolicyNotFoundException) StatusCode ¶
func (s *CorsPolicyNotFoundException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (CorsPolicyNotFoundException) String ¶
func (s CorsPolicyNotFoundException) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type CorsRule ¶
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 []*string `min:"1" type:"list" enum:"MethodName"` // One or more response headers that you want users to be able to access from // their applications (for example, from a JavaScript XMLHttpRequest object). // // Each CORS rule must have at least one AllowedOrigins element. The string // value can include only one wildcard character (*), for example, http://*.example.com. // Additionally, you can specify only one wildcard character to allow cross-origin // access for all origins. // // AllowedOrigins is a required field AllowedOrigins []*string `min:"1" type:"list" required:"true"` // One or more headers in the response that you want users to be able to access // from their applications (for example, from a JavaScript XMLHttpRequest object). // // This element is optional for each rule. ExposeHeaders []*string `type:"list"` // The time in seconds that your browser caches the preflight response for the // specified resource. // // A CORS rule can have only one MaxAgeSeconds element. MaxAgeSeconds *int64 `type:"integer"` // contains filtered or unexported fields }
A rule for a CORS policy. You can add up to 100 rules to a CORS policy. If more than one rule applies, the service uses the first applicable rule listed.
func (CorsRule) GoString ¶
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*CorsRule) SetAllowedHeaders ¶
SetAllowedHeaders sets the AllowedHeaders field's value.
func (*CorsRule) SetAllowedMethods ¶
SetAllowedMethods sets the AllowedMethods field's value.
func (*CorsRule) SetAllowedOrigins ¶
SetAllowedOrigins sets the AllowedOrigins field's value.
func (*CorsRule) SetExposeHeaders ¶
SetExposeHeaders sets the ExposeHeaders field's value.
func (*CorsRule) SetMaxAgeSeconds ¶
SetMaxAgeSeconds sets the MaxAgeSeconds field's value.
type CreateContainerInput ¶
type CreateContainerInput struct { // The name for the container. The name must be from 1 to 255 characters. Container // names must be unique to your AWS account within a specific region. As an // example, you could create a container named movies in every region, as long // as you don’t have an existing container with that name. // // ContainerName is a required field ContainerName *string `min:"1" type:"string" required:"true"` // An array of key:value pairs that you define. These values can be anything // that you want. Typically, the tag key represents a category (such as "environment") // and the tag value represents a specific value within that category (such // as "test," "development," or "production"). You can add up to 50 tags to // each container. For more information about tagging, including naming and // usage conventions, see Tagging Resources in MediaStore (https://docs.aws.amazon.com/mediastore/latest/ug/tagging.html). Tags []*Tag `min:"1" type:"list"` // contains filtered or unexported fields }
func (CreateContainerInput) GoString ¶
func (s CreateContainerInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*CreateContainerInput) SetContainerName ¶
func (s *CreateContainerInput) SetContainerName(v string) *CreateContainerInput
SetContainerName sets the ContainerName field's value.
func (*CreateContainerInput) SetTags ¶
func (s *CreateContainerInput) SetTags(v []*Tag) *CreateContainerInput
SetTags sets the Tags field's value.
func (CreateContainerInput) String ¶
func (s CreateContainerInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*CreateContainerInput) Validate ¶
func (s *CreateContainerInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type CreateContainerOutput ¶
type CreateContainerOutput struct { // ContainerARN: The Amazon Resource Name (ARN) of the newly created container. // The ARN has the following format: arn:aws:<region>:<account that owns this // container>:container/<name of container>. For example: arn:aws:mediastore:us-west-2:111122223333:container/movies // // ContainerName: The container name as specified in the request. // // CreationTime: Unix time stamp. // // Status: The status of container creation or deletion. The status is one of // the following: CREATING, ACTIVE, or DELETING. While the service is creating // the container, the status is CREATING. When an endpoint is available, the // status changes to ACTIVE. // // The return value does not include the container's endpoint. To make downstream // requests, you must obtain this value by using DescribeContainer or ListContainers. // // Container is a required field Container *Container `type:"structure" required:"true"` // contains filtered or unexported fields }
func (CreateContainerOutput) GoString ¶
func (s CreateContainerOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*CreateContainerOutput) SetContainer ¶
func (s *CreateContainerOutput) SetContainer(v *Container) *CreateContainerOutput
SetContainer sets the Container field's value.
func (CreateContainerOutput) String ¶
func (s CreateContainerOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type DeleteContainerInput ¶
type DeleteContainerInput struct { // The name of the container to delete. // // ContainerName is a required field ContainerName *string `min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
func (DeleteContainerInput) GoString ¶
func (s DeleteContainerInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*DeleteContainerInput) SetContainerName ¶
func (s *DeleteContainerInput) SetContainerName(v string) *DeleteContainerInput
SetContainerName sets the ContainerName field's value.
func (DeleteContainerInput) String ¶
func (s DeleteContainerInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*DeleteContainerInput) Validate ¶
func (s *DeleteContainerInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DeleteContainerOutput ¶
type DeleteContainerOutput struct {
// contains filtered or unexported fields
}
func (DeleteContainerOutput) GoString ¶
func (s DeleteContainerOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (DeleteContainerOutput) String ¶
func (s DeleteContainerOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type DeleteContainerPolicyInput ¶
type DeleteContainerPolicyInput struct { // The name of the container that holds the policy. // // ContainerName is a required field ContainerName *string `min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
func (DeleteContainerPolicyInput) GoString ¶
func (s DeleteContainerPolicyInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*DeleteContainerPolicyInput) SetContainerName ¶
func (s *DeleteContainerPolicyInput) SetContainerName(v string) *DeleteContainerPolicyInput
SetContainerName sets the ContainerName field's value.
func (DeleteContainerPolicyInput) String ¶
func (s DeleteContainerPolicyInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*DeleteContainerPolicyInput) Validate ¶
func (s *DeleteContainerPolicyInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DeleteContainerPolicyOutput ¶
type DeleteContainerPolicyOutput struct {
// contains filtered or unexported fields
}
func (DeleteContainerPolicyOutput) GoString ¶
func (s DeleteContainerPolicyOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (DeleteContainerPolicyOutput) String ¶
func (s DeleteContainerPolicyOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type DeleteCorsPolicyInput ¶
type DeleteCorsPolicyInput struct { // The name of the container to remove the policy from. // // ContainerName is a required field ContainerName *string `min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
func (DeleteCorsPolicyInput) GoString ¶
func (s DeleteCorsPolicyInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*DeleteCorsPolicyInput) SetContainerName ¶
func (s *DeleteCorsPolicyInput) SetContainerName(v string) *DeleteCorsPolicyInput
SetContainerName sets the ContainerName field's value.
func (DeleteCorsPolicyInput) String ¶
func (s DeleteCorsPolicyInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*DeleteCorsPolicyInput) Validate ¶
func (s *DeleteCorsPolicyInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DeleteCorsPolicyOutput ¶
type DeleteCorsPolicyOutput struct {
// contains filtered or unexported fields
}
func (DeleteCorsPolicyOutput) GoString ¶
func (s DeleteCorsPolicyOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (DeleteCorsPolicyOutput) String ¶
func (s DeleteCorsPolicyOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type DeleteLifecyclePolicyInput ¶
type DeleteLifecyclePolicyInput struct { // The name of the container that holds the object lifecycle policy. // // ContainerName is a required field ContainerName *string `min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
func (DeleteLifecyclePolicyInput) GoString ¶
func (s DeleteLifecyclePolicyInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*DeleteLifecyclePolicyInput) SetContainerName ¶
func (s *DeleteLifecyclePolicyInput) SetContainerName(v string) *DeleteLifecyclePolicyInput
SetContainerName sets the ContainerName field's value.
func (DeleteLifecyclePolicyInput) String ¶
func (s DeleteLifecyclePolicyInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*DeleteLifecyclePolicyInput) Validate ¶
func (s *DeleteLifecyclePolicyInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DeleteLifecyclePolicyOutput ¶
type DeleteLifecyclePolicyOutput struct {
// contains filtered or unexported fields
}
func (DeleteLifecyclePolicyOutput) GoString ¶
func (s DeleteLifecyclePolicyOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (DeleteLifecyclePolicyOutput) String ¶
func (s DeleteLifecyclePolicyOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type DeleteMetricPolicyInput ¶
type DeleteMetricPolicyInput struct { // The name of the container that is associated with the metric policy that // you want to delete. // // ContainerName is a required field ContainerName *string `min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
func (DeleteMetricPolicyInput) GoString ¶
func (s DeleteMetricPolicyInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*DeleteMetricPolicyInput) SetContainerName ¶
func (s *DeleteMetricPolicyInput) SetContainerName(v string) *DeleteMetricPolicyInput
SetContainerName sets the ContainerName field's value.
func (DeleteMetricPolicyInput) String ¶
func (s DeleteMetricPolicyInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*DeleteMetricPolicyInput) Validate ¶
func (s *DeleteMetricPolicyInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DeleteMetricPolicyOutput ¶
type DeleteMetricPolicyOutput struct {
// contains filtered or unexported fields
}
func (DeleteMetricPolicyOutput) GoString ¶
func (s DeleteMetricPolicyOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (DeleteMetricPolicyOutput) String ¶
func (s DeleteMetricPolicyOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type DescribeContainerInput ¶
type DescribeContainerInput struct { // The name of the container to query. ContainerName *string `min:"1" type:"string"` // contains filtered or unexported fields }
func (DescribeContainerInput) GoString ¶
func (s DescribeContainerInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*DescribeContainerInput) SetContainerName ¶
func (s *DescribeContainerInput) SetContainerName(v string) *DescribeContainerInput
SetContainerName sets the ContainerName field's value.
func (DescribeContainerInput) String ¶
func (s DescribeContainerInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*DescribeContainerInput) Validate ¶
func (s *DescribeContainerInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DescribeContainerOutput ¶
type DescribeContainerOutput struct { // The name of the queried container. Container *Container `type:"structure"` // contains filtered or unexported fields }
func (DescribeContainerOutput) GoString ¶
func (s DescribeContainerOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*DescribeContainerOutput) SetContainer ¶
func (s *DescribeContainerOutput) SetContainer(v *Container) *DescribeContainerOutput
SetContainer sets the Container field's value.
func (DescribeContainerOutput) String ¶
func (s DescribeContainerOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type GetContainerPolicyInput ¶
type GetContainerPolicyInput struct { // The name of the container. // // ContainerName is a required field ContainerName *string `min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
func (GetContainerPolicyInput) GoString ¶
func (s GetContainerPolicyInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*GetContainerPolicyInput) SetContainerName ¶
func (s *GetContainerPolicyInput) SetContainerName(v string) *GetContainerPolicyInput
SetContainerName sets the ContainerName field's value.
func (GetContainerPolicyInput) String ¶
func (s GetContainerPolicyInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*GetContainerPolicyInput) Validate ¶
func (s *GetContainerPolicyInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetContainerPolicyOutput ¶
type GetContainerPolicyOutput struct { // The contents of the access policy. // // Policy is a required field Policy *string `min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
func (GetContainerPolicyOutput) GoString ¶
func (s GetContainerPolicyOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*GetContainerPolicyOutput) SetPolicy ¶
func (s *GetContainerPolicyOutput) SetPolicy(v string) *GetContainerPolicyOutput
SetPolicy sets the Policy field's value.
func (GetContainerPolicyOutput) String ¶
func (s GetContainerPolicyOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type GetCorsPolicyInput ¶
type GetCorsPolicyInput struct { // The name of the container that the policy is assigned to. // // ContainerName is a required field ContainerName *string `min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
func (GetCorsPolicyInput) GoString ¶
func (s GetCorsPolicyInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*GetCorsPolicyInput) SetContainerName ¶
func (s *GetCorsPolicyInput) SetContainerName(v string) *GetCorsPolicyInput
SetContainerName sets the ContainerName field's value.
func (GetCorsPolicyInput) String ¶
func (s GetCorsPolicyInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*GetCorsPolicyInput) Validate ¶
func (s *GetCorsPolicyInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetCorsPolicyOutput ¶
type GetCorsPolicyOutput struct { // The CORS policy assigned to the container. // // CorsPolicy is a required field CorsPolicy []*CorsRule `min:"1" type:"list" required:"true"` // contains filtered or unexported fields }
func (GetCorsPolicyOutput) GoString ¶
func (s GetCorsPolicyOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*GetCorsPolicyOutput) SetCorsPolicy ¶
func (s *GetCorsPolicyOutput) SetCorsPolicy(v []*CorsRule) *GetCorsPolicyOutput
SetCorsPolicy sets the CorsPolicy field's value.
func (GetCorsPolicyOutput) String ¶
func (s GetCorsPolicyOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type GetLifecyclePolicyInput ¶
type GetLifecyclePolicyInput struct { // The name of the container that the object lifecycle policy is assigned to. // // ContainerName is a required field ContainerName *string `min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
func (GetLifecyclePolicyInput) GoString ¶
func (s GetLifecyclePolicyInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*GetLifecyclePolicyInput) SetContainerName ¶
func (s *GetLifecyclePolicyInput) SetContainerName(v string) *GetLifecyclePolicyInput
SetContainerName sets the ContainerName field's value.
func (GetLifecyclePolicyInput) String ¶
func (s GetLifecyclePolicyInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*GetLifecyclePolicyInput) Validate ¶
func (s *GetLifecyclePolicyInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetLifecyclePolicyOutput ¶
type GetLifecyclePolicyOutput struct { // The object lifecycle policy that is assigned to the container. // // LifecyclePolicy is a required field LifecyclePolicy *string `type:"string" required:"true"` // contains filtered or unexported fields }
func (GetLifecyclePolicyOutput) GoString ¶
func (s GetLifecyclePolicyOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*GetLifecyclePolicyOutput) SetLifecyclePolicy ¶
func (s *GetLifecyclePolicyOutput) SetLifecyclePolicy(v string) *GetLifecyclePolicyOutput
SetLifecyclePolicy sets the LifecyclePolicy field's value.
func (GetLifecyclePolicyOutput) String ¶
func (s GetLifecyclePolicyOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type GetMetricPolicyInput ¶
type GetMetricPolicyInput struct { // The name of the container that is associated with the metric policy. // // ContainerName is a required field ContainerName *string `min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
func (GetMetricPolicyInput) GoString ¶
func (s GetMetricPolicyInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*GetMetricPolicyInput) SetContainerName ¶
func (s *GetMetricPolicyInput) SetContainerName(v string) *GetMetricPolicyInput
SetContainerName sets the ContainerName field's value.
func (GetMetricPolicyInput) String ¶
func (s GetMetricPolicyInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*GetMetricPolicyInput) Validate ¶
func (s *GetMetricPolicyInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetMetricPolicyOutput ¶
type GetMetricPolicyOutput struct { // The metric policy that is associated with the specific container. // // MetricPolicy is a required field MetricPolicy *MetricPolicy `type:"structure" required:"true"` // contains filtered or unexported fields }
func (GetMetricPolicyOutput) GoString ¶
func (s GetMetricPolicyOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*GetMetricPolicyOutput) SetMetricPolicy ¶
func (s *GetMetricPolicyOutput) SetMetricPolicy(v *MetricPolicy) *GetMetricPolicyOutput
SetMetricPolicy sets the MetricPolicy field's value.
func (GetMetricPolicyOutput) String ¶
func (s GetMetricPolicyOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type InternalServerError ¶
type InternalServerError struct { RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"Message" min:"1" type:"string"` // contains filtered or unexported fields }
The service is temporarily unavailable.
func (*InternalServerError) Code ¶
func (s *InternalServerError) Code() string
Code returns the exception type name.
func (*InternalServerError) Error ¶
func (s *InternalServerError) Error() string
func (InternalServerError) GoString ¶
func (s InternalServerError) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*InternalServerError) Message ¶
func (s *InternalServerError) Message() string
Message returns the exception's message.
func (*InternalServerError) OrigErr ¶
func (s *InternalServerError) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (*InternalServerError) RequestID ¶
func (s *InternalServerError) RequestID() string
RequestID returns the service's response RequestID for request.
func (*InternalServerError) StatusCode ¶
func (s *InternalServerError) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (InternalServerError) String ¶
func (s InternalServerError) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type LimitExceededException ¶
type LimitExceededException struct { RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"Message" min:"1" type:"string"` // contains filtered or unexported fields }
A service limit has been exceeded.
func (*LimitExceededException) Code ¶
func (s *LimitExceededException) Code() string
Code returns the exception type name.
func (*LimitExceededException) Error ¶
func (s *LimitExceededException) Error() string
func (LimitExceededException) GoString ¶
func (s LimitExceededException) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*LimitExceededException) Message ¶
func (s *LimitExceededException) Message() string
Message returns the exception's message.
func (*LimitExceededException) OrigErr ¶
func (s *LimitExceededException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (*LimitExceededException) RequestID ¶
func (s *LimitExceededException) RequestID() string
RequestID returns the service's response RequestID for request.
func (*LimitExceededException) StatusCode ¶
func (s *LimitExceededException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (LimitExceededException) String ¶
func (s LimitExceededException) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type ListContainersInput ¶
type ListContainersInput struct { // Enter the maximum number of containers in the response. Use from 1 to 255 // characters. MaxResults *int64 `min:"1" type:"integer"` // Only if you used MaxResults in the first command, enter the token (which // was included in the previous response) to obtain the next set of containers. // This token is included in a response only if there actually are more containers // to list. NextToken *string `min:"1" type:"string"` // contains filtered or unexported fields }
func (ListContainersInput) GoString ¶
func (s ListContainersInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*ListContainersInput) SetMaxResults ¶
func (s *ListContainersInput) SetMaxResults(v int64) *ListContainersInput
SetMaxResults sets the MaxResults field's value.
func (*ListContainersInput) SetNextToken ¶
func (s *ListContainersInput) SetNextToken(v string) *ListContainersInput
SetNextToken sets the NextToken field's value.
func (ListContainersInput) String ¶
func (s ListContainersInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*ListContainersInput) Validate ¶
func (s *ListContainersInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ListContainersOutput ¶
type ListContainersOutput struct { // The names of the containers. // // Containers is a required field Containers []*Container `type:"list" required:"true"` // NextToken is the token to use in the next call to ListContainers. This token // is returned only if you included the MaxResults tag in the original command, // and only if there are still containers to return. NextToken *string `min:"1" type:"string"` // contains filtered or unexported fields }
func (ListContainersOutput) GoString ¶
func (s ListContainersOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*ListContainersOutput) SetContainers ¶
func (s *ListContainersOutput) SetContainers(v []*Container) *ListContainersOutput
SetContainers sets the Containers field's value.
func (*ListContainersOutput) SetNextToken ¶
func (s *ListContainersOutput) SetNextToken(v string) *ListContainersOutput
SetNextToken sets the NextToken field's value.
func (ListContainersOutput) String ¶
func (s ListContainersOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type ListTagsForResourceInput ¶
type ListTagsForResourceInput struct { // The Amazon Resource Name (ARN) for the container. // // Resource is a required field Resource *string `min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
func (ListTagsForResourceInput) GoString ¶
func (s ListTagsForResourceInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*ListTagsForResourceInput) SetResource ¶
func (s *ListTagsForResourceInput) SetResource(v string) *ListTagsForResourceInput
SetResource sets the Resource field's value.
func (ListTagsForResourceInput) String ¶
func (s ListTagsForResourceInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*ListTagsForResourceInput) Validate ¶
func (s *ListTagsForResourceInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ListTagsForResourceOutput ¶
type ListTagsForResourceOutput struct { // An array of key:value pairs that are assigned to the container. Tags []*Tag `min:"1" type:"list"` // contains filtered or unexported fields }
func (ListTagsForResourceOutput) GoString ¶
func (s ListTagsForResourceOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*ListTagsForResourceOutput) SetTags ¶
func (s *ListTagsForResourceOutput) SetTags(v []*Tag) *ListTagsForResourceOutput
SetTags sets the Tags field's value.
func (ListTagsForResourceOutput) String ¶
func (s ListTagsForResourceOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type MediaStore ¶
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.
func New ¶
func New(p client.ConfigProvider, cfgs ...*aws.Config) *MediaStore
New creates a new instance of the MediaStore client with a session. If additional configuration is needed for the client instance use the optional aws.Config parameter to add your extra config.
Example:
mySession := session.Must(session.NewSession()) // Create a MediaStore client from just a session. svc := mediastore.New(mySession) // Create a MediaStore client with additional configuration svc := mediastore.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func (*MediaStore) 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 Types:
ContainerInUseException The container that you specified in the request already exists or is being updated.
LimitExceededException A service limit has been exceeded.
InternalServerError The service is temporarily unavailable.
See also, https://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/CreateContainer
func (*MediaStore) 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
func (*MediaStore) 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.
func (*MediaStore) 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 Types:
ContainerInUseException The container that you specified in the request already exists or is being updated.
ContainerNotFoundException The container that you specified in the request does not exist.
InternalServerError The service is temporarily unavailable.
See also, https://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/DeleteContainer
func (*MediaStore) 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 Types:
ContainerInUseException The container that you specified in the request already exists or is being updated.
ContainerNotFoundException The container that you specified in the request does not exist.
PolicyNotFoundException The policy that you specified in the request does not exist.
InternalServerError The service is temporarily unavailable.
See also, https://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/DeleteContainerPolicy
func (*MediaStore) 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
func (*MediaStore) 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.
func (*MediaStore) 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
func (*MediaStore) 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.
func (*MediaStore) 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 Types:
ContainerInUseException The container that you specified in the request already exists or is being updated.
ContainerNotFoundException The container that you specified in the request does not exist.
CorsPolicyNotFoundException The CORS policy that you specified in the request does not exist.
InternalServerError The service is temporarily unavailable.
See also, https://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/DeleteCorsPolicy
func (*MediaStore) 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
func (*MediaStore) 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.
func (*MediaStore) 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 Types:
ContainerInUseException The container that you specified in the request already exists or is being updated.
ContainerNotFoundException The container that you specified in the request does not exist.
PolicyNotFoundException The policy that you specified in the request does not exist.
InternalServerError The service is temporarily unavailable.
See also, https://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/DeleteLifecyclePolicy
func (*MediaStore) 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
func (*MediaStore) 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.
func (*MediaStore) DeleteMetricPolicy ¶
func (c *MediaStore) DeleteMetricPolicy(input *DeleteMetricPolicyInput) (*DeleteMetricPolicyOutput, error)
DeleteMetricPolicy API operation for AWS Elemental MediaStore.
Deletes the metric policy that is associated with the specified container. If there is no metric policy associated with the container, MediaStore doesn't send metrics to CloudWatch.
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 DeleteMetricPolicy for usage and error information.
Returned Error Types:
ContainerInUseException The container that you specified in the request already exists or is being updated.
ContainerNotFoundException The container that you specified in the request does not exist.
PolicyNotFoundException The policy that you specified in the request does not exist.
InternalServerError The service is temporarily unavailable.
See also, https://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/DeleteMetricPolicy
func (*MediaStore) DeleteMetricPolicyRequest ¶
func (c *MediaStore) DeleteMetricPolicyRequest(input *DeleteMetricPolicyInput) (req *request.Request, output *DeleteMetricPolicyOutput)
DeleteMetricPolicyRequest generates a "aws/request.Request" representing the client's request for the DeleteMetricPolicy 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 DeleteMetricPolicy for more information on using the DeleteMetricPolicy 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 DeleteMetricPolicyRequest method. req, resp := client.DeleteMetricPolicyRequest(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/DeleteMetricPolicy
func (*MediaStore) DeleteMetricPolicyWithContext ¶
func (c *MediaStore) DeleteMetricPolicyWithContext(ctx aws.Context, input *DeleteMetricPolicyInput, opts ...request.Option) (*DeleteMetricPolicyOutput, error)
DeleteMetricPolicyWithContext is the same as DeleteMetricPolicy with the addition of the ability to pass a context and additional request options.
See DeleteMetricPolicy 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.
func (*MediaStore) 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 Types:
ContainerNotFoundException The container that you specified in the request does not exist.
InternalServerError The service is temporarily unavailable.
See also, https://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/DescribeContainer
func (*MediaStore) 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
func (*MediaStore) 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.
func (*MediaStore) 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 Types:
ContainerInUseException The container that you specified in the request already exists or is being updated.
ContainerNotFoundException The container that you specified in the request does not exist.
PolicyNotFoundException The policy that you specified in the request does not exist.
InternalServerError The service is temporarily unavailable.
See also, https://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/GetContainerPolicy
func (*MediaStore) 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
func (*MediaStore) 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.
func (*MediaStore) 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 Types:
ContainerInUseException The container that you specified in the request already exists or is being updated.
ContainerNotFoundException The container that you specified in the request does not exist.
CorsPolicyNotFoundException The CORS policy that you specified in the request does not exist.
InternalServerError The service is temporarily unavailable.
See also, https://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/GetCorsPolicy
func (*MediaStore) 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
func (*MediaStore) 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.
func (*MediaStore) 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 Types:
ContainerInUseException The container that you specified in the request already exists or is being updated.
ContainerNotFoundException The container that you specified in the request does not exist.
PolicyNotFoundException The policy that you specified in the request does not exist.
InternalServerError The service is temporarily unavailable.
See also, https://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/GetLifecyclePolicy
func (*MediaStore) 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
func (*MediaStore) 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.
func (*MediaStore) GetMetricPolicy ¶
func (c *MediaStore) GetMetricPolicy(input *GetMetricPolicyInput) (*GetMetricPolicyOutput, error)
GetMetricPolicy API operation for AWS Elemental MediaStore.
Returns the metric policy for 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 GetMetricPolicy for usage and error information.
Returned Error Types:
ContainerNotFoundException The container that you specified in the request does not exist.
PolicyNotFoundException The policy that you specified in the request does not exist.
ContainerInUseException The container that you specified in the request already exists or is being updated.
InternalServerError The service is temporarily unavailable.
See also, https://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/GetMetricPolicy
func (*MediaStore) GetMetricPolicyRequest ¶
func (c *MediaStore) GetMetricPolicyRequest(input *GetMetricPolicyInput) (req *request.Request, output *GetMetricPolicyOutput)
GetMetricPolicyRequest generates a "aws/request.Request" representing the client's request for the GetMetricPolicy 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 GetMetricPolicy for more information on using the GetMetricPolicy 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 GetMetricPolicyRequest method. req, resp := client.GetMetricPolicyRequest(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/GetMetricPolicy
func (*MediaStore) GetMetricPolicyWithContext ¶
func (c *MediaStore) GetMetricPolicyWithContext(ctx aws.Context, input *GetMetricPolicyInput, opts ...request.Option) (*GetMetricPolicyOutput, error)
GetMetricPolicyWithContext is the same as GetMetricPolicy with the addition of the ability to pass a context and additional request options.
See GetMetricPolicy 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.
func (*MediaStore) 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 Types:
- InternalServerError The service is temporarily unavailable.
See also, https://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/ListContainers
func (*MediaStore) ListContainersPages ¶
func (c *MediaStore) ListContainersPages(input *ListContainersInput, fn func(*ListContainersOutput, bool) bool) error
ListContainersPages iterates over the pages of a ListContainers operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.
See ListContainers method for more information on how to use this operation.
Note: This operation can generate multiple requests to a service.
// Example iterating over at most 3 pages of a ListContainers operation. pageNum := 0 err := client.ListContainersPages(params, func(page *mediastore.ListContainersOutput, lastPage bool) bool { pageNum++ fmt.Println(page) return pageNum <= 3 })
func (*MediaStore) ListContainersPagesWithContext ¶
func (c *MediaStore) ListContainersPagesWithContext(ctx aws.Context, input *ListContainersInput, fn func(*ListContainersOutput, bool) bool, opts ...request.Option) error
ListContainersPagesWithContext same as ListContainersPages except it takes a Context and allows setting request options on the pages.
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.
func (*MediaStore) 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
func (*MediaStore) 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.
func (*MediaStore) ListTagsForResource ¶
func (c *MediaStore) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error)
ListTagsForResource API operation for AWS Elemental MediaStore.
Returns a list of the tags assigned to 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 ListTagsForResource for usage and error information.
Returned Error Types:
ContainerInUseException The container that you specified in the request already exists or is being updated.
ContainerNotFoundException The container that you specified in the request does not exist.
InternalServerError The service is temporarily unavailable.
See also, https://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/ListTagsForResource
func (*MediaStore) ListTagsForResourceRequest ¶
func (c *MediaStore) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput)
ListTagsForResourceRequest generates a "aws/request.Request" representing the client's request for the ListTagsForResource 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 ListTagsForResource for more information on using the ListTagsForResource 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 ListTagsForResourceRequest method. req, resp := client.ListTagsForResourceRequest(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/ListTagsForResource
func (*MediaStore) ListTagsForResourceWithContext ¶
func (c *MediaStore) ListTagsForResourceWithContext(ctx aws.Context, input *ListTagsForResourceInput, opts ...request.Option) (*ListTagsForResourceOutput, error)
ListTagsForResourceWithContext is the same as ListTagsForResource with the addition of the ability to pass a context and additional request options.
See ListTagsForResource 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.
func (*MediaStore) 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 Types:
ContainerNotFoundException The container that you specified in the request does not exist.
ContainerInUseException The container that you specified in the request already exists or is being updated.
InternalServerError The service is temporarily unavailable.
See also, https://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/PutContainerPolicy
func (*MediaStore) 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
func (*MediaStore) 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.
func (*MediaStore) 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 Types:
ContainerNotFoundException The container that you specified in the request does not exist.
ContainerInUseException The container that you specified in the request already exists or is being updated.
InternalServerError The service is temporarily unavailable.
See also, https://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/PutCorsPolicy
func (*MediaStore) 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
func (*MediaStore) 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.
func (*MediaStore) 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 Types:
ContainerInUseException The container that you specified in the request already exists or is being updated.
ContainerNotFoundException The container that you specified in the request does not exist.
InternalServerError The service is temporarily unavailable.
See also, https://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/PutLifecyclePolicy
func (*MediaStore) 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
func (*MediaStore) 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.
func (*MediaStore) PutMetricPolicy ¶
func (c *MediaStore) PutMetricPolicy(input *PutMetricPolicyInput) (*PutMetricPolicyOutput, error)
PutMetricPolicy API operation for AWS Elemental MediaStore.
The metric policy that you want to add to the container. A metric policy allows AWS Elemental MediaStore to send metrics to Amazon CloudWatch. It takes up to 20 minutes for the new policy to take effect.
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 PutMetricPolicy for usage and error information.
Returned Error Types:
ContainerInUseException The container that you specified in the request already exists or is being updated.
ContainerNotFoundException The container that you specified in the request does not exist.
InternalServerError The service is temporarily unavailable.
See also, https://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/PutMetricPolicy
func (*MediaStore) PutMetricPolicyRequest ¶
func (c *MediaStore) PutMetricPolicyRequest(input *PutMetricPolicyInput) (req *request.Request, output *PutMetricPolicyOutput)
PutMetricPolicyRequest generates a "aws/request.Request" representing the client's request for the PutMetricPolicy 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 PutMetricPolicy for more information on using the PutMetricPolicy 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 PutMetricPolicyRequest method. req, resp := client.PutMetricPolicyRequest(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/PutMetricPolicy
func (*MediaStore) PutMetricPolicyWithContext ¶
func (c *MediaStore) PutMetricPolicyWithContext(ctx aws.Context, input *PutMetricPolicyInput, opts ...request.Option) (*PutMetricPolicyOutput, error)
PutMetricPolicyWithContext is the same as PutMetricPolicy with the addition of the ability to pass a context and additional request options.
See PutMetricPolicy 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.
func (*MediaStore) 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 Types:
ContainerInUseException The container that you specified in the request already exists or is being updated.
ContainerNotFoundException The container that you specified in the request does not exist.
InternalServerError The service is temporarily unavailable.
See also, https://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/StartAccessLogging
func (*MediaStore) 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
func (*MediaStore) 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.
func (*MediaStore) 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 Types:
ContainerInUseException The container that you specified in the request already exists or is being updated.
ContainerNotFoundException The container that you specified in the request does not exist.
InternalServerError The service is temporarily unavailable.
See also, https://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/StopAccessLogging
func (*MediaStore) 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
func (*MediaStore) 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.
func (*MediaStore) TagResource ¶
func (c *MediaStore) TagResource(input *TagResourceInput) (*TagResourceOutput, error)
TagResource API operation for AWS Elemental MediaStore.
Adds tags to the specified AWS Elemental MediaStore container. Tags are key:value pairs that you can associate with AWS resources. For example, the tag key might be "customer" and the tag value might be "companyA." You can specify one or more tags to add to each container. You can add up to 50 tags to each container. For more information about tagging, including naming and usage conventions, see Tagging Resources in MediaStore (https://docs.aws.amazon.com/mediastore/latest/ug/tagging.html).
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 TagResource for usage and error information.
Returned Error Types:
ContainerInUseException The container that you specified in the request already exists or is being updated.
ContainerNotFoundException The container that you specified in the request does not exist.
InternalServerError The service is temporarily unavailable.
See also, https://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/TagResource
func (*MediaStore) TagResourceRequest ¶
func (c *MediaStore) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput)
TagResourceRequest generates a "aws/request.Request" representing the client's request for the TagResource 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 TagResource for more information on using the TagResource 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 TagResourceRequest method. req, resp := client.TagResourceRequest(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/TagResource
func (*MediaStore) TagResourceWithContext ¶
func (c *MediaStore) TagResourceWithContext(ctx aws.Context, input *TagResourceInput, opts ...request.Option) (*TagResourceOutput, error)
TagResourceWithContext is the same as TagResource with the addition of the ability to pass a context and additional request options.
See TagResource 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.
func (*MediaStore) UntagResource ¶
func (c *MediaStore) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error)
UntagResource API operation for AWS Elemental MediaStore.
Removes tags from the specified container. You can specify one or more tags to remove.
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 UntagResource for usage and error information.
Returned Error Types:
ContainerInUseException The container that you specified in the request already exists or is being updated.
ContainerNotFoundException The container that you specified in the request does not exist.
InternalServerError The service is temporarily unavailable.
See also, https://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/UntagResource
func (*MediaStore) UntagResourceRequest ¶
func (c *MediaStore) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput)
UntagResourceRequest generates a "aws/request.Request" representing the client's request for the UntagResource 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 UntagResource for more information on using the UntagResource 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 UntagResourceRequest method. req, resp := client.UntagResourceRequest(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/UntagResource
func (*MediaStore) UntagResourceWithContext ¶
func (c *MediaStore) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error)
UntagResourceWithContext is the same as UntagResource with the addition of the ability to pass a context and additional request options.
See UntagResource 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.
type MetricPolicy ¶
type MetricPolicy struct { // A setting to enable or disable metrics at the container level. // // ContainerLevelMetrics is a required field ContainerLevelMetrics *string `type:"string" required:"true" enum:"ContainerLevelMetrics"` // A parameter that holds an array of rules that enable metrics at the object // level. This parameter is optional, but if you choose to include it, you must // also include at least one rule. By default, you can include up to five rules. // You can also request a quota increase (https://console.aws.amazon.com/servicequotas/home?region=us-east-1#!/services/mediastore/quotas) // to allow up to 300 rules per policy. MetricPolicyRules []*MetricPolicyRule `min:"1" type:"list"` // contains filtered or unexported fields }
The metric policy that is associated with the container. A metric policy allows AWS Elemental MediaStore to send metrics to Amazon CloudWatch. In the policy, you must indicate whether you want MediaStore to send container-level metrics. You can also include rules to define groups of objects that you want MediaStore to send object-level metrics for.
To view examples of how to construct a metric policy for your use case, see Example Metric Policies (https://docs.aws.amazon.com/mediastore/latest/ug/policies-metric-examples.html).
func (MetricPolicy) GoString ¶
func (s MetricPolicy) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*MetricPolicy) SetContainerLevelMetrics ¶
func (s *MetricPolicy) SetContainerLevelMetrics(v string) *MetricPolicy
SetContainerLevelMetrics sets the ContainerLevelMetrics field's value.
func (*MetricPolicy) SetMetricPolicyRules ¶
func (s *MetricPolicy) SetMetricPolicyRules(v []*MetricPolicyRule) *MetricPolicy
SetMetricPolicyRules sets the MetricPolicyRules field's value.
func (MetricPolicy) String ¶
func (s MetricPolicy) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*MetricPolicy) Validate ¶
func (s *MetricPolicy) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type MetricPolicyRule ¶
type MetricPolicyRule struct { // A path or file name that defines which objects to include in the group. Wildcards // (*) are acceptable. // // ObjectGroup is a required field ObjectGroup *string `min:"1" type:"string" required:"true"` // A name that allows you to refer to the object group. // // ObjectGroupName is a required field ObjectGroupName *string `min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
A setting that enables metrics at the object level. Each rule contains an object group and an object group name. If the policy includes the MetricPolicyRules parameter, you must include at least one rule. Each metric policy can include up to five rules by default. You can also request a quota increase (https://console.aws.amazon.com/servicequotas/home?region=us-east-1#!/services/mediastore/quotas) to allow up to 300 rules per policy.
func (MetricPolicyRule) GoString ¶
func (s MetricPolicyRule) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*MetricPolicyRule) SetObjectGroup ¶
func (s *MetricPolicyRule) SetObjectGroup(v string) *MetricPolicyRule
SetObjectGroup sets the ObjectGroup field's value.
func (*MetricPolicyRule) SetObjectGroupName ¶
func (s *MetricPolicyRule) SetObjectGroupName(v string) *MetricPolicyRule
SetObjectGroupName sets the ObjectGroupName field's value.
func (MetricPolicyRule) String ¶
func (s MetricPolicyRule) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*MetricPolicyRule) Validate ¶
func (s *MetricPolicyRule) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type PolicyNotFoundException ¶
type PolicyNotFoundException struct { RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"Message" min:"1" type:"string"` // contains filtered or unexported fields }
The policy that you specified in the request does not exist.
func (*PolicyNotFoundException) Code ¶
func (s *PolicyNotFoundException) Code() string
Code returns the exception type name.
func (*PolicyNotFoundException) Error ¶
func (s *PolicyNotFoundException) Error() string
func (PolicyNotFoundException) GoString ¶
func (s PolicyNotFoundException) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*PolicyNotFoundException) Message ¶
func (s *PolicyNotFoundException) Message() string
Message returns the exception's message.
func (*PolicyNotFoundException) OrigErr ¶
func (s *PolicyNotFoundException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (*PolicyNotFoundException) RequestID ¶
func (s *PolicyNotFoundException) RequestID() string
RequestID returns the service's response RequestID for request.
func (*PolicyNotFoundException) StatusCode ¶
func (s *PolicyNotFoundException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (PolicyNotFoundException) String ¶
func (s PolicyNotFoundException) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type PutContainerPolicyInput ¶
type PutContainerPolicyInput struct { // The name of the container. // // ContainerName is a required field ContainerName *string `min:"1" type:"string" required:"true"` // The contents of the policy, which includes the following: // // * One Version tag // // * One Statement tag that contains the standard tags for the policy. // // Policy is a required field Policy *string `min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
func (PutContainerPolicyInput) GoString ¶
func (s PutContainerPolicyInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*PutContainerPolicyInput) SetContainerName ¶
func (s *PutContainerPolicyInput) SetContainerName(v string) *PutContainerPolicyInput
SetContainerName sets the ContainerName field's value.
func (*PutContainerPolicyInput) SetPolicy ¶
func (s *PutContainerPolicyInput) SetPolicy(v string) *PutContainerPolicyInput
SetPolicy sets the Policy field's value.
func (PutContainerPolicyInput) String ¶
func (s PutContainerPolicyInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*PutContainerPolicyInput) Validate ¶
func (s *PutContainerPolicyInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type PutContainerPolicyOutput ¶
type PutContainerPolicyOutput struct {
// contains filtered or unexported fields
}
func (PutContainerPolicyOutput) GoString ¶
func (s PutContainerPolicyOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (PutContainerPolicyOutput) String ¶
func (s PutContainerPolicyOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type PutCorsPolicyInput ¶
type PutCorsPolicyInput struct { // The name of the container that you want to assign the CORS policy to. // // ContainerName is a required field ContainerName *string `min:"1" type:"string" required:"true"` // The CORS policy to apply to the container. // // CorsPolicy is a required field CorsPolicy []*CorsRule `min:"1" type:"list" required:"true"` // contains filtered or unexported fields }
func (PutCorsPolicyInput) GoString ¶
func (s PutCorsPolicyInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*PutCorsPolicyInput) SetContainerName ¶
func (s *PutCorsPolicyInput) SetContainerName(v string) *PutCorsPolicyInput
SetContainerName sets the ContainerName field's value.
func (*PutCorsPolicyInput) SetCorsPolicy ¶
func (s *PutCorsPolicyInput) SetCorsPolicy(v []*CorsRule) *PutCorsPolicyInput
SetCorsPolicy sets the CorsPolicy field's value.
func (PutCorsPolicyInput) String ¶
func (s PutCorsPolicyInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*PutCorsPolicyInput) Validate ¶
func (s *PutCorsPolicyInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type PutCorsPolicyOutput ¶
type PutCorsPolicyOutput struct {
// contains filtered or unexported fields
}
func (PutCorsPolicyOutput) GoString ¶
func (s PutCorsPolicyOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (PutCorsPolicyOutput) String ¶
func (s PutCorsPolicyOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type PutLifecyclePolicyInput ¶
type PutLifecyclePolicyInput struct { // The name of the container that you want to assign the object lifecycle policy // to. // // ContainerName is a required field ContainerName *string `min:"1" type:"string" required:"true"` // The object lifecycle policy to apply to the container. // // LifecyclePolicy is a required field LifecyclePolicy *string `type:"string" required:"true"` // contains filtered or unexported fields }
func (PutLifecyclePolicyInput) GoString ¶
func (s PutLifecyclePolicyInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*PutLifecyclePolicyInput) SetContainerName ¶
func (s *PutLifecyclePolicyInput) SetContainerName(v string) *PutLifecyclePolicyInput
SetContainerName sets the ContainerName field's value.
func (*PutLifecyclePolicyInput) SetLifecyclePolicy ¶
func (s *PutLifecyclePolicyInput) SetLifecyclePolicy(v string) *PutLifecyclePolicyInput
SetLifecyclePolicy sets the LifecyclePolicy field's value.
func (PutLifecyclePolicyInput) String ¶
func (s PutLifecyclePolicyInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*PutLifecyclePolicyInput) Validate ¶
func (s *PutLifecyclePolicyInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type PutLifecyclePolicyOutput ¶
type PutLifecyclePolicyOutput struct {
// contains filtered or unexported fields
}
func (PutLifecyclePolicyOutput) GoString ¶
func (s PutLifecyclePolicyOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (PutLifecyclePolicyOutput) String ¶
func (s PutLifecyclePolicyOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type PutMetricPolicyInput ¶
type PutMetricPolicyInput struct { // The name of the container that you want to add the metric policy to. // // ContainerName is a required field ContainerName *string `min:"1" type:"string" required:"true"` // The metric policy that you want to associate with the container. In the policy, // you must indicate whether you want MediaStore to send container-level metrics. // You can also include up to five rules to define groups of objects that you // want MediaStore to send object-level metrics for. If you include rules in // the policy, construct each rule with both of the following: // // * An object group that defines which objects to include in the group. // The definition can be a path or a file name, but it can't have more than // 900 characters. Valid characters are: a-z, A-Z, 0-9, _ (underscore), = // (equal), : (colon), . (period), - (hyphen), ~ (tilde), / (forward slash), // and * (asterisk). Wildcards (*) are acceptable. // // * An object group name that allows you to refer to the object group. The // name can't have more than 30 characters. Valid characters are: a-z, A-Z, // 0-9, and _ (underscore). // // MetricPolicy is a required field MetricPolicy *MetricPolicy `type:"structure" required:"true"` // contains filtered or unexported fields }
func (PutMetricPolicyInput) GoString ¶
func (s PutMetricPolicyInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*PutMetricPolicyInput) SetContainerName ¶
func (s *PutMetricPolicyInput) SetContainerName(v string) *PutMetricPolicyInput
SetContainerName sets the ContainerName field's value.
func (*PutMetricPolicyInput) SetMetricPolicy ¶
func (s *PutMetricPolicyInput) SetMetricPolicy(v *MetricPolicy) *PutMetricPolicyInput
SetMetricPolicy sets the MetricPolicy field's value.
func (PutMetricPolicyInput) String ¶
func (s PutMetricPolicyInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*PutMetricPolicyInput) Validate ¶
func (s *PutMetricPolicyInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type PutMetricPolicyOutput ¶
type PutMetricPolicyOutput struct {
// contains filtered or unexported fields
}
func (PutMetricPolicyOutput) GoString ¶
func (s PutMetricPolicyOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (PutMetricPolicyOutput) String ¶
func (s PutMetricPolicyOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type StartAccessLoggingInput ¶
type StartAccessLoggingInput struct { // The name of the container that you want to start access logging on. // // ContainerName is a required field ContainerName *string `min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
func (StartAccessLoggingInput) GoString ¶
func (s StartAccessLoggingInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*StartAccessLoggingInput) SetContainerName ¶
func (s *StartAccessLoggingInput) SetContainerName(v string) *StartAccessLoggingInput
SetContainerName sets the ContainerName field's value.
func (StartAccessLoggingInput) String ¶
func (s StartAccessLoggingInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*StartAccessLoggingInput) Validate ¶
func (s *StartAccessLoggingInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type StartAccessLoggingOutput ¶
type StartAccessLoggingOutput struct {
// contains filtered or unexported fields
}
func (StartAccessLoggingOutput) GoString ¶
func (s StartAccessLoggingOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (StartAccessLoggingOutput) String ¶
func (s StartAccessLoggingOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type StopAccessLoggingInput ¶
type StopAccessLoggingInput struct { // The name of the container that you want to stop access logging on. // // ContainerName is a required field ContainerName *string `min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
func (StopAccessLoggingInput) GoString ¶
func (s StopAccessLoggingInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*StopAccessLoggingInput) SetContainerName ¶
func (s *StopAccessLoggingInput) SetContainerName(v string) *StopAccessLoggingInput
SetContainerName sets the ContainerName field's value.
func (StopAccessLoggingInput) String ¶
func (s StopAccessLoggingInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*StopAccessLoggingInput) Validate ¶
func (s *StopAccessLoggingInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type StopAccessLoggingOutput ¶
type StopAccessLoggingOutput struct {
// contains filtered or unexported fields
}
func (StopAccessLoggingOutput) GoString ¶
func (s StopAccessLoggingOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (StopAccessLoggingOutput) String ¶
func (s StopAccessLoggingOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type Tag ¶
type Tag struct { // Part of the key:value pair that defines a tag. You can use a tag key to describe // a category of information, such as "customer." Tag keys are case-sensitive. // // Key is a required field Key *string `min:"1" type:"string" required:"true"` // Part of the key:value pair that defines a tag. You can use a tag value to // describe a specific value within a category, such as "companyA" or "companyB." // Tag values are case-sensitive. Value *string `type:"string"` // contains filtered or unexported fields }
A collection of tags associated with a container. Each tag consists of a key:value pair, which can be anything you define. Typically, the tag key represents a category (such as "environment") and the tag value represents a specific value within that category (such as "test," "development," or "production"). You can add up to 50 tags to each container. For more information about tagging, including naming and usage conventions, see Tagging Resources in MediaStore (https://docs.aws.amazon.com/mediastore/latest/ug/tagging.html).
func (Tag) GoString ¶
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type TagResourceInput ¶
type TagResourceInput struct { // The Amazon Resource Name (ARN) for the container. // // Resource is a required field Resource *string `min:"1" type:"string" required:"true"` // An array of key:value pairs that you want to add to the container. You need // to specify only the tags that you want to add or update. For example, suppose // a container already has two tags (customer:CompanyA and priority:High). You // want to change the priority tag and also add a third tag (type:Contract). // For TagResource, you specify the following tags: priority:Medium, type:Contract. // The result is that your container has three tags: customer:CompanyA, priority:Medium, // and type:Contract. // // Tags is a required field Tags []*Tag `min:"1" type:"list" required:"true"` // contains filtered or unexported fields }
func (TagResourceInput) GoString ¶
func (s TagResourceInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*TagResourceInput) SetResource ¶
func (s *TagResourceInput) SetResource(v string) *TagResourceInput
SetResource sets the Resource field's value.
func (*TagResourceInput) SetTags ¶
func (s *TagResourceInput) SetTags(v []*Tag) *TagResourceInput
SetTags sets the Tags field's value.
func (TagResourceInput) String ¶
func (s TagResourceInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*TagResourceInput) Validate ¶
func (s *TagResourceInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type TagResourceOutput ¶
type TagResourceOutput struct {
// contains filtered or unexported fields
}
func (TagResourceOutput) GoString ¶
func (s TagResourceOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (TagResourceOutput) String ¶
func (s TagResourceOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type UntagResourceInput ¶
type UntagResourceInput struct { // The Amazon Resource Name (ARN) for the container. // // Resource is a required field Resource *string `min:"1" type:"string" required:"true"` // A comma-separated list of keys for tags that you want to remove from the // container. For example, if your container has two tags (customer:CompanyA // and priority:High) and you want to remove one of the tags (priority:High), // you specify the key for the tag that you want to remove (priority). // // TagKeys is a required field TagKeys []*string `type:"list" required:"true"` // contains filtered or unexported fields }
func (UntagResourceInput) GoString ¶
func (s UntagResourceInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*UntagResourceInput) SetResource ¶
func (s *UntagResourceInput) SetResource(v string) *UntagResourceInput
SetResource sets the Resource field's value.
func (*UntagResourceInput) SetTagKeys ¶
func (s *UntagResourceInput) SetTagKeys(v []*string) *UntagResourceInput
SetTagKeys sets the TagKeys field's value.
func (UntagResourceInput) String ¶
func (s UntagResourceInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*UntagResourceInput) Validate ¶
func (s *UntagResourceInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type UntagResourceOutput ¶
type UntagResourceOutput struct {
// contains filtered or unexported fields
}
func (UntagResourceOutput) GoString ¶
func (s UntagResourceOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (UntagResourceOutput) String ¶
func (s UntagResourceOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
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. |