Documentation ¶
Overview ¶
Package docdbelastic provides the API client, operations, and parameter types for Amazon DocumentDB Elastic Clusters.
Amazon DocumentDB elastic clusters ¶
Amazon DocumentDB elastic-clusters support workloads with millions of reads/writes per second and petabytes of storage capacity. Amazon DocumentDB elastic clusters also simplify how developers interact with Amazon DocumentDB elastic-clusters by eliminating the need to choose, manage or upgrade instances.
Amazon DocumentDB elastic-clusters were created to:
provide a solution for customers looking for a database that provides virtually limitless scale with rich query capabilities and MongoDB API compatibility.
give customers higher connection limits, and to reduce downtime from patching.
continue investing in a cloud-native, elastic, and class leading architecture for JSON workloads.
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) CopyClusterSnapshot(ctx context.Context, params *CopyClusterSnapshotInput, ...) (*CopyClusterSnapshotOutput, error)
- func (c *Client) CreateCluster(ctx context.Context, params *CreateClusterInput, optFns ...func(*Options)) (*CreateClusterOutput, error)
- func (c *Client) CreateClusterSnapshot(ctx context.Context, params *CreateClusterSnapshotInput, ...) (*CreateClusterSnapshotOutput, error)
- func (c *Client) DeleteCluster(ctx context.Context, params *DeleteClusterInput, optFns ...func(*Options)) (*DeleteClusterOutput, error)
- func (c *Client) DeleteClusterSnapshot(ctx context.Context, params *DeleteClusterSnapshotInput, ...) (*DeleteClusterSnapshotOutput, error)
- func (c *Client) GetCluster(ctx context.Context, params *GetClusterInput, optFns ...func(*Options)) (*GetClusterOutput, error)
- func (c *Client) GetClusterSnapshot(ctx context.Context, params *GetClusterSnapshotInput, optFns ...func(*Options)) (*GetClusterSnapshotOutput, error)
- func (c *Client) ListClusterSnapshots(ctx context.Context, params *ListClusterSnapshotsInput, ...) (*ListClusterSnapshotsOutput, error)
- func (c *Client) ListClusters(ctx context.Context, params *ListClustersInput, optFns ...func(*Options)) (*ListClustersOutput, error)
- func (c *Client) ListTagsForResource(ctx context.Context, params *ListTagsForResourceInput, ...) (*ListTagsForResourceOutput, error)
- func (c *Client) Options() Options
- func (c *Client) RestoreClusterFromSnapshot(ctx context.Context, params *RestoreClusterFromSnapshotInput, ...) (*RestoreClusterFromSnapshotOutput, error)
- func (c *Client) StartCluster(ctx context.Context, params *StartClusterInput, optFns ...func(*Options)) (*StartClusterOutput, error)
- func (c *Client) StopCluster(ctx context.Context, params *StopClusterInput, optFns ...func(*Options)) (*StopClusterOutput, 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)
- func (c *Client) UpdateCluster(ctx context.Context, params *UpdateClusterInput, optFns ...func(*Options)) (*UpdateClusterOutput, error)
- type CopyClusterSnapshotInput
- type CopyClusterSnapshotOutput
- type CreateClusterInput
- type CreateClusterOutput
- type CreateClusterSnapshotInput
- type CreateClusterSnapshotOutput
- type DeleteClusterInput
- type DeleteClusterOutput
- type DeleteClusterSnapshotInput
- type DeleteClusterSnapshotOutput
- type EndpointParameters
- type EndpointResolver
- type EndpointResolverFunc
- type EndpointResolverOptions
- type EndpointResolverV2
- type GetClusterInput
- type GetClusterOutput
- type GetClusterSnapshotInput
- type GetClusterSnapshotOutput
- type HTTPClient
- type HTTPSignerV4
- type IdempotencyTokenProvider
- type ListClusterSnapshotsAPIClient
- type ListClusterSnapshotsInput
- type ListClusterSnapshotsOutput
- type ListClusterSnapshotsPaginator
- type ListClusterSnapshotsPaginatorOptions
- type ListClustersAPIClient
- type ListClustersInput
- type ListClustersOutput
- type ListClustersPaginator
- type ListClustersPaginatorOptions
- type ListTagsForResourceInput
- type ListTagsForResourceOutput
- type Options
- type ResolveEndpoint
- type RestoreClusterFromSnapshotInput
- type RestoreClusterFromSnapshotOutput
- type StartClusterInput
- type StartClusterOutput
- type StopClusterInput
- type StopClusterOutput
- type TagResourceInput
- type TagResourceOutput
- type UntagResourceInput
- type UntagResourceOutput
- type UpdateClusterInput
- type UpdateClusterOutput
Constants ¶
const ServiceAPIVersion = "2022-11-28"
const ServiceID = "DocDB Elastic"
Variables ¶
This section is empty.
Functions ¶
func NewDefaultEndpointResolver ¶
func NewDefaultEndpointResolver() *internalendpoints.Resolver
NewDefaultEndpointResolver constructs a new service endpoint resolver
func WithAPIOptions ¶
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 ¶
func WithEndpointResolverV2(v EndpointResolverV2) func(*Options)
WithEndpointResolverV2 returns a functional option for setting the Client's EndpointResolverV2 option.
func WithSigV4SigningName ¶
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 ¶
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 ¶
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 ¶
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 Amazon DocumentDB Elastic Clusters.
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) CopyClusterSnapshot ¶
func (c *Client) CopyClusterSnapshot(ctx context.Context, params *CopyClusterSnapshotInput, optFns ...func(*Options)) (*CopyClusterSnapshotOutput, error)
Copies a snapshot of an elastic cluster.
func (*Client) CreateCluster ¶
func (c *Client) CreateCluster(ctx context.Context, params *CreateClusterInput, optFns ...func(*Options)) (*CreateClusterOutput, error)
Creates a new Amazon DocumentDB elastic cluster and returns its cluster structure.
func (*Client) CreateClusterSnapshot ¶
func (c *Client) CreateClusterSnapshot(ctx context.Context, params *CreateClusterSnapshotInput, optFns ...func(*Options)) (*CreateClusterSnapshotOutput, error)
Creates a snapshot of an elastic cluster.
func (*Client) DeleteCluster ¶
func (c *Client) DeleteCluster(ctx context.Context, params *DeleteClusterInput, optFns ...func(*Options)) (*DeleteClusterOutput, error)
Delete an elastic cluster.
func (*Client) DeleteClusterSnapshot ¶
func (c *Client) DeleteClusterSnapshot(ctx context.Context, params *DeleteClusterSnapshotInput, optFns ...func(*Options)) (*DeleteClusterSnapshotOutput, error)
Delete an elastic cluster snapshot.
func (*Client) GetCluster ¶
func (c *Client) GetCluster(ctx context.Context, params *GetClusterInput, optFns ...func(*Options)) (*GetClusterOutput, error)
Returns information about a specific elastic cluster.
func (*Client) GetClusterSnapshot ¶
func (c *Client) GetClusterSnapshot(ctx context.Context, params *GetClusterSnapshotInput, optFns ...func(*Options)) (*GetClusterSnapshotOutput, error)
Returns information about a specific elastic cluster snapshot
func (*Client) ListClusterSnapshots ¶
func (c *Client) ListClusterSnapshots(ctx context.Context, params *ListClusterSnapshotsInput, optFns ...func(*Options)) (*ListClusterSnapshotsOutput, error)
Returns information about snapshots for a specified elastic cluster.
func (*Client) ListClusters ¶
func (c *Client) ListClusters(ctx context.Context, params *ListClustersInput, optFns ...func(*Options)) (*ListClustersOutput, error)
Returns information about provisioned Amazon DocumentDB elastic clusters.
func (*Client) ListTagsForResource ¶
func (c *Client) ListTagsForResource(ctx context.Context, params *ListTagsForResourceInput, optFns ...func(*Options)) (*ListTagsForResourceOutput, error)
Lists all tags on a elastic cluster resource
func (*Client) Options ¶
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) RestoreClusterFromSnapshot ¶
func (c *Client) RestoreClusterFromSnapshot(ctx context.Context, params *RestoreClusterFromSnapshotInput, optFns ...func(*Options)) (*RestoreClusterFromSnapshotOutput, error)
Restores an elastic cluster from a snapshot.
func (*Client) StartCluster ¶
func (c *Client) StartCluster(ctx context.Context, params *StartClusterInput, optFns ...func(*Options)) (*StartClusterOutput, error)
Restarts the stopped elastic cluster that is specified by clusterARN .
func (*Client) StopCluster ¶
func (c *Client) StopCluster(ctx context.Context, params *StopClusterInput, optFns ...func(*Options)) (*StopClusterOutput, error)
Stops the running elastic cluster that is specified by clusterArn . The elastic cluster must be in the available state.
func (*Client) TagResource ¶
func (c *Client) TagResource(ctx context.Context, params *TagResourceInput, optFns ...func(*Options)) (*TagResourceOutput, error)
Adds metadata tags to an elastic cluster resource
func (*Client) UntagResource ¶
func (c *Client) UntagResource(ctx context.Context, params *UntagResourceInput, optFns ...func(*Options)) (*UntagResourceOutput, error)
Removes metadata tags from an elastic cluster resource
func (*Client) UpdateCluster ¶
func (c *Client) UpdateCluster(ctx context.Context, params *UpdateClusterInput, optFns ...func(*Options)) (*UpdateClusterOutput, error)
Modifies an elastic cluster. This includes updating admin-username/password, upgrading the API version, and setting up a backup window and maintenance window
type CopyClusterSnapshotInput ¶
type CopyClusterSnapshotInput struct { // The Amazon Resource Name (ARN) identifier of the elastic cluster snapshot. // // This member is required. SnapshotArn *string // The identifier of the new elastic cluster snapshot to create from the source // cluster snapshot. This parameter is not case sensitive. // // Constraints: // // - Must contain from 1 to 63 letters, numbers, or hyphens. // // - The first character must be a letter. // // - Cannot end with a hyphen or contain two consecutive hyphens. // // Example: elastic-cluster-snapshot-5 // // This member is required. TargetSnapshotName *string // Set to true to copy all tags from the source cluster snapshot to the target // elastic cluster snapshot. The default is false . CopyTags *bool // The Amazon Web Services KMS key ID for an encrypted elastic cluster snapshot. // The Amazon Web Services KMS key ID is the Amazon Resource Name (ARN), Amazon Web // Services KMS key identifier, or the Amazon Web Services KMS key alias for the // Amazon Web Services KMS encryption key. // // If you copy an encrypted elastic cluster snapshot from your Amazon Web Services // account, you can specify a value for KmsKeyId to encrypt the copy with a new // Amazon Web ServicesS KMS encryption key. If you don't specify a value for // KmsKeyId , then the copy of the elastic cluster snapshot is encrypted with the // same AWS KMS key as the source elastic cluster snapshot. // // To copy an encrypted elastic cluster snapshot to another Amazon Web Services // region, set KmsKeyId to the Amazon Web Services KMS key ID that you want to use // to encrypt the copy of the elastic cluster snapshot in the destination region. // Amazon Web Services KMS encryption keys are specific to the Amazon Web Services // region that they are created in, and you can't use encryption keys from one // Amazon Web Services region in another Amazon Web Services region. // // If you copy an unencrypted elastic cluster snapshot and specify a value for the // KmsKeyId parameter, an error is returned. KmsKeyId *string // The tags to be assigned to the elastic cluster snapshot. Tags map[string]string // contains filtered or unexported fields }
type CopyClusterSnapshotOutput ¶
type CopyClusterSnapshotOutput struct { // Returns information about a specific elastic cluster snapshot. // // This member is required. Snapshot *types.ClusterSnapshot // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type CreateClusterInput ¶
type CreateClusterInput struct { // The name of the Amazon DocumentDB elastic clusters administrator. // // Constraints: // // - Must be from 1 to 63 letters or numbers. // // - The first character must be a letter. // // - Cannot be a reserved word. // // This member is required. AdminUserName *string // The password for the Amazon DocumentDB elastic clusters administrator. The // password can contain any printable ASCII characters. // // Constraints: // // - Must contain from 8 to 100 characters. // // - Cannot contain a forward slash (/), double quote ("), or the "at" symbol // (@). // // This member is required. AdminUserPassword *string // The authentication type used to determine where to fetch the password used for // accessing the elastic cluster. Valid types are PLAIN_TEXT or SECRET_ARN . // // This member is required. AuthType types.Auth // The name of the new elastic cluster. This parameter is stored as a lowercase // string. // // Constraints: // // - Must contain from 1 to 63 letters, numbers, or hyphens. // // - The first character must be a letter. // // - Cannot end with a hyphen or contain two consecutive hyphens. // // Example: my-cluster // // This member is required. ClusterName *string // The number of vCPUs assigned to each elastic cluster shard. Maximum is 64. // Allowed values are 2, 4, 8, 16, 32, 64. // // This member is required. ShardCapacity *int32 // The number of shards assigned to the elastic cluster. Maximum is 32. // // This member is required. ShardCount *int32 // The number of days for which automatic snapshots are retained. BackupRetentionPeriod *int32 // The client token for the elastic cluster. ClientToken *string // The KMS key identifier to use to encrypt the new elastic cluster. // // The KMS key identifier is the Amazon Resource Name (ARN) for the KMS encryption // key. If you are creating a cluster using the same Amazon account that owns this // KMS encryption key, you can use the KMS key alias instead of the ARN as the KMS // encryption key. // // If an encryption key is not specified, Amazon DocumentDB uses the default // encryption key that KMS creates for your account. Your account has a different // default encryption key for each Amazon Region. KmsKeyId *string // The daily time range during which automated backups are created if automated // backups are enabled, as determined by the backupRetentionPeriod . PreferredBackupWindow *string // The weekly time range during which system maintenance can occur, in Universal // Coordinated Time (UTC). // // Format: ddd:hh24:mi-ddd:hh24:mi // // Default: a 30-minute window selected at random from an 8-hour block of time for // each Amazon Web Services Region, occurring on a random day of the week. // // Valid days: Mon, Tue, Wed, Thu, Fri, Sat, Sun // // Constraints: Minimum 30-minute window. PreferredMaintenanceWindow *string // The number of replica instances applying to all shards in the elastic cluster. // A shardInstanceCount value of 1 means there is one writer instance, and any // additional instances are replicas that can be used for reads and to improve // availability. ShardInstanceCount *int32 // The Amazon EC2 subnet IDs for the new elastic cluster. SubnetIds []string // The tags to be assigned to the new elastic cluster. Tags map[string]string // A list of EC2 VPC security groups to associate with the new elastic cluster. VpcSecurityGroupIds []string // contains filtered or unexported fields }
type CreateClusterOutput ¶
type CreateClusterOutput struct { // The new elastic cluster that has been created. // // This member is required. Cluster *types.Cluster // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type CreateClusterSnapshotInput ¶
type CreateClusterSnapshotInput struct { // The ARN identifier of the elastic cluster of which you want to create a // snapshot. // // This member is required. ClusterArn *string // The name of the new elastic cluster snapshot. // // This member is required. SnapshotName *string // The tags to be assigned to the new elastic cluster snapshot. Tags map[string]string // contains filtered or unexported fields }
type CreateClusterSnapshotOutput ¶
type CreateClusterSnapshotOutput struct { // Returns information about the new elastic cluster snapshot. // // This member is required. Snapshot *types.ClusterSnapshot // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DeleteClusterInput ¶
type DeleteClusterInput struct { // The ARN identifier of the elastic cluster that is to be deleted. // // This member is required. ClusterArn *string // contains filtered or unexported fields }
type DeleteClusterOutput ¶
type DeleteClusterOutput struct { // Returns information about the newly deleted elastic cluster. // // This member is required. Cluster *types.Cluster // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DeleteClusterSnapshotInput ¶
type DeleteClusterSnapshotInput struct { // The ARN identifier of the elastic cluster snapshot that is to be deleted. // // This member is required. SnapshotArn *string // contains filtered or unexported fields }
type DeleteClusterSnapshotOutput ¶
type DeleteClusterSnapshotOutput struct { // Returns information about the newly deleted elastic cluster snapshot. // // This member is required. Snapshot *types.ClusterSnapshot // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type EndpointParameters ¶
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 ¶
func (p EndpointParameters) ValidateRequired() error
ValidateRequired validates required parameters are set.
func (EndpointParameters) WithDefaults ¶
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 ¶
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 ¶
type EndpointResolverOptions = internalendpoints.Options
EndpointResolverOptions is the service endpoint resolver options
type EndpointResolverV2 ¶
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 ¶
func NewDefaultEndpointResolverV2() EndpointResolverV2
type GetClusterInput ¶
type GetClusterInput struct { // The ARN identifier of the elastic cluster. // // This member is required. ClusterArn *string // contains filtered or unexported fields }
type GetClusterOutput ¶
type GetClusterOutput struct { // Returns information about a specific elastic cluster. // // This member is required. Cluster *types.Cluster // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type GetClusterSnapshotInput ¶
type GetClusterSnapshotInput struct { // The ARN identifier of the elastic cluster snapshot. // // This member is required. SnapshotArn *string // contains filtered or unexported fields }
type GetClusterSnapshotOutput ¶
type GetClusterSnapshotOutput struct { // Returns information about a specific elastic cluster snapshot. // // This member is required. Snapshot *types.ClusterSnapshot // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type HTTPSignerV4 ¶
type IdempotencyTokenProvider ¶
IdempotencyTokenProvider interface for providing idempotency token
type ListClusterSnapshotsAPIClient ¶
type ListClusterSnapshotsAPIClient interface {
ListClusterSnapshots(context.Context, *ListClusterSnapshotsInput, ...func(*Options)) (*ListClusterSnapshotsOutput, error)
}
ListClusterSnapshotsAPIClient is a client that implements the ListClusterSnapshots operation.
type ListClusterSnapshotsInput ¶
type ListClusterSnapshotsInput struct { // The ARN identifier of the elastic cluster. ClusterArn *string // The maximum number of elastic cluster snapshot results to receive in the // response. MaxResults *int32 // A pagination token provided by a previous request. If this parameter is // specified, the response includes only records beyond this token, up to the value // specified by max-results . // // If there is no more data in the responce, the nextToken will not be returned. NextToken *string // The type of cluster snapshots to be returned. You can specify one of the // following values: // // - automated - Return all cluster snapshots that Amazon DocumentDB has // automatically created for your Amazon Web Services account. // // - manual - Return all cluster snapshots that you have manually created for // your Amazon Web Services account. SnapshotType *string // contains filtered or unexported fields }
type ListClusterSnapshotsOutput ¶
type ListClusterSnapshotsOutput struct { // A pagination token provided by a previous request. If this parameter is // specified, the response includes only records beyond this token, up to the value // specified by max-results . // // If there is no more data in the responce, the nextToken will not be returned. NextToken *string // A list of snapshots for a specified elastic cluster. Snapshots []types.ClusterSnapshotInList // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type ListClusterSnapshotsPaginator ¶
type ListClusterSnapshotsPaginator struct {
// contains filtered or unexported fields
}
ListClusterSnapshotsPaginator is a paginator for ListClusterSnapshots
func NewListClusterSnapshotsPaginator ¶
func NewListClusterSnapshotsPaginator(client ListClusterSnapshotsAPIClient, params *ListClusterSnapshotsInput, optFns ...func(*ListClusterSnapshotsPaginatorOptions)) *ListClusterSnapshotsPaginator
NewListClusterSnapshotsPaginator returns a new ListClusterSnapshotsPaginator
func (*ListClusterSnapshotsPaginator) HasMorePages ¶
func (p *ListClusterSnapshotsPaginator) HasMorePages() bool
HasMorePages returns a boolean indicating whether more pages are available
func (*ListClusterSnapshotsPaginator) NextPage ¶
func (p *ListClusterSnapshotsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListClusterSnapshotsOutput, error)
NextPage retrieves the next ListClusterSnapshots page.
type ListClusterSnapshotsPaginatorOptions ¶
type ListClusterSnapshotsPaginatorOptions struct { // The maximum number of elastic cluster snapshot results to receive in the // response. 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 }
ListClusterSnapshotsPaginatorOptions is the paginator options for ListClusterSnapshots
type ListClustersAPIClient ¶
type ListClustersAPIClient interface {
ListClusters(context.Context, *ListClustersInput, ...func(*Options)) (*ListClustersOutput, error)
}
ListClustersAPIClient is a client that implements the ListClusters operation.
type ListClustersInput ¶
type ListClustersInput struct { // The maximum number of elastic cluster snapshot results to receive in the // response. MaxResults *int32 // A pagination token provided by a previous request. If this parameter is // specified, the response includes only records beyond this token, up to the value // specified by max-results . // // If there is no more data in the responce, the nextToken will not be returned. NextToken *string // contains filtered or unexported fields }
type ListClustersOutput ¶
type ListClustersOutput struct { // A list of Amazon DocumentDB elastic clusters. Clusters []types.ClusterInList // A pagination token provided by a previous request. If this parameter is // specified, the response includes only records beyond this token, up to the value // specified by max-results . // // If there is no more data in the responce, the nextToken will not be returned. NextToken *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type ListClustersPaginator ¶
type ListClustersPaginator struct {
// contains filtered or unexported fields
}
ListClustersPaginator is a paginator for ListClusters
func NewListClustersPaginator ¶
func NewListClustersPaginator(client ListClustersAPIClient, params *ListClustersInput, optFns ...func(*ListClustersPaginatorOptions)) *ListClustersPaginator
NewListClustersPaginator returns a new ListClustersPaginator
func (*ListClustersPaginator) HasMorePages ¶
func (p *ListClustersPaginator) HasMorePages() bool
HasMorePages returns a boolean indicating whether more pages are available
func (*ListClustersPaginator) NextPage ¶
func (p *ListClustersPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListClustersOutput, error)
NextPage retrieves the next ListClusters page.
type ListClustersPaginatorOptions ¶
type ListClustersPaginatorOptions struct { // The maximum number of elastic cluster snapshot results to receive in the // response. 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 }
ListClustersPaginatorOptions is the paginator options for ListClusters
type ListTagsForResourceInput ¶
type ListTagsForResourceInput struct { // The ARN identifier of the elastic cluster resource. // // This member is required. ResourceArn *string // contains filtered or unexported fields }
type ListTagsForResourceOutput ¶
type ListTagsForResourceOutput struct { // The list of tags for the specified elastic cluster resource. Tags map[string]string // 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 // Provides idempotency tokens values that will be automatically populated into // idempotent API operations. IdempotencyTokenProvider IdempotencyTokenProvider // The logger writer interface to write logging messages to. Logger logging.Logger // 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 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) Copy ¶
Copy creates a clone where the APIOptions list is deep copied.
func (Options) GetIdentityResolver ¶
func (o Options) GetIdentityResolver(schemeID string) smithyauth.IdentityResolver
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 RestoreClusterFromSnapshotInput ¶
type RestoreClusterFromSnapshotInput struct { // The name of the elastic cluster. // // This member is required. ClusterName *string // The ARN identifier of the elastic cluster snapshot. // // This member is required. SnapshotArn *string // The KMS key identifier to use to encrypt the new Amazon DocumentDB elastic // clusters cluster. // // The KMS key identifier is the Amazon Resource Name (ARN) for the KMS encryption // key. If you are creating a cluster using the same Amazon account that owns this // KMS encryption key, you can use the KMS key alias instead of the ARN as the KMS // encryption key. // // If an encryption key is not specified here, Amazon DocumentDB uses the default // encryption key that KMS creates for your account. Your account has a different // default encryption key for each Amazon Region. KmsKeyId *string // The capacity of each shard in the new restored elastic cluster. ShardCapacity *int32 // The number of replica instances applying to all shards in the elastic cluster. // A shardInstanceCount value of 1 means there is one writer instance, and any // additional instances are replicas that can be used for reads and to improve // availability. ShardInstanceCount *int32 // The Amazon EC2 subnet IDs for the elastic cluster. SubnetIds []string // A list of the tag names to be assigned to the restored elastic cluster, in the // form of an array of key-value pairs in which the key is the tag name and the // value is the key value. Tags map[string]string // A list of EC2 VPC security groups to associate with the elastic cluster. VpcSecurityGroupIds []string // contains filtered or unexported fields }
type RestoreClusterFromSnapshotOutput ¶
type RestoreClusterFromSnapshotOutput struct { // Returns information about a the restored elastic cluster. // // This member is required. Cluster *types.Cluster // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type StartClusterInput ¶
type StartClusterInput struct { // The ARN identifier of the elastic cluster. // // This member is required. ClusterArn *string // contains filtered or unexported fields }
type StartClusterOutput ¶
type StartClusterOutput struct { // Returns information about a specific elastic cluster. // // This member is required. Cluster *types.Cluster // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type StopClusterInput ¶
type StopClusterInput struct { // The ARN identifier of the elastic cluster. // // This member is required. ClusterArn *string // contains filtered or unexported fields }
type StopClusterOutput ¶
type StopClusterOutput struct { // Returns information about a specific elastic cluster. // // This member is required. Cluster *types.Cluster // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type TagResourceInput ¶
type TagResourceOutput ¶
type TagResourceOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type UntagResourceInput ¶
type UntagResourceOutput ¶
type UntagResourceOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type UpdateClusterInput ¶
type UpdateClusterInput struct { // The ARN identifier of the elastic cluster. // // This member is required. ClusterArn *string // The password associated with the elastic cluster administrator. This password // can contain any printable ASCII character except forward slash (/), double quote // ("), or the "at" symbol (@). // // Constraints: Must contain from 8 to 100 characters. AdminUserPassword *string // The authentication type used to determine where to fetch the password used for // accessing the elastic cluster. Valid types are PLAIN_TEXT or SECRET_ARN . AuthType types.Auth // The number of days for which automatic snapshots are retained. BackupRetentionPeriod *int32 // The client token for the elastic cluster. ClientToken *string // The daily time range during which automated backups are created if automated // backups are enabled, as determined by the backupRetentionPeriod . PreferredBackupWindow *string // The weekly time range during which system maintenance can occur, in Universal // Coordinated Time (UTC). // // Format: ddd:hh24:mi-ddd:hh24:mi // // Default: a 30-minute window selected at random from an 8-hour block of time for // each Amazon Web Services Region, occurring on a random day of the week. // // Valid days: Mon, Tue, Wed, Thu, Fri, Sat, Sun // // Constraints: Minimum 30-minute window. PreferredMaintenanceWindow *string // The number of vCPUs assigned to each elastic cluster shard. Maximum is 64. // Allowed values are 2, 4, 8, 16, 32, 64. ShardCapacity *int32 // The number of shards assigned to the elastic cluster. Maximum is 32. ShardCount *int32 // The number of replica instances applying to all shards in the elastic cluster. // A shardInstanceCount value of 1 means there is one writer instance, and any // additional instances are replicas that can be used for reads and to improve // availability. ShardInstanceCount *int32 // The Amazon EC2 subnet IDs for the elastic cluster. SubnetIds []string // A list of EC2 VPC security groups to associate with the elastic cluster. VpcSecurityGroupIds []string // contains filtered or unexported fields }
type UpdateClusterOutput ¶
type UpdateClusterOutput struct { // Returns information about the updated elastic cluster. // // This member is required. Cluster *types.Cluster // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
Source Files ¶
- api_client.go
- api_op_CopyClusterSnapshot.go
- api_op_CreateCluster.go
- api_op_CreateClusterSnapshot.go
- api_op_DeleteCluster.go
- api_op_DeleteClusterSnapshot.go
- api_op_GetCluster.go
- api_op_GetClusterSnapshot.go
- api_op_ListClusterSnapshots.go
- api_op_ListClusters.go
- api_op_ListTagsForResource.go
- api_op_RestoreClusterFromSnapshot.go
- api_op_StartCluster.go
- api_op_StopCluster.go
- api_op_TagResource.go
- api_op_UntagResource.go
- api_op_UpdateCluster.go
- auth.go
- deserializers.go
- doc.go
- endpoints.go
- go_module_metadata.go
- options.go
- serializers.go
- validators.go