Documentation
¶
Index ¶
- Constants
- func AddResolveEndpointMiddleware(stack *middleware.Stack, options ResolveEndpointMiddlewareOptions)
- func NewDefaultEndpointResolver() *internalendpoints.Resolver
- func RemoveResolveEndpointMiddleware(stack *middleware.Stack) error
- type AddTagsToResourceInput
- type AddTagsToResourceOutput
- type ApplyPendingMaintenanceActionInput
- type ApplyPendingMaintenanceActionOutput
- type Client
- func (c *Client) AddTagsToResource(ctx context.Context, params *AddTagsToResourceInput, optFns ...func(*Options)) (*AddTagsToResourceOutput, error)
- func (c *Client) ApplyPendingMaintenanceAction(ctx context.Context, params *ApplyPendingMaintenanceActionInput, ...) (*ApplyPendingMaintenanceActionOutput, error)
- func (c *Client) CopyDBClusterParameterGroup(ctx context.Context, params *CopyDBClusterParameterGroupInput, ...) (*CopyDBClusterParameterGroupOutput, error)
- func (c *Client) CopyDBClusterSnapshot(ctx context.Context, params *CopyDBClusterSnapshotInput, ...) (*CopyDBClusterSnapshotOutput, error)
- func (c *Client) CreateDBCluster(ctx context.Context, params *CreateDBClusterInput, optFns ...func(*Options)) (*CreateDBClusterOutput, error)
- func (c *Client) CreateDBClusterParameterGroup(ctx context.Context, params *CreateDBClusterParameterGroupInput, ...) (*CreateDBClusterParameterGroupOutput, error)
- func (c *Client) CreateDBClusterSnapshot(ctx context.Context, params *CreateDBClusterSnapshotInput, ...) (*CreateDBClusterSnapshotOutput, error)
- func (c *Client) CreateDBInstance(ctx context.Context, params *CreateDBInstanceInput, optFns ...func(*Options)) (*CreateDBInstanceOutput, error)
- func (c *Client) CreateDBSubnetGroup(ctx context.Context, params *CreateDBSubnetGroupInput, ...) (*CreateDBSubnetGroupOutput, error)
- func (c *Client) DeleteDBCluster(ctx context.Context, params *DeleteDBClusterInput, optFns ...func(*Options)) (*DeleteDBClusterOutput, error)
- func (c *Client) DeleteDBClusterParameterGroup(ctx context.Context, params *DeleteDBClusterParameterGroupInput, ...) (*DeleteDBClusterParameterGroupOutput, error)
- func (c *Client) DeleteDBClusterSnapshot(ctx context.Context, params *DeleteDBClusterSnapshotInput, ...) (*DeleteDBClusterSnapshotOutput, error)
- func (c *Client) DeleteDBInstance(ctx context.Context, params *DeleteDBInstanceInput, optFns ...func(*Options)) (*DeleteDBInstanceOutput, error)
- func (c *Client) DeleteDBSubnetGroup(ctx context.Context, params *DeleteDBSubnetGroupInput, ...) (*DeleteDBSubnetGroupOutput, error)
- func (c *Client) DescribeCertificates(ctx context.Context, params *DescribeCertificatesInput, ...) (*DescribeCertificatesOutput, error)
- func (c *Client) DescribeDBClusterParameterGroups(ctx context.Context, params *DescribeDBClusterParameterGroupsInput, ...) (*DescribeDBClusterParameterGroupsOutput, error)
- func (c *Client) DescribeDBClusterParameters(ctx context.Context, params *DescribeDBClusterParametersInput, ...) (*DescribeDBClusterParametersOutput, error)
- func (c *Client) DescribeDBClusterSnapshotAttributes(ctx context.Context, params *DescribeDBClusterSnapshotAttributesInput, ...) (*DescribeDBClusterSnapshotAttributesOutput, error)
- func (c *Client) DescribeDBClusterSnapshots(ctx context.Context, params *DescribeDBClusterSnapshotsInput, ...) (*DescribeDBClusterSnapshotsOutput, error)
- func (c *Client) DescribeDBClusters(ctx context.Context, params *DescribeDBClustersInput, optFns ...func(*Options)) (*DescribeDBClustersOutput, error)
- func (c *Client) DescribeDBEngineVersions(ctx context.Context, params *DescribeDBEngineVersionsInput, ...) (*DescribeDBEngineVersionsOutput, error)
- func (c *Client) DescribeDBInstances(ctx context.Context, params *DescribeDBInstancesInput, ...) (*DescribeDBInstancesOutput, error)
- func (c *Client) DescribeDBSubnetGroups(ctx context.Context, params *DescribeDBSubnetGroupsInput, ...) (*DescribeDBSubnetGroupsOutput, error)
- func (c *Client) DescribeEngineDefaultClusterParameters(ctx context.Context, params *DescribeEngineDefaultClusterParametersInput, ...) (*DescribeEngineDefaultClusterParametersOutput, error)
- func (c *Client) DescribeEventCategories(ctx context.Context, params *DescribeEventCategoriesInput, ...) (*DescribeEventCategoriesOutput, error)
- func (c *Client) DescribeEvents(ctx context.Context, params *DescribeEventsInput, optFns ...func(*Options)) (*DescribeEventsOutput, error)
- func (c *Client) DescribeOrderableDBInstanceOptions(ctx context.Context, params *DescribeOrderableDBInstanceOptionsInput, ...) (*DescribeOrderableDBInstanceOptionsOutput, error)
- func (c *Client) DescribePendingMaintenanceActions(ctx context.Context, params *DescribePendingMaintenanceActionsInput, ...) (*DescribePendingMaintenanceActionsOutput, error)
- func (c *Client) FailoverDBCluster(ctx context.Context, params *FailoverDBClusterInput, optFns ...func(*Options)) (*FailoverDBClusterOutput, error)
- func (c *Client) ListTagsForResource(ctx context.Context, params *ListTagsForResourceInput, ...) (*ListTagsForResourceOutput, error)
- func (c *Client) ModifyDBCluster(ctx context.Context, params *ModifyDBClusterInput, optFns ...func(*Options)) (*ModifyDBClusterOutput, error)
- func (c *Client) ModifyDBClusterParameterGroup(ctx context.Context, params *ModifyDBClusterParameterGroupInput, ...) (*ModifyDBClusterParameterGroupOutput, error)
- func (c *Client) ModifyDBClusterSnapshotAttribute(ctx context.Context, params *ModifyDBClusterSnapshotAttributeInput, ...) (*ModifyDBClusterSnapshotAttributeOutput, error)
- func (c *Client) ModifyDBInstance(ctx context.Context, params *ModifyDBInstanceInput, optFns ...func(*Options)) (*ModifyDBInstanceOutput, error)
- func (c *Client) ModifyDBSubnetGroup(ctx context.Context, params *ModifyDBSubnetGroupInput, ...) (*ModifyDBSubnetGroupOutput, error)
- func (c *Client) RebootDBInstance(ctx context.Context, params *RebootDBInstanceInput, optFns ...func(*Options)) (*RebootDBInstanceOutput, error)
- func (c *Client) RemoveTagsFromResource(ctx context.Context, params *RemoveTagsFromResourceInput, ...) (*RemoveTagsFromResourceOutput, error)
- func (c *Client) ResetDBClusterParameterGroup(ctx context.Context, params *ResetDBClusterParameterGroupInput, ...) (*ResetDBClusterParameterGroupOutput, error)
- func (c *Client) RestoreDBClusterFromSnapshot(ctx context.Context, params *RestoreDBClusterFromSnapshotInput, ...) (*RestoreDBClusterFromSnapshotOutput, error)
- func (c *Client) RestoreDBClusterToPointInTime(ctx context.Context, params *RestoreDBClusterToPointInTimeInput, ...) (*RestoreDBClusterToPointInTimeOutput, error)
- func (c *Client) StartDBCluster(ctx context.Context, params *StartDBClusterInput, optFns ...func(*Options)) (*StartDBClusterOutput, error)
- func (c *Client) StopDBCluster(ctx context.Context, params *StopDBClusterInput, optFns ...func(*Options)) (*StopDBClusterOutput, error)
- type CopyDBClusterParameterGroupInput
- type CopyDBClusterParameterGroupOutput
- type CopyDBClusterSnapshotInput
- type CopyDBClusterSnapshotOutput
- type CreateDBClusterInput
- type CreateDBClusterOutput
- type CreateDBClusterParameterGroupInput
- type CreateDBClusterParameterGroupOutput
- type CreateDBClusterSnapshotInput
- type CreateDBClusterSnapshotOutput
- type CreateDBInstanceInput
- type CreateDBInstanceOutput
- type CreateDBSubnetGroupInput
- type CreateDBSubnetGroupOutput
- type DeleteDBClusterInput
- type DeleteDBClusterOutput
- type DeleteDBClusterParameterGroupInput
- type DeleteDBClusterParameterGroupOutput
- type DeleteDBClusterSnapshotInput
- type DeleteDBClusterSnapshotOutput
- type DeleteDBInstanceInput
- type DeleteDBInstanceOutput
- type DeleteDBSubnetGroupInput
- type DeleteDBSubnetGroupOutput
- type DescribeCertificatesInput
- type DescribeCertificatesOutput
- type DescribeDBClusterParameterGroupsInput
- type DescribeDBClusterParameterGroupsOutput
- type DescribeDBClusterParametersInput
- type DescribeDBClusterParametersOutput
- type DescribeDBClusterSnapshotAttributesInput
- type DescribeDBClusterSnapshotAttributesOutput
- type DescribeDBClusterSnapshotsInput
- type DescribeDBClusterSnapshotsOutput
- type DescribeDBClustersInput
- type DescribeDBClustersOutput
- type DescribeDBEngineVersionsInput
- type DescribeDBEngineVersionsOutput
- type DescribeDBInstancesInput
- type DescribeDBInstancesOutput
- type DescribeDBSubnetGroupsInput
- type DescribeDBSubnetGroupsOutput
- type DescribeEngineDefaultClusterParametersInput
- type DescribeEngineDefaultClusterParametersOutput
- type DescribeEventCategoriesInput
- type DescribeEventCategoriesOutput
- type DescribeEventsInput
- type DescribeEventsOutput
- type DescribeOrderableDBInstanceOptionsInput
- type DescribeOrderableDBInstanceOptionsOutput
- type DescribePendingMaintenanceActionsInput
- type DescribePendingMaintenanceActionsOutput
- type EndpointResolver
- type EndpointResolverFunc
- type FailoverDBClusterInput
- type FailoverDBClusterOutput
- type HTTPClient
- type HTTPSignerV4
- type ListTagsForResourceInput
- type ListTagsForResourceOutput
- type ModifyDBClusterInput
- type ModifyDBClusterOutput
- type ModifyDBClusterParameterGroupInput
- type ModifyDBClusterParameterGroupOutput
- type ModifyDBClusterSnapshotAttributeInput
- type ModifyDBClusterSnapshotAttributeOutput
- type ModifyDBInstanceInput
- type ModifyDBInstanceOutput
- type ModifyDBSubnetGroupInput
- type ModifyDBSubnetGroupOutput
- type Options
- func (o Options) Copy() Options
- func (o Options) GetCredentials() aws.CredentialsProvider
- func (o Options) GetEndpointOptions() ResolverOptions
- func (o Options) GetEndpointResolver() EndpointResolver
- func (o Options) GetHTTPSignerV4() HTTPSignerV4
- func (o Options) GetRegion() string
- func (o Options) GetRetryer() retry.Retryer
- type RebootDBInstanceInput
- type RebootDBInstanceOutput
- type RemoveTagsFromResourceInput
- type RemoveTagsFromResourceOutput
- type ResetDBClusterParameterGroupInput
- type ResetDBClusterParameterGroupOutput
- type ResolveEndpoint
- type ResolveEndpointMiddlewareOptions
- type ResolverOptions
- type RestoreDBClusterFromSnapshotInput
- type RestoreDBClusterFromSnapshotOutput
- type RestoreDBClusterToPointInTimeInput
- type RestoreDBClusterToPointInTimeOutput
- type StartDBClusterInput
- type StartDBClusterOutput
- type StopDBClusterInput
- type StopDBClusterOutput
Constants ¶
const ServiceAPIVersion = "2014-10-31"
const ServiceID = "DocDB"
Variables ¶
This section is empty.
Functions ¶
func AddResolveEndpointMiddleware ¶
func AddResolveEndpointMiddleware(stack *middleware.Stack, options ResolveEndpointMiddlewareOptions)
func NewDefaultEndpointResolver ¶
func NewDefaultEndpointResolver() *internalendpoints.Resolver
NewDefaultEndpointResolver constructs a new service endpoint resolver
func RemoveResolveEndpointMiddleware ¶
func RemoveResolveEndpointMiddleware(stack *middleware.Stack) error
Types ¶
type AddTagsToResourceInput ¶
type AddTagsToResourceInput struct { // The tags to be assigned to the Amazon DocumentDB resource. Tags []*types.Tag // The Amazon DocumentDB resource that the tags are added to. This value is an // Amazon Resource Name (ARN). ResourceName *string }
Represents the input to AddTagsToResource ().
type AddTagsToResourceOutput ¶
type AddTagsToResourceOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type ApplyPendingMaintenanceActionInput ¶
type ApplyPendingMaintenanceActionInput struct { // The pending maintenance action to apply to this resource. Valid values: // system-update, db-upgrade ApplyAction *string // A value that specifies the type of opt-in request or undoes an opt-in request. // An opt-in request of type immediate can't be undone. Valid values: // // * // immediate - Apply the maintenance action immediately. // // * next-maintenance - // Apply the maintenance action during the next maintenance window for the // resource. // // * undo-opt-in - Cancel any existing next-maintenance opt-in // requests. OptInType *string // The Amazon Resource Name (ARN) of the resource that the pending maintenance // action applies to. ResourceIdentifier *string }
Represents the input to ApplyPendingMaintenanceAction ().
type ApplyPendingMaintenanceActionOutput ¶
type ApplyPendingMaintenanceActionOutput struct { // Represents the output of ApplyPendingMaintenanceAction (). ResourcePendingMaintenanceActions *types.ResourcePendingMaintenanceActions // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Amazon DocumentDB API documentation
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) AddTagsToResource ¶
func (c *Client) AddTagsToResource(ctx context.Context, params *AddTagsToResourceInput, optFns ...func(*Options)) (*AddTagsToResourceOutput, error)
Adds metadata tags to an Amazon DocumentDB resource. You can use these tags with cost allocation reporting to track costs that are associated with Amazon DocumentDB resources. or in a Condition statement in an AWS Identity and Access Management (IAM) policy for Amazon DocumentDB.
func (*Client) ApplyPendingMaintenanceAction ¶
func (c *Client) ApplyPendingMaintenanceAction(ctx context.Context, params *ApplyPendingMaintenanceActionInput, optFns ...func(*Options)) (*ApplyPendingMaintenanceActionOutput, error)
Applies a pending maintenance action to a resource (for example, to a DB instance).
func (*Client) CopyDBClusterParameterGroup ¶
func (c *Client) CopyDBClusterParameterGroup(ctx context.Context, params *CopyDBClusterParameterGroupInput, optFns ...func(*Options)) (*CopyDBClusterParameterGroupOutput, error)
Copies the specified cluster parameter group.
func (*Client) CopyDBClusterSnapshot ¶
func (c *Client) CopyDBClusterSnapshot(ctx context.Context, params *CopyDBClusterSnapshotInput, optFns ...func(*Options)) (*CopyDBClusterSnapshotOutput, error)
Copies a snapshot of a cluster. To copy a cluster snapshot from a shared manual cluster snapshot, SourceDBClusterSnapshotIdentifier must be the Amazon Resource Name (ARN) of the shared cluster snapshot. To cancel the copy operation after it is in progress, delete the target cluster snapshot identified by TargetDBClusterSnapshotIdentifier while that DB cluster snapshot is in the copying status.
func (*Client) CreateDBCluster ¶
func (c *Client) CreateDBCluster(ctx context.Context, params *CreateDBClusterInput, optFns ...func(*Options)) (*CreateDBClusterOutput, error)
Creates a new Amazon DocumentDB cluster.
func (*Client) CreateDBClusterParameterGroup ¶
func (c *Client) CreateDBClusterParameterGroup(ctx context.Context, params *CreateDBClusterParameterGroupInput, optFns ...func(*Options)) (*CreateDBClusterParameterGroupOutput, error)
Creates a new cluster parameter group. Parameters in a cluster parameter group apply to all of the instances in a DB cluster. A cluster parameter group is initially created with the default parameters for the database engine used by instances in the cluster. To provide custom values for any of the parameters, you must modify the group after you create it. After you create a DB cluster parameter group, you must associate it with your cluster. For the new DB cluster parameter group and associated settings to take effect, you must then reboot the instances in the cluster without failover. After you create a cluster parameter group, you should wait at least 5 minutes before creating your first cluster that uses that cluster parameter group as the default parameter group. This allows Amazon DocumentDB to fully complete the create action before the cluster parameter group is used as the default for a new cluster. This step is especially important for parameters that are critical when creating the default database for a cluster, such as the character set for the default database defined by the character_set_database parameter.
func (*Client) CreateDBClusterSnapshot ¶
func (c *Client) CreateDBClusterSnapshot(ctx context.Context, params *CreateDBClusterSnapshotInput, optFns ...func(*Options)) (*CreateDBClusterSnapshotOutput, error)
Creates a snapshot of a cluster.
func (*Client) CreateDBInstance ¶
func (c *Client) CreateDBInstance(ctx context.Context, params *CreateDBInstanceInput, optFns ...func(*Options)) (*CreateDBInstanceOutput, error)
Creates a new instance.
func (*Client) CreateDBSubnetGroup ¶
func (c *Client) CreateDBSubnetGroup(ctx context.Context, params *CreateDBSubnetGroupInput, optFns ...func(*Options)) (*CreateDBSubnetGroupOutput, error)
Creates a new subnet group. subnet groups must contain at least one subnet in at least two Availability Zones in the AWS Region.
func (*Client) DeleteDBCluster ¶
func (c *Client) DeleteDBCluster(ctx context.Context, params *DeleteDBClusterInput, optFns ...func(*Options)) (*DeleteDBClusterOutput, error)
Deletes a previously provisioned cluster. When you delete a cluster, all automated backups for that cluster are deleted and can't be recovered. Manual DB cluster snapshots of the specified cluster are not deleted.
func (*Client) DeleteDBClusterParameterGroup ¶
func (c *Client) DeleteDBClusterParameterGroup(ctx context.Context, params *DeleteDBClusterParameterGroupInput, optFns ...func(*Options)) (*DeleteDBClusterParameterGroupOutput, error)
Deletes a specified cluster parameter group. The cluster parameter group to be deleted can't be associated with any clusters.
func (*Client) DeleteDBClusterSnapshot ¶
func (c *Client) DeleteDBClusterSnapshot(ctx context.Context, params *DeleteDBClusterSnapshotInput, optFns ...func(*Options)) (*DeleteDBClusterSnapshotOutput, error)
Deletes a cluster snapshot. If the snapshot is being copied, the copy operation is terminated. The cluster snapshot must be in the available state to be deleted.
func (*Client) DeleteDBInstance ¶
func (c *Client) DeleteDBInstance(ctx context.Context, params *DeleteDBInstanceInput, optFns ...func(*Options)) (*DeleteDBInstanceOutput, error)
Deletes a previously provisioned instance.
func (*Client) DeleteDBSubnetGroup ¶
func (c *Client) DeleteDBSubnetGroup(ctx context.Context, params *DeleteDBSubnetGroupInput, optFns ...func(*Options)) (*DeleteDBSubnetGroupOutput, error)
Deletes a subnet group. The specified database subnet group must not be associated with any DB instances.
func (*Client) DescribeCertificates ¶
func (c *Client) DescribeCertificates(ctx context.Context, params *DescribeCertificatesInput, optFns ...func(*Options)) (*DescribeCertificatesOutput, error)
Returns a list of certificate authority (CA) certificates provided by Amazon DocumentDB for this AWS account.
func (*Client) DescribeDBClusterParameterGroups ¶
func (c *Client) DescribeDBClusterParameterGroups(ctx context.Context, params *DescribeDBClusterParameterGroupsInput, optFns ...func(*Options)) (*DescribeDBClusterParameterGroupsOutput, error)
Returns a list of DBClusterParameterGroup descriptions. If a DBClusterParameterGroupName parameter is specified, the list contains only the description of the specified cluster parameter group.
func (*Client) DescribeDBClusterParameters ¶
func (c *Client) DescribeDBClusterParameters(ctx context.Context, params *DescribeDBClusterParametersInput, optFns ...func(*Options)) (*DescribeDBClusterParametersOutput, error)
Returns the detailed parameter list for a particular cluster parameter group.
func (*Client) DescribeDBClusterSnapshotAttributes ¶
func (c *Client) DescribeDBClusterSnapshotAttributes(ctx context.Context, params *DescribeDBClusterSnapshotAttributesInput, optFns ...func(*Options)) (*DescribeDBClusterSnapshotAttributesOutput, error)
Returns a list of cluster snapshot attribute names and values for a manual DB cluster snapshot. When you share snapshots with other AWS accounts, DescribeDBClusterSnapshotAttributes returns the restore attribute and a list of IDs for the AWS accounts that are authorized to copy or restore the manual cluster snapshot. If all is included in the list of values for the restore attribute, then the manual cluster snapshot is public and can be copied or restored by all AWS accounts.
func (*Client) DescribeDBClusterSnapshots ¶
func (c *Client) DescribeDBClusterSnapshots(ctx context.Context, params *DescribeDBClusterSnapshotsInput, optFns ...func(*Options)) (*DescribeDBClusterSnapshotsOutput, error)
Returns information about cluster snapshots. This API operation supports pagination.
func (*Client) DescribeDBClusters ¶
func (c *Client) DescribeDBClusters(ctx context.Context, params *DescribeDBClustersInput, optFns ...func(*Options)) (*DescribeDBClustersOutput, error)
Returns information about provisioned Amazon DocumentDB clusters. This API operation supports pagination. For certain management features such as cluster and instance lifecycle management, Amazon DocumentDB leverages operational technology that is shared with Amazon RDS and Amazon Neptune. Use the filterName=engine,Values=docdb filter parameter to return only Amazon DocumentDB clusters.
func (*Client) DescribeDBEngineVersions ¶
func (c *Client) DescribeDBEngineVersions(ctx context.Context, params *DescribeDBEngineVersionsInput, optFns ...func(*Options)) (*DescribeDBEngineVersionsOutput, error)
Returns a list of the available engines.
func (*Client) DescribeDBInstances ¶
func (c *Client) DescribeDBInstances(ctx context.Context, params *DescribeDBInstancesInput, optFns ...func(*Options)) (*DescribeDBInstancesOutput, error)
Returns information about provisioned Amazon DocumentDB instances. This API supports pagination.
func (*Client) DescribeDBSubnetGroups ¶
func (c *Client) DescribeDBSubnetGroups(ctx context.Context, params *DescribeDBSubnetGroupsInput, optFns ...func(*Options)) (*DescribeDBSubnetGroupsOutput, error)
Returns a list of DBSubnetGroup descriptions. If a DBSubnetGroupName is specified, the list will contain only the descriptions of the specified DBSubnetGroup.
func (*Client) DescribeEngineDefaultClusterParameters ¶
func (c *Client) DescribeEngineDefaultClusterParameters(ctx context.Context, params *DescribeEngineDefaultClusterParametersInput, optFns ...func(*Options)) (*DescribeEngineDefaultClusterParametersOutput, error)
Returns the default engine and system parameter information for the cluster database engine.
func (*Client) DescribeEventCategories ¶
func (c *Client) DescribeEventCategories(ctx context.Context, params *DescribeEventCategoriesInput, optFns ...func(*Options)) (*DescribeEventCategoriesOutput, error)
Displays a list of categories for all event source types, or, if specified, for a specified source type.
func (*Client) DescribeEvents ¶
func (c *Client) DescribeEvents(ctx context.Context, params *DescribeEventsInput, optFns ...func(*Options)) (*DescribeEventsOutput, error)
Returns events related to instances, security groups, snapshots, and DB parameter groups for the past 14 days. You can obtain events specific to a particular DB instance, security group, snapshot, or parameter group by providing the name as a parameter. By default, the events of the past hour are returned.
func (*Client) DescribeOrderableDBInstanceOptions ¶
func (c *Client) DescribeOrderableDBInstanceOptions(ctx context.Context, params *DescribeOrderableDBInstanceOptionsInput, optFns ...func(*Options)) (*DescribeOrderableDBInstanceOptionsOutput, error)
Returns a list of orderable instance options for the specified engine.
func (*Client) DescribePendingMaintenanceActions ¶
func (c *Client) DescribePendingMaintenanceActions(ctx context.Context, params *DescribePendingMaintenanceActionsInput, optFns ...func(*Options)) (*DescribePendingMaintenanceActionsOutput, error)
Returns a list of resources (for example, instances) that have at least one pending maintenance action.
func (*Client) FailoverDBCluster ¶
func (c *Client) FailoverDBCluster(ctx context.Context, params *FailoverDBClusterInput, optFns ...func(*Options)) (*FailoverDBClusterOutput, error)
Forces a failover for a cluster. A failover for a cluster promotes one of the Amazon DocumentDB replicas (read-only instances) in the cluster to be the primary instance (the cluster writer). If the primary instance fails, Amazon DocumentDB automatically fails over to an Amazon DocumentDB replica, if one exists. You can force a failover when you want to simulate a failure of a primary instance for testing.
func (*Client) ListTagsForResource ¶
func (c *Client) ListTagsForResource(ctx context.Context, params *ListTagsForResourceInput, optFns ...func(*Options)) (*ListTagsForResourceOutput, error)
Lists all tags on an Amazon DocumentDB resource.
func (*Client) ModifyDBCluster ¶
func (c *Client) ModifyDBCluster(ctx context.Context, params *ModifyDBClusterInput, optFns ...func(*Options)) (*ModifyDBClusterOutput, error)
Modifies a setting for an Amazon DocumentDB cluster. You can change one or more database configuration parameters by specifying these parameters and the new values in the request.
func (*Client) ModifyDBClusterParameterGroup ¶
func (c *Client) ModifyDBClusterParameterGroup(ctx context.Context, params *ModifyDBClusterParameterGroupInput, optFns ...func(*Options)) (*ModifyDBClusterParameterGroupOutput, error)
Modifies the parameters of a cluster parameter group. To modify more than one parameter, submit a list of the following: ParameterName, ParameterValue, and ApplyMethod. A maximum of 20 parameters can be modified in a single request. Changes to dynamic parameters are applied immediately. Changes to static parameters require a reboot or maintenance window before the change can take effect.</p> </note> <important> <p>After you create a cluster parameter group, you should wait at least 5 minutes before creating your first cluster that uses that cluster parameter group as the default parameter group. This allows Amazon DocumentDB to fully complete the create action before the parameter group is used as the default for a new cluster. This step is especially important for parameters that are critical when creating the default database for a cluster, such as the character set for the default database defined by the <code>character_set_database</code> parameter.</p> </important>
func (*Client) ModifyDBClusterSnapshotAttribute ¶
func (c *Client) ModifyDBClusterSnapshotAttribute(ctx context.Context, params *ModifyDBClusterSnapshotAttributeInput, optFns ...func(*Options)) (*ModifyDBClusterSnapshotAttributeOutput, error)
Adds an attribute and values to, or removes an attribute and values from, a manual DB cluster snapshot. To share a manual cluster snapshot with other AWS accounts, specify restore as the AttributeName, and use the ValuesToAdd parameter to add a list of IDs of the AWS accounts that are authorized to restore the manual cluster snapshot. Use the value all to make the manual cluster snapshot public, which means that it can be copied or restored by all AWS accounts. Do not add the all value for any manual DB cluster snapshots that contain private information that you don't want available to all AWS accounts. If a manual cluster snapshot is encrypted, it can be shared, but only by specifying a list of authorized AWS account IDs for the ValuesToAdd parameter. You can't use all as a value for that parameter in this case.
func (*Client) ModifyDBInstance ¶
func (c *Client) ModifyDBInstance(ctx context.Context, params *ModifyDBInstanceInput, optFns ...func(*Options)) (*ModifyDBInstanceOutput, error)
Modifies settings for an instance. You can change one or more database configuration parameters by specifying these parameters and the new values in the request.
func (*Client) ModifyDBSubnetGroup ¶
func (c *Client) ModifyDBSubnetGroup(ctx context.Context, params *ModifyDBSubnetGroupInput, optFns ...func(*Options)) (*ModifyDBSubnetGroupOutput, error)
Modifies an existing subnet group. subnet groups must contain at least one subnet in at least two Availability Zones in the AWS Region.
func (*Client) RebootDBInstance ¶
func (c *Client) RebootDBInstance(ctx context.Context, params *RebootDBInstanceInput, optFns ...func(*Options)) (*RebootDBInstanceOutput, error)
You might need to reboot your instance, usually for maintenance reasons. For example, if you make certain changes, or if you change the cluster parameter group that is associated with the instance, you must reboot the instance for the changes to take effect. Rebooting an instance restarts the database engine service. Rebooting an instance results in a momentary outage, during which the instance status is set to rebooting.
func (*Client) RemoveTagsFromResource ¶
func (c *Client) RemoveTagsFromResource(ctx context.Context, params *RemoveTagsFromResourceInput, optFns ...func(*Options)) (*RemoveTagsFromResourceOutput, error)
Removes metadata tags from an Amazon DocumentDB resource.
func (*Client) ResetDBClusterParameterGroup ¶
func (c *Client) ResetDBClusterParameterGroup(ctx context.Context, params *ResetDBClusterParameterGroupInput, optFns ...func(*Options)) (*ResetDBClusterParameterGroupOutput, error)
Modifies the parameters of a cluster parameter group to the default value. To reset specific parameters, submit a list of the following: ParameterName and ApplyMethod. To reset the entire cluster parameter group, specify the DBClusterParameterGroupName and ResetAllParameters parameters. When you reset the entire group, dynamic parameters are updated immediately and static parameters are set to pending-reboot to take effect on the next DB instance reboot.
func (*Client) RestoreDBClusterFromSnapshot ¶
func (c *Client) RestoreDBClusterFromSnapshot(ctx context.Context, params *RestoreDBClusterFromSnapshotInput, optFns ...func(*Options)) (*RestoreDBClusterFromSnapshotOutput, error)
Creates a new cluster from a snapshot or cluster snapshot. If a snapshot is specified, the target cluster is created from the source DB snapshot with a default configuration and default security group. If a cluster snapshot is specified, the target cluster is created from the source cluster restore point with the same configuration as the original source DB cluster, except that the new cluster is created with the default security group.
func (*Client) RestoreDBClusterToPointInTime ¶
func (c *Client) RestoreDBClusterToPointInTime(ctx context.Context, params *RestoreDBClusterToPointInTimeInput, optFns ...func(*Options)) (*RestoreDBClusterToPointInTimeOutput, error)
Restores a cluster to an arbitrary point in time. Users can restore to any point in time before LatestRestorableTime for up to BackupRetentionPeriod days. The target cluster is created from the source cluster with the same configuration as the original cluster, except that the new cluster is created with the default security group.
func (*Client) StartDBCluster ¶
func (c *Client) StartDBCluster(ctx context.Context, params *StartDBClusterInput, optFns ...func(*Options)) (*StartDBClusterOutput, error)
Restarts the stopped cluster that is specified by DBClusterIdentifier. For more information, see Stopping and Starting an Amazon DocumentDB Cluster (https://docs.aws.amazon.com/documentdb/latest/developerguide/db-cluster-stop-start.html).
func (*Client) StopDBCluster ¶
func (c *Client) StopDBCluster(ctx context.Context, params *StopDBClusterInput, optFns ...func(*Options)) (*StopDBClusterOutput, error)
Stops the running cluster that is specified by DBClusterIdentifier. The cluster must be in the available state. For more information, see Stopping and Starting an Amazon DocumentDB Cluster (https://docs.aws.amazon.com/documentdb/latest/developerguide/db-cluster-stop-start.html).
type CopyDBClusterParameterGroupInput ¶
type CopyDBClusterParameterGroupInput struct { // The tags that are to be assigned to the parameter group. Tags []*types.Tag // The identifier or Amazon Resource Name (ARN) for the source cluster parameter // group. Constraints: // // * Must specify a valid cluster parameter group. // // * // If the source cluster parameter group is in the same AWS Region as the copy, // specify a valid parameter group identifier; for example, // my-db-cluster-param-group, or a valid ARN. // // * If the source parameter group // is in a different AWS Region than the copy, specify a valid cluster parameter // group ARN; for example, // arn:aws:rds:us-east-1:123456789012:cluster-pg:custom-cluster-group1. SourceDBClusterParameterGroupIdentifier *string // The identifier for the copied cluster parameter group. Constraints: // // * // Cannot be null, empty, or blank. // // * Must contain from 1 to 255 letters, // numbers, or hyphens. // // * The first character must be a letter. // // * Cannot // end with a hyphen or contain two consecutive hyphens. // // Example: // my-cluster-param-group1 TargetDBClusterParameterGroupIdentifier *string // A description for the copied cluster parameter group. TargetDBClusterParameterGroupDescription *string }
Represents the input to CopyDBClusterParameterGroup ().
type CopyDBClusterParameterGroupOutput ¶
type CopyDBClusterParameterGroupOutput struct { // Detailed information about a cluster parameter group. DBClusterParameterGroup *types.DBClusterParameterGroup // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type CopyDBClusterSnapshotInput ¶
type CopyDBClusterSnapshotInput struct { // The tags to be assigned to the cluster snapshot. Tags []*types.Tag // Set to true to copy all tags from the source cluster snapshot to the target // cluster snapshot, and otherwise false. The default is false. CopyTags *bool // The AWS KMS key ID for an encrypted cluster snapshot. The AWS KMS key ID is the // Amazon Resource Name (ARN), AWS KMS key identifier, or the AWS KMS key alias for // the AWS KMS encryption key. If you copy an encrypted cluster snapshot from your // AWS account, you can specify a value for KmsKeyId to encrypt the copy with a new // AWS KMS encryption key. If you don't specify a value for KmsKeyId, then the copy // of the cluster snapshot is encrypted with the same AWS KMS key as the source // cluster snapshot. If you copy an encrypted cluster snapshot that is shared from // another AWS account, then you must specify a value for KmsKeyId. To copy an // encrypted cluster snapshot to another AWS Region, set KmsKeyId to the AWS KMS // key ID that you want to use to encrypt the copy of the cluster snapshot in the // destination Region. AWS KMS encryption keys are specific to the AWS Region that // they are created in, and you can't use encryption keys from one Region in // another Region. If you copy an unencrypted cluster snapshot and specify a value // for the KmsKeyId parameter, an error is returned. KmsKeyId *string // The identifier of the cluster snapshot to copy. This parameter is not case // sensitive. You can't copy an encrypted, shared cluster snapshot from one AWS // Region to another. Constraints: // // * Must specify a valid system snapshot in // the "available" state. // // * If the source snapshot is in the same AWS Region // as the copy, specify a valid snapshot identifier. // // * If the source snapshot // is in a different AWS Region than the copy, specify a valid cluster snapshot // ARN. // // Example: my-cluster-snapshot1 SourceDBClusterSnapshotIdentifier *string // The URL that contains a Signature Version 4 signed request for the // CopyDBClusterSnapshot API action in the AWS Region that contains the source // cluster snapshot to copy. You must use the PreSignedUrl parameter when copying // an encrypted cluster snapshot from another AWS Region. The presigned URL must be // a valid request for the CopyDBSClusterSnapshot API action that can be executed // in the source AWS Region that contains the encrypted DB cluster snapshot to be // copied. The presigned URL request must contain the following parameter values: // // // * KmsKeyId - The AWS KMS key identifier for the key to use to encrypt the copy // of the cluster snapshot in the destination AWS Region. This is the same // identifier for both the CopyDBClusterSnapshot action that is called in the // destination AWS Region, and the action contained in the presigned URL. // // * // DestinationRegion - The name of the AWS Region that the DB cluster snapshot will // be created in. // // * SourceDBClusterSnapshotIdentifier - The cluster snapshot // identifier for the encrypted cluster snapshot to be copied. This identifier must // be in the Amazon Resource Name (ARN) format for the source AWS Region. For // example, if you are copying an encrypted cluster snapshot from the us-west-2 AWS // Region, then your SourceDBClusterSnapshotIdentifier looks like the following // example: // arn:aws:rds:us-west-2:123456789012:cluster-snapshot:my-cluster-snapshot-20161115. PreSignedUrl *string // The identifier of the new 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: my-cluster-snapshot2 TargetDBClusterSnapshotIdentifier *string }
Represents the input to CopyDBClusterSnapshot ().
type CopyDBClusterSnapshotOutput ¶
type CopyDBClusterSnapshotOutput struct { // Detailed information about a cluster snapshot. DBClusterSnapshot *types.DBClusterSnapshot // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type CreateDBClusterInput ¶
type CreateDBClusterInput struct { // A subnet group to associate with this cluster. Constraints: Must match the name // of an existing DBSubnetGroup. Must not be default. Example: mySubnetgroup DBSubnetGroupName *string // A list of EC2 VPC security groups to associate with this cluster. VpcSecurityGroupIds []*string // The tags to be assigned to the cluster. Tags []*types.Tag // A list of Amazon EC2 Availability Zones that instances in the cluster can be // created in. AvailabilityZones []*string // The password for the master database user. 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. MasterUserPassword *string // The name of the database engine to be used for this cluster. Valid values: docdb Engine *string // A list of log types that need to be enabled for exporting to Amazon CloudWatch // Logs. EnableCloudwatchLogsExports []*string // Specifies whether this cluster can be deleted. If DeletionProtection is enabled, // the cluster cannot be deleted unless it is modified and DeletionProtection is // disabled. DeletionProtection protects clusters from being accidentally deleted. DeletionProtection *bool // The number of days for which automated backups are retained. You must specify a // minimum value of 1. Default: 1 Constraints: // // * Must be a value from 1 to 35. BackupRetentionPeriod *int32 // The cluster identifier. 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 DBClusterIdentifier *string // The name of the master user for the cluster. Constraints: // // * Must be from 1 // to 63 letters or numbers. // // * The first character must be a letter. // // * // Cannot be a reserved word for the chosen database engine. MasterUsername *string // The name of the cluster parameter group to associate with this cluster. DBClusterParameterGroupName *string // The AWS KMS key identifier for an encrypted cluster. The AWS KMS key identifier // is the Amazon Resource Name (ARN) for the AWS KMS encryption key. If you are // creating a cluster using the same AWS account that owns the AWS KMS encryption // key that is used to encrypt the new cluster, you can use the AWS KMS key alias // instead of the ARN for the AWS KMS encryption key. If an encryption key is not // specified in KmsKeyId: // // * If ReplicationSourceIdentifier identifies an // encrypted source, then Amazon DocumentDB uses the encryption key that is used to // encrypt the source. Otherwise, Amazon DocumentDB uses your default encryption // key. // // * If the StorageEncrypted parameter is true and // ReplicationSourceIdentifier is not specified, Amazon DocumentDB uses your // default encryption key. // // AWS KMS creates the default encryption key for your AWS // account. Your AWS account has a different default encryption key for each AWS // Region. If you create a replica of an encrypted cluster in another AWS Region, // you must set KmsKeyId to a KMS key ID that is valid in the destination AWS // Region. This key is used to encrypt the replica in that AWS Region. KmsKeyId *string // The port number on which the instances in the cluster accept connections. Port *int32 // The version number of the database engine to use. EngineVersion *string // Specifies whether the cluster is encrypted. StorageEncrypted *bool // The daily time range during which automated backups are created if automated // backups are enabled using the BackupRetentionPeriod parameter. The default is a // 30-minute window selected at random from an 8-hour block of time for each AWS // Region. Constraints: // // * Must be in the format hh24:mi-hh24:mi. // // * Must // be in Universal Coordinated Time (UTC). // // * Must not conflict with the // preferred maintenance window. // // * Must be at least 30 minutes. PreferredBackupWindow *string // The weekly time range during which system maintenance can occur, in Universal // Coordinated Time (UTC). Format: ddd:hh24:mi-ddd:hh24:mi The default is a // 30-minute window selected at random from an 8-hour block of time for each AWS // 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 }
Represents the input to CreateDBCluster ().
type CreateDBClusterOutput ¶
type CreateDBClusterOutput struct { // Detailed information about a cluster. DBCluster *types.DBCluster // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type CreateDBClusterParameterGroupInput ¶
type CreateDBClusterParameterGroupInput struct { // The description for the cluster parameter group. Description *string // The tags to be assigned to the cluster parameter group. Tags []*types.Tag // The name of the cluster parameter group. Constraints: // // * Must not match the // name of an existing DBClusterParameterGroup. // // This value is stored as a // lowercase string. DBClusterParameterGroupName *string // The cluster parameter group family name. DBParameterGroupFamily *string }
Represents the input of CreateDBClusterParameterGroup ().
type CreateDBClusterParameterGroupOutput ¶
type CreateDBClusterParameterGroupOutput struct { // Detailed information about a cluster parameter group. DBClusterParameterGroup *types.DBClusterParameterGroup // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type CreateDBClusterSnapshotInput ¶
type CreateDBClusterSnapshotInput struct { // The tags to be assigned to the cluster snapshot. Tags []*types.Tag // The identifier of the cluster to create a snapshot for. This parameter is not // case sensitive. Constraints: // // * Must match the identifier of an existing // DBCluster. // // Example: my-cluster DBClusterIdentifier *string // The identifier of the cluster snapshot. 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-snapshot1 DBClusterSnapshotIdentifier *string }
Represents the input of CreateDBClusterSnapshot ().
type CreateDBClusterSnapshotOutput ¶
type CreateDBClusterSnapshotOutput struct { // Detailed information about a cluster snapshot. DBClusterSnapshot *types.DBClusterSnapshot // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type CreateDBInstanceInput ¶
type CreateDBInstanceInput struct { // A value that specifies the order in which an Amazon DocumentDB replica is // promoted to the primary instance after a failure of the existing primary // instance. Default: 1 Valid values: 0-15 PromotionTier *int32 // The compute and memory capacity of the instance; for example, db.r5.large. DBInstanceClass *string // Indicates that minor engine upgrades are applied automatically to the instance // during the maintenance window. Default: true AutoMinorVersionUpgrade *bool // The tags to be assigned to the instance. You can assign up to 10 tags to an // instance. Tags []*types.Tag // The name of the database engine to be used for this instance. Valid value: docdb Engine *string // The time range each week during which system maintenance can occur, in Universal // Coordinated Time (UTC). Format: ddd:hh24:mi-ddd:hh24:mi The default is a // 30-minute window selected at random from an 8-hour block of time for each AWS // 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 identifier of the cluster that the instance will belong to. DBClusterIdentifier *string // The Amazon EC2 Availability Zone that the instance is created in. Default: A // random, system-chosen Availability Zone in the endpoint's AWS Region. Example: // us-east-1d Constraint: The AvailabilityZone parameter can't be specified if the // MultiAZ parameter is set to true. The specified Availability Zone must be in the // same AWS Region as the current endpoint. AvailabilityZone *string // The instance identifier. 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: mydbinstance DBInstanceIdentifier *string }
Represents the input to CreateDBInstance ().
type CreateDBInstanceOutput ¶
type CreateDBInstanceOutput struct { // Detailed information about an instance. DBInstance *types.DBInstance // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type CreateDBSubnetGroupInput ¶
type CreateDBSubnetGroupInput struct { // The description for the subnet group. DBSubnetGroupDescription *string // The tags to be assigned to the subnet group. Tags []*types.Tag // The name for the subnet group. This value is stored as a lowercase string. // Constraints: Must contain no more than 255 letters, numbers, periods, // underscores, spaces, or hyphens. Must not be default. Example: mySubnetgroup DBSubnetGroupName *string // The Amazon EC2 subnet IDs for the subnet group. SubnetIds []*string }
Represents the input to CreateDBSubnetGroup ().
type CreateDBSubnetGroupOutput ¶
type CreateDBSubnetGroupOutput struct { // Detailed information about a subnet group. DBSubnetGroup *types.DBSubnetGroup // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type DeleteDBClusterInput ¶
type DeleteDBClusterInput struct { // Determines whether a final cluster snapshot is created before the cluster is // deleted. If true is specified, no cluster snapshot is created. If false is // specified, a cluster snapshot is created before the DB cluster is deleted. If // SkipFinalSnapshot is false, you must specify a FinalDBSnapshotIdentifier // parameter. Default: false SkipFinalSnapshot *bool // The cluster snapshot identifier of the new cluster snapshot created when // SkipFinalSnapshot is set to false. Specifying this parameter and also setting // the SkipFinalShapshot parameter to true results in an error. Constraints: // // * // Must be from 1 to 255 letters, numbers, or hyphens. // // * The first character // must be a letter. // // * Cannot end with a hyphen or contain two consecutive // hyphens. FinalDBSnapshotIdentifier *string // The cluster identifier for the cluster to be deleted. This parameter isn't case // sensitive. Constraints: // // * Must match an existing DBClusterIdentifier. DBClusterIdentifier *string }
Represents the input to DeleteDBCluster ().
type DeleteDBClusterOutput ¶
type DeleteDBClusterOutput struct { // Detailed information about a cluster. DBCluster *types.DBCluster // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type DeleteDBClusterParameterGroupInput ¶
type DeleteDBClusterParameterGroupInput struct { // The name of the cluster parameter group. Constraints: // // * Must be the name of // an existing cluster parameter group. // // * You can't delete a default cluster // parameter group. // // * Cannot be associated with any clusters. DBClusterParameterGroupName *string }
Represents the input to DeleteDBClusterParameterGroup ().
type DeleteDBClusterParameterGroupOutput ¶
type DeleteDBClusterParameterGroupOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type DeleteDBClusterSnapshotInput ¶
type DeleteDBClusterSnapshotInput struct { // The identifier of the cluster snapshot to delete. Constraints: Must be the name // of an existing cluster snapshot in the available state. DBClusterSnapshotIdentifier *string }
Represents the input to DeleteDBClusterSnapshot ().
type DeleteDBClusterSnapshotOutput ¶
type DeleteDBClusterSnapshotOutput struct { // Detailed information about a cluster snapshot. DBClusterSnapshot *types.DBClusterSnapshot // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type DeleteDBInstanceInput ¶
type DeleteDBInstanceInput struct { // The instance identifier for the instance to be deleted. This parameter isn't // case sensitive. Constraints: // // * Must match the name of an existing instance. DBInstanceIdentifier *string }
Represents the input to DeleteDBInstance ().
type DeleteDBInstanceOutput ¶
type DeleteDBInstanceOutput struct { // Detailed information about an instance. DBInstance *types.DBInstance // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type DeleteDBSubnetGroupInput ¶
type DeleteDBSubnetGroupInput struct { // The name of the database subnet group to delete. You can't delete the default // subnet group. Constraints: Must match the name of an existing DBSubnetGroup. // Must not be default. Example: mySubnetgroup DBSubnetGroupName *string }
Represents the input to DeleteDBSubnetGroup ().
type DeleteDBSubnetGroupOutput ¶
type DeleteDBSubnetGroupOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type DescribeCertificatesInput ¶
type DescribeCertificatesInput struct { // An optional pagination token provided by a previous DescribeCertificates // request. If this parameter is specified, the response includes only records // beyond the marker, up to the value specified by MaxRecords. Marker *string // The user-supplied certificate identifier. If this parameter is specified, // information for only the specified certificate is returned. If this parameter is // omitted, a list of up to MaxRecords certificates is returned. This parameter is // not case sensitive. Constraints // // * Must match an existing // CertificateIdentifier. CertificateIdentifier *string // This parameter is not currently supported. Filters []*types.Filter // The maximum number of records to include in the response. If more records exist // than the specified MaxRecords value, a pagination token called a marker is // included in the response so that the remaining results can be retrieved. // Default: 100 Constraints: // // * Minimum: 20 // // * Maximum: 100 MaxRecords *int32 }
type DescribeCertificatesOutput ¶
type DescribeCertificatesOutput struct { // A list of certificates for this AWS account. Certificates []*types.Certificate // An optional pagination token provided if the number of records retrieved is // greater than MaxRecords. If this parameter is specified, the marker specifies // the next record in the list. Including the value of Marker in the next call to // DescribeCertificates results in the next page of certificates. Marker *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type DescribeDBClusterParameterGroupsInput ¶
type DescribeDBClusterParameterGroupsInput struct { // The name of a specific cluster parameter group to return details for. // Constraints: // // * If provided, must match the name of an existing // DBClusterParameterGroup. DBClusterParameterGroupName *string // An optional pagination token provided by a previous request. If this parameter // is specified, the response includes only records beyond the marker, up to the // value specified by MaxRecords. Marker *string // This parameter is not currently supported. Filters []*types.Filter // The maximum number of records to include in the response. If more records exist // than the specified MaxRecords value, a pagination token (marker) is included in // the response so that the remaining results can be retrieved. Default: 100 // Constraints: Minimum 20, maximum 100. MaxRecords *int32 }
Represents the input to DescribeDBClusterParameterGroups ().
type DescribeDBClusterParameterGroupsOutput ¶
type DescribeDBClusterParameterGroupsOutput struct { // An optional pagination token provided by a previous request. If this parameter // is specified, the response includes only records beyond the marker, up to the // value specified by MaxRecords. Marker *string // A list of cluster parameter groups. DBClusterParameterGroups []*types.DBClusterParameterGroup // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
Represents the output of DBClusterParameterGroups ().
type DescribeDBClusterParametersInput ¶
type DescribeDBClusterParametersInput struct { // An optional pagination token provided by a previous request. If this parameter // is specified, the response includes only records beyond the marker, up to the // value specified by MaxRecords. Marker *string // A value that indicates to return only parameters for a specific source. // Parameter sources can be engine, service, or customer. Source *string // The maximum number of records to include in the response. If more records exist // than the specified MaxRecords value, a pagination token (marker) is included in // the response so that the remaining results can be retrieved. Default: 100 // Constraints: Minimum 20, maximum 100. MaxRecords *int32 // This parameter is not currently supported. Filters []*types.Filter // The name of a specific cluster parameter group to return parameter details for. // Constraints: // // * If provided, must match the name of an existing // DBClusterParameterGroup. DBClusterParameterGroupName *string }
Represents the input to DescribeDBClusterParameters ().
type DescribeDBClusterParametersOutput ¶
type DescribeDBClusterParametersOutput struct { // An optional pagination token provided by a previous request. If this parameter // is specified, the response includes only records beyond the marker, up to the // value specified by MaxRecords. Marker *string // Provides a list of parameters for the cluster parameter group. Parameters []*types.Parameter // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
Represents the output of DBClusterParameterGroup ().
type DescribeDBClusterSnapshotAttributesInput ¶
type DescribeDBClusterSnapshotAttributesInput struct { // The identifier for the cluster snapshot to describe the attributes for. DBClusterSnapshotIdentifier *string }
Represents the input to DescribeDBClusterSnapshotAttributes ().
type DescribeDBClusterSnapshotAttributesOutput ¶
type DescribeDBClusterSnapshotAttributesOutput struct { // Detailed information about the attributes that are associated with a cluster // snapshot. DBClusterSnapshotAttributesResult *types.DBClusterSnapshotAttributesResult // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type DescribeDBClusterSnapshotsInput ¶
type DescribeDBClusterSnapshotsInput struct { // The ID of the cluster to retrieve the list of cluster snapshots for. This // parameter can't be used with the DBClusterSnapshotIdentifier parameter. This // parameter is not case sensitive. Constraints: // // * If provided, must match the // identifier of an existing DBCluster. DBClusterIdentifier *string // A specific cluster snapshot identifier to describe. This parameter can't be used // with the DBClusterIdentifier parameter. This value is stored as a lowercase // string. Constraints: // // * If provided, must match the identifier of an // existing DBClusterSnapshot. // // * If this identifier is for an automated // snapshot, the SnapshotType parameter must also be specified. DBClusterSnapshotIdentifier *string // that this AWS account has been given permission to copy or restore, and // otherwise false. The default is false. IncludeShared *bool // 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 AWS account. // // * manual - // Return all cluster snapshots that you have manually created for your AWS // account. // // * shared - Return all manual cluster snapshots that have been // shared to your AWS account. // // * public - Return all cluster snapshots that // have been marked as public. // // If you don't specify a SnapshotType value, then // both automated and manual cluster snapshots are returned. You can include shared // cluster snapshots with these results by setting the IncludeShared parameter to // true. You can include public cluster snapshots with these results by setting the // IncludePublic parameter to true. The IncludeShared and IncludePublic parameters // don't apply for SnapshotType values of manual or automated. The IncludePublic // parameter doesn't apply when SnapshotType is set to shared. The IncludeShared // parameter doesn't apply when SnapshotType is set to public. SnapshotType *string // Set to true to include manual cluster snapshots that are public and can be // copied or restored by any AWS account, and otherwise false. The default is // false. IncludePublic *bool // This parameter is not currently supported. Filters []*types.Filter // The maximum number of records to include in the response. If more records exist // than the specified MaxRecords value, a pagination token (marker) is included in // the response so that the remaining results can be retrieved. Default: 100 // Constraints: Minimum 20, maximum 100. MaxRecords *int32 // An optional pagination token provided by a previous request. If this parameter // is specified, the response includes only records beyond the marker, up to the // value specified by MaxRecords. Marker *string }
Represents the input to DescribeDBClusterSnapshots ().
type DescribeDBClusterSnapshotsOutput ¶
type DescribeDBClusterSnapshotsOutput struct { // An optional pagination token provided by a previous request. If this parameter // is specified, the response includes only records beyond the marker, up to the // value specified by MaxRecords. Marker *string // Provides a list of cluster snapshots. DBClusterSnapshots []*types.DBClusterSnapshot // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
Represents the output of DescribeDBClusterSnapshots ().
type DescribeDBClustersInput ¶
type DescribeDBClustersInput struct { // The maximum number of records to include in the response. If more records exist // than the specified MaxRecords value, a pagination token (marker) is included in // the response so that the remaining results can be retrieved. Default: 100 // Constraints: Minimum 20, maximum 100. MaxRecords *int32 // A filter that specifies one or more clusters to describe. Supported filters: // // // * db-cluster-id - Accepts cluster identifiers and cluster Amazon Resource Names // (ARNs). The results list only includes information about the clusters identified // by these ARNs. Filters []*types.Filter // The user-provided cluster identifier. If this parameter is specified, // information from only the specific cluster is returned. This parameter isn't // case sensitive. Constraints: // // * If provided, must match an existing // DBClusterIdentifier. DBClusterIdentifier *string // An optional pagination token provided by a previous request. If this parameter // is specified, the response includes only records beyond the marker, up to the // value specified by MaxRecords. Marker *string }
Represents the input to DescribeDBClusters ().
type DescribeDBClustersOutput ¶
type DescribeDBClustersOutput struct { // A list of clusters. DBClusters []*types.DBCluster // An optional pagination token provided by a previous request. If this parameter // is specified, the response includes only records beyond the marker, up to the // value specified by MaxRecords. Marker *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
Represents the output of DescribeDBClusters ().
type DescribeDBEngineVersionsInput ¶
type DescribeDBEngineVersionsInput struct { // If this parameter is specified and the requested engine supports the TimeZone // parameter for CreateDBInstance, the response includes a list of supported time // zones for each engine version. ListSupportedTimezones *bool // An optional pagination token provided by a previous request. If this parameter // is specified, the response includes only records beyond the marker, up to the // value specified by MaxRecords. Marker *string // The database engine to return. Engine *string // The maximum number of records to include in the response. If more records exist // than the specified MaxRecords value, a pagination token (marker) is included in // the response so that the remaining results can be retrieved. Default: 100 // Constraints: Minimum 20, maximum 100. MaxRecords *int32 // The name of a specific parameter group family to return details for. // Constraints: // // * If provided, must match an existing DBParameterGroupFamily. DBParameterGroupFamily *string // This parameter is not currently supported. Filters []*types.Filter // The database engine version to return. Example: 5.1.49 EngineVersion *string // Indicates that only the default version of the specified engine or engine and // major version combination is returned. DefaultOnly *bool // If this parameter is specified and the requested engine supports the // CharacterSetName parameter for CreateDBInstance, the response includes a list of // supported character sets for each engine version. ListSupportedCharacterSets *bool }
Represents the input to DescribeDBEngineVersions ().
type DescribeDBEngineVersionsOutput ¶
type DescribeDBEngineVersionsOutput struct { // An optional pagination token provided by a previous request. If this parameter // is specified, the response includes only records beyond the marker, up to the // value specified by MaxRecords. Marker *string // Detailed information about one or more engine versions. DBEngineVersions []*types.DBEngineVersion // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
Represents the output of DescribeDBEngineVersions ().
type DescribeDBInstancesInput ¶
type DescribeDBInstancesInput struct { // A filter that specifies one or more instances to describe. Supported filters: // // // * db-cluster-id - Accepts cluster identifiers and cluster Amazon Resource Names // (ARNs). The results list includes only the information about the instances that // are associated with the clusters that are identified by these ARNs. // // * // db-instance-id - Accepts instance identifiers and instance ARNs. The results // list includes only the information about the instances that are identified by // these ARNs. Filters []*types.Filter // The maximum number of records to include in the response. If more records exist // than the specified MaxRecords value, a pagination token (marker) is included in // the response so that the remaining results can be retrieved. Default: 100 // Constraints: Minimum 20, maximum 100. MaxRecords *int32 // The user-provided instance identifier. If this parameter is specified, // information from only the specific instance is returned. This parameter isn't // case sensitive. Constraints: // // * If provided, must match the identifier of an // existing DBInstance. DBInstanceIdentifier *string // An optional pagination token provided by a previous request. If this parameter // is specified, the response includes only records beyond the marker, up to the // value specified by MaxRecords. Marker *string }
Represents the input to DescribeDBInstances ().
type DescribeDBInstancesOutput ¶
type DescribeDBInstancesOutput struct { // An optional pagination token provided by a previous request. If this parameter // is specified, the response includes only records beyond the marker, up to the // value specified by MaxRecords. Marker *string // Detailed information about one or more instances. DBInstances []*types.DBInstance // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
Represents the output of DescribeDBInstances ().
type DescribeDBSubnetGroupsInput ¶
type DescribeDBSubnetGroupsInput struct { // This parameter is not currently supported. Filters []*types.Filter // The maximum number of records to include in the response. If more records exist // than the specified MaxRecords value, a pagination token (marker) is included in // the response so that the remaining results can be retrieved. Default: 100 // Constraints: Minimum 20, maximum 100. MaxRecords *int32 // The name of the subnet group to return details for. DBSubnetGroupName *string // An optional pagination token provided by a previous request. If this parameter // is specified, the response includes only records beyond the marker, up to the // value specified by MaxRecords. Marker *string }
Represents the input to DescribeDBSubnetGroups ().
type DescribeDBSubnetGroupsOutput ¶
type DescribeDBSubnetGroupsOutput struct { // An optional pagination token provided by a previous request. If this parameter // is specified, the response includes only records beyond the marker, up to the // value specified by MaxRecords. Marker *string // Detailed information about one or more subnet groups. DBSubnetGroups []*types.DBSubnetGroup // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
Represents the output of DescribeDBSubnetGroups ().
type DescribeEngineDefaultClusterParametersInput ¶
type DescribeEngineDefaultClusterParametersInput struct { // The name of the cluster parameter group family to return the engine parameter // information for. DBParameterGroupFamily *string // An optional pagination token provided by a previous request. If this parameter // is specified, the response includes only records beyond the marker, up to the // value specified by MaxRecords. Marker *string // This parameter is not currently supported. Filters []*types.Filter // The maximum number of records to include in the response. If more records exist // than the specified MaxRecords value, a pagination token (marker) is included in // the response so that the remaining results can be retrieved. Default: 100 // Constraints: Minimum 20, maximum 100. MaxRecords *int32 }
Represents the input to DescribeEngineDefaultClusterParameters ().
type DescribeEngineDefaultClusterParametersOutput ¶
type DescribeEngineDefaultClusterParametersOutput struct { // Contains the result of a successful invocation of the // DescribeEngineDefaultClusterParameters operation. EngineDefaults *types.EngineDefaults // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type DescribeEventCategoriesInput ¶
type DescribeEventCategoriesInput struct { // This parameter is not currently supported. Filters []*types.Filter // The type of source that is generating the events. Valid values: db-instance, // db-parameter-group, db-security-group, db-snapshot SourceType *string }
Represents the input to DescribeEventCategories ().
type DescribeEventCategoriesOutput ¶
type DescribeEventCategoriesOutput struct { // A list of event category maps. EventCategoriesMapList []*types.EventCategoriesMap // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
Represents the output of DescribeEventCategories ().
type DescribeEventsInput ¶
type DescribeEventsInput struct { // The end of the time interval for which to retrieve events, specified in ISO 8601 // format. Example: 2009-07-08T18:00Z EndTime *time.Time // The maximum number of records to include in the response. If more records exist // than the specified MaxRecords value, a pagination token (marker) is included in // the response so that the remaining results can be retrieved. Default: 100 // Constraints: Minimum 20, maximum 100. MaxRecords *int32 // An optional pagination token provided by a previous request. If this parameter // is specified, the response includes only records beyond the marker, up to the // value specified by MaxRecords. Marker *string // The event source to retrieve events for. If no value is specified, all events // are returned. SourceType types.SourceType // The beginning of the time interval to retrieve events for, specified in ISO 8601 // format. Example: 2009-07-08T18:00Z StartTime *time.Time // The identifier of the event source for which events are returned. If not // specified, then all sources are included in the response. Constraints: // // * If // SourceIdentifier is provided, SourceType must also be provided. // // * If the // source type is DBInstance, a DBInstanceIdentifier must be provided. // // * If // the source type is DBSecurityGroup, a DBSecurityGroupName must be provided. // // // * If the source type is DBParameterGroup, a DBParameterGroupName must be // provided. // // * If the source type is DBSnapshot, a DBSnapshotIdentifier must // be provided. // // * Cannot end with a hyphen or contain two consecutive hyphens. SourceIdentifier *string // A list of event categories that trigger notifications for an event notification // subscription. EventCategories []*string // This parameter is not currently supported. Filters []*types.Filter // The number of minutes to retrieve events for. Default: 60 Duration *int32 }
Represents the input to DescribeEvents ().
type DescribeEventsOutput ¶
type DescribeEventsOutput struct { // An optional pagination token provided by a previous request. If this parameter // is specified, the response includes only records beyond the marker, up to the // value specified by MaxRecords. Marker *string // Detailed information about one or more events. Events []*types.Event // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
Represents the output of DescribeEvents ().
type DescribeOrderableDBInstanceOptionsInput ¶
type DescribeOrderableDBInstanceOptionsInput struct { // An optional pagination token provided by a previous request. If this parameter // is specified, the response includes only records beyond the marker, up to the // value specified by MaxRecords. Marker *string // The virtual private cloud (VPC) filter value. Specify this parameter to show // only the available VPC or non-VPC offerings. Vpc *bool // The name of the engine to retrieve instance options for. Engine *string // The maximum number of records to include in the response. If more records exist // than the specified MaxRecords value, a pagination token (marker) is included in // the response so that the remaining results can be retrieved. Default: 100 // Constraints: Minimum 20, maximum 100. MaxRecords *int32 // The instance class filter value. Specify this parameter to show only the // available offerings that match the specified instance class. DBInstanceClass *string // This parameter is not currently supported. Filters []*types.Filter // The license model filter value. Specify this parameter to show only the // available offerings that match the specified license model. LicenseModel *string // The engine version filter value. Specify this parameter to show only the // available offerings that match the specified engine version. EngineVersion *string }
Represents the input to DescribeOrderableDBInstanceOptions ().
type DescribeOrderableDBInstanceOptionsOutput ¶
type DescribeOrderableDBInstanceOptionsOutput struct { // The options that are available for a particular orderable instance. OrderableDBInstanceOptions []*types.OrderableDBInstanceOption // An optional pagination token provided by a previous request. If this parameter // is specified, the response includes only records beyond the marker, up to the // value specified by MaxRecords. Marker *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
Represents the output of DescribeOrderableDBInstanceOptions ().
type DescribePendingMaintenanceActionsInput ¶
type DescribePendingMaintenanceActionsInput struct { // The maximum number of records to include in the response. If more records exist // than the specified MaxRecords value, a pagination token (marker) is included in // the response so that the remaining results can be retrieved. Default: 100 // Constraints: Minimum 20, maximum 100. MaxRecords *int32 // An optional pagination token provided by a previous request. If this parameter // is specified, the response includes only records beyond the marker, up to the // value specified by MaxRecords. Marker *string // The ARN of a resource to return pending maintenance actions for. ResourceIdentifier *string // A filter that specifies one or more resources to return pending maintenance // actions for. Supported filters: // // * db-cluster-id - Accepts cluster // identifiers and cluster Amazon Resource Names (ARNs). The results list includes // only pending maintenance actions for the clusters identified by these ARNs. // // // * db-instance-id - Accepts instance identifiers and instance ARNs. The results // list includes only pending maintenance actions for the DB instances identified // by these ARNs. Filters []*types.Filter }
Represents the input to DescribePendingMaintenanceActions ().
type DescribePendingMaintenanceActionsOutput ¶
type DescribePendingMaintenanceActionsOutput struct { // An optional pagination token provided by a previous request. If this parameter // is specified, the response includes only records beyond the marker, up to the // value specified by MaxRecords. Marker *string // The maintenance actions to be applied. PendingMaintenanceActions []*types.ResourcePendingMaintenanceActions // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
Represents the output of DescribePendingMaintenanceActions ().
type EndpointResolver ¶
type EndpointResolver interface {
ResolveEndpoint(region string, options ResolverOptions) (aws.Endpoint, error)
}
EndpointResolver interface for resolving service endpoints.
func WithEndpointResolver ¶
func WithEndpointResolver(awsResolver aws.EndpointResolver, fallbackResolver EndpointResolver) EndpointResolver
WithEndpointResolver returns an EndpointResolver that first delegates endpoint resolution to the awsResolver. If awsResolver returns aws.EndpointNotFoundError error, the resolver will use the the provided fallbackResolver for resolution. awsResolver and fallbackResolver must not be nil
type EndpointResolverFunc ¶
type EndpointResolverFunc func(region string, options ResolverOptions) (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 ResolverOptions) (endpoint aws.Endpoint, err error)
type FailoverDBClusterInput ¶
type FailoverDBClusterInput struct { // A cluster identifier to force a failover for. This parameter is not case // sensitive. Constraints: // // * Must match the identifier of an existing // DBCluster. DBClusterIdentifier *string // The name of the instance to promote to the primary instance. You must specify // the instance identifier for an Amazon DocumentDB replica in the cluster. For // example, mydbcluster-replica1. TargetDBInstanceIdentifier *string }
Represents the input to FailoverDBCluster ().
type FailoverDBClusterOutput ¶
type FailoverDBClusterOutput struct { // Detailed information about a cluster. DBCluster *types.DBCluster // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type HTTPSignerV4 ¶
type ListTagsForResourceInput ¶
type ListTagsForResourceInput struct { // This parameter is not currently supported. Filters []*types.Filter // The Amazon DocumentDB resource with tags to be listed. This value is an Amazon // Resource Name (ARN). ResourceName *string }
Represents the input to ListTagsForResource ().
type ListTagsForResourceOutput ¶
type ListTagsForResourceOutput struct { // A list of one or more tags. TagList []*types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
Represents the output of ListTagsForResource ().
type ModifyDBClusterInput ¶
type ModifyDBClusterInput struct { // The new cluster identifier for the cluster when renaming a cluster. This value // 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-cluster2 NewDBClusterIdentifier *string // Specifies whether this cluster can be deleted. If DeletionProtection is enabled, // the cluster cannot be deleted unless it is modified and DeletionProtection is // disabled. DeletionProtection protects clusters from being accidentally deleted. DeletionProtection *bool // The cluster identifier for the cluster that is being modified. This parameter is // not case sensitive. Constraints: // // * Must match the identifier of an existing // DBCluster. DBClusterIdentifier *string // The weekly time range during which system maintenance can occur, in Universal // Coordinated Time (UTC). Format: ddd:hh24:mi-ddd:hh24:mi The default is a // 30-minute window selected at random from an 8-hour block of time for each AWS // 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 port number on which the cluster accepts connections. Constraints: Must be a // value from 1150 to 65535. Default: The same port as the original cluster. Port *int32 // The version number of the database engine to which you want to upgrade. Changing // this parameter results in an outage. The change is applied during the next // maintenance window unless the ApplyImmediately parameter is set to true. EngineVersion *string // The password for the master database user. 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. MasterUserPassword *string // A list of virtual private cloud (VPC) security groups that the cluster will // belong to. VpcSecurityGroupIds []*string // The daily time range during which automated backups are created if automated // backups are enabled, using the BackupRetentionPeriod parameter. The default is a // 30-minute window selected at random from an 8-hour block of time for each AWS // Region. Constraints: // // * Must be in the format hh24:mi-hh24:mi. // // * Must // be in Universal Coordinated Time (UTC). // // * Must not conflict with the // preferred maintenance window. // // * Must be at least 30 minutes. PreferredBackupWindow *string // The name of the cluster parameter group to use for the cluster. DBClusterParameterGroupName *string // The number of days for which automated backups are retained. You must specify a // minimum value of 1. Default: 1 Constraints: // // * Must be a value from 1 to 35. BackupRetentionPeriod *int32 // A value that specifies whether the changes in this request and any pending // changes are asynchronously applied as soon as possible, regardless of the // PreferredMaintenanceWindow setting for the cluster. If this parameter is set to // false, changes to the cluster are applied during the next maintenance window. // The ApplyImmediately parameter affects only the NewDBClusterIdentifier and // MasterUserPassword values. If you set this parameter value to false, the changes // to the NewDBClusterIdentifier and MasterUserPassword values are applied during // the next maintenance window. All other changes are applied immediately, // regardless of the value of the ApplyImmediately parameter. Default: false ApplyImmediately *bool // The configuration setting for the log types to be enabled for export to Amazon // CloudWatch Logs for a specific instance or cluster. The EnableLogTypes and // DisableLogTypes arrays determine which logs are exported (or not exported) to // CloudWatch Logs. CloudwatchLogsExportConfiguration *types.CloudwatchLogsExportConfiguration }
Represents the input to ModifyDBCluster ().
type ModifyDBClusterOutput ¶
type ModifyDBClusterOutput struct { // Detailed information about a cluster. DBCluster *types.DBCluster // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type ModifyDBClusterParameterGroupInput ¶
type ModifyDBClusterParameterGroupInput struct { // A list of parameters in the cluster parameter group to modify. Parameters []*types.Parameter // The name of the cluster parameter group to modify. DBClusterParameterGroupName *string }
Represents the input to ModifyDBClusterParameterGroup ().
type ModifyDBClusterParameterGroupOutput ¶
type ModifyDBClusterParameterGroupOutput struct { // The name of a cluster parameter group. Constraints: // // * Must be from 1 to 255 // letters or numbers. // // * The first character must be a letter. // // * Cannot // end with a hyphen or contain two consecutive hyphens. // // This value is stored as a // lowercase string. DBClusterParameterGroupName *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
Contains the name of a cluster parameter group.
type ModifyDBClusterSnapshotAttributeInput ¶
type ModifyDBClusterSnapshotAttributeInput struct { // The name of the cluster snapshot attribute to modify. To manage authorization // for other AWS accounts to copy or restore a manual cluster snapshot, set this // value to restore. AttributeName *string // The identifier for the cluster snapshot to modify the attributes for. DBClusterSnapshotIdentifier *string // A list of cluster snapshot attributes to remove from the attribute specified by // AttributeName. To remove authorization for other AWS accounts to copy or restore // a manual cluster snapshot, set this list to include one or more AWS account // identifiers. To remove authorization for any AWS account to copy or restore the // cluster snapshot, set it to all . If you specify all, an AWS account whose // account ID is explicitly added to the restore attribute can still copy or // restore a manual cluster snapshot. ValuesToRemove []*string // A list of cluster snapshot attributes to add to the attribute specified by // AttributeName. To authorize other AWS accounts to copy or restore a manual // cluster snapshot, set this list to include one or more AWS account IDs. To make // the manual cluster snapshot restorable by any AWS account, set it to all. Do not // add the all value for any manual cluster snapshots that contain private // information that you don't want to be available to all AWS accounts. ValuesToAdd []*string }
Represents the input to ModifyDBClusterSnapshotAttribute ().
type ModifyDBClusterSnapshotAttributeOutput ¶
type ModifyDBClusterSnapshotAttributeOutput struct { // Detailed information about the attributes that are associated with a cluster // snapshot. DBClusterSnapshotAttributesResult *types.DBClusterSnapshotAttributesResult // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type ModifyDBInstanceInput ¶
type ModifyDBInstanceInput struct { // The weekly time range (in UTC) during which system maintenance can occur, which // might result in an outage. Changing this parameter doesn't result in an outage // except in the following situation, and the change is asynchronously applied as // soon as possible. If there are pending actions that cause a reboot, and the // maintenance window is changed to include the current time, changing this // parameter causes a reboot of the instance. If you are moving this window to the // current time, there must be at least 30 minutes between the current time and end // of the window to ensure that pending changes are applied. Default: Uses existing // setting. Format: ddd:hh24:mi-ddd:hh24:mi Valid days: Mon, Tue, Wed, Thu, Fri, // Sat, Sun Constraints: Must be at least 30 minutes. PreferredMaintenanceWindow *string // A value that specifies the order in which an Amazon DocumentDB replica is // promoted to the primary instance after a failure of the existing primary // instance. Default: 1 Valid values: 0-15 PromotionTier *int32 // The new compute and memory capacity of the instance; for example, db.r5.large. // Not all instance classes are available in all AWS Regions. If you modify the // instance class, an outage occurs during the change. The change is applied during // the next maintenance window, unless ApplyImmediately is specified as true for // this request. Default: Uses existing setting. DBInstanceClass *string // The new instance identifier for the instance when renaming an instance. When you // change the instance identifier, an instance reboot occurs immediately if you set // Apply Immediately to true. It occurs during the next maintenance window if you // set Apply Immediately to false. This value 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: mydbinstance NewDBInstanceIdentifier *string // The instance identifier. This value is stored as a lowercase string. // Constraints: // // * Must match the identifier of an existing DBInstance. DBInstanceIdentifier *string // Indicates that minor version upgrades are applied automatically to the instance // during the maintenance window. Changing this parameter doesn't result in an // outage except in the following case, and the change is asynchronously applied as // soon as possible. An outage results if this parameter is set to true during the // maintenance window, and a newer minor version is available, and Amazon // DocumentDB has enabled automatic patching for that engine version. AutoMinorVersionUpgrade *bool // Specifies whether the modifications in this request and any pending // modifications are asynchronously applied as soon as possible, regardless of the // PreferredMaintenanceWindow setting for the instance. If this parameter is set to // false, changes to the instance are applied during the next maintenance window. // Some parameter changes can cause an outage and are applied on the next reboot. // Default: false ApplyImmediately *bool // Indicates the certificate that needs to be associated with the instance. CACertificateIdentifier *string }
Represents the input to ModifyDBInstance ().
type ModifyDBInstanceOutput ¶
type ModifyDBInstanceOutput struct { // Detailed information about an instance. DBInstance *types.DBInstance // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type ModifyDBSubnetGroupInput ¶
type ModifyDBSubnetGroupInput struct { // The name for the subnet group. This value is stored as a lowercase string. You // can't modify the default subnet group. Constraints: Must match the name of an // existing DBSubnetGroup. Must not be default. Example: mySubnetgroup DBSubnetGroupName *string // The description for the subnet group. DBSubnetGroupDescription *string // The Amazon EC2 subnet IDs for the subnet group. SubnetIds []*string }
Represents the input to ModifyDBSubnetGroup ().
type ModifyDBSubnetGroupOutput ¶
type ModifyDBSubnetGroupOutput struct { // Detailed information about a subnet group. DBSubnetGroup *types.DBSubnetGroup // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
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 credentials object to use when signing requests. Credentials aws.CredentialsProvider // The endpoint options to be used when attempting to resolve an endpoint. EndpointOptions ResolverOptions // The service endpoint resolver. EndpointResolver EndpointResolver // Signature Version 4 (SigV4) Signer HTTPSignerV4 HTTPSignerV4 // The region to send requests to. (Required) Region string // Retryer guides how HTTP requests should be retried in case of recoverable // failures. When nil the API client will use a default retryer. Retryer retry.Retryer // The HTTP client to invoke API calls with. Defaults to client's default HTTP // implementation if nil. HTTPClient HTTPClient }
func (Options) GetCredentials ¶
func (o Options) GetCredentials() aws.CredentialsProvider
func (Options) GetEndpointOptions ¶
func (o Options) GetEndpointOptions() ResolverOptions
func (Options) GetEndpointResolver ¶
func (o Options) GetEndpointResolver() EndpointResolver
func (Options) GetHTTPSignerV4 ¶
func (o Options) GetHTTPSignerV4() HTTPSignerV4
func (Options) GetRetryer ¶
type RebootDBInstanceInput ¶
type RebootDBInstanceInput struct { // The instance identifier. This parameter is stored as a lowercase string. // Constraints: // // * Must match the identifier of an existing DBInstance. DBInstanceIdentifier *string // When true, the reboot is conducted through a Multi-AZ failover. Constraint: You // can't specify true if the instance is not configured for Multi-AZ. ForceFailover *bool }
Represents the input to RebootDBInstance ().
type RebootDBInstanceOutput ¶
type RebootDBInstanceOutput struct { // Detailed information about an instance. DBInstance *types.DBInstance // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type RemoveTagsFromResourceInput ¶
type RemoveTagsFromResourceInput struct { // The Amazon DocumentDB resource that the tags are removed from. This value is an // Amazon Resource Name (ARN). ResourceName *string // The tag key (name) of the tag to be removed. TagKeys []*string }
Represents the input to RemoveTagsFromResource ().
type RemoveTagsFromResourceOutput ¶
type RemoveTagsFromResourceOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type ResetDBClusterParameterGroupInput ¶
type ResetDBClusterParameterGroupInput struct { // A value that is set to true to reset all parameters in the cluster parameter // group to their default values, and false otherwise. You can't use this parameter // if there is a list of parameter names specified for the Parameters parameter. ResetAllParameters *bool // The name of the cluster parameter group to reset. DBClusterParameterGroupName *string // A list of parameter names in the cluster parameter group to reset to the default // values. You can't use this parameter if the ResetAllParameters parameter is set // to true. Parameters []*types.Parameter }
Represents the input to ResetDBClusterParameterGroup ().
type ResetDBClusterParameterGroupOutput ¶
type ResetDBClusterParameterGroupOutput struct { // The name of a cluster parameter group. Constraints: // // * Must be from 1 to 255 // letters or numbers. // // * The first character must be a letter. // // * Cannot // end with a hyphen or contain two consecutive hyphens. // // This value is stored as a // lowercase string. DBClusterParameterGroupName *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
Contains the name of a cluster parameter group.
type ResolveEndpoint ¶
type ResolveEndpoint struct { Resolver EndpointResolver Options ResolverOptions }
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 ResolveEndpointMiddlewareOptions ¶
type ResolveEndpointMiddlewareOptions interface { GetEndpointResolver() EndpointResolver GetEndpointOptions() ResolverOptions }
type ResolverOptions ¶
type ResolverOptions = internalendpoints.Options
ResolverOptions is the service endpoint resolver options
type RestoreDBClusterFromSnapshotInput ¶
type RestoreDBClusterFromSnapshotInput struct { // The tags to be assigned to the restored cluster. Tags []*types.Tag // A list of virtual private cloud (VPC) security groups that the new cluster will // belong to. VpcSecurityGroupIds []*string // The name of the subnet group to use for the new cluster. Constraints: If // provided, must match the name of an existing DBSubnetGroup. Example: // mySubnetgroup DBSubnetGroupName *string // Specifies whether this cluster can be deleted. If DeletionProtection is enabled, // the cluster cannot be deleted unless it is modified and DeletionProtection is // disabled. DeletionProtection protects clusters from being accidentally deleted. DeletionProtection *bool // The name of the cluster to create from the snapshot or cluster snapshot. This // parameter isn't 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: // my-snapshot-id DBClusterIdentifier *string // The version of the database engine to use for the new cluster. EngineVersion *string // The identifier for the snapshot or cluster snapshot to restore from. You can use // either the name or the Amazon Resource Name (ARN) to specify a cluster snapshot. // However, you can use only the ARN to specify a snapshot. Constraints: // // * // Must match the identifier of an existing snapshot. SnapshotIdentifier *string // The port number on which the new cluster accepts connections. Constraints: Must // be a value from 1150 to 65535. Default: The same port as the original cluster. Port *int32 // The AWS KMS key identifier to use when restoring an encrypted cluster from a DB // snapshot or cluster snapshot. The AWS KMS key identifier is the Amazon Resource // Name (ARN) for the AWS KMS encryption key. If you are restoring a cluster with // the same AWS account that owns the AWS KMS encryption key used to encrypt the // new cluster, then you can use the AWS KMS key alias instead of the ARN for the // AWS KMS encryption key. If you do not specify a value for the KmsKeyId // parameter, then the following occurs: // // * If the snapshot or cluster snapshot // in SnapshotIdentifier is encrypted, then the restored cluster is encrypted using // the AWS KMS key that was used to encrypt the snapshot or the cluster snapshot. // // // * If the snapshot or the cluster snapshot in SnapshotIdentifier is not // encrypted, then the restored DB cluster is not encrypted. KmsKeyId *string // Provides the list of Amazon EC2 Availability Zones that instances in the // restored DB cluster can be created in. AvailabilityZones []*string // The database engine to use for the new cluster. Default: The same as source. // Constraint: Must be compatible with the engine of the source. Engine *string // A list of log types that must be enabled for exporting to Amazon CloudWatch // Logs. EnableCloudwatchLogsExports []*string }
Represents the input to RestoreDBClusterFromSnapshot ().
type RestoreDBClusterFromSnapshotOutput ¶
type RestoreDBClusterFromSnapshotOutput struct { // Detailed information about a cluster. DBCluster *types.DBCluster // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type RestoreDBClusterToPointInTimeInput ¶
type RestoreDBClusterToPointInTimeInput struct { // The tags to be assigned to the restored cluster. Tags []*types.Tag // The identifier of the source cluster from which to restore. Constraints: // // * // Must match the identifier of an existing DBCluster. SourceDBClusterIdentifier *string // The port number on which the new cluster accepts connections. Constraints: Must // be a value from 1150 to 65535. Default: The default port for the engine. Port *int32 // The date and time to restore the cluster to. Valid values: A time in Universal // Coordinated Time (UTC) format. Constraints: // // * Must be before the latest // restorable time for the instance. // // * Must be specified if the // UseLatestRestorableTime parameter is not provided. // // * Cannot be specified if // the UseLatestRestorableTime parameter is true. // // * Cannot be specified if the // RestoreType parameter is copy-on-write. // // Example: 2015-03-07T23:45:00Z RestoreToTime *time.Time // A list of log types that must be enabled for exporting to Amazon CloudWatch // Logs. EnableCloudwatchLogsExports []*string // A value that is set to true to restore the cluster to the latest restorable // backup time, and false otherwise. Default: false Constraints: Cannot be // specified if the RestoreToTime parameter is provided. UseLatestRestorableTime *bool // The subnet group name to use for the new cluster. Constraints: If provided, must // match the name of an existing DBSubnetGroup. Example: mySubnetgroup DBSubnetGroupName *string // Specifies whether this cluster can be deleted. If DeletionProtection is enabled, // the cluster cannot be deleted unless it is modified and DeletionProtection is // disabled. DeletionProtection protects clusters from being accidentally deleted. DeletionProtection *bool // The name of the new cluster to be created. 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. DBClusterIdentifier *string // The AWS KMS key identifier to use when restoring an encrypted cluster from an // encrypted cluster. The AWS KMS key identifier is the Amazon Resource Name (ARN) // for the AWS KMS encryption key. If you are restoring a cluster with the same AWS // account that owns the AWS KMS encryption key used to encrypt the new cluster, // then you can use the AWS KMS key alias instead of the ARN for the AWS KMS // encryption key. You can restore to a new cluster and encrypt the new cluster // with an AWS KMS key that is different from the AWS KMS key used to encrypt the // source cluster. The new DB cluster is encrypted with the AWS KMS key identified // by the KmsKeyId parameter. If you do not specify a value for the KmsKeyId // parameter, then the following occurs: // // * If the cluster is encrypted, then // the restored cluster is encrypted using the AWS KMS key that was used to encrypt // the source cluster. // // * If the cluster is not encrypted, then the restored // cluster is not encrypted. // // If DBClusterIdentifier refers to a cluster that is // not encrypted, then the restore request is rejected. KmsKeyId *string // A list of VPC security groups that the new cluster belongs to. VpcSecurityGroupIds []*string }
Represents the input to RestoreDBClusterToPointInTime ().
type RestoreDBClusterToPointInTimeOutput ¶
type RestoreDBClusterToPointInTimeOutput struct { // Detailed information about a cluster. DBCluster *types.DBCluster // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type StartDBClusterInput ¶
type StartDBClusterInput struct { // The identifier of the cluster to restart. Example: docdb-2019-05-28-15-24-52 DBClusterIdentifier *string }
type StartDBClusterOutput ¶
type StartDBClusterOutput struct { // Detailed information about a cluster. DBCluster *types.DBCluster // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type StopDBClusterInput ¶
type StopDBClusterInput struct { // The identifier of the cluster to stop. Example: docdb-2019-05-28-15-24-52 DBClusterIdentifier *string }
type StopDBClusterOutput ¶
type StopDBClusterOutput struct { // Detailed information about a cluster. DBCluster *types.DBCluster // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
Source Files
¶
- api_client.go
- api_op_AddTagsToResource.go
- api_op_ApplyPendingMaintenanceAction.go
- api_op_CopyDBClusterParameterGroup.go
- api_op_CopyDBClusterSnapshot.go
- api_op_CreateDBCluster.go
- api_op_CreateDBClusterParameterGroup.go
- api_op_CreateDBClusterSnapshot.go
- api_op_CreateDBInstance.go
- api_op_CreateDBSubnetGroup.go
- api_op_DeleteDBCluster.go
- api_op_DeleteDBClusterParameterGroup.go
- api_op_DeleteDBClusterSnapshot.go
- api_op_DeleteDBInstance.go
- api_op_DeleteDBSubnetGroup.go
- api_op_DescribeCertificates.go
- api_op_DescribeDBClusterParameterGroups.go
- api_op_DescribeDBClusterParameters.go
- api_op_DescribeDBClusterSnapshotAttributes.go
- api_op_DescribeDBClusterSnapshots.go
- api_op_DescribeDBClusters.go
- api_op_DescribeDBEngineVersions.go
- api_op_DescribeDBInstances.go
- api_op_DescribeDBSubnetGroups.go
- api_op_DescribeEngineDefaultClusterParameters.go
- api_op_DescribeEventCategories.go
- api_op_DescribeEvents.go
- api_op_DescribeOrderableDBInstanceOptions.go
- api_op_DescribePendingMaintenanceActions.go
- api_op_FailoverDBCluster.go
- api_op_ListTagsForResource.go
- api_op_ModifyDBCluster.go
- api_op_ModifyDBClusterParameterGroup.go
- api_op_ModifyDBClusterSnapshotAttribute.go
- api_op_ModifyDBInstance.go
- api_op_ModifyDBSubnetGroup.go
- api_op_RebootDBInstance.go
- api_op_RemoveTagsFromResource.go
- api_op_ResetDBClusterParameterGroup.go
- api_op_RestoreDBClusterFromSnapshot.go
- api_op_RestoreDBClusterToPointInTime.go
- api_op_StartDBCluster.go
- api_op_StopDBCluster.go
- deserializers.go
- endpoints.go
- serializers.go
- validators.go