Documentation ¶
Overview ¶
Package mediastore provides the API client, operations, and parameter types for 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.
Index ¶
- Constants
- func NewDefaultEndpointResolver() *internalendpoints.Resolver
- func WithAPIOptions(optFns ...func(*middleware.Stack) error) func(*Options)
- func WithEndpointResolver(v EndpointResolver) func(*Options)deprecated
- func WithEndpointResolverV2(v EndpointResolverV2) func(*Options)
- func WithSigV4SigningName(name string) func(*Options)
- func WithSigV4SigningRegion(region string) func(*Options)
- type AuthResolverParameters
- type AuthSchemeResolver
- type Client
- func (c *Client) CreateContainer(ctx context.Context, params *CreateContainerInput, optFns ...func(*Options)) (*CreateContainerOutput, error)
- func (c *Client) DeleteContainer(ctx context.Context, params *DeleteContainerInput, optFns ...func(*Options)) (*DeleteContainerOutput, error)
- func (c *Client) DeleteContainerPolicy(ctx context.Context, params *DeleteContainerPolicyInput, ...) (*DeleteContainerPolicyOutput, error)
- func (c *Client) DeleteCorsPolicy(ctx context.Context, params *DeleteCorsPolicyInput, optFns ...func(*Options)) (*DeleteCorsPolicyOutput, error)
- func (c *Client) DeleteLifecyclePolicy(ctx context.Context, params *DeleteLifecyclePolicyInput, ...) (*DeleteLifecyclePolicyOutput, error)
- func (c *Client) DeleteMetricPolicy(ctx context.Context, params *DeleteMetricPolicyInput, optFns ...func(*Options)) (*DeleteMetricPolicyOutput, error)
- func (c *Client) DescribeContainer(ctx context.Context, params *DescribeContainerInput, optFns ...func(*Options)) (*DescribeContainerOutput, error)
- func (c *Client) GetContainerPolicy(ctx context.Context, params *GetContainerPolicyInput, optFns ...func(*Options)) (*GetContainerPolicyOutput, error)
- func (c *Client) GetCorsPolicy(ctx context.Context, params *GetCorsPolicyInput, optFns ...func(*Options)) (*GetCorsPolicyOutput, error)
- func (c *Client) GetLifecyclePolicy(ctx context.Context, params *GetLifecyclePolicyInput, optFns ...func(*Options)) (*GetLifecyclePolicyOutput, error)
- func (c *Client) GetMetricPolicy(ctx context.Context, params *GetMetricPolicyInput, optFns ...func(*Options)) (*GetMetricPolicyOutput, error)
- func (c *Client) ListContainers(ctx context.Context, params *ListContainersInput, optFns ...func(*Options)) (*ListContainersOutput, error)
- func (c *Client) ListTagsForResource(ctx context.Context, params *ListTagsForResourceInput, ...) (*ListTagsForResourceOutput, error)
- func (c *Client) Options() Options
- func (c *Client) PutContainerPolicy(ctx context.Context, params *PutContainerPolicyInput, optFns ...func(*Options)) (*PutContainerPolicyOutput, error)
- func (c *Client) PutCorsPolicy(ctx context.Context, params *PutCorsPolicyInput, optFns ...func(*Options)) (*PutCorsPolicyOutput, error)
- func (c *Client) PutLifecyclePolicy(ctx context.Context, params *PutLifecyclePolicyInput, optFns ...func(*Options)) (*PutLifecyclePolicyOutput, error)
- func (c *Client) PutMetricPolicy(ctx context.Context, params *PutMetricPolicyInput, optFns ...func(*Options)) (*PutMetricPolicyOutput, error)
- func (c *Client) StartAccessLogging(ctx context.Context, params *StartAccessLoggingInput, optFns ...func(*Options)) (*StartAccessLoggingOutput, error)
- func (c *Client) StopAccessLogging(ctx context.Context, params *StopAccessLoggingInput, optFns ...func(*Options)) (*StopAccessLoggingOutput, error)
- func (c *Client) TagResource(ctx context.Context, params *TagResourceInput, optFns ...func(*Options)) (*TagResourceOutput, error)
- func (c *Client) UntagResource(ctx context.Context, params *UntagResourceInput, optFns ...func(*Options)) (*UntagResourceOutput, 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 EndpointParameters
- type EndpointResolver
- type EndpointResolverFunc
- type EndpointResolverOptions
- type EndpointResolverV2
- type GetContainerPolicyInput
- type GetContainerPolicyOutput
- type GetCorsPolicyInput
- type GetCorsPolicyOutput
- type GetLifecyclePolicyInput
- type GetLifecyclePolicyOutput
- type GetMetricPolicyInput
- type GetMetricPolicyOutput
- type HTTPClient
- type HTTPSignerV4
- type ListContainersAPIClient
- type ListContainersInput
- type ListContainersOutput
- type ListContainersPaginator
- type ListContainersPaginatorOptions
- type ListTagsForResourceInput
- type ListTagsForResourceOutput
- type Options
- type PutContainerPolicyInput
- type PutContainerPolicyOutput
- type PutCorsPolicyInput
- type PutCorsPolicyOutput
- type PutLifecyclePolicyInput
- type PutLifecyclePolicyOutput
- type PutMetricPolicyInput
- type PutMetricPolicyOutput
- type ResolveEndpoint
- type StartAccessLoggingInput
- type StartAccessLoggingOutput
- type StopAccessLoggingInput
- type StopAccessLoggingOutput
- type TagResourceInput
- type TagResourceOutput
- type UntagResourceInput
- type UntagResourceOutput
Constants ¶
const ServiceAPIVersion = "2017-09-01"
const ServiceID = "MediaStore"
Variables ¶
This section is empty.
Functions ¶
func NewDefaultEndpointResolver ¶
func NewDefaultEndpointResolver() *internalendpoints.Resolver
NewDefaultEndpointResolver constructs a new service endpoint resolver
func WithAPIOptions ¶ added in v1.0.0
func WithAPIOptions(optFns ...func(*middleware.Stack) error) func(*Options)
WithAPIOptions returns a functional option for setting the Client's APIOptions option.
func WithEndpointResolver
deprecated
func WithEndpointResolver(v EndpointResolver) func(*Options)
Deprecated: EndpointResolver and WithEndpointResolver. Providing a value for this field will likely prevent you from using any endpoint-related service features released after the introduction of EndpointResolverV2 and BaseEndpoint.
To migrate an EndpointResolver implementation that uses a custom endpoint, set the client option BaseEndpoint instead.
func WithEndpointResolverV2 ¶ added in v1.14.0
func WithEndpointResolverV2(v EndpointResolverV2) func(*Options)
WithEndpointResolverV2 returns a functional option for setting the Client's EndpointResolverV2 option.
func WithSigV4SigningName ¶ added in v1.17.2
WithSigV4SigningName applies an override to the authentication workflow to use the given signing name for SigV4-authenticated operations.
This is an advanced setting. The value here is FINAL, taking precedence over the resolved signing name from both auth scheme resolution and endpoint resolution.
func WithSigV4SigningRegion ¶ added in v1.17.2
WithSigV4SigningRegion applies an override to the authentication workflow to use the given signing region for SigV4-authenticated operations.
This is an advanced setting. The value here is FINAL, taking precedence over the resolved signing region from both auth scheme resolution and endpoint resolution.
Types ¶
type AuthResolverParameters ¶ added in v1.17.2
type AuthResolverParameters struct { // The name of the operation being invoked. Operation string // The region in which the operation is being invoked. Region string }
AuthResolverParameters contains the set of inputs necessary for auth scheme resolution.
type AuthSchemeResolver ¶ added in v1.17.2
type AuthSchemeResolver interface {
ResolveAuthSchemes(context.Context, *AuthResolverParameters) ([]*smithyauth.Option, error)
}
AuthSchemeResolver returns a set of possible authentication options for an operation.
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client provides the API client to make operations call for AWS Elemental MediaStore.
func New ¶
New returns an initialized Client based on the functional options. Provide additional functional options to further configure the behavior of the client, such as changing the client's endpoint or adding custom middleware behavior.
func NewFromConfig ¶
NewFromConfig returns a new client from the provided config.
func (*Client) CreateContainer ¶
func (c *Client) CreateContainer(ctx context.Context, params *CreateContainerInput, optFns ...func(*Options)) (*CreateContainerOutput, error)
Creates a storage container to hold objects. A container is similar to a bucket in the Amazon S3 service.
func (*Client) DeleteContainer ¶
func (c *Client) DeleteContainer(ctx context.Context, params *DeleteContainerInput, optFns ...func(*Options)) (*DeleteContainerOutput, error)
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.
func (*Client) DeleteContainerPolicy ¶
func (c *Client) DeleteContainerPolicy(ctx context.Context, params *DeleteContainerPolicyInput, optFns ...func(*Options)) (*DeleteContainerPolicyOutput, error)
Deletes the access policy that is associated with the specified container.
func (*Client) DeleteCorsPolicy ¶
func (c *Client) DeleteCorsPolicy(ctx context.Context, params *DeleteCorsPolicyInput, optFns ...func(*Options)) (*DeleteCorsPolicyOutput, error)
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.
func (*Client) DeleteLifecyclePolicy ¶
func (c *Client) DeleteLifecyclePolicy(ctx context.Context, params *DeleteLifecyclePolicyInput, optFns ...func(*Options)) (*DeleteLifecyclePolicyOutput, error)
Removes an object lifecycle policy from a container. It takes up to 20 minutes for the change to take effect.
func (*Client) DeleteMetricPolicy ¶
func (c *Client) DeleteMetricPolicy(ctx context.Context, params *DeleteMetricPolicyInput, optFns ...func(*Options)) (*DeleteMetricPolicyOutput, error)
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.
func (*Client) DescribeContainer ¶
func (c *Client) DescribeContainer(ctx context.Context, params *DescribeContainerInput, optFns ...func(*Options)) (*DescribeContainerOutput, error)
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.
func (*Client) GetContainerPolicy ¶
func (c *Client) GetContainerPolicy(ctx context.Context, params *GetContainerPolicyInput, optFns ...func(*Options)) (*GetContainerPolicyOutput, error)
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.
func (*Client) GetCorsPolicy ¶
func (c *Client) GetCorsPolicy(ctx context.Context, params *GetCorsPolicyInput, optFns ...func(*Options)) (*GetCorsPolicyOutput, error)
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.
func (*Client) GetLifecyclePolicy ¶
func (c *Client) GetLifecyclePolicy(ctx context.Context, params *GetLifecyclePolicyInput, optFns ...func(*Options)) (*GetLifecyclePolicyOutput, error)
Retrieves the object lifecycle policy that is assigned to a container.
func (*Client) GetMetricPolicy ¶
func (c *Client) GetMetricPolicy(ctx context.Context, params *GetMetricPolicyInput, optFns ...func(*Options)) (*GetMetricPolicyOutput, error)
Returns the metric policy for the specified container.
func (*Client) ListContainers ¶
func (c *Client) ListContainers(ctx context.Context, params *ListContainersInput, optFns ...func(*Options)) (*ListContainersOutput, error)
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.
func (*Client) ListTagsForResource ¶
func (c *Client) ListTagsForResource(ctx context.Context, params *ListTagsForResourceInput, optFns ...func(*Options)) (*ListTagsForResourceOutput, error)
Returns a list of the tags assigned to the specified container.
func (*Client) Options ¶ added in v1.18.0
Options returns a copy of the client configuration.
Callers SHOULD NOT perform mutations on any inner structures within client config. Config overrides should instead be made on a per-operation basis through functional options.
func (*Client) PutContainerPolicy ¶
func (c *Client) PutContainerPolicy(ctx context.Context, params *PutContainerPolicyInput, optFns ...func(*Options)) (*PutContainerPolicyOutput, error)
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.
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.
func (*Client) PutCorsPolicy ¶
func (c *Client) PutCorsPolicy(ctx context.Context, params *PutCorsPolicyInput, optFns ...func(*Options)) (*PutCorsPolicyOutput, error)
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.
func (*Client) PutLifecyclePolicy ¶
func (c *Client) PutLifecyclePolicy(ctx context.Context, params *PutLifecyclePolicyInput, optFns ...func(*Options)) (*PutLifecyclePolicyOutput, error)
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.
func (*Client) PutMetricPolicy ¶
func (c *Client) PutMetricPolicy(ctx context.Context, params *PutMetricPolicyInput, optFns ...func(*Options)) (*PutMetricPolicyOutput, error)
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.
func (*Client) StartAccessLogging ¶
func (c *Client) StartAccessLogging(ctx context.Context, params *StartAccessLoggingInput, optFns ...func(*Options)) (*StartAccessLoggingOutput, error)
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.
func (*Client) StopAccessLogging ¶
func (c *Client) StopAccessLogging(ctx context.Context, params *StopAccessLoggingInput, optFns ...func(*Options)) (*StopAccessLoggingOutput, error)
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.
func (*Client) TagResource ¶
func (c *Client) TagResource(ctx context.Context, params *TagResourceInput, optFns ...func(*Options)) (*TagResourceOutput, error)
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.
func (*Client) UntagResource ¶
func (c *Client) UntagResource(ctx context.Context, params *UntagResourceInput, optFns ...func(*Options)) (*UntagResourceOutput, error)
Removes tags from the specified container. You can specify one or more tags to remove.
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. // // This member is required. ContainerName *string // 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]. // // [Tagging Resources in MediaStore]: https://docs.aws.amazon.com/mediastore/latest/ug/tagging.html Tags []types.Tag // contains filtered or unexported fields }
type CreateContainerOutput ¶
type CreateContainerOutput struct { // ContainerARN: The Amazon Resource Name (ARN) of the newly created container. // The ARN has the following format: arn:aws:::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 DescribeContaineror ListContainers. // // This member is required. Container *types.Container // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DeleteContainerInput ¶
type DeleteContainerInput struct { // The name of the container to delete. // // This member is required. ContainerName *string // contains filtered or unexported fields }
type DeleteContainerOutput ¶
type DeleteContainerOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DeleteContainerPolicyInput ¶
type DeleteContainerPolicyInput struct { // The name of the container that holds the policy. // // This member is required. ContainerName *string // contains filtered or unexported fields }
type DeleteContainerPolicyOutput ¶
type DeleteContainerPolicyOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DeleteCorsPolicyInput ¶
type DeleteCorsPolicyInput struct { // The name of the container to remove the policy from. // // This member is required. ContainerName *string // contains filtered or unexported fields }
type DeleteCorsPolicyOutput ¶
type DeleteCorsPolicyOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DeleteLifecyclePolicyInput ¶
type DeleteLifecyclePolicyInput struct { // The name of the container that holds the object lifecycle policy. // // This member is required. ContainerName *string // contains filtered or unexported fields }
type DeleteLifecyclePolicyOutput ¶
type DeleteLifecyclePolicyOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DeleteMetricPolicyInput ¶
type DeleteMetricPolicyInput struct { // The name of the container that is associated with the metric policy that you // want to delete. // // This member is required. ContainerName *string // contains filtered or unexported fields }
type DeleteMetricPolicyOutput ¶
type DeleteMetricPolicyOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DescribeContainerInput ¶
type DescribeContainerInput struct { // The name of the container to query. ContainerName *string // contains filtered or unexported fields }
type DescribeContainerOutput ¶
type DescribeContainerOutput struct { // The name of the queried container. Container *types.Container // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type EndpointParameters ¶ added in v1.14.0
type EndpointParameters struct { // The AWS region used to dispatch the request. // // Parameter is // required. // // AWS::Region Region *string // When true, use the dual-stack endpoint. If the configured endpoint does not // support dual-stack, dispatching the request MAY return an error. // // Defaults to // false if no value is provided. // // AWS::UseDualStack UseDualStack *bool // When true, send this request to the FIPS-compliant regional endpoint. If the // configured endpoint does not have a FIPS compliant endpoint, dispatching the // request will return an error. // // Defaults to false if no value is // provided. // // AWS::UseFIPS UseFIPS *bool // Override the endpoint used to send this request // // Parameter is // required. // // SDK::Endpoint Endpoint *string }
EndpointParameters provides the parameters that influence how endpoints are resolved.
func (EndpointParameters) ValidateRequired ¶ added in v1.14.0
func (p EndpointParameters) ValidateRequired() error
ValidateRequired validates required parameters are set.
func (EndpointParameters) WithDefaults ¶ added in v1.14.0
func (p EndpointParameters) WithDefaults() EndpointParameters
WithDefaults returns a shallow copy of EndpointParameterswith default values applied to members where applicable.
type EndpointResolver ¶
type EndpointResolver interface {
ResolveEndpoint(region string, options EndpointResolverOptions) (aws.Endpoint, error)
}
EndpointResolver interface for resolving service endpoints.
func EndpointResolverFromURL ¶ added in v1.1.0
func EndpointResolverFromURL(url string, optFns ...func(*aws.Endpoint)) EndpointResolver
EndpointResolverFromURL returns an EndpointResolver configured using the provided endpoint url. By default, the resolved endpoint resolver uses the client region as signing region, and the endpoint source is set to EndpointSourceCustom.You can provide functional options to configure endpoint values for the resolved endpoint.
type EndpointResolverFunc ¶
type EndpointResolverFunc func(region string, options EndpointResolverOptions) (aws.Endpoint, error)
EndpointResolverFunc is a helper utility that wraps a function so it satisfies the EndpointResolver interface. This is useful when you want to add additional endpoint resolving logic, or stub out specific endpoints with custom values.
func (EndpointResolverFunc) ResolveEndpoint ¶
func (fn EndpointResolverFunc) ResolveEndpoint(region string, options EndpointResolverOptions) (endpoint aws.Endpoint, err error)
type EndpointResolverOptions ¶ added in v0.29.0
type EndpointResolverOptions = internalendpoints.Options
EndpointResolverOptions is the service endpoint resolver options
type EndpointResolverV2 ¶ added in v1.14.0
type EndpointResolverV2 interface { // ResolveEndpoint attempts to resolve the endpoint with the provided options, // returning the endpoint if found. Otherwise an error is returned. ResolveEndpoint(ctx context.Context, params EndpointParameters) ( smithyendpoints.Endpoint, error, ) }
EndpointResolverV2 provides the interface for resolving service endpoints.
func NewDefaultEndpointResolverV2 ¶ added in v1.14.0
func NewDefaultEndpointResolverV2() EndpointResolverV2
type GetContainerPolicyInput ¶
type GetContainerPolicyInput struct { // The name of the container. // // This member is required. ContainerName *string // contains filtered or unexported fields }
type GetContainerPolicyOutput ¶
type GetContainerPolicyOutput struct { // The contents of the access policy. // // This member is required. Policy *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type GetCorsPolicyInput ¶
type GetCorsPolicyInput struct { // The name of the container that the policy is assigned to. // // This member is required. ContainerName *string // contains filtered or unexported fields }
type GetCorsPolicyOutput ¶
type GetCorsPolicyOutput struct { // The CORS policy assigned to the container. // // This member is required. CorsPolicy []types.CorsRule // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type GetLifecyclePolicyInput ¶
type GetLifecyclePolicyInput struct { // The name of the container that the object lifecycle policy is assigned to. // // This member is required. ContainerName *string // contains filtered or unexported fields }
type GetLifecyclePolicyOutput ¶
type GetLifecyclePolicyOutput struct { // The object lifecycle policy that is assigned to the container. // // This member is required. LifecyclePolicy *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type GetMetricPolicyInput ¶
type GetMetricPolicyInput struct { // The name of the container that is associated with the metric policy. // // This member is required. ContainerName *string // contains filtered or unexported fields }
type GetMetricPolicyOutput ¶
type GetMetricPolicyOutput struct { // The metric policy that is associated with the specific container. // // This member is required. MetricPolicy *types.MetricPolicy // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type HTTPSignerV4 ¶
type ListContainersAPIClient ¶ added in v0.30.0
type ListContainersAPIClient interface {
ListContainers(context.Context, *ListContainersInput, ...func(*Options)) (*ListContainersOutput, error)
}
ListContainersAPIClient is a client that implements the ListContainers operation.
type ListContainersInput ¶
type ListContainersInput struct { // Enter the maximum number of containers in the response. Use from 1 to 255 // characters. MaxResults *int32 // 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 // contains filtered or unexported fields }
type ListContainersOutput ¶
type ListContainersOutput struct { // The names of the containers. // // This member is required. Containers []types.Container // 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 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type ListContainersPaginator ¶ added in v0.30.0
type ListContainersPaginator struct {
// contains filtered or unexported fields
}
ListContainersPaginator is a paginator for ListContainers
func NewListContainersPaginator ¶ added in v0.30.0
func NewListContainersPaginator(client ListContainersAPIClient, params *ListContainersInput, optFns ...func(*ListContainersPaginatorOptions)) *ListContainersPaginator
NewListContainersPaginator returns a new ListContainersPaginator
func (*ListContainersPaginator) HasMorePages ¶ added in v0.30.0
func (p *ListContainersPaginator) HasMorePages() bool
HasMorePages returns a boolean indicating whether more pages are available
func (*ListContainersPaginator) NextPage ¶ added in v0.30.0
func (p *ListContainersPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListContainersOutput, error)
NextPage retrieves the next ListContainers page.
type ListContainersPaginatorOptions ¶ added in v0.30.0
type ListContainersPaginatorOptions struct { // Enter the maximum number of containers in the response. Use from 1 to 255 // characters. Limit int32 // Set to true if pagination should stop if the service returns a pagination token // that matches the most recent token provided to the service. StopOnDuplicateToken bool }
ListContainersPaginatorOptions is the paginator options for ListContainers
type ListTagsForResourceInput ¶
type ListTagsForResourceInput struct { // The Amazon Resource Name (ARN) for the container. // // This member is required. Resource *string // contains filtered or unexported fields }
type ListTagsForResourceOutput ¶
type ListTagsForResourceOutput struct { // An array of key:value pairs that are assigned to the container. Tags []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type Options ¶
type Options struct { // Set of options to modify how an operation is invoked. These apply to all // operations invoked for this client. Use functional options on operation call to // modify this list for per operation behavior. APIOptions []func(*middleware.Stack) error // The optional application specific identifier appended to the User-Agent header. AppID string // This endpoint will be given as input to an EndpointResolverV2. It is used for // providing a custom base endpoint that is subject to modifications by the // processing EndpointResolverV2. BaseEndpoint *string // Configures the events that will be sent to the configured logger. ClientLogMode aws.ClientLogMode // The credentials object to use when signing requests. Credentials aws.CredentialsProvider // The configuration DefaultsMode that the SDK should use when constructing the // clients initial default settings. DefaultsMode aws.DefaultsMode // The endpoint options to be used when attempting to resolve an endpoint. EndpointOptions EndpointResolverOptions // The service endpoint resolver. // // Deprecated: Deprecated: EndpointResolver and WithEndpointResolver. Providing a // value for this field will likely prevent you from using any endpoint-related // service features released after the introduction of EndpointResolverV2 and // BaseEndpoint. // // To migrate an EndpointResolver implementation that uses a custom endpoint, set // the client option BaseEndpoint instead. EndpointResolver EndpointResolver // Resolves the endpoint used for a particular service operation. This should be // used over the deprecated EndpointResolver. EndpointResolverV2 EndpointResolverV2 // Signature Version 4 (SigV4) Signer HTTPSignerV4 HTTPSignerV4 // The logger writer interface to write logging messages to. Logger logging.Logger // The client meter provider. MeterProvider metrics.MeterProvider // The region to send requests to. (Required) Region string // RetryMaxAttempts specifies the maximum number attempts an API client will call // an operation that fails with a retryable error. A value of 0 is ignored, and // will not be used to configure the API client created default retryer, or modify // per operation call's retry max attempts. // // If specified in an operation call's functional options with a value that is // different than the constructed client's Options, the Client's Retryer will be // wrapped to use the operation's specific RetryMaxAttempts value. RetryMaxAttempts int // RetryMode specifies the retry mode the API client will be created with, if // Retryer option is not also specified. // // When creating a new API Clients this member will only be used if the Retryer // Options member is nil. This value will be ignored if Retryer is not nil. // // Currently does not support per operation call overrides, may in the future. RetryMode aws.RetryMode // Retryer guides how HTTP requests should be retried in case of recoverable // failures. When nil the API client will use a default retryer. The kind of // default retry created by the API client can be changed with the RetryMode // option. Retryer aws.Retryer // The RuntimeEnvironment configuration, only populated if the DefaultsMode is set // to DefaultsModeAuto and is initialized using config.LoadDefaultConfig . You // should not populate this structure programmatically, or rely on the values here // within your applications. RuntimeEnvironment aws.RuntimeEnvironment // The client tracer provider. TracerProvider tracing.TracerProvider // The HTTP client to invoke API calls with. Defaults to client's default HTTP // implementation if nil. HTTPClient HTTPClient // The auth scheme resolver which determines how to authenticate for each // operation. AuthSchemeResolver AuthSchemeResolver // The list of auth schemes supported by the client. AuthSchemes []smithyhttp.AuthScheme // contains filtered or unexported fields }
func (Options) GetIdentityResolver ¶ added in v1.17.2
func (o Options) GetIdentityResolver(schemeID string) smithyauth.IdentityResolver
type PutContainerPolicyInput ¶
type PutContainerPolicyInput struct { // The name of the container. // // This member is required. ContainerName *string // The contents of the policy, which includes the following: // // - One Version tag // // - One Statement tag that contains the standard tags for the policy. // // This member is required. Policy *string // contains filtered or unexported fields }
type PutContainerPolicyOutput ¶
type PutContainerPolicyOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type PutCorsPolicyInput ¶
type PutCorsPolicyInput struct { // The name of the container that you want to assign the CORS policy to. // // This member is required. ContainerName *string // The CORS policy to apply to the container. // // This member is required. CorsPolicy []types.CorsRule // contains filtered or unexported fields }
type PutCorsPolicyOutput ¶
type PutCorsPolicyOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type PutLifecyclePolicyInput ¶
type PutLifecyclePolicyInput struct { // The name of the container that you want to assign the object lifecycle policy // to. // // This member is required. ContainerName *string // The object lifecycle policy to apply to the container. // // This member is required. LifecyclePolicy *string // contains filtered or unexported fields }
type PutLifecyclePolicyOutput ¶
type PutLifecyclePolicyOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type PutMetricPolicyInput ¶
type PutMetricPolicyInput struct { // The name of the container that you want to add the metric policy to. // // This member is required. ContainerName *string // 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). // // This member is required. MetricPolicy *types.MetricPolicy // contains filtered or unexported fields }
type PutMetricPolicyOutput ¶
type PutMetricPolicyOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type ResolveEndpoint ¶
type ResolveEndpoint struct { Resolver EndpointResolver Options EndpointResolverOptions }
func (*ResolveEndpoint) HandleSerialize ¶
func (m *ResolveEndpoint) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, )
func (*ResolveEndpoint) ID ¶
func (*ResolveEndpoint) ID() string
type StartAccessLoggingInput ¶
type StartAccessLoggingInput struct { // The name of the container that you want to start access logging on. // // This member is required. ContainerName *string // contains filtered or unexported fields }
type StartAccessLoggingOutput ¶
type StartAccessLoggingOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type StopAccessLoggingInput ¶
type StopAccessLoggingInput struct { // The name of the container that you want to stop access logging on. // // This member is required. ContainerName *string // contains filtered or unexported fields }
type StopAccessLoggingOutput ¶
type StopAccessLoggingOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type TagResourceInput ¶
type TagResourceInput struct { // The Amazon Resource Name (ARN) for the container. // // This member is required. Resource *string // 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. // // This member is required. Tags []types.Tag // contains filtered or unexported fields }
type TagResourceOutput ¶
type TagResourceOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type UntagResourceInput ¶
type UntagResourceInput struct { // The Amazon Resource Name (ARN) for the container. // // This member is required. Resource *string // 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). // // This member is required. TagKeys []string // contains filtered or unexported fields }
type UntagResourceOutput ¶
type UntagResourceOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
Source Files ¶
- api_client.go
- api_op_CreateContainer.go
- api_op_DeleteContainer.go
- api_op_DeleteContainerPolicy.go
- api_op_DeleteCorsPolicy.go
- api_op_DeleteLifecyclePolicy.go
- api_op_DeleteMetricPolicy.go
- api_op_DescribeContainer.go
- api_op_GetContainerPolicy.go
- api_op_GetCorsPolicy.go
- api_op_GetLifecyclePolicy.go
- api_op_GetMetricPolicy.go
- api_op_ListContainers.go
- api_op_ListTagsForResource.go
- api_op_PutContainerPolicy.go
- api_op_PutCorsPolicy.go
- api_op_PutLifecyclePolicy.go
- api_op_PutMetricPolicy.go
- api_op_StartAccessLogging.go
- api_op_StopAccessLogging.go
- api_op_TagResource.go
- api_op_UntagResource.go
- auth.go
- deserializers.go
- doc.go
- endpoints.go
- go_module_metadata.go
- options.go
- serializers.go
- validators.go