Documentation ¶
Overview ¶
Package backup provides the API client, operations, and parameter types for AWS Backup.
AWS Backup AWS Backup is a unified backup service designed to protect AWS services and their associated data. AWS Backup simplifies the creation, migration, restoration, and deletion of backups, while also providing reporting and auditing.
Index ¶
- Constants
- func NewDefaultEndpointResolver() *internalendpoints.Resolver
- func WithAPIOptions(optFns ...func(*middleware.Stack) error) func(*Options)
- func WithEndpointResolver(v EndpointResolver) func(*Options)
- type Client
- func (c *Client) CreateBackupPlan(ctx context.Context, params *CreateBackupPlanInput, optFns ...func(*Options)) (*CreateBackupPlanOutput, error)
- func (c *Client) CreateBackupSelection(ctx context.Context, params *CreateBackupSelectionInput, ...) (*CreateBackupSelectionOutput, error)
- func (c *Client) CreateBackupVault(ctx context.Context, params *CreateBackupVaultInput, optFns ...func(*Options)) (*CreateBackupVaultOutput, error)
- func (c *Client) DeleteBackupPlan(ctx context.Context, params *DeleteBackupPlanInput, optFns ...func(*Options)) (*DeleteBackupPlanOutput, error)
- func (c *Client) DeleteBackupSelection(ctx context.Context, params *DeleteBackupSelectionInput, ...) (*DeleteBackupSelectionOutput, error)
- func (c *Client) DeleteBackupVault(ctx context.Context, params *DeleteBackupVaultInput, optFns ...func(*Options)) (*DeleteBackupVaultOutput, error)
- func (c *Client) DeleteBackupVaultAccessPolicy(ctx context.Context, params *DeleteBackupVaultAccessPolicyInput, ...) (*DeleteBackupVaultAccessPolicyOutput, error)
- func (c *Client) DeleteBackupVaultNotifications(ctx context.Context, params *DeleteBackupVaultNotificationsInput, ...) (*DeleteBackupVaultNotificationsOutput, error)
- func (c *Client) DeleteRecoveryPoint(ctx context.Context, params *DeleteRecoveryPointInput, ...) (*DeleteRecoveryPointOutput, error)
- func (c *Client) DescribeBackupJob(ctx context.Context, params *DescribeBackupJobInput, optFns ...func(*Options)) (*DescribeBackupJobOutput, error)
- func (c *Client) DescribeBackupVault(ctx context.Context, params *DescribeBackupVaultInput, ...) (*DescribeBackupVaultOutput, error)
- func (c *Client) DescribeCopyJob(ctx context.Context, params *DescribeCopyJobInput, optFns ...func(*Options)) (*DescribeCopyJobOutput, error)
- func (c *Client) DescribeGlobalSettings(ctx context.Context, params *DescribeGlobalSettingsInput, ...) (*DescribeGlobalSettingsOutput, error)
- func (c *Client) DescribeProtectedResource(ctx context.Context, params *DescribeProtectedResourceInput, ...) (*DescribeProtectedResourceOutput, error)
- func (c *Client) DescribeRecoveryPoint(ctx context.Context, params *DescribeRecoveryPointInput, ...) (*DescribeRecoveryPointOutput, error)
- func (c *Client) DescribeRegionSettings(ctx context.Context, params *DescribeRegionSettingsInput, ...) (*DescribeRegionSettingsOutput, error)
- func (c *Client) DescribeRestoreJob(ctx context.Context, params *DescribeRestoreJobInput, optFns ...func(*Options)) (*DescribeRestoreJobOutput, error)
- func (c *Client) DisassociateRecoveryPoint(ctx context.Context, params *DisassociateRecoveryPointInput, ...) (*DisassociateRecoveryPointOutput, error)
- func (c *Client) ExportBackupPlanTemplate(ctx context.Context, params *ExportBackupPlanTemplateInput, ...) (*ExportBackupPlanTemplateOutput, error)
- func (c *Client) GetBackupPlan(ctx context.Context, params *GetBackupPlanInput, optFns ...func(*Options)) (*GetBackupPlanOutput, error)
- func (c *Client) GetBackupPlanFromJSON(ctx context.Context, params *GetBackupPlanFromJSONInput, ...) (*GetBackupPlanFromJSONOutput, error)
- func (c *Client) GetBackupPlanFromTemplate(ctx context.Context, params *GetBackupPlanFromTemplateInput, ...) (*GetBackupPlanFromTemplateOutput, error)
- func (c *Client) GetBackupSelection(ctx context.Context, params *GetBackupSelectionInput, optFns ...func(*Options)) (*GetBackupSelectionOutput, error)
- func (c *Client) GetBackupVaultAccessPolicy(ctx context.Context, params *GetBackupVaultAccessPolicyInput, ...) (*GetBackupVaultAccessPolicyOutput, error)
- func (c *Client) GetBackupVaultNotifications(ctx context.Context, params *GetBackupVaultNotificationsInput, ...) (*GetBackupVaultNotificationsOutput, error)
- func (c *Client) GetRecoveryPointRestoreMetadata(ctx context.Context, params *GetRecoveryPointRestoreMetadataInput, ...) (*GetRecoveryPointRestoreMetadataOutput, error)
- func (c *Client) GetSupportedResourceTypes(ctx context.Context, params *GetSupportedResourceTypesInput, ...) (*GetSupportedResourceTypesOutput, error)
- func (c *Client) ListBackupJobs(ctx context.Context, params *ListBackupJobsInput, optFns ...func(*Options)) (*ListBackupJobsOutput, error)
- func (c *Client) ListBackupPlanTemplates(ctx context.Context, params *ListBackupPlanTemplatesInput, ...) (*ListBackupPlanTemplatesOutput, error)
- func (c *Client) ListBackupPlanVersions(ctx context.Context, params *ListBackupPlanVersionsInput, ...) (*ListBackupPlanVersionsOutput, error)
- func (c *Client) ListBackupPlans(ctx context.Context, params *ListBackupPlansInput, optFns ...func(*Options)) (*ListBackupPlansOutput, error)
- func (c *Client) ListBackupSelections(ctx context.Context, params *ListBackupSelectionsInput, ...) (*ListBackupSelectionsOutput, error)
- func (c *Client) ListBackupVaults(ctx context.Context, params *ListBackupVaultsInput, optFns ...func(*Options)) (*ListBackupVaultsOutput, error)
- func (c *Client) ListCopyJobs(ctx context.Context, params *ListCopyJobsInput, optFns ...func(*Options)) (*ListCopyJobsOutput, error)
- func (c *Client) ListProtectedResources(ctx context.Context, params *ListProtectedResourcesInput, ...) (*ListProtectedResourcesOutput, error)
- func (c *Client) ListRecoveryPointsByBackupVault(ctx context.Context, params *ListRecoveryPointsByBackupVaultInput, ...) (*ListRecoveryPointsByBackupVaultOutput, error)
- func (c *Client) ListRecoveryPointsByResource(ctx context.Context, params *ListRecoveryPointsByResourceInput, ...) (*ListRecoveryPointsByResourceOutput, error)
- func (c *Client) ListRestoreJobs(ctx context.Context, params *ListRestoreJobsInput, optFns ...func(*Options)) (*ListRestoreJobsOutput, error)
- func (c *Client) ListTags(ctx context.Context, params *ListTagsInput, optFns ...func(*Options)) (*ListTagsOutput, error)
- func (c *Client) PutBackupVaultAccessPolicy(ctx context.Context, params *PutBackupVaultAccessPolicyInput, ...) (*PutBackupVaultAccessPolicyOutput, error)
- func (c *Client) PutBackupVaultNotifications(ctx context.Context, params *PutBackupVaultNotificationsInput, ...) (*PutBackupVaultNotificationsOutput, error)
- func (c *Client) StartBackupJob(ctx context.Context, params *StartBackupJobInput, optFns ...func(*Options)) (*StartBackupJobOutput, error)
- func (c *Client) StartCopyJob(ctx context.Context, params *StartCopyJobInput, optFns ...func(*Options)) (*StartCopyJobOutput, error)
- func (c *Client) StartRestoreJob(ctx context.Context, params *StartRestoreJobInput, optFns ...func(*Options)) (*StartRestoreJobOutput, error)
- func (c *Client) StopBackupJob(ctx context.Context, params *StopBackupJobInput, optFns ...func(*Options)) (*StopBackupJobOutput, error)
- func (c *Client) TagResource(ctx context.Context, params *TagResourceInput, optFns ...func(*Options)) (*TagResourceOutput, error)
- func (c *Client) UntagResource(ctx context.Context, params *UntagResourceInput, optFns ...func(*Options)) (*UntagResourceOutput, error)
- func (c *Client) UpdateBackupPlan(ctx context.Context, params *UpdateBackupPlanInput, optFns ...func(*Options)) (*UpdateBackupPlanOutput, error)
- func (c *Client) UpdateGlobalSettings(ctx context.Context, params *UpdateGlobalSettingsInput, ...) (*UpdateGlobalSettingsOutput, error)
- func (c *Client) UpdateRecoveryPointLifecycle(ctx context.Context, params *UpdateRecoveryPointLifecycleInput, ...) (*UpdateRecoveryPointLifecycleOutput, error)
- func (c *Client) UpdateRegionSettings(ctx context.Context, params *UpdateRegionSettingsInput, ...) (*UpdateRegionSettingsOutput, error)
- type CreateBackupPlanInput
- type CreateBackupPlanOutput
- type CreateBackupSelectionInput
- type CreateBackupSelectionOutput
- type CreateBackupVaultInput
- type CreateBackupVaultOutput
- type DeleteBackupPlanInput
- type DeleteBackupPlanOutput
- type DeleteBackupSelectionInput
- type DeleteBackupSelectionOutput
- type DeleteBackupVaultAccessPolicyInput
- type DeleteBackupVaultAccessPolicyOutput
- type DeleteBackupVaultInput
- type DeleteBackupVaultNotificationsInput
- type DeleteBackupVaultNotificationsOutput
- type DeleteBackupVaultOutput
- type DeleteRecoveryPointInput
- type DeleteRecoveryPointOutput
- type DescribeBackupJobInput
- type DescribeBackupJobOutput
- type DescribeBackupVaultInput
- type DescribeBackupVaultOutput
- type DescribeCopyJobInput
- type DescribeCopyJobOutput
- type DescribeGlobalSettingsInput
- type DescribeGlobalSettingsOutput
- type DescribeProtectedResourceInput
- type DescribeProtectedResourceOutput
- type DescribeRecoveryPointInput
- type DescribeRecoveryPointOutput
- type DescribeRegionSettingsInput
- type DescribeRegionSettingsOutput
- type DescribeRestoreJobInput
- type DescribeRestoreJobOutput
- type DisassociateRecoveryPointInput
- type DisassociateRecoveryPointOutput
- type EndpointResolver
- type EndpointResolverFunc
- type EndpointResolverOptions
- type ExportBackupPlanTemplateInput
- type ExportBackupPlanTemplateOutput
- type GetBackupPlanFromJSONInput
- type GetBackupPlanFromJSONOutput
- type GetBackupPlanFromTemplateInput
- type GetBackupPlanFromTemplateOutput
- type GetBackupPlanInput
- type GetBackupPlanOutput
- type GetBackupSelectionInput
- type GetBackupSelectionOutput
- type GetBackupVaultAccessPolicyInput
- type GetBackupVaultAccessPolicyOutput
- type GetBackupVaultNotificationsInput
- type GetBackupVaultNotificationsOutput
- type GetRecoveryPointRestoreMetadataInput
- type GetRecoveryPointRestoreMetadataOutput
- type GetSupportedResourceTypesInput
- type GetSupportedResourceTypesOutput
- type HTTPClient
- type HTTPSignerV4
- type ListBackupJobsAPIClient
- type ListBackupJobsInput
- type ListBackupJobsOutput
- type ListBackupJobsPaginator
- type ListBackupJobsPaginatorOptions
- type ListBackupPlanTemplatesAPIClient
- type ListBackupPlanTemplatesInput
- type ListBackupPlanTemplatesOutput
- type ListBackupPlanTemplatesPaginator
- type ListBackupPlanTemplatesPaginatorOptions
- type ListBackupPlanVersionsAPIClient
- type ListBackupPlanVersionsInput
- type ListBackupPlanVersionsOutput
- type ListBackupPlanVersionsPaginator
- type ListBackupPlanVersionsPaginatorOptions
- type ListBackupPlansAPIClient
- type ListBackupPlansInput
- type ListBackupPlansOutput
- type ListBackupPlansPaginator
- type ListBackupPlansPaginatorOptions
- type ListBackupSelectionsAPIClient
- type ListBackupSelectionsInput
- type ListBackupSelectionsOutput
- type ListBackupSelectionsPaginator
- type ListBackupSelectionsPaginatorOptions
- type ListBackupVaultsAPIClient
- type ListBackupVaultsInput
- type ListBackupVaultsOutput
- type ListBackupVaultsPaginator
- type ListBackupVaultsPaginatorOptions
- type ListCopyJobsAPIClient
- type ListCopyJobsInput
- type ListCopyJobsOutput
- type ListCopyJobsPaginator
- type ListCopyJobsPaginatorOptions
- type ListProtectedResourcesAPIClient
- type ListProtectedResourcesInput
- type ListProtectedResourcesOutput
- type ListProtectedResourcesPaginator
- type ListProtectedResourcesPaginatorOptions
- type ListRecoveryPointsByBackupVaultAPIClient
- type ListRecoveryPointsByBackupVaultInput
- type ListRecoveryPointsByBackupVaultOutput
- type ListRecoveryPointsByBackupVaultPaginator
- type ListRecoveryPointsByBackupVaultPaginatorOptions
- type ListRecoveryPointsByResourceAPIClient
- type ListRecoveryPointsByResourceInput
- type ListRecoveryPointsByResourceOutput
- type ListRecoveryPointsByResourcePaginator
- type ListRecoveryPointsByResourcePaginatorOptions
- type ListRestoreJobsAPIClient
- type ListRestoreJobsInput
- type ListRestoreJobsOutput
- type ListRestoreJobsPaginator
- type ListRestoreJobsPaginatorOptions
- type ListTagsAPIClient
- type ListTagsInput
- type ListTagsOutput
- type ListTagsPaginator
- type ListTagsPaginatorOptions
- type Options
- type PutBackupVaultAccessPolicyInput
- type PutBackupVaultAccessPolicyOutput
- type PutBackupVaultNotificationsInput
- type PutBackupVaultNotificationsOutput
- type ResolveEndpoint
- type StartBackupJobInput
- type StartBackupJobOutput
- type StartCopyJobInput
- type StartCopyJobOutput
- type StartRestoreJobInput
- type StartRestoreJobOutput
- type StopBackupJobInput
- type StopBackupJobOutput
- type TagResourceInput
- type TagResourceOutput
- type UntagResourceInput
- type UntagResourceOutput
- type UpdateBackupPlanInput
- type UpdateBackupPlanOutput
- type UpdateGlobalSettingsInput
- type UpdateGlobalSettingsOutput
- type UpdateRecoveryPointLifecycleInput
- type UpdateRecoveryPointLifecycleOutput
- type UpdateRegionSettingsInput
- type UpdateRegionSettingsOutput
Constants ¶
const ServiceAPIVersion = "2018-11-15"
const ServiceID = "Backup"
Variables ¶
This section is empty.
Functions ¶
func NewDefaultEndpointResolver ¶
func NewDefaultEndpointResolver() *internalendpoints.Resolver
NewDefaultEndpointResolver constructs a new service endpoint resolver
func WithAPIOptions ¶ added in v1.0.0
func WithAPIOptions(optFns ...func(*middleware.Stack) error) func(*Options)
WithAPIOptions returns a functional option for setting the Client's APIOptions option.
func WithEndpointResolver ¶
func WithEndpointResolver(v EndpointResolver) func(*Options)
WithEndpointResolver returns a functional option for setting the Client's EndpointResolver option.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client provides the API client to make operations call for AWS Backup.
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) CreateBackupPlan ¶
func (c *Client) CreateBackupPlan(ctx context.Context, params *CreateBackupPlanInput, optFns ...func(*Options)) (*CreateBackupPlanOutput, error)
Creates a backup plan using a backup plan name and backup rules. A backup plan is a document that contains information that AWS Backup uses to schedule tasks that create recovery points for resources. If you call CreateBackupPlan with a plan that already exists, an AlreadyExistsException is returned.
func (*Client) CreateBackupSelection ¶
func (c *Client) CreateBackupSelection(ctx context.Context, params *CreateBackupSelectionInput, optFns ...func(*Options)) (*CreateBackupSelectionOutput, error)
Creates a JSON document that specifies a set of resources to assign to a backup plan. Resources can be included by specifying patterns for a ListOfTags and selected Resources. For example, consider the following patterns:
* Resources: "arn:aws:ec2:region:account-id:volume/volume-id"
* ConditionKey:"department"ConditionValue:"finance"ConditionType:"StringEquals"
* ConditionKey:"importance"ConditionValue:"critical"ConditionType:"StringEquals"
Using these patterns would back up all Amazon Elastic Block Store (Amazon EBS) volumes that are tagged as "department=finance", "importance=critical", in addition to an EBS volume with the specified volume ID. Resources and conditions are additive in that all resources that match the pattern are selected. This shouldn't be confused with a logical AND, where all conditions must match. The matching patterns are logically put together using the OR operator. In other words, all patterns that match are selected for backup.
func (*Client) CreateBackupVault ¶
func (c *Client) CreateBackupVault(ctx context.Context, params *CreateBackupVaultInput, optFns ...func(*Options)) (*CreateBackupVaultOutput, error)
Creates a logical container where backups are stored. A CreateBackupVault request includes a name, optionally one or more resource tags, an encryption key, and a request ID. Sensitive data, such as passport numbers, should not be included the name of a backup vault.
func (*Client) DeleteBackupPlan ¶
func (c *Client) DeleteBackupPlan(ctx context.Context, params *DeleteBackupPlanInput, optFns ...func(*Options)) (*DeleteBackupPlanOutput, error)
Deletes a backup plan. A backup plan can only be deleted after all associated selections of resources have been deleted. Deleting a backup plan deletes the current version of a backup plan. Previous versions, if any, will still exist.
func (*Client) DeleteBackupSelection ¶
func (c *Client) DeleteBackupSelection(ctx context.Context, params *DeleteBackupSelectionInput, optFns ...func(*Options)) (*DeleteBackupSelectionOutput, error)
Deletes the resource selection associated with a backup plan that is specified by the SelectionId.
func (*Client) DeleteBackupVault ¶
func (c *Client) DeleteBackupVault(ctx context.Context, params *DeleteBackupVaultInput, optFns ...func(*Options)) (*DeleteBackupVaultOutput, error)
Deletes the backup vault identified by its name. A vault can be deleted only if it is empty.
func (*Client) DeleteBackupVaultAccessPolicy ¶
func (c *Client) DeleteBackupVaultAccessPolicy(ctx context.Context, params *DeleteBackupVaultAccessPolicyInput, optFns ...func(*Options)) (*DeleteBackupVaultAccessPolicyOutput, error)
Deletes the policy document that manages permissions on a backup vault.
func (*Client) DeleteBackupVaultNotifications ¶
func (c *Client) DeleteBackupVaultNotifications(ctx context.Context, params *DeleteBackupVaultNotificationsInput, optFns ...func(*Options)) (*DeleteBackupVaultNotificationsOutput, error)
Deletes event notifications for the specified backup vault.
func (*Client) DeleteRecoveryPoint ¶
func (c *Client) DeleteRecoveryPoint(ctx context.Context, params *DeleteRecoveryPointInput, optFns ...func(*Options)) (*DeleteRecoveryPointOutput, error)
Deletes the recovery point specified by a recovery point ID. If the recovery point ID belongs to a continuous backup, calling this endpoint deletes the existing continuous backup and stops future continuous backup.
func (*Client) DescribeBackupJob ¶
func (c *Client) DescribeBackupJob(ctx context.Context, params *DescribeBackupJobInput, optFns ...func(*Options)) (*DescribeBackupJobOutput, error)
Returns backup job details for the specified BackupJobId.
func (*Client) DescribeBackupVault ¶
func (c *Client) DescribeBackupVault(ctx context.Context, params *DescribeBackupVaultInput, optFns ...func(*Options)) (*DescribeBackupVaultOutput, error)
Returns metadata about a backup vault specified by its name.
func (*Client) DescribeCopyJob ¶
func (c *Client) DescribeCopyJob(ctx context.Context, params *DescribeCopyJobInput, optFns ...func(*Options)) (*DescribeCopyJobOutput, error)
Returns metadata associated with creating a copy of a resource.
func (*Client) DescribeGlobalSettings ¶ added in v0.30.0
func (c *Client) DescribeGlobalSettings(ctx context.Context, params *DescribeGlobalSettingsInput, optFns ...func(*Options)) (*DescribeGlobalSettingsOutput, error)
Describes the global settings of the AWS account, including whether it is opted in to cross-account backup.
func (*Client) DescribeProtectedResource ¶
func (c *Client) DescribeProtectedResource(ctx context.Context, params *DescribeProtectedResourceInput, optFns ...func(*Options)) (*DescribeProtectedResourceOutput, error)
Returns information about a saved resource, including the last time it was backed up, its Amazon Resource Name (ARN), and the AWS service type of the saved resource.
func (*Client) DescribeRecoveryPoint ¶
func (c *Client) DescribeRecoveryPoint(ctx context.Context, params *DescribeRecoveryPointInput, optFns ...func(*Options)) (*DescribeRecoveryPointOutput, error)
Returns metadata associated with a recovery point, including ID, status, encryption, and lifecycle.
func (*Client) DescribeRegionSettings ¶
func (c *Client) DescribeRegionSettings(ctx context.Context, params *DescribeRegionSettingsInput, optFns ...func(*Options)) (*DescribeRegionSettingsOutput, error)
Returns the current service opt-in settings for the Region. If service-opt-in is enabled for a service, AWS Backup tries to protect that service's resources in this Region, when the resource is included in an on-demand backup or scheduled backup plan. Otherwise, AWS Backup does not try to protect that service's resources in this Region, AWS Backup does not try to protect that service's resources in this Region.
func (*Client) DescribeRestoreJob ¶
func (c *Client) DescribeRestoreJob(ctx context.Context, params *DescribeRestoreJobInput, optFns ...func(*Options)) (*DescribeRestoreJobOutput, error)
Returns metadata associated with a restore job that is specified by a job ID.
func (*Client) DisassociateRecoveryPoint ¶ added in v1.2.0
func (c *Client) DisassociateRecoveryPoint(ctx context.Context, params *DisassociateRecoveryPointInput, optFns ...func(*Options)) (*DisassociateRecoveryPointOutput, error)
Deletes the specified continuous backup recovery point from AWS Backup and releases control of that continuous backup to the source service, such as Amazon RDS. The source service will continue to create and retain continuous backups using the lifecycle that you specified in your original backup plan. Does not support snapshot backup recovery points.
func (*Client) ExportBackupPlanTemplate ¶
func (c *Client) ExportBackupPlanTemplate(ctx context.Context, params *ExportBackupPlanTemplateInput, optFns ...func(*Options)) (*ExportBackupPlanTemplateOutput, error)
Returns the backup plan that is specified by the plan ID as a backup template.
func (*Client) GetBackupPlan ¶
func (c *Client) GetBackupPlan(ctx context.Context, params *GetBackupPlanInput, optFns ...func(*Options)) (*GetBackupPlanOutput, error)
Returns BackupPlan details for the specified BackupPlanId. The details are the body of a backup plan in JSON format, in addition to plan metadata.
func (*Client) GetBackupPlanFromJSON ¶
func (c *Client) GetBackupPlanFromJSON(ctx context.Context, params *GetBackupPlanFromJSONInput, optFns ...func(*Options)) (*GetBackupPlanFromJSONOutput, error)
Returns a valid JSON document specifying a backup plan or an error.
func (*Client) GetBackupPlanFromTemplate ¶
func (c *Client) GetBackupPlanFromTemplate(ctx context.Context, params *GetBackupPlanFromTemplateInput, optFns ...func(*Options)) (*GetBackupPlanFromTemplateOutput, error)
Returns the template specified by its templateId as a backup plan.
func (*Client) GetBackupSelection ¶
func (c *Client) GetBackupSelection(ctx context.Context, params *GetBackupSelectionInput, optFns ...func(*Options)) (*GetBackupSelectionOutput, error)
Returns selection metadata and a document in JSON format that specifies a list of resources that are associated with a backup plan.
func (*Client) GetBackupVaultAccessPolicy ¶
func (c *Client) GetBackupVaultAccessPolicy(ctx context.Context, params *GetBackupVaultAccessPolicyInput, optFns ...func(*Options)) (*GetBackupVaultAccessPolicyOutput, error)
Returns the access policy document that is associated with the named backup vault.
func (*Client) GetBackupVaultNotifications ¶
func (c *Client) GetBackupVaultNotifications(ctx context.Context, params *GetBackupVaultNotificationsInput, optFns ...func(*Options)) (*GetBackupVaultNotificationsOutput, error)
Returns event notifications for the specified backup vault.
func (*Client) GetRecoveryPointRestoreMetadata ¶
func (c *Client) GetRecoveryPointRestoreMetadata(ctx context.Context, params *GetRecoveryPointRestoreMetadataInput, optFns ...func(*Options)) (*GetRecoveryPointRestoreMetadataOutput, error)
Returns a set of metadata key-value pairs that were used to create the backup.
func (*Client) GetSupportedResourceTypes ¶
func (c *Client) GetSupportedResourceTypes(ctx context.Context, params *GetSupportedResourceTypesInput, optFns ...func(*Options)) (*GetSupportedResourceTypesOutput, error)
Returns the AWS resource types supported by AWS Backup.
func (*Client) ListBackupJobs ¶
func (c *Client) ListBackupJobs(ctx context.Context, params *ListBackupJobsInput, optFns ...func(*Options)) (*ListBackupJobsOutput, error)
Returns a list of existing backup jobs for an authenticated account for the last 30 days. For a longer period of time, consider using these monitoring tools (https://docs.aws.amazon.com/aws-backup/latest/devguide/monitoring.html).
func (*Client) ListBackupPlanTemplates ¶
func (c *Client) ListBackupPlanTemplates(ctx context.Context, params *ListBackupPlanTemplatesInput, optFns ...func(*Options)) (*ListBackupPlanTemplatesOutput, error)
Returns metadata of your saved backup plan templates, including the template ID, name, and the creation and deletion dates.
func (*Client) ListBackupPlanVersions ¶
func (c *Client) ListBackupPlanVersions(ctx context.Context, params *ListBackupPlanVersionsInput, optFns ...func(*Options)) (*ListBackupPlanVersionsOutput, error)
Returns version metadata of your backup plans, including Amazon Resource Names (ARNs), backup plan IDs, creation and deletion dates, plan names, and version IDs.
func (*Client) ListBackupPlans ¶
func (c *Client) ListBackupPlans(ctx context.Context, params *ListBackupPlansInput, optFns ...func(*Options)) (*ListBackupPlansOutput, error)
Returns a list of existing backup plans for an authenticated account. The list is populated only if the advanced option is set for the backup plan. The list contains information such as Amazon Resource Names (ARNs), plan IDs, creation and deletion dates, version IDs, plan names, and creator request IDs.
func (*Client) ListBackupSelections ¶
func (c *Client) ListBackupSelections(ctx context.Context, params *ListBackupSelectionsInput, optFns ...func(*Options)) (*ListBackupSelectionsOutput, error)
Returns an array containing metadata of the resources associated with the target backup plan.
func (*Client) ListBackupVaults ¶
func (c *Client) ListBackupVaults(ctx context.Context, params *ListBackupVaultsInput, optFns ...func(*Options)) (*ListBackupVaultsOutput, error)
Returns a list of recovery point storage containers along with information about them.
func (*Client) ListCopyJobs ¶
func (c *Client) ListCopyJobs(ctx context.Context, params *ListCopyJobsInput, optFns ...func(*Options)) (*ListCopyJobsOutput, error)
Returns metadata about your copy jobs.
func (*Client) ListProtectedResources ¶
func (c *Client) ListProtectedResources(ctx context.Context, params *ListProtectedResourcesInput, optFns ...func(*Options)) (*ListProtectedResourcesOutput, error)
Returns an array of resources successfully backed up by AWS Backup, including the time the resource was saved, an Amazon Resource Name (ARN) of the resource, and a resource type.
func (*Client) ListRecoveryPointsByBackupVault ¶
func (c *Client) ListRecoveryPointsByBackupVault(ctx context.Context, params *ListRecoveryPointsByBackupVaultInput, optFns ...func(*Options)) (*ListRecoveryPointsByBackupVaultOutput, error)
Returns detailed information about the recovery points stored in a backup vault.
func (*Client) ListRecoveryPointsByResource ¶
func (c *Client) ListRecoveryPointsByResource(ctx context.Context, params *ListRecoveryPointsByResourceInput, optFns ...func(*Options)) (*ListRecoveryPointsByResourceOutput, error)
Returns detailed information about recovery points of the type specified by a resource Amazon Resource Name (ARN).
func (*Client) ListRestoreJobs ¶
func (c *Client) ListRestoreJobs(ctx context.Context, params *ListRestoreJobsInput, optFns ...func(*Options)) (*ListRestoreJobsOutput, error)
Returns a list of jobs that AWS Backup initiated to restore a saved resource, including metadata about the recovery process.
func (*Client) ListTags ¶
func (c *Client) ListTags(ctx context.Context, params *ListTagsInput, optFns ...func(*Options)) (*ListTagsOutput, error)
Returns a list of key-value pairs assigned to a target recovery point, backup plan, or backup vault. ListTags are currently only supported with Amazon EFS backups.
func (*Client) PutBackupVaultAccessPolicy ¶
func (c *Client) PutBackupVaultAccessPolicy(ctx context.Context, params *PutBackupVaultAccessPolicyInput, optFns ...func(*Options)) (*PutBackupVaultAccessPolicyOutput, error)
Sets a resource-based policy that is used to manage access permissions on the target backup vault. Requires a backup vault name and an access policy document in JSON format.
func (*Client) PutBackupVaultNotifications ¶
func (c *Client) PutBackupVaultNotifications(ctx context.Context, params *PutBackupVaultNotificationsInput, optFns ...func(*Options)) (*PutBackupVaultNotificationsOutput, error)
Turns on notifications on a backup vault for the specified topic and events.
func (*Client) StartBackupJob ¶
func (c *Client) StartBackupJob(ctx context.Context, params *StartBackupJobInput, optFns ...func(*Options)) (*StartBackupJobOutput, error)
Starts an on-demand backup job for the specified resource.
func (*Client) StartCopyJob ¶
func (c *Client) StartCopyJob(ctx context.Context, params *StartCopyJobInput, optFns ...func(*Options)) (*StartCopyJobOutput, error)
Starts a job to create a one-time copy of the specified resource. Does not support continuous backups.
func (*Client) StartRestoreJob ¶
func (c *Client) StartRestoreJob(ctx context.Context, params *StartRestoreJobInput, optFns ...func(*Options)) (*StartRestoreJobOutput, error)
Recovers the saved resource identified by an Amazon Resource Name (ARN).
func (*Client) StopBackupJob ¶
func (c *Client) StopBackupJob(ctx context.Context, params *StopBackupJobInput, optFns ...func(*Options)) (*StopBackupJobOutput, error)
Attempts to cancel a job to create a one-time backup of a resource.
func (*Client) TagResource ¶
func (c *Client) TagResource(ctx context.Context, params *TagResourceInput, optFns ...func(*Options)) (*TagResourceOutput, error)
Assigns a set of key-value pairs to a recovery point, backup plan, or backup vault identified by an Amazon Resource Name (ARN).
func (*Client) UntagResource ¶
func (c *Client) UntagResource(ctx context.Context, params *UntagResourceInput, optFns ...func(*Options)) (*UntagResourceOutput, error)
Removes a set of key-value pairs from a recovery point, backup plan, or backup vault identified by an Amazon Resource Name (ARN)
func (*Client) UpdateBackupPlan ¶
func (c *Client) UpdateBackupPlan(ctx context.Context, params *UpdateBackupPlanInput, optFns ...func(*Options)) (*UpdateBackupPlanOutput, error)
Updates an existing backup plan identified by its backupPlanId with the input document in JSON format. The new version is uniquely identified by a VersionId.
func (*Client) UpdateGlobalSettings ¶ added in v0.30.0
func (c *Client) UpdateGlobalSettings(ctx context.Context, params *UpdateGlobalSettingsInput, optFns ...func(*Options)) (*UpdateGlobalSettingsOutput, error)
Updates the current global settings for the AWS account. Use the DescribeGlobalSettings API to determine the current settings.
func (*Client) UpdateRecoveryPointLifecycle ¶
func (c *Client) UpdateRecoveryPointLifecycle(ctx context.Context, params *UpdateRecoveryPointLifecycleInput, optFns ...func(*Options)) (*UpdateRecoveryPointLifecycleOutput, error)
Sets the transition lifecycle of a recovery point. The lifecycle defines when a protected resource is transitioned to cold storage and when it expires. AWS Backup transitions and expires backups automatically according to the lifecycle that you define. Backups transitioned to cold storage must be stored in cold storage for a minimum of 90 days. Therefore, the “expire after days” setting must be 90 days greater than the “transition to cold after days” setting. The “transition to cold after days” setting cannot be changed after a backup has been transitioned to cold. Only Amazon EFS file system backups can be transitioned to cold storage. Does not support continuous backups.
func (*Client) UpdateRegionSettings ¶
func (c *Client) UpdateRegionSettings(ctx context.Context, params *UpdateRegionSettingsInput, optFns ...func(*Options)) (*UpdateRegionSettingsOutput, error)
Updates the current service opt-in settings for the Region. If service-opt-in is enabled for a service, AWS Backup tries to protect that service's resources in this Region, when the resource is included in an on-demand backup or scheduled backup plan. Otherwise, AWS Backup does not try to protect that service's resources in this Region. Use the DescribeRegionSettings API to determine the resource types that are supported.
type CreateBackupPlanInput ¶
type CreateBackupPlanInput struct { // Specifies the body of a backup plan. Includes a BackupPlanName and one or more // sets of Rules. // // This member is required. BackupPlan *types.BackupPlanInput // To help organize your resources, you can assign your own metadata to the // resources that you create. Each tag is a key-value pair. The specified tags are // assigned to all backups created with this plan. BackupPlanTags map[string]string // Identifies the request and allows failed requests to be retried without the risk // of running the operation twice. If the request includes a CreatorRequestId that // matches an existing backup plan, that plan is returned. This parameter is // optional. CreatorRequestId *string }
type CreateBackupPlanOutput ¶
type CreateBackupPlanOutput struct { // A list of BackupOptions settings for a resource type. This option is only // available for Windows VSS backup jobs. AdvancedBackupSettings []types.AdvancedBackupSetting // An Amazon Resource Name (ARN) that uniquely identifies a backup plan; for // example, // arn:aws:backup:us-east-1:123456789012:plan:8F81F553-3A74-4A3F-B93D-B3360DC80C50. BackupPlanArn *string // Uniquely identifies a backup plan. BackupPlanId *string // The date and time that a backup plan is created, in Unix format and Coordinated // Universal Time (UTC). The value of CreationDate is accurate to milliseconds. For // example, the value 1516925490.087 represents Friday, January 26, 2018 // 12:11:30.087 AM. CreationDate *time.Time // Unique, randomly generated, Unicode, UTF-8 encoded strings that are at most // 1,024 bytes long. They cannot be edited. VersionId *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type CreateBackupSelectionInput ¶
type CreateBackupSelectionInput struct { // Uniquely identifies the backup plan to be associated with the selection of // resources. // // This member is required. BackupPlanId *string // Specifies the body of a request to assign a set of resources to a backup plan. // // This member is required. BackupSelection *types.BackupSelection // A unique string that identifies the request and allows failed requests to be // retried without the risk of running the operation twice. CreatorRequestId *string }
type CreateBackupSelectionOutput ¶
type CreateBackupSelectionOutput struct { // Uniquely identifies a backup plan. BackupPlanId *string // The date and time a backup selection is created, in Unix format and Coordinated // Universal Time (UTC). The value of CreationDate is accurate to milliseconds. For // example, the value 1516925490.087 represents Friday, January 26, 2018 // 12:11:30.087 AM. CreationDate *time.Time // Uniquely identifies the body of a request to assign a set of resources to a // backup plan. SelectionId *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type CreateBackupVaultInput ¶
type CreateBackupVaultInput struct { // The name of a logical container where backups are stored. Backup vaults are // identified by names that are unique to the account used to create them and the // AWS Region where they are created. They consist of letters, numbers, and // hyphens. // // This member is required. BackupVaultName *string // Metadata that you can assign to help organize the resources that you create. // Each tag is a key-value pair. BackupVaultTags map[string]string // A unique string that identifies the request and allows failed requests to be // retried without the risk of running the operation twice. CreatorRequestId *string // The server-side encryption key that is used to protect your backups; for // example, // arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab. EncryptionKeyArn *string }
type CreateBackupVaultOutput ¶
type CreateBackupVaultOutput struct { // An Amazon Resource Name (ARN) that uniquely identifies a backup vault; for // example, arn:aws:backup:us-east-1:123456789012:vault:aBackupVault. BackupVaultArn *string // The name of a logical container where backups are stored. Backup vaults are // identified by names that are unique to the account used to create them and the // Region where they are created. They consist of lowercase letters, numbers, and // hyphens. BackupVaultName *string // The date and time a backup vault is created, in Unix format and Coordinated // Universal Time (UTC). The value of CreationDate is accurate to milliseconds. For // example, the value 1516925490.087 represents Friday, January 26, 2018 // 12:11:30.087 AM. CreationDate *time.Time // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type DeleteBackupPlanInput ¶
type DeleteBackupPlanInput struct { // Uniquely identifies a backup plan. // // This member is required. BackupPlanId *string }
type DeleteBackupPlanOutput ¶
type DeleteBackupPlanOutput struct { // An Amazon Resource Name (ARN) that uniquely identifies a backup plan; for // example, // arn:aws:backup:us-east-1:123456789012:plan:8F81F553-3A74-4A3F-B93D-B3360DC80C50. BackupPlanArn *string // Uniquely identifies a backup plan. BackupPlanId *string // The date and time a backup plan is deleted, in Unix format and Coordinated // Universal Time (UTC). The value of DeletionDate is accurate to milliseconds. For // example, the value 1516925490.087 represents Friday, January 26, 2018 // 12:11:30.087 AM. DeletionDate *time.Time // Unique, randomly generated, Unicode, UTF-8 encoded strings that are at most // 1,024 bytes long. Version IDs cannot be edited. VersionId *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type DeleteBackupSelectionOutput ¶
type DeleteBackupSelectionOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type DeleteBackupVaultAccessPolicyInput ¶
type DeleteBackupVaultAccessPolicyInput struct { // The name of a logical container where backups are stored. Backup vaults are // identified by names that are unique to the account used to create them and the // AWS Region where they are created. They consist of lowercase letters, numbers, // and hyphens. // // This member is required. BackupVaultName *string }
type DeleteBackupVaultAccessPolicyOutput ¶
type DeleteBackupVaultAccessPolicyOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type DeleteBackupVaultInput ¶
type DeleteBackupVaultInput struct { // The name of a logical container where backups are stored. Backup vaults are // identified by names that are unique to the account used to create them and the // AWS Region where they are created. They consist of lowercase letters, numbers, // and hyphens. // // This member is required. BackupVaultName *string }
type DeleteBackupVaultNotificationsInput ¶
type DeleteBackupVaultNotificationsInput struct { // The name of a logical container where backups are stored. Backup vaults are // identified by names that are unique to the account used to create them and the // Region where they are created. They consist of lowercase letters, numbers, and // hyphens. // // This member is required. BackupVaultName *string }
type DeleteBackupVaultNotificationsOutput ¶
type DeleteBackupVaultNotificationsOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type DeleteBackupVaultOutput ¶
type DeleteBackupVaultOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type DeleteRecoveryPointInput ¶
type DeleteRecoveryPointInput struct { // The name of a logical container where backups are stored. Backup vaults are // identified by names that are unique to the account used to create them and the // AWS Region where they are created. They consist of lowercase letters, numbers, // and hyphens. // // This member is required. BackupVaultName *string // An Amazon Resource Name (ARN) that uniquely identifies a recovery point; for // example, // arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45. // // This member is required. RecoveryPointArn *string }
type DeleteRecoveryPointOutput ¶
type DeleteRecoveryPointOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type DescribeBackupJobInput ¶
type DescribeBackupJobInput struct { // Uniquely identifies a request to AWS Backup to back up a resource. // // This member is required. BackupJobId *string }
type DescribeBackupJobOutput ¶
type DescribeBackupJobOutput struct { // Returns the account ID that owns the backup job. AccountId *string // Uniquely identifies a request to AWS Backup to back up a resource. BackupJobId *string // Represents the options specified as part of backup plan or on-demand backup job. BackupOptions map[string]string // The size, in bytes, of a backup. BackupSizeInBytes *int64 // Represents the actual backup type selected for a backup job. For example, if a // successful WindowsVSS backup was taken, BackupType returns "WindowsVSS". If // BackupType is empty, then the backup type that was is a regular backup. BackupType *string // An Amazon Resource Name (ARN) that uniquely identifies a backup vault; for // example, arn:aws:backup:us-east-1:123456789012:vault:aBackupVault. BackupVaultArn *string // The name of a logical container where backups are stored. Backup vaults are // identified by names that are unique to the account used to create them and the // AWS Region where they are created. They consist of lowercase letters, numbers, // and hyphens. BackupVaultName *string // The size in bytes transferred to a backup vault at the time that the job status // was queried. BytesTransferred *int64 // The date and time that a job to create a backup job is completed, in Unix format // and Coordinated Universal Time (UTC). The value of CompletionDate is accurate to // milliseconds. For example, the value 1516925490.087 represents Friday, January // 26, 2018 12:11:30.087 AM. CompletionDate *time.Time // Contains identifying information about the creation of a backup job, including // the BackupPlanArn, BackupPlanId, BackupPlanVersion, and BackupRuleId of the // backup plan that is used to create it. CreatedBy *types.RecoveryPointCreator // The date and time that a backup job is created, in Unix format and Coordinated // Universal Time (UTC). The value of CreationDate is accurate to milliseconds. For // example, the value 1516925490.087 represents Friday, January 26, 2018 // 12:11:30.087 AM. CreationDate *time.Time // The date and time that a job to back up resources is expected to be completed, // in Unix format and Coordinated Universal Time (UTC). The value of // ExpectedCompletionDate is accurate to milliseconds. For example, the value // 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM. ExpectedCompletionDate *time.Time // Specifies the IAM role ARN used to create the target recovery point; for // example, arn:aws:iam::123456789012:role/S3Access. IamRoleArn *string // Contains an estimated percentage that is complete of a job at the time the job // status was queried. PercentDone *string // An ARN that uniquely identifies a recovery point; for example, // arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45. RecoveryPointArn *string // An ARN that uniquely identifies a saved resource. The format of the ARN depends // on the resource type. ResourceArn *string // The type of AWS resource to be backed up; for example, an Amazon Elastic Block // Store (Amazon EBS) volume or an Amazon Relational Database Service (Amazon RDS) // database. ResourceType *string // Specifies the time in Unix format and Coordinated Universal Time (UTC) when a // backup job must be started before it is canceled. The value is calculated by // adding the start window to the scheduled time. So if the scheduled time were // 6:00 PM and the start window is 2 hours, the StartBy time would be 8:00 PM on // the date specified. The value of StartBy is accurate to milliseconds. For // example, the value 1516925490.087 represents Friday, January 26, 2018 // 12:11:30.087 AM. StartBy *time.Time // The current state of a resource recovery point. State types.BackupJobState // A detailed message explaining the status of the job to back up a resource. StatusMessage *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type DescribeBackupVaultInput ¶
type DescribeBackupVaultInput struct { // The name of a logical container where backups are stored. Backup vaults are // identified by names that are unique to the account used to create them and the // AWS Region where they are created. They consist of lowercase letters, numbers, // and hyphens. // // This member is required. BackupVaultName *string }
type DescribeBackupVaultOutput ¶
type DescribeBackupVaultOutput struct { // An Amazon Resource Name (ARN) that uniquely identifies a backup vault; for // example, arn:aws:backup:us-east-1:123456789012:vault:aBackupVault. BackupVaultArn *string // The name of a logical container where backups are stored. Backup vaults are // identified by names that are unique to the account used to create them and the // Region where they are created. They consist of lowercase letters, numbers, and // hyphens. BackupVaultName *string // The date and time that a backup vault is created, in Unix format and Coordinated // Universal Time (UTC). The value of CreationDate is accurate to milliseconds. For // example, the value 1516925490.087 represents Friday, January 26, 2018 // 12:11:30.087 AM. CreationDate *time.Time // A unique string that identifies the request and allows failed requests to be // retried without the risk of running the operation twice. CreatorRequestId *string // The server-side encryption key that is used to protect your backups; for // example, // arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab. EncryptionKeyArn *string // The number of recovery points that are stored in a backup vault. NumberOfRecoveryPoints int64 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type DescribeCopyJobInput ¶
type DescribeCopyJobInput struct { // Uniquely identifies a copy job. // // This member is required. CopyJobId *string }
type DescribeCopyJobOutput ¶
type DescribeCopyJobOutput struct { // Contains detailed information about a copy job. CopyJob *types.CopyJob // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type DescribeGlobalSettingsInput ¶ added in v0.30.0
type DescribeGlobalSettingsInput struct { }
type DescribeGlobalSettingsOutput ¶ added in v0.30.0
type DescribeGlobalSettingsOutput struct { // A list of resources along with the opt-in preferences for the account. GlobalSettings map[string]string // The date and time that the global settings were last updated. This update is in // Unix format and Coordinated Universal Time (UTC). The value of LastUpdateTime is // accurate to milliseconds. For example, the value 1516925490.087 represents // Friday, January 26, 2018 12:11:30.087 AM. LastUpdateTime *time.Time // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type DescribeProtectedResourceInput ¶
type DescribeProtectedResourceInput struct { // An Amazon Resource Name (ARN) that uniquely identifies a resource. The format of // the ARN depends on the resource type. // // This member is required. ResourceArn *string }
type DescribeProtectedResourceOutput ¶
type DescribeProtectedResourceOutput struct { // The date and time that a resource was last backed up, in Unix format and // Coordinated Universal Time (UTC). The value of LastBackupTime is accurate to // milliseconds. For example, the value 1516925490.087 represents Friday, January // 26, 2018 12:11:30.087 AM. LastBackupTime *time.Time // An ARN that uniquely identifies a resource. The format of the ARN depends on the // resource type. ResourceArn *string // The type of AWS resource saved as a recovery point; for example, an EBS volume // or an Amazon RDS database. ResourceType *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type DescribeRecoveryPointInput ¶
type DescribeRecoveryPointInput struct { // The name of a logical container where backups are stored. Backup vaults are // identified by names that are unique to the account used to create them and the // AWS Region where they are created. They consist of lowercase letters, numbers, // and hyphens. // // This member is required. BackupVaultName *string // An Amazon Resource Name (ARN) that uniquely identifies a recovery point; for // example, // arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45. // // This member is required. RecoveryPointArn *string }
type DescribeRecoveryPointOutput ¶
type DescribeRecoveryPointOutput struct { // The size, in bytes, of a backup. BackupSizeInBytes *int64 // An ARN that uniquely identifies a backup vault; for example, // arn:aws:backup:us-east-1:123456789012:vault:aBackupVault. BackupVaultArn *string // The name of a logical container where backups are stored. Backup vaults are // identified by names that are unique to the account used to create them and the // Region where they are created. They consist of lowercase letters, numbers, and // hyphens. BackupVaultName *string // A CalculatedLifecycle object containing DeleteAt and MoveToColdStorageAt // timestamps. CalculatedLifecycle *types.CalculatedLifecycle // The date and time that a job to create a recovery point is completed, in Unix // format and Coordinated Universal Time (UTC). The value of CompletionDate is // accurate to milliseconds. For example, the value 1516925490.087 represents // Friday, January 26, 2018 12:11:30.087 AM. CompletionDate *time.Time // Contains identifying information about the creation of a recovery point, // including the BackupPlanArn, BackupPlanId, BackupPlanVersion, and BackupRuleId // of the backup plan used to create it. CreatedBy *types.RecoveryPointCreator // The date and time that a recovery point is created, in Unix format and // Coordinated Universal Time (UTC). The value of CreationDate is accurate to // milliseconds. For example, the value 1516925490.087 represents Friday, January // 26, 2018 12:11:30.087 AM. CreationDate *time.Time // The server-side encryption key used to protect your backups; for example, // arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab. EncryptionKeyArn *string // Specifies the IAM role ARN used to create the target recovery point; for // example, arn:aws:iam::123456789012:role/S3Access. IamRoleArn *string // A Boolean value that is returned as TRUE if the specified recovery point is // encrypted, or FALSE if the recovery point is not encrypted. IsEncrypted bool // The date and time that a recovery point was last restored, in Unix format and // Coordinated Universal Time (UTC). The value of LastRestoreTime is accurate to // milliseconds. For example, the value 1516925490.087 represents Friday, January // 26, 2018 12:11:30.087 AM. LastRestoreTime *time.Time // The lifecycle defines when a protected resource is transitioned to cold storage // and when it expires. AWS Backup transitions and expires backups automatically // according to the lifecycle that you define. Backups that are transitioned to // cold storage must be stored in cold storage for a minimum of 90 days. Therefore, // the “expire after days” setting must be 90 days greater than the “transition to // cold after days” setting. The “transition to cold after days” setting cannot be // changed after a backup has been transitioned to cold. Only Amazon EFS file // system backups can be transitioned to cold storage. Lifecycle *types.Lifecycle // An ARN that uniquely identifies a recovery point; for example, // arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45. RecoveryPointArn *string // An ARN that uniquely identifies a saved resource. The format of the ARN depends // on the resource type. ResourceArn *string // The type of AWS resource to save as a recovery point; for example, an Amazon // Elastic Block Store (Amazon EBS) volume or an Amazon Relational Database Service // (Amazon RDS) database. ResourceType *string // An Amazon Resource Name (ARN) that uniquely identifies the source vault where // the resource was originally backed up in; for example, // arn:aws:backup:us-east-1:123456789012:vault:BackupVault. If the recovery is // restored to the same AWS account or Region, this value will be null. SourceBackupVaultArn *string // A status code specifying the state of the recovery point. A partial status // indicates that the recovery point was not successfully re-created and must be // retried. Status types.RecoveryPointStatus // Specifies the storage class of the recovery point. Valid values are WARM or // COLD. StorageClass types.StorageClass // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type DescribeRegionSettingsInput ¶
type DescribeRegionSettingsInput struct { }
type DescribeRegionSettingsOutput ¶
type DescribeRegionSettingsOutput struct { // Returns a list of all services along with the opt-in preferences in the Region. ResourceTypeOptInPreference map[string]bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type DescribeRestoreJobInput ¶
type DescribeRestoreJobInput struct { // Uniquely identifies the job that restores a recovery point. // // This member is required. RestoreJobId *string }
type DescribeRestoreJobOutput ¶
type DescribeRestoreJobOutput struct { // Returns the account ID that owns the restore job. AccountId *string // The size, in bytes, of the restored resource. BackupSizeInBytes *int64 // The date and time that a job to restore a recovery point is completed, in Unix // format and Coordinated Universal Time (UTC). The value of CompletionDate is // accurate to milliseconds. For example, the value 1516925490.087 represents // Friday, January 26, 2018 12:11:30.087 AM. CompletionDate *time.Time // An Amazon Resource Name (ARN) that uniquely identifies a resource whose recovery // point is being restored. The format of the ARN depends on the resource type of // the backed-up resource. CreatedResourceArn *string // The date and time that a restore job is created, in Unix format and Coordinated // Universal Time (UTC). The value of CreationDate is accurate to milliseconds. For // example, the value 1516925490.087 represents Friday, January 26, 2018 // 12:11:30.087 AM. CreationDate *time.Time // The amount of time in minutes that a job restoring a recovery point is expected // to take. ExpectedCompletionTimeMinutes *int64 // Specifies the IAM role ARN used to create the target recovery point; for // example, arn:aws:iam::123456789012:role/S3Access. IamRoleArn *string // Contains an estimated percentage that is complete of a job at the time the job // status was queried. PercentDone *string // An ARN that uniquely identifies a recovery point; for example, // arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45. RecoveryPointArn *string // Returns metadata associated with a restore job listed by resource type. ResourceType *string // Uniquely identifies the job that restores a recovery point. RestoreJobId *string // Status code specifying the state of the job that is initiated by AWS Backup to // restore a recovery point. Status types.RestoreJobStatus // A message showing the status of a job to restore a recovery point. StatusMessage *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type DisassociateRecoveryPointInput ¶ added in v1.2.0
type DisassociateRecoveryPointInput struct { // The unique name of an AWS Backup vault. Required. // // This member is required. BackupVaultName *string // An Amazon Resource Name (ARN) that uniquely identifies an AWS Backup recovery // point. Required. // // This member is required. RecoveryPointArn *string }
type DisassociateRecoveryPointOutput ¶ added in v1.2.0
type DisassociateRecoveryPointOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type EndpointResolver ¶
type EndpointResolver interface {
ResolveEndpoint(region string, options EndpointResolverOptions) (aws.Endpoint, error)
}
EndpointResolver interface for resolving service endpoints.
func EndpointResolverFromURL ¶ added in v1.1.0
func EndpointResolverFromURL(url string, optFns ...func(*aws.Endpoint)) EndpointResolver
EndpointResolverFromURL returns an EndpointResolver configured using the provided endpoint url. By default, the resolved endpoint resolver uses the client region as signing region, and the endpoint source is set to EndpointSourceCustom.You can provide functional options to configure endpoint values for the resolved endpoint.
type EndpointResolverFunc ¶
type EndpointResolverFunc func(region string, options EndpointResolverOptions) (aws.Endpoint, error)
EndpointResolverFunc is a helper utility that wraps a function so it satisfies the EndpointResolver interface. This is useful when you want to add additional endpoint resolving logic, or stub out specific endpoints with custom values.
func (EndpointResolverFunc) ResolveEndpoint ¶
func (fn EndpointResolverFunc) ResolveEndpoint(region string, options EndpointResolverOptions) (endpoint aws.Endpoint, err error)
type EndpointResolverOptions ¶ added in v0.29.0
type EndpointResolverOptions = internalendpoints.Options
EndpointResolverOptions is the service endpoint resolver options
type ExportBackupPlanTemplateInput ¶
type ExportBackupPlanTemplateInput struct { // Uniquely identifies a backup plan. // // This member is required. BackupPlanId *string }
type ExportBackupPlanTemplateOutput ¶
type ExportBackupPlanTemplateOutput struct { // The body of a backup plan template in JSON format. This is a signed JSON // document that cannot be modified before being passed to GetBackupPlanFromJSON. BackupPlanTemplateJson *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type GetBackupPlanFromJSONInput ¶
type GetBackupPlanFromJSONInput struct { // A customer-supplied backup plan document in JSON format. // // This member is required. BackupPlanTemplateJson *string }
type GetBackupPlanFromJSONOutput ¶
type GetBackupPlanFromJSONOutput struct { // Specifies the body of a backup plan. Includes a BackupPlanName and one or more // sets of Rules. BackupPlan *types.BackupPlan // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type GetBackupPlanFromTemplateInput ¶
type GetBackupPlanFromTemplateInput struct { // Uniquely identifies a stored backup plan template. // // This member is required. BackupPlanTemplateId *string }
type GetBackupPlanFromTemplateOutput ¶
type GetBackupPlanFromTemplateOutput struct { // Returns the body of a backup plan based on the target template, including the // name, rules, and backup vault of the plan. BackupPlanDocument *types.BackupPlan // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type GetBackupPlanInput ¶
type GetBackupPlanOutput ¶
type GetBackupPlanOutput struct { // Contains a list of BackupOptions for each resource type. The list is populated // only if the advanced option is set for the backup plan. AdvancedBackupSettings []types.AdvancedBackupSetting // Specifies the body of a backup plan. Includes a BackupPlanName and one or more // sets of Rules. BackupPlan *types.BackupPlan // An Amazon Resource Name (ARN) that uniquely identifies a backup plan; for // example, // arn:aws:backup:us-east-1:123456789012:plan:8F81F553-3A74-4A3F-B93D-B3360DC80C50. BackupPlanArn *string // Uniquely identifies a backup plan. BackupPlanId *string // The date and time that a backup plan is created, in Unix format and Coordinated // Universal Time (UTC). The value of CreationDate is accurate to milliseconds. For // example, the value 1516925490.087 represents Friday, January 26, 2018 // 12:11:30.087 AM. CreationDate *time.Time // A unique string that identifies the request and allows failed requests to be // retried without the risk of running the operation twice. CreatorRequestId *string // The date and time that a backup plan is deleted, in Unix format and Coordinated // Universal Time (UTC). The value of DeletionDate is accurate to milliseconds. For // example, the value 1516925490.087 represents Friday, January 26, 2018 // 12:11:30.087 AM. DeletionDate *time.Time // The last time a job to back up resources was run with this backup plan. A date // and time, in Unix format and Coordinated Universal Time (UTC). The value of // LastExecutionDate is accurate to milliseconds. For example, the value // 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM. LastExecutionDate *time.Time // Unique, randomly generated, Unicode, UTF-8 encoded strings that are at most // 1,024 bytes long. Version IDs cannot be edited. VersionId *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type GetBackupSelectionInput ¶
type GetBackupSelectionOutput ¶
type GetBackupSelectionOutput struct { // Uniquely identifies a backup plan. BackupPlanId *string // Specifies the body of a request to assign a set of resources to a backup plan. BackupSelection *types.BackupSelection // The date and time a backup selection is created, in Unix format and Coordinated // Universal Time (UTC). The value of CreationDate is accurate to milliseconds. For // example, the value 1516925490.087 represents Friday, January 26, 2018 // 12:11:30.087 AM. CreationDate *time.Time // A unique string that identifies the request and allows failed requests to be // retried without the risk of running the operation twice. CreatorRequestId *string // Uniquely identifies the body of a request to assign a set of resources to a // backup plan. SelectionId *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type GetBackupVaultAccessPolicyInput ¶
type GetBackupVaultAccessPolicyInput struct { // The name of a logical container where backups are stored. Backup vaults are // identified by names that are unique to the account used to create them and the // AWS Region where they are created. They consist of lowercase letters, numbers, // and hyphens. // // This member is required. BackupVaultName *string }
type GetBackupVaultAccessPolicyOutput ¶
type GetBackupVaultAccessPolicyOutput struct { // An Amazon Resource Name (ARN) that uniquely identifies a backup vault; for // example, arn:aws:backup:us-east-1:123456789012:vault:aBackupVault. BackupVaultArn *string // The name of a logical container where backups are stored. Backup vaults are // identified by names that are unique to the account used to create them and the // Region where they are created. They consist of lowercase letters, numbers, and // hyphens. BackupVaultName *string // The backup vault access policy document in JSON format. Policy *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type GetBackupVaultNotificationsInput ¶
type GetBackupVaultNotificationsInput struct { // The name of a logical container where backups are stored. Backup vaults are // identified by names that are unique to the account used to create them and the // AWS Region where they are created. They consist of lowercase letters, numbers, // and hyphens. // // This member is required. BackupVaultName *string }
type GetBackupVaultNotificationsOutput ¶
type GetBackupVaultNotificationsOutput struct { // An Amazon Resource Name (ARN) that uniquely identifies a backup vault; for // example, arn:aws:backup:us-east-1:123456789012:vault:aBackupVault. BackupVaultArn *string // An array of events that indicate the status of jobs to back up resources to the // backup vault. BackupVaultEvents []types.BackupVaultEvent // The name of a logical container where backups are stored. Backup vaults are // identified by names that are unique to the account used to create them and the // Region where they are created. They consist of lowercase letters, numbers, and // hyphens. BackupVaultName *string // An ARN that uniquely identifies an Amazon Simple Notification Service (Amazon // SNS) topic; for example, arn:aws:sns:us-west-2:111122223333:MyTopic. SNSTopicArn *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type GetRecoveryPointRestoreMetadataInput ¶
type GetRecoveryPointRestoreMetadataInput struct { // The name of a logical container where backups are stored. Backup vaults are // identified by names that are unique to the account used to create them and the // AWS Region where they are created. They consist of lowercase letters, numbers, // and hyphens. // // This member is required. BackupVaultName *string // An Amazon Resource Name (ARN) that uniquely identifies a recovery point; for // example, // arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45. // // This member is required. RecoveryPointArn *string }
type GetRecoveryPointRestoreMetadataOutput ¶
type GetRecoveryPointRestoreMetadataOutput struct { // An ARN that uniquely identifies a backup vault; for example, // arn:aws:backup:us-east-1:123456789012:vault:aBackupVault. BackupVaultArn *string // An ARN that uniquely identifies a recovery point; for example, // arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45. RecoveryPointArn *string // The set of metadata key-value pairs that describe the original configuration of // the backed-up resource. These values vary depending on the service that is being // restored. RestoreMetadata map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type GetSupportedResourceTypesInput ¶
type GetSupportedResourceTypesInput struct { }
type GetSupportedResourceTypesOutput ¶
type GetSupportedResourceTypesOutput struct { // Contains a string with the supported AWS resource types: // // * DynamoDB for Amazon // DynamoDB // // * EBS for Amazon Elastic Block Store // // * EC2 for Amazon Elastic Compute // Cloud // // * EFS for Amazon Elastic File System // // * RDS for Amazon Relational // Database Service // // * Aurora for Amazon Aurora // // * Storage Gateway for AWS Storage // Gateway ResourceTypes []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type HTTPSignerV4 ¶
type ListBackupJobsAPIClient ¶ added in v0.30.0
type ListBackupJobsAPIClient interface {
ListBackupJobs(context.Context, *ListBackupJobsInput, ...func(*Options)) (*ListBackupJobsOutput, error)
}
ListBackupJobsAPIClient is a client that implements the ListBackupJobs operation.
type ListBackupJobsInput ¶
type ListBackupJobsInput struct { // The account ID to list the jobs from. Returns only backup jobs associated with // the specified account ID. If used from an AWS Organizations management account, // passing * returns all jobs across the organization. ByAccountId *string // Returns only backup jobs that will be stored in the specified backup vault. // Backup vaults are identified by names that are unique to the account used to // create them and the AWS Region where they are created. They consist of lowercase // letters, numbers, and hyphens. ByBackupVaultName *string // Returns only backup jobs that were created after the specified date. ByCreatedAfter *time.Time // Returns only backup jobs that were created before the specified date. ByCreatedBefore *time.Time // Returns only backup jobs that match the specified resource Amazon Resource Name // (ARN). ByResourceArn *string // Returns only backup jobs for the specified resources: // // * DynamoDB for Amazon // DynamoDB // // * EBS for Amazon Elastic Block Store // // * EC2 for Amazon Elastic Compute // Cloud // // * EFS for Amazon Elastic File System // // * RDS for Amazon Relational // Database Service // // * Aurora for Amazon Aurora // // * Storage Gateway for AWS Storage // Gateway ByResourceType *string // Returns only backup jobs that are in the specified state. ByState types.BackupJobState // The maximum number of items to be returned. MaxResults *int32 // The next item following a partial list of returned items. For example, if a // request is made to return maxResults number of items, NextToken allows you to // return more items in your list starting at the location pointed to by the next // token. NextToken *string }
type ListBackupJobsOutput ¶
type ListBackupJobsOutput struct { // An array of structures containing metadata about your backup jobs returned in // JSON format. BackupJobs []types.BackupJob // The next item following a partial list of returned items. For example, if a // request is made to return maxResults number of items, NextToken allows you to // return more items in your list starting at the location pointed to by the next // token. NextToken *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type ListBackupJobsPaginator ¶ added in v0.30.0
type ListBackupJobsPaginator struct {
// contains filtered or unexported fields
}
ListBackupJobsPaginator is a paginator for ListBackupJobs
func NewListBackupJobsPaginator ¶ added in v0.30.0
func NewListBackupJobsPaginator(client ListBackupJobsAPIClient, params *ListBackupJobsInput, optFns ...func(*ListBackupJobsPaginatorOptions)) *ListBackupJobsPaginator
NewListBackupJobsPaginator returns a new ListBackupJobsPaginator
func (*ListBackupJobsPaginator) HasMorePages ¶ added in v0.30.0
func (p *ListBackupJobsPaginator) HasMorePages() bool
HasMorePages returns a boolean indicating whether more pages are available
func (*ListBackupJobsPaginator) NextPage ¶ added in v0.30.0
func (p *ListBackupJobsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListBackupJobsOutput, error)
NextPage retrieves the next ListBackupJobs page.
type ListBackupJobsPaginatorOptions ¶ added in v0.30.0
type ListBackupJobsPaginatorOptions struct { // The maximum number of items to be returned. Limit int32 // Set to true if pagination should stop if the service returns a pagination token // that matches the most recent token provided to the service. StopOnDuplicateToken bool }
ListBackupJobsPaginatorOptions is the paginator options for ListBackupJobs
type ListBackupPlanTemplatesAPIClient ¶ added in v0.30.0
type ListBackupPlanTemplatesAPIClient interface {
ListBackupPlanTemplates(context.Context, *ListBackupPlanTemplatesInput, ...func(*Options)) (*ListBackupPlanTemplatesOutput, error)
}
ListBackupPlanTemplatesAPIClient is a client that implements the ListBackupPlanTemplates operation.
type ListBackupPlanTemplatesInput ¶
type ListBackupPlanTemplatesInput struct { // The maximum number of items to be returned. MaxResults *int32 // The next item following a partial list of returned items. For example, if a // request is made to return maxResults number of items, NextToken allows you to // return more items in your list starting at the location pointed to by the next // token. NextToken *string }
type ListBackupPlanTemplatesOutput ¶
type ListBackupPlanTemplatesOutput struct { // An array of template list items containing metadata about your saved templates. BackupPlanTemplatesList []types.BackupPlanTemplatesListMember // The next item following a partial list of returned items. For example, if a // request is made to return maxResults number of items, NextToken allows you to // return more items in your list starting at the location pointed to by the next // token. NextToken *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type ListBackupPlanTemplatesPaginator ¶ added in v0.30.0
type ListBackupPlanTemplatesPaginator struct {
// contains filtered or unexported fields
}
ListBackupPlanTemplatesPaginator is a paginator for ListBackupPlanTemplates
func NewListBackupPlanTemplatesPaginator ¶ added in v0.30.0
func NewListBackupPlanTemplatesPaginator(client ListBackupPlanTemplatesAPIClient, params *ListBackupPlanTemplatesInput, optFns ...func(*ListBackupPlanTemplatesPaginatorOptions)) *ListBackupPlanTemplatesPaginator
NewListBackupPlanTemplatesPaginator returns a new ListBackupPlanTemplatesPaginator
func (*ListBackupPlanTemplatesPaginator) HasMorePages ¶ added in v0.30.0
func (p *ListBackupPlanTemplatesPaginator) HasMorePages() bool
HasMorePages returns a boolean indicating whether more pages are available
func (*ListBackupPlanTemplatesPaginator) NextPage ¶ added in v0.30.0
func (p *ListBackupPlanTemplatesPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListBackupPlanTemplatesOutput, error)
NextPage retrieves the next ListBackupPlanTemplates page.
type ListBackupPlanTemplatesPaginatorOptions ¶ added in v0.30.0
type ListBackupPlanTemplatesPaginatorOptions struct { // The maximum number of items to be returned. Limit int32 // Set to true if pagination should stop if the service returns a pagination token // that matches the most recent token provided to the service. StopOnDuplicateToken bool }
ListBackupPlanTemplatesPaginatorOptions is the paginator options for ListBackupPlanTemplates
type ListBackupPlanVersionsAPIClient ¶ added in v0.30.0
type ListBackupPlanVersionsAPIClient interface {
ListBackupPlanVersions(context.Context, *ListBackupPlanVersionsInput, ...func(*Options)) (*ListBackupPlanVersionsOutput, error)
}
ListBackupPlanVersionsAPIClient is a client that implements the ListBackupPlanVersions operation.
type ListBackupPlanVersionsInput ¶
type ListBackupPlanVersionsInput struct { // Uniquely identifies a backup plan. // // This member is required. BackupPlanId *string // The maximum number of items to be returned. MaxResults *int32 // The next item following a partial list of returned items. For example, if a // request is made to return maxResults number of items, NextToken allows you to // return more items in your list starting at the location pointed to by the next // token. NextToken *string }
type ListBackupPlanVersionsOutput ¶
type ListBackupPlanVersionsOutput struct { // An array of version list items containing metadata about your backup plans. BackupPlanVersionsList []types.BackupPlansListMember // The next item following a partial list of returned items. For example, if a // request is made to return maxResults number of items, NextToken allows you to // return more items in your list starting at the location pointed to by the next // token. NextToken *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type ListBackupPlanVersionsPaginator ¶ added in v0.30.0
type ListBackupPlanVersionsPaginator struct {
// contains filtered or unexported fields
}
ListBackupPlanVersionsPaginator is a paginator for ListBackupPlanVersions
func NewListBackupPlanVersionsPaginator ¶ added in v0.30.0
func NewListBackupPlanVersionsPaginator(client ListBackupPlanVersionsAPIClient, params *ListBackupPlanVersionsInput, optFns ...func(*ListBackupPlanVersionsPaginatorOptions)) *ListBackupPlanVersionsPaginator
NewListBackupPlanVersionsPaginator returns a new ListBackupPlanVersionsPaginator
func (*ListBackupPlanVersionsPaginator) HasMorePages ¶ added in v0.30.0
func (p *ListBackupPlanVersionsPaginator) HasMorePages() bool
HasMorePages returns a boolean indicating whether more pages are available
func (*ListBackupPlanVersionsPaginator) NextPage ¶ added in v0.30.0
func (p *ListBackupPlanVersionsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListBackupPlanVersionsOutput, error)
NextPage retrieves the next ListBackupPlanVersions page.
type ListBackupPlanVersionsPaginatorOptions ¶ added in v0.30.0
type ListBackupPlanVersionsPaginatorOptions struct { // The maximum number of items to be returned. Limit int32 // Set to true if pagination should stop if the service returns a pagination token // that matches the most recent token provided to the service. StopOnDuplicateToken bool }
ListBackupPlanVersionsPaginatorOptions is the paginator options for ListBackupPlanVersions
type ListBackupPlansAPIClient ¶ added in v0.30.0
type ListBackupPlansAPIClient interface {
ListBackupPlans(context.Context, *ListBackupPlansInput, ...func(*Options)) (*ListBackupPlansOutput, error)
}
ListBackupPlansAPIClient is a client that implements the ListBackupPlans operation.
type ListBackupPlansInput ¶
type ListBackupPlansInput struct { // A Boolean value with a default value of FALSE that returns deleted backup plans // when set to TRUE. IncludeDeleted *bool // The maximum number of items to be returned. MaxResults *int32 // The next item following a partial list of returned items. For example, if a // request is made to return maxResults number of items, NextToken allows you to // return more items in your list starting at the location pointed to by the next // token. NextToken *string }
type ListBackupPlansOutput ¶
type ListBackupPlansOutput struct { // An array of backup plan list items containing metadata about your saved backup // plans. BackupPlansList []types.BackupPlansListMember // The next item following a partial list of returned items. For example, if a // request is made to return maxResults number of items, NextToken allows you to // return more items in your list starting at the location pointed to by the next // token. NextToken *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type ListBackupPlansPaginator ¶ added in v0.30.0
type ListBackupPlansPaginator struct {
// contains filtered or unexported fields
}
ListBackupPlansPaginator is a paginator for ListBackupPlans
func NewListBackupPlansPaginator ¶ added in v0.30.0
func NewListBackupPlansPaginator(client ListBackupPlansAPIClient, params *ListBackupPlansInput, optFns ...func(*ListBackupPlansPaginatorOptions)) *ListBackupPlansPaginator
NewListBackupPlansPaginator returns a new ListBackupPlansPaginator
func (*ListBackupPlansPaginator) HasMorePages ¶ added in v0.30.0
func (p *ListBackupPlansPaginator) HasMorePages() bool
HasMorePages returns a boolean indicating whether more pages are available
func (*ListBackupPlansPaginator) NextPage ¶ added in v0.30.0
func (p *ListBackupPlansPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListBackupPlansOutput, error)
NextPage retrieves the next ListBackupPlans page.
type ListBackupPlansPaginatorOptions ¶ added in v0.30.0
type ListBackupPlansPaginatorOptions struct { // The maximum number of items to be returned. Limit int32 // Set to true if pagination should stop if the service returns a pagination token // that matches the most recent token provided to the service. StopOnDuplicateToken bool }
ListBackupPlansPaginatorOptions is the paginator options for ListBackupPlans
type ListBackupSelectionsAPIClient ¶ added in v0.30.0
type ListBackupSelectionsAPIClient interface {
ListBackupSelections(context.Context, *ListBackupSelectionsInput, ...func(*Options)) (*ListBackupSelectionsOutput, error)
}
ListBackupSelectionsAPIClient is a client that implements the ListBackupSelections operation.
type ListBackupSelectionsInput ¶
type ListBackupSelectionsInput struct { // Uniquely identifies a backup plan. // // This member is required. BackupPlanId *string // The maximum number of items to be returned. MaxResults *int32 // The next item following a partial list of returned items. For example, if a // request is made to return maxResults number of items, NextToken allows you to // return more items in your list starting at the location pointed to by the next // token. NextToken *string }
type ListBackupSelectionsOutput ¶
type ListBackupSelectionsOutput struct { // An array of backup selection list items containing metadata about each resource // in the list. BackupSelectionsList []types.BackupSelectionsListMember // The next item following a partial list of returned items. For example, if a // request is made to return maxResults number of items, NextToken allows you to // return more items in your list starting at the location pointed to by the next // token. NextToken *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type ListBackupSelectionsPaginator ¶ added in v0.30.0
type ListBackupSelectionsPaginator struct {
// contains filtered or unexported fields
}
ListBackupSelectionsPaginator is a paginator for ListBackupSelections
func NewListBackupSelectionsPaginator ¶ added in v0.30.0
func NewListBackupSelectionsPaginator(client ListBackupSelectionsAPIClient, params *ListBackupSelectionsInput, optFns ...func(*ListBackupSelectionsPaginatorOptions)) *ListBackupSelectionsPaginator
NewListBackupSelectionsPaginator returns a new ListBackupSelectionsPaginator
func (*ListBackupSelectionsPaginator) HasMorePages ¶ added in v0.30.0
func (p *ListBackupSelectionsPaginator) HasMorePages() bool
HasMorePages returns a boolean indicating whether more pages are available
func (*ListBackupSelectionsPaginator) NextPage ¶ added in v0.30.0
func (p *ListBackupSelectionsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListBackupSelectionsOutput, error)
NextPage retrieves the next ListBackupSelections page.
type ListBackupSelectionsPaginatorOptions ¶ added in v0.30.0
type ListBackupSelectionsPaginatorOptions struct { // The maximum number of items to be returned. Limit int32 // Set to true if pagination should stop if the service returns a pagination token // that matches the most recent token provided to the service. StopOnDuplicateToken bool }
ListBackupSelectionsPaginatorOptions is the paginator options for ListBackupSelections
type ListBackupVaultsAPIClient ¶ added in v0.30.0
type ListBackupVaultsAPIClient interface {
ListBackupVaults(context.Context, *ListBackupVaultsInput, ...func(*Options)) (*ListBackupVaultsOutput, error)
}
ListBackupVaultsAPIClient is a client that implements the ListBackupVaults operation.
type ListBackupVaultsInput ¶
type ListBackupVaultsInput struct { // The maximum number of items to be returned. MaxResults *int32 // The next item following a partial list of returned items. For example, if a // request is made to return maxResults number of items, NextToken allows you to // return more items in your list starting at the location pointed to by the next // token. NextToken *string }
type ListBackupVaultsOutput ¶
type ListBackupVaultsOutput struct { // An array of backup vault list members containing vault metadata, including // Amazon Resource Name (ARN), display name, creation date, number of saved // recovery points, and encryption information if the resources saved in the backup // vault are encrypted. BackupVaultList []types.BackupVaultListMember // The next item following a partial list of returned items. For example, if a // request is made to return maxResults number of items, NextToken allows you to // return more items in your list starting at the location pointed to by the next // token. NextToken *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type ListBackupVaultsPaginator ¶ added in v0.30.0
type ListBackupVaultsPaginator struct {
// contains filtered or unexported fields
}
ListBackupVaultsPaginator is a paginator for ListBackupVaults
func NewListBackupVaultsPaginator ¶ added in v0.30.0
func NewListBackupVaultsPaginator(client ListBackupVaultsAPIClient, params *ListBackupVaultsInput, optFns ...func(*ListBackupVaultsPaginatorOptions)) *ListBackupVaultsPaginator
NewListBackupVaultsPaginator returns a new ListBackupVaultsPaginator
func (*ListBackupVaultsPaginator) HasMorePages ¶ added in v0.30.0
func (p *ListBackupVaultsPaginator) HasMorePages() bool
HasMorePages returns a boolean indicating whether more pages are available
func (*ListBackupVaultsPaginator) NextPage ¶ added in v0.30.0
func (p *ListBackupVaultsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListBackupVaultsOutput, error)
NextPage retrieves the next ListBackupVaults page.
type ListBackupVaultsPaginatorOptions ¶ added in v0.30.0
type ListBackupVaultsPaginatorOptions struct { // The maximum number of items to be returned. Limit int32 // Set to true if pagination should stop if the service returns a pagination token // that matches the most recent token provided to the service. StopOnDuplicateToken bool }
ListBackupVaultsPaginatorOptions is the paginator options for ListBackupVaults
type ListCopyJobsAPIClient ¶ added in v0.30.0
type ListCopyJobsAPIClient interface {
ListCopyJobs(context.Context, *ListCopyJobsInput, ...func(*Options)) (*ListCopyJobsOutput, error)
}
ListCopyJobsAPIClient is a client that implements the ListCopyJobs operation.
type ListCopyJobsInput ¶
type ListCopyJobsInput struct { // The account ID to list the jobs from. Returns only copy jobs associated with the // specified account ID. ByAccountId *string // Returns only copy jobs that were created after the specified date. ByCreatedAfter *time.Time // Returns only copy jobs that were created before the specified date. ByCreatedBefore *time.Time // An Amazon Resource Name (ARN) that uniquely identifies a source backup vault to // copy from; for example, // arn:aws:backup:us-east-1:123456789012:vault:aBackupVault. ByDestinationVaultArn *string // Returns only copy jobs that match the specified resource Amazon Resource Name // (ARN). ByResourceArn *string // Returns only backup jobs for the specified resources: // // * DynamoDB for Amazon // DynamoDB // // * EBS for Amazon Elastic Block Store // // * EC2 for Amazon Elastic Compute // Cloud // // * EFS for Amazon Elastic File System // // * RDS for Amazon Relational // Database Service // // * Aurora for Amazon Aurora // // * Storage Gateway for AWS Storage // Gateway ByResourceType *string // Returns only copy jobs that are in the specified state. ByState types.CopyJobState // The maximum number of items to be returned. MaxResults *int32 // The next item following a partial list of returned items. For example, if a // request is made to return maxResults number of items, NextToken allows you to // return more items in your list starting at the location pointed to by the next // token. NextToken *string }
type ListCopyJobsOutput ¶
type ListCopyJobsOutput struct { // An array of structures containing metadata about your copy jobs returned in JSON // format. CopyJobs []types.CopyJob // The next item following a partial list of returned items. For example, if a // request is made to return maxResults number of items, NextToken allows you to // return more items in your list starting at the location pointed to by the next // token. NextToken *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type ListCopyJobsPaginator ¶ added in v0.30.0
type ListCopyJobsPaginator struct {
// contains filtered or unexported fields
}
ListCopyJobsPaginator is a paginator for ListCopyJobs
func NewListCopyJobsPaginator ¶ added in v0.30.0
func NewListCopyJobsPaginator(client ListCopyJobsAPIClient, params *ListCopyJobsInput, optFns ...func(*ListCopyJobsPaginatorOptions)) *ListCopyJobsPaginator
NewListCopyJobsPaginator returns a new ListCopyJobsPaginator
func (*ListCopyJobsPaginator) HasMorePages ¶ added in v0.30.0
func (p *ListCopyJobsPaginator) HasMorePages() bool
HasMorePages returns a boolean indicating whether more pages are available
func (*ListCopyJobsPaginator) NextPage ¶ added in v0.30.0
func (p *ListCopyJobsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListCopyJobsOutput, error)
NextPage retrieves the next ListCopyJobs page.
type ListCopyJobsPaginatorOptions ¶ added in v0.30.0
type ListCopyJobsPaginatorOptions struct { // The maximum number of items to be returned. Limit int32 // Set to true if pagination should stop if the service returns a pagination token // that matches the most recent token provided to the service. StopOnDuplicateToken bool }
ListCopyJobsPaginatorOptions is the paginator options for ListCopyJobs
type ListProtectedResourcesAPIClient ¶ added in v0.30.0
type ListProtectedResourcesAPIClient interface {
ListProtectedResources(context.Context, *ListProtectedResourcesInput, ...func(*Options)) (*ListProtectedResourcesOutput, error)
}
ListProtectedResourcesAPIClient is a client that implements the ListProtectedResources operation.
type ListProtectedResourcesInput ¶
type ListProtectedResourcesInput struct { // The maximum number of items to be returned. MaxResults *int32 // The next item following a partial list of returned items. For example, if a // request is made to return maxResults number of items, NextToken allows you to // return more items in your list starting at the location pointed to by the next // token. NextToken *string }
type ListProtectedResourcesOutput ¶
type ListProtectedResourcesOutput struct { // The next item following a partial list of returned items. For example, if a // request is made to return maxResults number of items, NextToken allows you to // return more items in your list starting at the location pointed to by the next // token. NextToken *string // An array of resources successfully backed up by AWS Backup including the time // the resource was saved, an Amazon Resource Name (ARN) of the resource, and a // resource type. Results []types.ProtectedResource // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type ListProtectedResourcesPaginator ¶ added in v0.30.0
type ListProtectedResourcesPaginator struct {
// contains filtered or unexported fields
}
ListProtectedResourcesPaginator is a paginator for ListProtectedResources
func NewListProtectedResourcesPaginator ¶ added in v0.30.0
func NewListProtectedResourcesPaginator(client ListProtectedResourcesAPIClient, params *ListProtectedResourcesInput, optFns ...func(*ListProtectedResourcesPaginatorOptions)) *ListProtectedResourcesPaginator
NewListProtectedResourcesPaginator returns a new ListProtectedResourcesPaginator
func (*ListProtectedResourcesPaginator) HasMorePages ¶ added in v0.30.0
func (p *ListProtectedResourcesPaginator) HasMorePages() bool
HasMorePages returns a boolean indicating whether more pages are available
func (*ListProtectedResourcesPaginator) NextPage ¶ added in v0.30.0
func (p *ListProtectedResourcesPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListProtectedResourcesOutput, error)
NextPage retrieves the next ListProtectedResources page.
type ListProtectedResourcesPaginatorOptions ¶ added in v0.30.0
type ListProtectedResourcesPaginatorOptions struct { // The maximum number of items to be returned. Limit int32 // Set to true if pagination should stop if the service returns a pagination token // that matches the most recent token provided to the service. StopOnDuplicateToken bool }
ListProtectedResourcesPaginatorOptions is the paginator options for ListProtectedResources
type ListRecoveryPointsByBackupVaultAPIClient ¶ added in v0.30.0
type ListRecoveryPointsByBackupVaultAPIClient interface {
ListRecoveryPointsByBackupVault(context.Context, *ListRecoveryPointsByBackupVaultInput, ...func(*Options)) (*ListRecoveryPointsByBackupVaultOutput, error)
}
ListRecoveryPointsByBackupVaultAPIClient is a client that implements the ListRecoveryPointsByBackupVault operation.
type ListRecoveryPointsByBackupVaultInput ¶
type ListRecoveryPointsByBackupVaultInput struct { // The name of a logical container where backups are stored. Backup vaults are // identified by names that are unique to the account used to create them and the // AWS Region where they are created. They consist of lowercase letters, numbers, // and hyphens. // // This member is required. BackupVaultName *string // Returns only recovery points that match the specified backup plan ID. ByBackupPlanId *string // Returns only recovery points that were created after the specified timestamp. ByCreatedAfter *time.Time // Returns only recovery points that were created before the specified timestamp. ByCreatedBefore *time.Time // Returns only recovery points that match the specified resource Amazon Resource // Name (ARN). ByResourceArn *string // Returns only recovery points that match the specified resource type. ByResourceType *string // The maximum number of items to be returned. MaxResults *int32 // The next item following a partial list of returned items. For example, if a // request is made to return maxResults number of items, NextToken allows you to // return more items in your list starting at the location pointed to by the next // token. NextToken *string }
type ListRecoveryPointsByBackupVaultOutput ¶
type ListRecoveryPointsByBackupVaultOutput struct { // The next item following a partial list of returned items. For example, if a // request is made to return maxResults number of items, NextToken allows you to // return more items in your list starting at the location pointed to by the next // token. NextToken *string // An array of objects that contain detailed information about recovery points // saved in a backup vault. RecoveryPoints []types.RecoveryPointByBackupVault // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type ListRecoveryPointsByBackupVaultPaginator ¶ added in v0.30.0
type ListRecoveryPointsByBackupVaultPaginator struct {
// contains filtered or unexported fields
}
ListRecoveryPointsByBackupVaultPaginator is a paginator for ListRecoveryPointsByBackupVault
func NewListRecoveryPointsByBackupVaultPaginator ¶ added in v0.30.0
func NewListRecoveryPointsByBackupVaultPaginator(client ListRecoveryPointsByBackupVaultAPIClient, params *ListRecoveryPointsByBackupVaultInput, optFns ...func(*ListRecoveryPointsByBackupVaultPaginatorOptions)) *ListRecoveryPointsByBackupVaultPaginator
NewListRecoveryPointsByBackupVaultPaginator returns a new ListRecoveryPointsByBackupVaultPaginator
func (*ListRecoveryPointsByBackupVaultPaginator) HasMorePages ¶ added in v0.30.0
func (p *ListRecoveryPointsByBackupVaultPaginator) HasMorePages() bool
HasMorePages returns a boolean indicating whether more pages are available
func (*ListRecoveryPointsByBackupVaultPaginator) NextPage ¶ added in v0.30.0
func (p *ListRecoveryPointsByBackupVaultPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListRecoveryPointsByBackupVaultOutput, error)
NextPage retrieves the next ListRecoveryPointsByBackupVault page.
type ListRecoveryPointsByBackupVaultPaginatorOptions ¶ added in v0.30.0
type ListRecoveryPointsByBackupVaultPaginatorOptions struct { // The maximum number of items to be returned. Limit int32 // Set to true if pagination should stop if the service returns a pagination token // that matches the most recent token provided to the service. StopOnDuplicateToken bool }
ListRecoveryPointsByBackupVaultPaginatorOptions is the paginator options for ListRecoveryPointsByBackupVault
type ListRecoveryPointsByResourceAPIClient ¶ added in v0.30.0
type ListRecoveryPointsByResourceAPIClient interface {
ListRecoveryPointsByResource(context.Context, *ListRecoveryPointsByResourceInput, ...func(*Options)) (*ListRecoveryPointsByResourceOutput, error)
}
ListRecoveryPointsByResourceAPIClient is a client that implements the ListRecoveryPointsByResource operation.
type ListRecoveryPointsByResourceInput ¶
type ListRecoveryPointsByResourceInput struct { // An ARN that uniquely identifies a resource. The format of the ARN depends on the // resource type. // // This member is required. ResourceArn *string // The maximum number of items to be returned. MaxResults *int32 // The next item following a partial list of returned items. For example, if a // request is made to return maxResults number of items, NextToken allows you to // return more items in your list starting at the location pointed to by the next // token. NextToken *string }
type ListRecoveryPointsByResourceOutput ¶
type ListRecoveryPointsByResourceOutput struct { // The next item following a partial list of returned items. For example, if a // request is made to return maxResults number of items, NextToken allows you to // return more items in your list starting at the location pointed to by the next // token. NextToken *string // An array of objects that contain detailed information about recovery points of // the specified resource type. RecoveryPoints []types.RecoveryPointByResource // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type ListRecoveryPointsByResourcePaginator ¶ added in v0.30.0
type ListRecoveryPointsByResourcePaginator struct {
// contains filtered or unexported fields
}
ListRecoveryPointsByResourcePaginator is a paginator for ListRecoveryPointsByResource
func NewListRecoveryPointsByResourcePaginator ¶ added in v0.30.0
func NewListRecoveryPointsByResourcePaginator(client ListRecoveryPointsByResourceAPIClient, params *ListRecoveryPointsByResourceInput, optFns ...func(*ListRecoveryPointsByResourcePaginatorOptions)) *ListRecoveryPointsByResourcePaginator
NewListRecoveryPointsByResourcePaginator returns a new ListRecoveryPointsByResourcePaginator
func (*ListRecoveryPointsByResourcePaginator) HasMorePages ¶ added in v0.30.0
func (p *ListRecoveryPointsByResourcePaginator) HasMorePages() bool
HasMorePages returns a boolean indicating whether more pages are available
func (*ListRecoveryPointsByResourcePaginator) NextPage ¶ added in v0.30.0
func (p *ListRecoveryPointsByResourcePaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListRecoveryPointsByResourceOutput, error)
NextPage retrieves the next ListRecoveryPointsByResource page.
type ListRecoveryPointsByResourcePaginatorOptions ¶ added in v0.30.0
type ListRecoveryPointsByResourcePaginatorOptions struct { // The maximum number of items to be returned. Limit int32 // Set to true if pagination should stop if the service returns a pagination token // that matches the most recent token provided to the service. StopOnDuplicateToken bool }
ListRecoveryPointsByResourcePaginatorOptions is the paginator options for ListRecoveryPointsByResource
type ListRestoreJobsAPIClient ¶ added in v0.30.0
type ListRestoreJobsAPIClient interface {
ListRestoreJobs(context.Context, *ListRestoreJobsInput, ...func(*Options)) (*ListRestoreJobsOutput, error)
}
ListRestoreJobsAPIClient is a client that implements the ListRestoreJobs operation.
type ListRestoreJobsInput ¶
type ListRestoreJobsInput struct { // The account ID to list the jobs from. Returns only restore jobs associated with // the specified account ID. ByAccountId *string // Returns only restore jobs that were created after the specified date. ByCreatedAfter *time.Time // Returns only restore jobs that were created before the specified date. ByCreatedBefore *time.Time // Returns only restore jobs associated with the specified job status. ByStatus types.RestoreJobStatus // The maximum number of items to be returned. MaxResults *int32 // The next item following a partial list of returned items. For example, if a // request is made to return maxResults number of items, NextToken allows you to // return more items in your list starting at the location pointed to by the next // token. NextToken *string }
type ListRestoreJobsOutput ¶
type ListRestoreJobsOutput struct { // The next item following a partial list of returned items. For example, if a // request is made to return maxResults number of items, NextToken allows you to // return more items in your list starting at the location pointed to by the next // token. NextToken *string // An array of objects that contain detailed information about jobs to restore // saved resources. RestoreJobs []types.RestoreJobsListMember // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type ListRestoreJobsPaginator ¶ added in v0.30.0
type ListRestoreJobsPaginator struct {
// contains filtered or unexported fields
}
ListRestoreJobsPaginator is a paginator for ListRestoreJobs
func NewListRestoreJobsPaginator ¶ added in v0.30.0
func NewListRestoreJobsPaginator(client ListRestoreJobsAPIClient, params *ListRestoreJobsInput, optFns ...func(*ListRestoreJobsPaginatorOptions)) *ListRestoreJobsPaginator
NewListRestoreJobsPaginator returns a new ListRestoreJobsPaginator
func (*ListRestoreJobsPaginator) HasMorePages ¶ added in v0.30.0
func (p *ListRestoreJobsPaginator) HasMorePages() bool
HasMorePages returns a boolean indicating whether more pages are available
func (*ListRestoreJobsPaginator) NextPage ¶ added in v0.30.0
func (p *ListRestoreJobsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListRestoreJobsOutput, error)
NextPage retrieves the next ListRestoreJobs page.
type ListRestoreJobsPaginatorOptions ¶ added in v0.30.0
type ListRestoreJobsPaginatorOptions struct { // The maximum number of items to be returned. Limit int32 // Set to true if pagination should stop if the service returns a pagination token // that matches the most recent token provided to the service. StopOnDuplicateToken bool }
ListRestoreJobsPaginatorOptions is the paginator options for ListRestoreJobs
type ListTagsAPIClient ¶ added in v0.30.0
type ListTagsAPIClient interface {
ListTags(context.Context, *ListTagsInput, ...func(*Options)) (*ListTagsOutput, error)
}
ListTagsAPIClient is a client that implements the ListTags operation.
type ListTagsInput ¶
type ListTagsInput struct { // An Amazon Resource Name (ARN) that uniquely identifies a resource. The format of // the ARN depends on the type of resource. Valid targets for ListTags are recovery // points, backup plans, and backup vaults. // // This member is required. ResourceArn *string // The maximum number of items to be returned. MaxResults *int32 // The next item following a partial list of returned items. For example, if a // request is made to return maxResults number of items, NextToken allows you to // return more items in your list starting at the location pointed to by the next // token. NextToken *string }
type ListTagsOutput ¶
type ListTagsOutput struct { // The next item following a partial list of returned items. For example, if a // request is made to return maxResults number of items, NextToken allows you to // return more items in your list starting at the location pointed to by the next // token. NextToken *string // To help organize your resources, you can assign your own metadata to the // resources you create. Each tag is a key-value pair. Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type ListTagsPaginator ¶ added in v0.30.0
type ListTagsPaginator struct {
// contains filtered or unexported fields
}
ListTagsPaginator is a paginator for ListTags
func NewListTagsPaginator ¶ added in v0.30.0
func NewListTagsPaginator(client ListTagsAPIClient, params *ListTagsInput, optFns ...func(*ListTagsPaginatorOptions)) *ListTagsPaginator
NewListTagsPaginator returns a new ListTagsPaginator
func (*ListTagsPaginator) HasMorePages ¶ added in v0.30.0
func (p *ListTagsPaginator) HasMorePages() bool
HasMorePages returns a boolean indicating whether more pages are available
func (*ListTagsPaginator) NextPage ¶ added in v0.30.0
func (p *ListTagsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListTagsOutput, error)
NextPage retrieves the next ListTags page.
type ListTagsPaginatorOptions ¶ added in v0.30.0
type ListTagsPaginatorOptions struct { // The maximum number of items to be returned. Limit int32 // Set to true if pagination should stop if the service returns a pagination token // that matches the most recent token provided to the service. StopOnDuplicateToken bool }
ListTagsPaginatorOptions is the paginator options for ListTags
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 // Configures the events that will be sent to the configured logger. ClientLogMode aws.ClientLogMode // The credentials object to use when signing requests. Credentials aws.CredentialsProvider // The endpoint options to be used when attempting to resolve an endpoint. EndpointOptions EndpointResolverOptions // The service endpoint resolver. EndpointResolver EndpointResolver // Signature Version 4 (SigV4) Signer HTTPSignerV4 HTTPSignerV4 // The logger writer interface to write logging messages to. Logger logging.Logger // 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 aws.Retryer // The HTTP client to invoke API calls with. Defaults to client's default HTTP // implementation if nil. HTTPClient HTTPClient }
type PutBackupVaultAccessPolicyInput ¶
type PutBackupVaultAccessPolicyInput struct { // The name of a logical container where backups are stored. Backup vaults are // identified by names that are unique to the account used to create them and the // AWS Region where they are created. They consist of lowercase letters, numbers, // and hyphens. // // This member is required. BackupVaultName *string // The backup vault access policy document in JSON format. Policy *string }
type PutBackupVaultAccessPolicyOutput ¶
type PutBackupVaultAccessPolicyOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type PutBackupVaultNotificationsInput ¶
type PutBackupVaultNotificationsInput struct { // An array of events that indicate the status of jobs to back up resources to the // backup vault. // // This member is required. BackupVaultEvents []types.BackupVaultEvent // The name of a logical container where backups are stored. Backup vaults are // identified by names that are unique to the account used to create them and the // AWS Region where they are created. They consist of lowercase letters, numbers, // and hyphens. // // This member is required. BackupVaultName *string // The Amazon Resource Name (ARN) that specifies the topic for a backup vault’s // events; for example, arn:aws:sns:us-west-2:111122223333:MyVaultTopic. // // This member is required. SNSTopicArn *string }
type PutBackupVaultNotificationsOutput ¶
type PutBackupVaultNotificationsOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type ResolveEndpoint ¶
type ResolveEndpoint struct { Resolver EndpointResolver Options EndpointResolverOptions }
func (*ResolveEndpoint) HandleSerialize ¶
func (m *ResolveEndpoint) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, )
func (*ResolveEndpoint) ID ¶
func (*ResolveEndpoint) ID() string
type StartBackupJobInput ¶
type StartBackupJobInput struct { // The name of a logical container where backups are stored. Backup vaults are // identified by names that are unique to the account used to create them and the // AWS Region where they are created. They consist of lowercase letters, numbers, // and hyphens. // // This member is required. BackupVaultName *string // Specifies the IAM role ARN used to create the target recovery point; for // example, arn:aws:iam::123456789012:role/S3Access. // // This member is required. IamRoleArn *string // An Amazon Resource Name (ARN) that uniquely identifies a resource. The format of // the ARN depends on the resource type. // // This member is required. ResourceArn *string // Specifies the backup option for a selected resource. This option is only // available for Windows VSS backup jobs. Valid values: Set to // "WindowsVSS”:“enabled" to enable WindowsVSS backup option and create a VSS // Windows backup. Set to “WindowsVSS”:”disabled” to create a regular backup. The // WindowsVSS option is not enabled by default. BackupOptions map[string]string // A value in minutes during which a successfully started backup must complete, or // else AWS Backup will cancel the job. This value is optional. This value begins // counting down from when the backup was scheduled. It does not add additional // time for StartWindowMinutes, or if the backup started later than scheduled. CompleteWindowMinutes *int64 // A customer chosen string that can be used to distinguish between calls to // StartBackupJob. IdempotencyToken *string // The lifecycle defines when a protected resource is transitioned to cold storage // and when it expires. AWS Backup will transition and expire backups automatically // according to the lifecycle that you define. Backups transitioned to cold storage // must be stored in cold storage for a minimum of 90 days. Therefore, the “expire // after days” setting must be 90 days greater than the “transition to cold after // days” setting. The “transition to cold after days” setting cannot be changed // after a backup has been transitioned to cold. Only Amazon EFS file system // backups can be transitioned to cold storage. Lifecycle *types.Lifecycle // To help organize your resources, you can assign your own metadata to the // resources that you create. Each tag is a key-value pair. RecoveryPointTags map[string]string // A value in minutes after a backup is scheduled before a job will be canceled if // it doesn't start successfully. This value is optional, and the default is 8 // hours. StartWindowMinutes *int64 }
type StartBackupJobOutput ¶
type StartBackupJobOutput struct { // Uniquely identifies a request to AWS Backup to back up a resource. BackupJobId *string // The date and time that a backup job is created, in Unix format and Coordinated // Universal Time (UTC). The value of CreationDate is accurate to milliseconds. For // example, the value 1516925490.087 represents Friday, January 26, 2018 // 12:11:30.087 AM. CreationDate *time.Time // An ARN that uniquely identifies a recovery point; for example, // arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45. RecoveryPointArn *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type StartCopyJobInput ¶
type StartCopyJobInput struct { // An Amazon Resource Name (ARN) that uniquely identifies a destination backup // vault to copy to; for example, // arn:aws:backup:us-east-1:123456789012:vault:aBackupVault. // // This member is required. DestinationBackupVaultArn *string // Specifies the IAM role ARN used to copy the target recovery point; for example, // arn:aws:iam::123456789012:role/S3Access. // // This member is required. IamRoleArn *string // An ARN that uniquely identifies a recovery point to use for the copy job; for // example, // arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45. // // This member is required. RecoveryPointArn *string // The name of a logical source container where backups are stored. Backup vaults // are identified by names that are unique to the account used to create them and // the AWS Region where they are created. They consist of lowercase letters, // numbers, and hyphens. // // This member is required. SourceBackupVaultName *string // A customer chosen string that can be used to distinguish between calls to // StartCopyJob. IdempotencyToken *string // Contains an array of Transition objects specifying how long in days before a // recovery point transitions to cold storage or is deleted. Backups transitioned // to cold storage must be stored in cold storage for a minimum of 90 days. // Therefore, on the console, the “expire after days” setting must be 90 days // greater than the “transition to cold after days” setting. The “transition to // cold after days” setting cannot be changed after a backup has been transitioned // to cold. Only Amazon EFS file system backups can be transitioned to cold // storage. Lifecycle *types.Lifecycle }
type StartCopyJobOutput ¶
type StartCopyJobOutput struct { // Uniquely identifies a copy job. CopyJobId *string // The date and time that a copy job is created, in Unix format and Coordinated // Universal Time (UTC). The value of CreationDate is accurate to milliseconds. For // example, the value 1516925490.087 represents Friday, January 26, 2018 // 12:11:30.087 AM. CreationDate *time.Time // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type StartRestoreJobInput ¶
type StartRestoreJobInput struct { // The Amazon Resource Name (ARN) of the IAM role that AWS Backup uses to create // the target recovery point; for example, arn:aws:iam::123456789012:role/S3Access. // // This member is required. IamRoleArn *string // A set of metadata key-value pairs. Contains information, such as a resource // name, required to restore a recovery point. You can get configuration metadata // about a resource at the time it was backed up by calling // GetRecoveryPointRestoreMetadata. However, values in addition to those provided // by GetRecoveryPointRestoreMetadata might be required to restore a resource. For // example, you might need to provide a new resource name if the original already // exists. You need to specify specific metadata to restore an Amazon Elastic File // System (Amazon EFS) instance: // // * file-system-id: The ID of the Amazon EFS file // system that is backed up by AWS Backup. Returned in // GetRecoveryPointRestoreMetadata. // // * Encrypted: A Boolean value that, if true, // specifies that the file system is encrypted. If KmsKeyId is specified, Encrypted // must be set to true. // // * KmsKeyId: Specifies the AWS KMS key that is used to // encrypt the restored file system. You can specify a key from another AWS account // provided that key it is properly shared with your account via AWS KMS. // // * // PerformanceMode: Specifies the throughput mode of the file system. // // * // CreationToken: A user-supplied value that ensures the uniqueness (idempotency) // of the request. // // * newFileSystem: A Boolean value that, if true, specifies that // the recovery point is restored to a new Amazon EFS file system. // // * // ItemsToRestore : An array of one to five strings where each string is a file // path. Use ItemsToRestore to restore specific files or directories rather than // the entire file system. This parameter is optional. For example, // "itemsToRestore":"[\"/my.test\"]". // // This member is required. Metadata map[string]string // An ARN that uniquely identifies a recovery point; for example, // arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45. // // This member is required. RecoveryPointArn *string // A customer chosen string that can be used to distinguish between calls to // StartRestoreJob. IdempotencyToken *string // Starts a job to restore a recovery point for one of the following resources: // // * // DynamoDB for Amazon DynamoDB // // * EBS for Amazon Elastic Block Store // // * EC2 for // Amazon Elastic Compute Cloud // // * EFS for Amazon Elastic File System // // * RDS for // Amazon Relational Database Service // // * Aurora for Amazon Aurora // // * Storage // Gateway for AWS Storage Gateway ResourceType *string }
type StartRestoreJobOutput ¶
type StartRestoreJobOutput struct { // Uniquely identifies the job that restores a recovery point. RestoreJobId *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type StopBackupJobInput ¶
type StopBackupJobInput struct { // Uniquely identifies a request to AWS Backup to back up a resource. // // This member is required. BackupJobId *string }
type StopBackupJobOutput ¶
type StopBackupJobOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type TagResourceInput ¶
type TagResourceInput struct { // An ARN that uniquely identifies a resource. The format of the ARN depends on the // type of the tagged resource. // // This member is required. ResourceArn *string // Key-value pairs that are used to help organize your resources. You can assign // your own metadata to the resources you create. // // This member is required. Tags map[string]string }
type TagResourceOutput ¶
type TagResourceOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type UntagResourceInput ¶
type UntagResourceInput struct { // An ARN that uniquely identifies a resource. The format of the ARN depends on the // type of the tagged resource. // // This member is required. ResourceArn *string // A list of keys to identify which key-value tags to remove from a resource. // // This member is required. TagKeyList []string }
type UntagResourceOutput ¶
type UntagResourceOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type UpdateBackupPlanInput ¶
type UpdateBackupPlanInput struct { // Specifies the body of a backup plan. Includes a BackupPlanName and one or more // sets of Rules. // // This member is required. BackupPlan *types.BackupPlanInput // Uniquely identifies a backup plan. // // This member is required. BackupPlanId *string }
type UpdateBackupPlanOutput ¶
type UpdateBackupPlanOutput struct { // Contains a list of BackupOptions for each resource type. AdvancedBackupSettings []types.AdvancedBackupSetting // An Amazon Resource Name (ARN) that uniquely identifies a backup plan; for // example, // arn:aws:backup:us-east-1:123456789012:plan:8F81F553-3A74-4A3F-B93D-B3360DC80C50. BackupPlanArn *string // Uniquely identifies a backup plan. BackupPlanId *string // The date and time a backup plan is updated, in Unix format and Coordinated // Universal Time (UTC). The value of CreationDate is accurate to milliseconds. For // example, the value 1516925490.087 represents Friday, January 26, 2018 // 12:11:30.087 AM. CreationDate *time.Time // Unique, randomly generated, Unicode, UTF-8 encoded strings that are at most // 1,024 bytes long. Version Ids cannot be edited. VersionId *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type UpdateGlobalSettingsInput ¶ added in v0.30.0
type UpdateGlobalSettingsOutput ¶ added in v0.30.0
type UpdateGlobalSettingsOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type UpdateRecoveryPointLifecycleInput ¶
type UpdateRecoveryPointLifecycleInput struct { // The name of a logical container where backups are stored. Backup vaults are // identified by names that are unique to the account used to create them and the // AWS Region where they are created. They consist of lowercase letters, numbers, // and hyphens. // // This member is required. BackupVaultName *string // An Amazon Resource Name (ARN) that uniquely identifies a recovery point; for // example, // arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45. // // This member is required. RecoveryPointArn *string // The lifecycle defines when a protected resource is transitioned to cold storage // and when it expires. AWS Backup transitions and expires backups automatically // according to the lifecycle that you define. Backups transitioned to cold storage // must be stored in cold storage for a minimum of 90 days. Therefore, the “expire // after days” setting must be 90 days greater than the “transition to cold after // days” setting. The “transition to cold after days” setting cannot be changed // after a backup has been transitioned to cold. Lifecycle *types.Lifecycle }
type UpdateRecoveryPointLifecycleOutput ¶
type UpdateRecoveryPointLifecycleOutput struct { // An ARN that uniquely identifies a backup vault; for example, // arn:aws:backup:us-east-1:123456789012:vault:aBackupVault. BackupVaultArn *string // A CalculatedLifecycle object containing DeleteAt and MoveToColdStorageAt // timestamps. CalculatedLifecycle *types.CalculatedLifecycle // The lifecycle defines when a protected resource is transitioned to cold storage // and when it expires. AWS Backup transitions and expires backups automatically // according to the lifecycle that you define. Backups transitioned to cold storage // must be stored in cold storage for a minimum of 90 days. Therefore, the “expire // after days” setting must be 90 days greater than the “transition to cold after // days” setting. The “transition to cold after days” setting cannot be changed // after a backup has been transitioned to cold. Only Amazon EFS file system // backups can be transitioned to cold storage. Lifecycle *types.Lifecycle // An Amazon Resource Name (ARN) that uniquely identifies a recovery point; for // example, // arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45. RecoveryPointArn *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type UpdateRegionSettingsOutput ¶
type UpdateRegionSettingsOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
Source Files ¶
- api_client.go
- api_op_CreateBackupPlan.go
- api_op_CreateBackupSelection.go
- api_op_CreateBackupVault.go
- api_op_DeleteBackupPlan.go
- api_op_DeleteBackupSelection.go
- api_op_DeleteBackupVault.go
- api_op_DeleteBackupVaultAccessPolicy.go
- api_op_DeleteBackupVaultNotifications.go
- api_op_DeleteRecoveryPoint.go
- api_op_DescribeBackupJob.go
- api_op_DescribeBackupVault.go
- api_op_DescribeCopyJob.go
- api_op_DescribeGlobalSettings.go
- api_op_DescribeProtectedResource.go
- api_op_DescribeRecoveryPoint.go
- api_op_DescribeRegionSettings.go
- api_op_DescribeRestoreJob.go
- api_op_DisassociateRecoveryPoint.go
- api_op_ExportBackupPlanTemplate.go
- api_op_GetBackupPlan.go
- api_op_GetBackupPlanFromJSON.go
- api_op_GetBackupPlanFromTemplate.go
- api_op_GetBackupSelection.go
- api_op_GetBackupVaultAccessPolicy.go
- api_op_GetBackupVaultNotifications.go
- api_op_GetRecoveryPointRestoreMetadata.go
- api_op_GetSupportedResourceTypes.go
- api_op_ListBackupJobs.go
- api_op_ListBackupPlanTemplates.go
- api_op_ListBackupPlanVersions.go
- api_op_ListBackupPlans.go
- api_op_ListBackupSelections.go
- api_op_ListBackupVaults.go
- api_op_ListCopyJobs.go
- api_op_ListProtectedResources.go
- api_op_ListRecoveryPointsByBackupVault.go
- api_op_ListRecoveryPointsByResource.go
- api_op_ListRestoreJobs.go
- api_op_ListTags.go
- api_op_PutBackupVaultAccessPolicy.go
- api_op_PutBackupVaultNotifications.go
- api_op_StartBackupJob.go
- api_op_StartCopyJob.go
- api_op_StartRestoreJob.go
- api_op_StopBackupJob.go
- api_op_TagResource.go
- api_op_UntagResource.go
- api_op_UpdateBackupPlan.go
- api_op_UpdateGlobalSettings.go
- api_op_UpdateRecoveryPointLifecycle.go
- api_op_UpdateRegionSettings.go
- deserializers.go
- doc.go
- endpoints.go
- go_module_metadata.go
- serializers.go
- validators.go