Documentation ¶
Overview ¶
Package backup provides the client and types for making API requests to 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.
See https://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15 for more information on this service.
See backup package documentation for more information. https://docs.aws.amazon.com/sdk-for-go/api/service/backup/
Using the Client ¶
To use AWS Backup with the SDK use the New function to create a new service client. With that client you can make API requests to the service. These clients are safe to use concurrently.
See the SDK's documentation for more information on how to use the SDK. https://docs.aws.amazon.com/sdk-for-go/api/
See aws.Config documentation for more information on configuring SDK clients. https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config
See the AWS Backup client for more information on creating client for this service. https://docs.aws.amazon.com/sdk-for-go/api/service/backup/#New
Index ¶
- Constants
- type BackupJob
- type BackupJobState
- type BackupPlan
- type BackupPlanInput
- type BackupPlanTemplatesListMember
- type BackupPlansListMember
- type BackupRule
- type BackupRuleInput
- type BackupSelection
- type BackupSelectionsListMember
- type BackupVaultEvent
- type BackupVaultListMember
- type CalculatedLifecycle
- type Client
- func (c *Client) CreateBackupPlanRequest(input *CreateBackupPlanInput) CreateBackupPlanRequest
- func (c *Client) CreateBackupSelectionRequest(input *CreateBackupSelectionInput) CreateBackupSelectionRequest
- func (c *Client) CreateBackupVaultRequest(input *CreateBackupVaultInput) CreateBackupVaultRequest
- func (c *Client) DeleteBackupPlanRequest(input *DeleteBackupPlanInput) DeleteBackupPlanRequest
- func (c *Client) DeleteBackupSelectionRequest(input *DeleteBackupSelectionInput) DeleteBackupSelectionRequest
- func (c *Client) DeleteBackupVaultAccessPolicyRequest(input *DeleteBackupVaultAccessPolicyInput) DeleteBackupVaultAccessPolicyRequest
- func (c *Client) DeleteBackupVaultNotificationsRequest(input *DeleteBackupVaultNotificationsInput) DeleteBackupVaultNotificationsRequest
- func (c *Client) DeleteBackupVaultRequest(input *DeleteBackupVaultInput) DeleteBackupVaultRequest
- func (c *Client) DeleteRecoveryPointRequest(input *DeleteRecoveryPointInput) DeleteRecoveryPointRequest
- func (c *Client) DescribeBackupJobRequest(input *DescribeBackupJobInput) DescribeBackupJobRequest
- func (c *Client) DescribeBackupVaultRequest(input *DescribeBackupVaultInput) DescribeBackupVaultRequest
- func (c *Client) DescribeCopyJobRequest(input *DescribeCopyJobInput) DescribeCopyJobRequest
- func (c *Client) DescribeProtectedResourceRequest(input *DescribeProtectedResourceInput) DescribeProtectedResourceRequest
- func (c *Client) DescribeRecoveryPointRequest(input *DescribeRecoveryPointInput) DescribeRecoveryPointRequest
- func (c *Client) DescribeRestoreJobRequest(input *DescribeRestoreJobInput) DescribeRestoreJobRequest
- func (c *Client) ExportBackupPlanTemplateRequest(input *ExportBackupPlanTemplateInput) ExportBackupPlanTemplateRequest
- func (c *Client) GetBackupPlanFromJSONRequest(input *GetBackupPlanFromJSONInput) GetBackupPlanFromJSONRequest
- func (c *Client) GetBackupPlanFromTemplateRequest(input *GetBackupPlanFromTemplateInput) GetBackupPlanFromTemplateRequest
- func (c *Client) GetBackupPlanRequest(input *GetBackupPlanInput) GetBackupPlanRequest
- func (c *Client) GetBackupSelectionRequest(input *GetBackupSelectionInput) GetBackupSelectionRequest
- func (c *Client) GetBackupVaultAccessPolicyRequest(input *GetBackupVaultAccessPolicyInput) GetBackupVaultAccessPolicyRequest
- func (c *Client) GetBackupVaultNotificationsRequest(input *GetBackupVaultNotificationsInput) GetBackupVaultNotificationsRequest
- func (c *Client) GetRecoveryPointRestoreMetadataRequest(input *GetRecoveryPointRestoreMetadataInput) GetRecoveryPointRestoreMetadataRequest
- func (c *Client) GetSupportedResourceTypesRequest(input *GetSupportedResourceTypesInput) GetSupportedResourceTypesRequest
- func (c *Client) ListBackupJobsRequest(input *ListBackupJobsInput) ListBackupJobsRequest
- func (c *Client) ListBackupPlanTemplatesRequest(input *ListBackupPlanTemplatesInput) ListBackupPlanTemplatesRequest
- func (c *Client) ListBackupPlanVersionsRequest(input *ListBackupPlanVersionsInput) ListBackupPlanVersionsRequest
- func (c *Client) ListBackupPlansRequest(input *ListBackupPlansInput) ListBackupPlansRequest
- func (c *Client) ListBackupSelectionsRequest(input *ListBackupSelectionsInput) ListBackupSelectionsRequest
- func (c *Client) ListBackupVaultsRequest(input *ListBackupVaultsInput) ListBackupVaultsRequest
- func (c *Client) ListCopyJobsRequest(input *ListCopyJobsInput) ListCopyJobsRequest
- func (c *Client) ListProtectedResourcesRequest(input *ListProtectedResourcesInput) ListProtectedResourcesRequest
- func (c *Client) ListRecoveryPointsByBackupVaultRequest(input *ListRecoveryPointsByBackupVaultInput) ListRecoveryPointsByBackupVaultRequest
- func (c *Client) ListRecoveryPointsByResourceRequest(input *ListRecoveryPointsByResourceInput) ListRecoveryPointsByResourceRequest
- func (c *Client) ListRestoreJobsRequest(input *ListRestoreJobsInput) ListRestoreJobsRequest
- func (c *Client) ListTagsRequest(input *ListTagsInput) ListTagsRequest
- func (c *Client) PutBackupVaultAccessPolicyRequest(input *PutBackupVaultAccessPolicyInput) PutBackupVaultAccessPolicyRequest
- func (c *Client) PutBackupVaultNotificationsRequest(input *PutBackupVaultNotificationsInput) PutBackupVaultNotificationsRequest
- func (c *Client) StartBackupJobRequest(input *StartBackupJobInput) StartBackupJobRequest
- func (c *Client) StartCopyJobRequest(input *StartCopyJobInput) StartCopyJobRequest
- func (c *Client) StartRestoreJobRequest(input *StartRestoreJobInput) StartRestoreJobRequest
- func (c *Client) StopBackupJobRequest(input *StopBackupJobInput) StopBackupJobRequest
- func (c *Client) TagResourceRequest(input *TagResourceInput) TagResourceRequest
- func (c *Client) UntagResourceRequest(input *UntagResourceInput) UntagResourceRequest
- func (c *Client) UpdateBackupPlanRequest(input *UpdateBackupPlanInput) UpdateBackupPlanRequest
- func (c *Client) UpdateRecoveryPointLifecycleRequest(input *UpdateRecoveryPointLifecycleInput) UpdateRecoveryPointLifecycleRequest
- type Condition
- type ConditionType
- type CopyAction
- type CopyJob
- type CopyJobState
- type CreateBackupPlanInput
- type CreateBackupPlanOutput
- type CreateBackupPlanRequest
- type CreateBackupPlanResponse
- type CreateBackupSelectionInput
- type CreateBackupSelectionOutput
- type CreateBackupSelectionRequest
- type CreateBackupSelectionResponse
- type CreateBackupVaultInput
- type CreateBackupVaultOutput
- type CreateBackupVaultRequest
- type CreateBackupVaultResponse
- type DeleteBackupPlanInput
- type DeleteBackupPlanOutput
- type DeleteBackupPlanRequest
- type DeleteBackupPlanResponse
- type DeleteBackupSelectionInput
- type DeleteBackupSelectionOutput
- type DeleteBackupSelectionRequest
- type DeleteBackupSelectionResponse
- type DeleteBackupVaultAccessPolicyInput
- type DeleteBackupVaultAccessPolicyOutput
- type DeleteBackupVaultAccessPolicyRequest
- type DeleteBackupVaultAccessPolicyResponse
- type DeleteBackupVaultInput
- type DeleteBackupVaultNotificationsInput
- type DeleteBackupVaultNotificationsOutput
- type DeleteBackupVaultNotificationsRequest
- type DeleteBackupVaultNotificationsResponse
- type DeleteBackupVaultOutput
- type DeleteBackupVaultRequest
- type DeleteBackupVaultResponse
- type DeleteRecoveryPointInput
- type DeleteRecoveryPointOutput
- type DeleteRecoveryPointRequest
- type DeleteRecoveryPointResponse
- type DescribeBackupJobInput
- type DescribeBackupJobOutput
- type DescribeBackupJobRequest
- type DescribeBackupJobResponse
- type DescribeBackupVaultInput
- type DescribeBackupVaultOutput
- type DescribeBackupVaultRequest
- type DescribeBackupVaultResponse
- type DescribeCopyJobInput
- type DescribeCopyJobOutput
- type DescribeCopyJobRequest
- type DescribeCopyJobResponse
- type DescribeProtectedResourceInput
- type DescribeProtectedResourceOutput
- type DescribeProtectedResourceRequest
- type DescribeProtectedResourceResponse
- type DescribeRecoveryPointInput
- type DescribeRecoveryPointOutput
- type DescribeRecoveryPointRequest
- type DescribeRecoveryPointResponse
- type DescribeRestoreJobInput
- type DescribeRestoreJobOutput
- type DescribeRestoreJobRequest
- type DescribeRestoreJobResponse
- type ExportBackupPlanTemplateInput
- type ExportBackupPlanTemplateOutput
- type ExportBackupPlanTemplateRequest
- type ExportBackupPlanTemplateResponse
- type GetBackupPlanFromJSONInput
- type GetBackupPlanFromJSONOutput
- type GetBackupPlanFromJSONRequest
- type GetBackupPlanFromJSONResponse
- type GetBackupPlanFromTemplateInput
- type GetBackupPlanFromTemplateOutput
- type GetBackupPlanFromTemplateRequest
- type GetBackupPlanFromTemplateResponse
- type GetBackupPlanInput
- type GetBackupPlanOutput
- type GetBackupPlanRequest
- type GetBackupPlanResponse
- type GetBackupSelectionInput
- type GetBackupSelectionOutput
- type GetBackupSelectionRequest
- type GetBackupSelectionResponse
- type GetBackupVaultAccessPolicyInput
- type GetBackupVaultAccessPolicyOutput
- type GetBackupVaultAccessPolicyRequest
- type GetBackupVaultAccessPolicyResponse
- type GetBackupVaultNotificationsInput
- type GetBackupVaultNotificationsOutput
- type GetBackupVaultNotificationsRequest
- type GetBackupVaultNotificationsResponse
- type GetRecoveryPointRestoreMetadataInput
- type GetRecoveryPointRestoreMetadataOutput
- type GetRecoveryPointRestoreMetadataRequest
- type GetRecoveryPointRestoreMetadataResponse
- type GetSupportedResourceTypesInput
- type GetSupportedResourceTypesOutput
- type GetSupportedResourceTypesRequest
- type GetSupportedResourceTypesResponse
- type Lifecycle
- type ListBackupJobsInput
- type ListBackupJobsOutput
- type ListBackupJobsPaginator
- type ListBackupJobsRequest
- type ListBackupJobsResponse
- type ListBackupPlanTemplatesInput
- type ListBackupPlanTemplatesOutput
- type ListBackupPlanTemplatesPaginator
- type ListBackupPlanTemplatesRequest
- type ListBackupPlanTemplatesResponse
- type ListBackupPlanVersionsInput
- type ListBackupPlanVersionsOutput
- type ListBackupPlanVersionsPaginator
- type ListBackupPlanVersionsRequest
- type ListBackupPlanVersionsResponse
- type ListBackupPlansInput
- type ListBackupPlansOutput
- type ListBackupPlansPaginator
- type ListBackupPlansRequest
- type ListBackupPlansResponse
- type ListBackupSelectionsInput
- type ListBackupSelectionsOutput
- type ListBackupSelectionsPaginator
- type ListBackupSelectionsRequest
- type ListBackupSelectionsResponse
- type ListBackupVaultsInput
- type ListBackupVaultsOutput
- type ListBackupVaultsPaginator
- type ListBackupVaultsRequest
- type ListBackupVaultsResponse
- type ListCopyJobsInput
- type ListCopyJobsOutput
- type ListCopyJobsPaginator
- type ListCopyJobsRequest
- type ListCopyJobsResponse
- type ListProtectedResourcesInput
- type ListProtectedResourcesOutput
- type ListProtectedResourcesPaginator
- type ListProtectedResourcesRequest
- type ListProtectedResourcesResponse
- type ListRecoveryPointsByBackupVaultInput
- type ListRecoveryPointsByBackupVaultOutput
- type ListRecoveryPointsByBackupVaultPaginator
- type ListRecoveryPointsByBackupVaultRequest
- type ListRecoveryPointsByBackupVaultResponse
- type ListRecoveryPointsByResourceInput
- type ListRecoveryPointsByResourceOutput
- type ListRecoveryPointsByResourcePaginator
- type ListRecoveryPointsByResourceRequest
- type ListRecoveryPointsByResourceResponse
- type ListRestoreJobsInput
- type ListRestoreJobsOutput
- type ListRestoreJobsPaginator
- type ListRestoreJobsRequest
- type ListRestoreJobsResponse
- type ListTagsInput
- type ListTagsOutput
- type ListTagsPaginator
- type ListTagsRequest
- type ListTagsResponse
- type ProtectedResource
- type PutBackupVaultAccessPolicyInput
- type PutBackupVaultAccessPolicyOutput
- type PutBackupVaultAccessPolicyRequest
- type PutBackupVaultAccessPolicyResponse
- type PutBackupVaultNotificationsInput
- type PutBackupVaultNotificationsOutput
- type PutBackupVaultNotificationsRequest
- type PutBackupVaultNotificationsResponse
- type RecoveryPointByBackupVault
- type RecoveryPointByResource
- type RecoveryPointCreator
- type RecoveryPointStatus
- type RestoreJobStatus
- type RestoreJobsListMember
- type StartBackupJobInput
- type StartBackupJobOutput
- type StartBackupJobRequest
- type StartBackupJobResponse
- type StartCopyJobInput
- type StartCopyJobOutput
- type StartCopyJobRequest
- type StartCopyJobResponse
- type StartRestoreJobInput
- type StartRestoreJobOutput
- type StartRestoreJobRequest
- type StartRestoreJobResponse
- type StopBackupJobInput
- type StopBackupJobOutput
- type StopBackupJobRequest
- type StopBackupJobResponse
- type StorageClass
- type TagResourceInput
- type TagResourceOutput
- type TagResourceRequest
- type TagResourceResponse
- type UntagResourceInput
- type UntagResourceOutput
- type UntagResourceRequest
- type UntagResourceResponse
- type UpdateBackupPlanInput
- type UpdateBackupPlanOutput
- type UpdateBackupPlanRequest
- type UpdateBackupPlanResponse
- type UpdateRecoveryPointLifecycleInput
- type UpdateRecoveryPointLifecycleOutput
- type UpdateRecoveryPointLifecycleRequest
- type UpdateRecoveryPointLifecycleResponse
Constants ¶
const ( ServiceName = "AWS Backup" // Service's name ServiceID = "Backup" // Service's identifier EndpointsID = "backup" // Service's Endpoint identifier )
const ( // ErrCodeAlreadyExistsException for service response error code // "AlreadyExistsException". // // The required resource already exists. ErrCodeAlreadyExistsException = "AlreadyExistsException" // ErrCodeDependencyFailureException for service response error code // "DependencyFailureException". // // A dependent AWS service or resource returned an error to the AWS Backup service, // and the action cannot be completed. ErrCodeDependencyFailureException = "DependencyFailureException" // ErrCodeInvalidParameterValueException for service response error code // "InvalidParameterValueException". // // Indicates that something is wrong with a parameter's value. For example, // the value is out of range. ErrCodeInvalidParameterValueException = "InvalidParameterValueException" // ErrCodeInvalidRequestException for service response error code // "InvalidRequestException". // // Indicates that something is wrong with the input to the request. For example, // a parameter is of the wrong type. ErrCodeInvalidRequestException = "InvalidRequestException" // ErrCodeLimitExceededException for service response error code // "LimitExceededException". // // A limit in the request has been exceeded; for example, a maximum number of // items allowed in a request. ErrCodeLimitExceededException = "LimitExceededException" // ErrCodeMissingParameterValueException for service response error code // "MissingParameterValueException". // // Indicates that a required parameter is missing. ErrCodeMissingParameterValueException = "MissingParameterValueException" // ErrCodeResourceNotFoundException for service response error code // "ResourceNotFoundException". // // A resource that is required for the action doesn't exist. ErrCodeResourceNotFoundException = "ResourceNotFoundException" // "ServiceUnavailableException". // // The request failed due to a temporary failure of the server. ErrCodeServiceUnavailableException = "ServiceUnavailableException" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackupJob ¶ added in v0.9.0
type BackupJob struct { // Uniquely identifies a request to AWS Backup to back up a resource. BackupJobId *string `type:"string"` // The size, in bytes, of a backup. BackupSizeInBytes *int64 `type:"long"` // An Amazon Resource Name (ARN) that uniquely identifies a backup vault; for // example, arn:aws:backup:us-east-1:123456789012:vault:aBackupVault. BackupVaultArn *string `type:"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 `type:"string"` // The size in bytes transferred to a backup vault at the time that the job // status was queried. BytesTransferred *int64 `type:"long"` // The date and time 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 `type:"timestamp"` // Contains identifying information about the creation of a backup job, including // the BackupPlanArn, BackupPlanId, BackupPlanVersion, and BackupRuleId of the // backup plan used to create it. CreatedBy *RecoveryPointCreator `type:"structure"` // The date and time 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 `type:"timestamp"` // The date and time 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 `type:"timestamp"` // Specifies the IAM role ARN used to create the target recovery point; for // example, arn:aws:iam::123456789012:role/S3Access. IamRoleArn *string `type:"string"` // Contains an estimated percentage complete of a job at the time the job status // was queried. PercentDone *string `type:"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 `type:"string"` // An ARN that uniquely identifies a resource. The format of the ARN depends // on the resource type. ResourceArn *string `type:"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 `type:"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 `type:"timestamp"` // The current state of a resource recovery point. State BackupJobState `type:"string" enum:"true"` // A detailed message explaining the status of the job to back up a resource. StatusMessage *string `type:"string"` // contains filtered or unexported fields }
Contains detailed information about a backup job.
func (BackupJob) MarshalFields ¶ added in v0.9.0
func (s BackupJob) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
type BackupJobState ¶ added in v0.9.0
type BackupJobState string
const ( BackupJobStateCreated BackupJobState = "CREATED" BackupJobStatePending BackupJobState = "PENDING" BackupJobStateRunning BackupJobState = "RUNNING" BackupJobStateAborting BackupJobState = "ABORTING" BackupJobStateAborted BackupJobState = "ABORTED" BackupJobStateCompleted BackupJobState = "COMPLETED" BackupJobStateFailed BackupJobState = "FAILED" BackupJobStateExpired BackupJobState = "EXPIRED" )
Enum values for BackupJobState
func (BackupJobState) MarshalValue ¶ added in v0.9.0
func (enum BackupJobState) MarshalValue() (string, error)
func (BackupJobState) MarshalValueBuf ¶ added in v0.9.0
func (enum BackupJobState) MarshalValueBuf(b []byte) ([]byte, error)
type BackupPlan ¶ added in v0.9.0
type BackupPlan struct { // The display name of a backup plan. // // BackupPlanName is a required field BackupPlanName *string `type:"string" required:"true"` // An array of BackupRule objects, each of which specifies a scheduled task // that is used to back up a selection of resources. // // Rules is a required field Rules []BackupRule `type:"list" required:"true"` // contains filtered or unexported fields }
Contains an optional backup plan display name and an array of BackupRule objects, each of which specifies a backup rule. Each rule in a backup plan is a separate scheduled task and can back up a different selection of AWS resources.
func (BackupPlan) MarshalFields ¶ added in v0.9.0
func (s BackupPlan) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (BackupPlan) String ¶ added in v0.9.0
func (s BackupPlan) String() string
String returns the string representation
type BackupPlanInput ¶ added in v0.9.0
type BackupPlanInput struct { // The display name of a backup plan. // // BackupPlanName is a required field BackupPlanName *string `type:"string" required:"true"` // An array of BackupRule objects, each of which specifies a scheduled task // that is used to back up a selection of resources. // // Rules is a required field Rules []BackupRuleInput `type:"list" required:"true"` // contains filtered or unexported fields }
Contains an optional backup plan display name and an array of BackupRule objects, each of which specifies a backup rule. Each rule in a backup plan is a separate scheduled task and can back up a different selection of AWS resources.
func (BackupPlanInput) MarshalFields ¶ added in v0.9.0
func (s BackupPlanInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (BackupPlanInput) String ¶ added in v0.9.0
func (s BackupPlanInput) String() string
String returns the string representation
func (*BackupPlanInput) Validate ¶ added in v0.9.0
func (s *BackupPlanInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type BackupPlanTemplatesListMember ¶ added in v0.9.0
type BackupPlanTemplatesListMember struct { // Uniquely identifies a stored backup plan template. BackupPlanTemplateId *string `type:"string"` // The optional display name of a backup plan template. BackupPlanTemplateName *string `type:"string"` // contains filtered or unexported fields }
An object specifying metadata associated with a backup plan template.
func (BackupPlanTemplatesListMember) MarshalFields ¶ added in v0.9.0
func (s BackupPlanTemplatesListMember) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (BackupPlanTemplatesListMember) String ¶ added in v0.9.0
func (s BackupPlanTemplatesListMember) String() string
String returns the string representation
type BackupPlansListMember ¶ added in v0.9.0
type BackupPlansListMember 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 `type:"string"` // Uniquely identifies a backup plan. BackupPlanId *string `type:"string"` // The display name of a saved backup plan. BackupPlanName *string `type:"string"` // The date and time a resource 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 `type:"timestamp"` // A unique string that identifies the request and allows failed requests to // be retried without the risk of executing the operation twice. CreatorRequestId *string `type:"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 `type:"timestamp"` // The last time a job to back up resources was executed with this rule. 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 `type:"timestamp"` // Unique, randomly generated, Unicode, UTF-8 encoded strings that are at most // 1,024 bytes long. Version IDs cannot be edited. VersionId *string `type:"string"` // contains filtered or unexported fields }
Contains metadata about a backup plan.
func (BackupPlansListMember) MarshalFields ¶ added in v0.9.0
func (s BackupPlansListMember) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (BackupPlansListMember) String ¶ added in v0.9.0
func (s BackupPlansListMember) String() string
String returns the string representation
type BackupRule ¶ added in v0.9.0
type BackupRule struct { // A value in minutes after a backup job is successfully started before it must // be completed or it is canceled by AWS Backup. This value is optional. CompletionWindowMinutes *int64 `type:"long"` // An array of CopyAction objects, which contains the details of the copy operation. CopyActions []CopyAction `type:"list"` // 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 *Lifecycle `type:"structure"` // An array of key-value pair strings that are assigned to resources that are // associated with this rule when restored from backup. RecoveryPointTags map[string]string `type:"map" sensitive:"true"` // Uniquely identifies a rule that is used to schedule the backup of a selection // of resources. RuleId *string `type:"string"` // An optional display name for a backup rule. // // RuleName is a required field RuleName *string `type:"string" required:"true"` // A CRON expression specifying when AWS Backup initiates a backup job. ScheduleExpression *string `type:"string"` // An optional value that specifies a period of time in minutes after a backup // is scheduled before a job is canceled if it doesn't start successfully. StartWindowMinutes *int64 `type:"long"` // 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. // // TargetBackupVaultName is a required field TargetBackupVaultName *string `type:"string" required:"true"` // contains filtered or unexported fields }
Specifies a scheduled task used to back up a selection of resources.
func (BackupRule) MarshalFields ¶ added in v0.9.0
func (s BackupRule) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (BackupRule) String ¶ added in v0.9.0
func (s BackupRule) String() string
String returns the string representation
type BackupRuleInput ¶ added in v0.9.0
type BackupRuleInput struct { // The amount of time AWS Backup attempts a backup before canceling the job // and returning an error. CompletionWindowMinutes *int64 `type:"long"` // An array of CopyAction objects, which contains the details of the copy operation. CopyActions []CopyAction `type:"list"` // 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”. The “transition // to cold after days” setting cannot be changed after a backup has been transitioned // to cold. Lifecycle *Lifecycle `type:"structure"` // 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 `type:"map" sensitive:"true"` // >An optional display name for a backup rule. // // RuleName is a required field RuleName *string `type:"string" required:"true"` // A CRON expression specifying when AWS Backup initiates a backup job. ScheduleExpression *string `type:"string"` // The amount of time in minutes before beginning a backup. StartWindowMinutes *int64 `type:"long"` // 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. // // TargetBackupVaultName is a required field TargetBackupVaultName *string `type:"string" required:"true"` // contains filtered or unexported fields }
Specifies a scheduled task used to back up a selection of resources.
func (BackupRuleInput) MarshalFields ¶ added in v0.9.0
func (s BackupRuleInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (BackupRuleInput) String ¶ added in v0.9.0
func (s BackupRuleInput) String() string
String returns the string representation
func (*BackupRuleInput) Validate ¶ added in v0.9.0
func (s *BackupRuleInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type BackupSelection ¶ added in v0.9.0
type BackupSelection struct { // The ARN of the IAM role that AWS Backup uses to authenticate when restoring // the target resource; for example, arn:aws:iam::123456789012:role/S3Access. // // IamRoleArn is a required field IamRoleArn *string `type:"string" required:"true"` // An array of conditions used to specify a set of resources to assign to a // backup plan; for example, "STRINGEQUALS": {"ec2:ResourceTag/Department": // "accounting". ListOfTags []Condition `type:"list"` // An array of strings that contain Amazon Resource Names (ARNs) of resources // to assign to a backup plan. Resources []string `type:"list"` // The display name of a resource selection document. // // SelectionName is a required field SelectionName *string `type:"string" required:"true"` // contains filtered or unexported fields }
Used to specify a set of resources to a backup plan.
func (BackupSelection) MarshalFields ¶ added in v0.9.0
func (s BackupSelection) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (BackupSelection) String ¶ added in v0.9.0
func (s BackupSelection) String() string
String returns the string representation
func (*BackupSelection) Validate ¶ added in v0.9.0
func (s *BackupSelection) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type BackupSelectionsListMember ¶ added in v0.9.0
type BackupSelectionsListMember struct { // Uniquely identifies a backup plan. BackupPlanId *string `type:"string"` // The date and time 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 `type:"timestamp"` // A unique string that identifies the request and allows failed requests to // be retried without the risk of executing the operation twice. CreatorRequestId *string `type:"string"` // Specifies the IAM role Amazon Resource Name (ARN) to create the target recovery // point; for example, arn:aws:iam::123456789012:role/S3Access. IamRoleArn *string `type:"string"` // Uniquely identifies a request to assign a set of resources to a backup plan. SelectionId *string `type:"string"` // The display name of a resource selection document. SelectionName *string `type:"string"` // contains filtered or unexported fields }
Contains metadata about a BackupSelection object.
func (BackupSelectionsListMember) MarshalFields ¶ added in v0.9.0
func (s BackupSelectionsListMember) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (BackupSelectionsListMember) String ¶ added in v0.9.0
func (s BackupSelectionsListMember) String() string
String returns the string representation
type BackupVaultEvent ¶ added in v0.9.0
type BackupVaultEvent string
const ( BackupVaultEventBackupJobStarted BackupVaultEvent = "BACKUP_JOB_STARTED" BackupVaultEventBackupJobCompleted BackupVaultEvent = "BACKUP_JOB_COMPLETED" BackupVaultEventBackupJobSuccessful BackupVaultEvent = "BACKUP_JOB_SUCCESSFUL" BackupVaultEventBackupJobFailed BackupVaultEvent = "BACKUP_JOB_FAILED" BackupVaultEventBackupJobExpired BackupVaultEvent = "BACKUP_JOB_EXPIRED" BackupVaultEventRestoreJobStarted BackupVaultEvent = "RESTORE_JOB_STARTED" BackupVaultEventRestoreJobCompleted BackupVaultEvent = "RESTORE_JOB_COMPLETED" BackupVaultEventRestoreJobSuccessful BackupVaultEvent = "RESTORE_JOB_SUCCESSFUL" BackupVaultEventRestoreJobFailed BackupVaultEvent = "RESTORE_JOB_FAILED" BackupVaultEventCopyJobStarted BackupVaultEvent = "COPY_JOB_STARTED" BackupVaultEventCopyJobSuccessful BackupVaultEvent = "COPY_JOB_SUCCESSFUL" BackupVaultEventCopyJobFailed BackupVaultEvent = "COPY_JOB_FAILED" BackupVaultEventRecoveryPointModified BackupVaultEvent = "RECOVERY_POINT_MODIFIED" BackupVaultEventBackupPlanCreated BackupVaultEvent = "BACKUP_PLAN_CREATED" BackupVaultEventBackupPlanModified BackupVaultEvent = "BACKUP_PLAN_MODIFIED" )
Enum values for BackupVaultEvent
func (BackupVaultEvent) MarshalValue ¶ added in v0.9.0
func (enum BackupVaultEvent) MarshalValue() (string, error)
func (BackupVaultEvent) MarshalValueBuf ¶ added in v0.9.0
func (enum BackupVaultEvent) MarshalValueBuf(b []byte) ([]byte, error)
type BackupVaultListMember ¶ added in v0.9.0
type BackupVaultListMember 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 `type:"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 `type:"string"` // The date and time a resource backup 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 `type:"timestamp"` // A unique string that identifies the request and allows failed requests to // be retried without the risk of executing the operation twice. CreatorRequestId *string `type:"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:"string"` // The number of recovery points that are stored in a backup vault. NumberOfRecoveryPoints *int64 `type:"long"` // contains filtered or unexported fields }
Contains metadata about a backup vault.
func (BackupVaultListMember) MarshalFields ¶ added in v0.9.0
func (s BackupVaultListMember) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (BackupVaultListMember) String ¶ added in v0.9.0
func (s BackupVaultListMember) String() string
String returns the string representation
type CalculatedLifecycle ¶
type CalculatedLifecycle struct { // A timestamp that specifies when to delete a recovery point. DeleteAt *time.Time `type:"timestamp"` // A timestamp that specifies when to transition a recovery point to cold storage. MoveToColdStorageAt *time.Time `type:"timestamp"` // contains filtered or unexported fields }
Contains DeleteAt and MoveToColdStorageAt timestamps, which are used to specify a lifecycle for 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.
func (CalculatedLifecycle) MarshalFields ¶
func (s CalculatedLifecycle) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (CalculatedLifecycle) String ¶
func (s CalculatedLifecycle) String() string
String returns the string representation
type Client ¶ added in v0.9.0
Client provides the API operation methods for making requests to AWS Backup. See this package's package overview docs for details on the service.
The client's methods are safe to use concurrently. It is not safe to modify mutate any of the struct's properties though.
func New ¶
New creates a new instance of the client from the provided Config.
Example:
// Create a client from just a config. svc := backup.New(myConfig)
func (*Client) CreateBackupPlanRequest ¶ added in v0.9.0
func (c *Client) CreateBackupPlanRequest(input *CreateBackupPlanInput) CreateBackupPlanRequest
CreateBackupPlanRequest returns a request value for making API operation for AWS Backup.
Backup plans are documents that contain information that AWS Backup uses to schedule tasks that create recovery points of resources.
If you call CreateBackupPlan with a plan that already exists, an AlreadyExistsException is returned.
// Example sending a request using CreateBackupPlanRequest. req := client.CreateBackupPlanRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/CreateBackupPlan
func (*Client) CreateBackupSelectionRequest ¶ added in v0.9.0
func (c *Client) CreateBackupSelectionRequest(input *CreateBackupSelectionInput) CreateBackupSelectionRequest
CreateBackupSelectionRequest returns a request value for making API operation for AWS Backup.
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.
// Example sending a request using CreateBackupSelectionRequest. req := client.CreateBackupSelectionRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/CreateBackupSelection
func (*Client) CreateBackupVaultRequest ¶ added in v0.9.0
func (c *Client) CreateBackupVaultRequest(input *CreateBackupVaultInput) CreateBackupVaultRequest
CreateBackupVaultRequest returns a request value for making API operation for AWS Backup.
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.
// Example sending a request using CreateBackupVaultRequest. req := client.CreateBackupVaultRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/CreateBackupVault
func (*Client) DeleteBackupPlanRequest ¶ added in v0.9.0
func (c *Client) DeleteBackupPlanRequest(input *DeleteBackupPlanInput) DeleteBackupPlanRequest
DeleteBackupPlanRequest returns a request value for making API operation for AWS Backup.
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.
// Example sending a request using DeleteBackupPlanRequest. req := client.DeleteBackupPlanRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/DeleteBackupPlan
func (*Client) DeleteBackupSelectionRequest ¶ added in v0.9.0
func (c *Client) DeleteBackupSelectionRequest(input *DeleteBackupSelectionInput) DeleteBackupSelectionRequest
DeleteBackupSelectionRequest returns a request value for making API operation for AWS Backup.
Deletes the resource selection associated with a backup plan that is specified by the SelectionId.
// Example sending a request using DeleteBackupSelectionRequest. req := client.DeleteBackupSelectionRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/DeleteBackupSelection
func (*Client) DeleteBackupVaultAccessPolicyRequest ¶ added in v0.9.0
func (c *Client) DeleteBackupVaultAccessPolicyRequest(input *DeleteBackupVaultAccessPolicyInput) DeleteBackupVaultAccessPolicyRequest
DeleteBackupVaultAccessPolicyRequest returns a request value for making API operation for AWS Backup.
Deletes the policy document that manages permissions on a backup vault.
// Example sending a request using DeleteBackupVaultAccessPolicyRequest. req := client.DeleteBackupVaultAccessPolicyRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/DeleteBackupVaultAccessPolicy
func (*Client) DeleteBackupVaultNotificationsRequest ¶ added in v0.9.0
func (c *Client) DeleteBackupVaultNotificationsRequest(input *DeleteBackupVaultNotificationsInput) DeleteBackupVaultNotificationsRequest
DeleteBackupVaultNotificationsRequest returns a request value for making API operation for AWS Backup.
Deletes event notifications for the specified backup vault.
// Example sending a request using DeleteBackupVaultNotificationsRequest. req := client.DeleteBackupVaultNotificationsRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/DeleteBackupVaultNotifications
func (*Client) DeleteBackupVaultRequest ¶ added in v0.9.0
func (c *Client) DeleteBackupVaultRequest(input *DeleteBackupVaultInput) DeleteBackupVaultRequest
DeleteBackupVaultRequest returns a request value for making API operation for AWS Backup.
Deletes the backup vault identified by its name. A vault can be deleted only if it is empty.
// Example sending a request using DeleteBackupVaultRequest. req := client.DeleteBackupVaultRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/DeleteBackupVault
func (*Client) DeleteRecoveryPointRequest ¶ added in v0.9.0
func (c *Client) DeleteRecoveryPointRequest(input *DeleteRecoveryPointInput) DeleteRecoveryPointRequest
DeleteRecoveryPointRequest returns a request value for making API operation for AWS Backup.
Deletes the recovery point specified by a recovery point ID.
// Example sending a request using DeleteRecoveryPointRequest. req := client.DeleteRecoveryPointRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/DeleteRecoveryPoint
func (*Client) DescribeBackupJobRequest ¶ added in v0.9.0
func (c *Client) DescribeBackupJobRequest(input *DescribeBackupJobInput) DescribeBackupJobRequest
DescribeBackupJobRequest returns a request value for making API operation for AWS Backup.
Returns metadata associated with creating a backup of a resource.
// Example sending a request using DescribeBackupJobRequest. req := client.DescribeBackupJobRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/DescribeBackupJob
func (*Client) DescribeBackupVaultRequest ¶ added in v0.9.0
func (c *Client) DescribeBackupVaultRequest(input *DescribeBackupVaultInput) DescribeBackupVaultRequest
DescribeBackupVaultRequest returns a request value for making API operation for AWS Backup.
Returns metadata about a backup vault specified by its name.
// Example sending a request using DescribeBackupVaultRequest. req := client.DescribeBackupVaultRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/DescribeBackupVault
func (*Client) DescribeCopyJobRequest ¶ added in v0.19.0
func (c *Client) DescribeCopyJobRequest(input *DescribeCopyJobInput) DescribeCopyJobRequest
DescribeCopyJobRequest returns a request value for making API operation for AWS Backup.
Returns metadata associated with creating a copy of a resource.
// Example sending a request using DescribeCopyJobRequest. req := client.DescribeCopyJobRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/DescribeCopyJob
func (*Client) DescribeProtectedResourceRequest ¶ added in v0.9.0
func (c *Client) DescribeProtectedResourceRequest(input *DescribeProtectedResourceInput) DescribeProtectedResourceRequest
DescribeProtectedResourceRequest returns a request value for making API operation for AWS Backup.
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.
// Example sending a request using DescribeProtectedResourceRequest. req := client.DescribeProtectedResourceRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/DescribeProtectedResource
func (*Client) DescribeRecoveryPointRequest ¶ added in v0.9.0
func (c *Client) DescribeRecoveryPointRequest(input *DescribeRecoveryPointInput) DescribeRecoveryPointRequest
DescribeRecoveryPointRequest returns a request value for making API operation for AWS Backup.
Returns metadata associated with a recovery point, including ID, status, encryption, and lifecycle.
// Example sending a request using DescribeRecoveryPointRequest. req := client.DescribeRecoveryPointRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/DescribeRecoveryPoint
func (*Client) DescribeRestoreJobRequest ¶ added in v0.9.0
func (c *Client) DescribeRestoreJobRequest(input *DescribeRestoreJobInput) DescribeRestoreJobRequest
DescribeRestoreJobRequest returns a request value for making API operation for AWS Backup.
Returns metadata associated with a restore job that is specified by a job ID.
// Example sending a request using DescribeRestoreJobRequest. req := client.DescribeRestoreJobRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/DescribeRestoreJob
func (*Client) ExportBackupPlanTemplateRequest ¶ added in v0.9.0
func (c *Client) ExportBackupPlanTemplateRequest(input *ExportBackupPlanTemplateInput) ExportBackupPlanTemplateRequest
ExportBackupPlanTemplateRequest returns a request value for making API operation for AWS Backup.
Returns the backup plan that is specified by the plan ID as a backup template.
// Example sending a request using ExportBackupPlanTemplateRequest. req := client.ExportBackupPlanTemplateRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/ExportBackupPlanTemplate
func (*Client) GetBackupPlanFromJSONRequest ¶ added in v0.9.0
func (c *Client) GetBackupPlanFromJSONRequest(input *GetBackupPlanFromJSONInput) GetBackupPlanFromJSONRequest
GetBackupPlanFromJSONRequest returns a request value for making API operation for AWS Backup.
Returns a valid JSON document specifying a backup plan or an error.
// Example sending a request using GetBackupPlanFromJSONRequest. req := client.GetBackupPlanFromJSONRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/GetBackupPlanFromJSON
func (*Client) GetBackupPlanFromTemplateRequest ¶ added in v0.9.0
func (c *Client) GetBackupPlanFromTemplateRequest(input *GetBackupPlanFromTemplateInput) GetBackupPlanFromTemplateRequest
GetBackupPlanFromTemplateRequest returns a request value for making API operation for AWS Backup.
Returns the template specified by its templateId as a backup plan.
// Example sending a request using GetBackupPlanFromTemplateRequest. req := client.GetBackupPlanFromTemplateRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/GetBackupPlanFromTemplate
func (*Client) GetBackupPlanRequest ¶ added in v0.9.0
func (c *Client) GetBackupPlanRequest(input *GetBackupPlanInput) GetBackupPlanRequest
GetBackupPlanRequest returns a request value for making API operation for AWS Backup.
Returns the body of a backup plan in JSON format, in addition to plan metadata.
// Example sending a request using GetBackupPlanRequest. req := client.GetBackupPlanRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/GetBackupPlan
func (*Client) GetBackupSelectionRequest ¶ added in v0.9.0
func (c *Client) GetBackupSelectionRequest(input *GetBackupSelectionInput) GetBackupSelectionRequest
GetBackupSelectionRequest returns a request value for making API operation for AWS Backup.
Returns selection metadata and a document in JSON format that specifies a list of resources that are associated with a backup plan.
// Example sending a request using GetBackupSelectionRequest. req := client.GetBackupSelectionRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/GetBackupSelection
func (*Client) GetBackupVaultAccessPolicyRequest ¶ added in v0.9.0
func (c *Client) GetBackupVaultAccessPolicyRequest(input *GetBackupVaultAccessPolicyInput) GetBackupVaultAccessPolicyRequest
GetBackupVaultAccessPolicyRequest returns a request value for making API operation for AWS Backup.
Returns the access policy document that is associated with the named backup vault.
// Example sending a request using GetBackupVaultAccessPolicyRequest. req := client.GetBackupVaultAccessPolicyRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/GetBackupVaultAccessPolicy
func (*Client) GetBackupVaultNotificationsRequest ¶ added in v0.9.0
func (c *Client) GetBackupVaultNotificationsRequest(input *GetBackupVaultNotificationsInput) GetBackupVaultNotificationsRequest
GetBackupVaultNotificationsRequest returns a request value for making API operation for AWS Backup.
Returns event notifications for the specified backup vault.
// Example sending a request using GetBackupVaultNotificationsRequest. req := client.GetBackupVaultNotificationsRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/GetBackupVaultNotifications
func (*Client) GetRecoveryPointRestoreMetadataRequest ¶ added in v0.9.0
func (c *Client) GetRecoveryPointRestoreMetadataRequest(input *GetRecoveryPointRestoreMetadataInput) GetRecoveryPointRestoreMetadataRequest
GetRecoveryPointRestoreMetadataRequest returns a request value for making API operation for AWS Backup.
Returns a set of metadata key-value pairs that were used to create the backup.
// Example sending a request using GetRecoveryPointRestoreMetadataRequest. req := client.GetRecoveryPointRestoreMetadataRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/GetRecoveryPointRestoreMetadata
func (*Client) GetSupportedResourceTypesRequest ¶ added in v0.9.0
func (c *Client) GetSupportedResourceTypesRequest(input *GetSupportedResourceTypesInput) GetSupportedResourceTypesRequest
GetSupportedResourceTypesRequest returns a request value for making API operation for AWS Backup.
Returns the AWS resource types supported by AWS Backup.
// Example sending a request using GetSupportedResourceTypesRequest. req := client.GetSupportedResourceTypesRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/GetSupportedResourceTypes
func (*Client) ListBackupJobsRequest ¶ added in v0.9.0
func (c *Client) ListBackupJobsRequest(input *ListBackupJobsInput) ListBackupJobsRequest
ListBackupJobsRequest returns a request value for making API operation for AWS Backup.
Returns metadata about your backup jobs.
// Example sending a request using ListBackupJobsRequest. req := client.ListBackupJobsRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/ListBackupJobs
func (*Client) ListBackupPlanTemplatesRequest ¶ added in v0.9.0
func (c *Client) ListBackupPlanTemplatesRequest(input *ListBackupPlanTemplatesInput) ListBackupPlanTemplatesRequest
ListBackupPlanTemplatesRequest returns a request value for making API operation for AWS Backup.
Returns metadata of your saved backup plan templates, including the template ID, name, and the creation and deletion dates.
// Example sending a request using ListBackupPlanTemplatesRequest. req := client.ListBackupPlanTemplatesRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/ListBackupPlanTemplates
func (*Client) ListBackupPlanVersionsRequest ¶ added in v0.9.0
func (c *Client) ListBackupPlanVersionsRequest(input *ListBackupPlanVersionsInput) ListBackupPlanVersionsRequest
ListBackupPlanVersionsRequest returns a request value for making API operation for AWS Backup.
Returns version metadata of your backup plans, including Amazon Resource Names (ARNs), backup plan IDs, creation and deletion dates, plan names, and version IDs.
// Example sending a request using ListBackupPlanVersionsRequest. req := client.ListBackupPlanVersionsRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/ListBackupPlanVersions
func (*Client) ListBackupPlansRequest ¶ added in v0.9.0
func (c *Client) ListBackupPlansRequest(input *ListBackupPlansInput) ListBackupPlansRequest
ListBackupPlansRequest returns a request value for making API operation for AWS Backup.
Returns metadata of your saved backup plans, including Amazon Resource Names (ARNs), plan IDs, creation and deletion dates, version IDs, plan names, and creator request IDs.
// Example sending a request using ListBackupPlansRequest. req := client.ListBackupPlansRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/ListBackupPlans
func (*Client) ListBackupSelectionsRequest ¶ added in v0.9.0
func (c *Client) ListBackupSelectionsRequest(input *ListBackupSelectionsInput) ListBackupSelectionsRequest
ListBackupSelectionsRequest returns a request value for making API operation for AWS Backup.
Returns an array containing metadata of the resources associated with the target backup plan.
// Example sending a request using ListBackupSelectionsRequest. req := client.ListBackupSelectionsRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/ListBackupSelections
func (*Client) ListBackupVaultsRequest ¶ added in v0.9.0
func (c *Client) ListBackupVaultsRequest(input *ListBackupVaultsInput) ListBackupVaultsRequest
ListBackupVaultsRequest returns a request value for making API operation for AWS Backup.
Returns a list of recovery point storage containers along with information about them.
// Example sending a request using ListBackupVaultsRequest. req := client.ListBackupVaultsRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/ListBackupVaults
func (*Client) ListCopyJobsRequest ¶ added in v0.19.0
func (c *Client) ListCopyJobsRequest(input *ListCopyJobsInput) ListCopyJobsRequest
ListCopyJobsRequest returns a request value for making API operation for AWS Backup.
Returns metadata about your copy jobs.
// Example sending a request using ListCopyJobsRequest. req := client.ListCopyJobsRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/ListCopyJobs
func (*Client) ListProtectedResourcesRequest ¶ added in v0.9.0
func (c *Client) ListProtectedResourcesRequest(input *ListProtectedResourcesInput) ListProtectedResourcesRequest
ListProtectedResourcesRequest returns a request value for making API operation for AWS Backup.
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.
// Example sending a request using ListProtectedResourcesRequest. req := client.ListProtectedResourcesRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/ListProtectedResources
func (*Client) ListRecoveryPointsByBackupVaultRequest ¶ added in v0.9.0
func (c *Client) ListRecoveryPointsByBackupVaultRequest(input *ListRecoveryPointsByBackupVaultInput) ListRecoveryPointsByBackupVaultRequest
ListRecoveryPointsByBackupVaultRequest returns a request value for making API operation for AWS Backup.
Returns detailed information about the recovery points stored in a backup vault.
// Example sending a request using ListRecoveryPointsByBackupVaultRequest. req := client.ListRecoveryPointsByBackupVaultRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/ListRecoveryPointsByBackupVault
func (*Client) ListRecoveryPointsByResourceRequest ¶ added in v0.9.0
func (c *Client) ListRecoveryPointsByResourceRequest(input *ListRecoveryPointsByResourceInput) ListRecoveryPointsByResourceRequest
ListRecoveryPointsByResourceRequest returns a request value for making API operation for AWS Backup.
Returns detailed information about recovery points of the type specified by a resource Amazon Resource Name (ARN).
// Example sending a request using ListRecoveryPointsByResourceRequest. req := client.ListRecoveryPointsByResourceRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/ListRecoveryPointsByResource
func (*Client) ListRestoreJobsRequest ¶ added in v0.9.0
func (c *Client) ListRestoreJobsRequest(input *ListRestoreJobsInput) ListRestoreJobsRequest
ListRestoreJobsRequest returns a request value for making API operation for AWS Backup.
Returns a list of jobs that AWS Backup initiated to restore a saved resource, including metadata about the recovery process.
// Example sending a request using ListRestoreJobsRequest. req := client.ListRestoreJobsRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/ListRestoreJobs
func (*Client) ListTagsRequest ¶ added in v0.9.0
func (c *Client) ListTagsRequest(input *ListTagsInput) ListTagsRequest
ListTagsRequest returns a request value for making API operation for AWS Backup.
Returns a list of key-value pairs assigned to a target recovery point, backup plan, or backup vault.
// Example sending a request using ListTagsRequest. req := client.ListTagsRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/ListTags
func (*Client) PutBackupVaultAccessPolicyRequest ¶ added in v0.9.0
func (c *Client) PutBackupVaultAccessPolicyRequest(input *PutBackupVaultAccessPolicyInput) PutBackupVaultAccessPolicyRequest
PutBackupVaultAccessPolicyRequest returns a request value for making API operation for AWS Backup.
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.
// Example sending a request using PutBackupVaultAccessPolicyRequest. req := client.PutBackupVaultAccessPolicyRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/PutBackupVaultAccessPolicy
func (*Client) PutBackupVaultNotificationsRequest ¶ added in v0.9.0
func (c *Client) PutBackupVaultNotificationsRequest(input *PutBackupVaultNotificationsInput) PutBackupVaultNotificationsRequest
PutBackupVaultNotificationsRequest returns a request value for making API operation for AWS Backup.
Turns on notifications on a backup vault for the specified topic and events.
// Example sending a request using PutBackupVaultNotificationsRequest. req := client.PutBackupVaultNotificationsRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/PutBackupVaultNotifications
func (*Client) StartBackupJobRequest ¶ added in v0.9.0
func (c *Client) StartBackupJobRequest(input *StartBackupJobInput) StartBackupJobRequest
StartBackupJobRequest returns a request value for making API operation for AWS Backup.
Starts a job to create a one-time backup of the specified resource.
// Example sending a request using StartBackupJobRequest. req := client.StartBackupJobRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/StartBackupJob
func (*Client) StartCopyJobRequest ¶ added in v0.19.0
func (c *Client) StartCopyJobRequest(input *StartCopyJobInput) StartCopyJobRequest
StartCopyJobRequest returns a request value for making API operation for AWS Backup.
Starts a job to create a one-time copy of the specified resource.
// Example sending a request using StartCopyJobRequest. req := client.StartCopyJobRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/StartCopyJob
func (*Client) StartRestoreJobRequest ¶ added in v0.9.0
func (c *Client) StartRestoreJobRequest(input *StartRestoreJobInput) StartRestoreJobRequest
StartRestoreJobRequest returns a request value for making API operation for AWS Backup.
Recovers the saved resource identified by an Amazon Resource Name (ARN).
If the resource ARN is included in the request, then the last complete backup of that resource is recovered. If the ARN of a recovery point is supplied, then that recovery point is restored.
// Example sending a request using StartRestoreJobRequest. req := client.StartRestoreJobRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/StartRestoreJob
func (*Client) StopBackupJobRequest ¶ added in v0.9.0
func (c *Client) StopBackupJobRequest(input *StopBackupJobInput) StopBackupJobRequest
StopBackupJobRequest returns a request value for making API operation for AWS Backup.
Attempts to cancel a job to create a one-time backup of a resource.
// Example sending a request using StopBackupJobRequest. req := client.StopBackupJobRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/StopBackupJob
func (*Client) TagResourceRequest ¶ added in v0.9.0
func (c *Client) TagResourceRequest(input *TagResourceInput) TagResourceRequest
TagResourceRequest returns a request value for making API operation for AWS Backup.
Assigns a set of key-value pairs to a recovery point, backup plan, or backup vault identified by an Amazon Resource Name (ARN).
// Example sending a request using TagResourceRequest. req := client.TagResourceRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/TagResource
func (*Client) UntagResourceRequest ¶ added in v0.9.0
func (c *Client) UntagResourceRequest(input *UntagResourceInput) UntagResourceRequest
UntagResourceRequest returns a request value for making API operation for AWS Backup.
Removes a set of key-value pairs from a recovery point, backup plan, or backup vault identified by an Amazon Resource Name (ARN)
// Example sending a request using UntagResourceRequest. req := client.UntagResourceRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/UntagResource
func (*Client) UpdateBackupPlanRequest ¶ added in v0.9.0
func (c *Client) UpdateBackupPlanRequest(input *UpdateBackupPlanInput) UpdateBackupPlanRequest
UpdateBackupPlanRequest returns a request value for making API operation for AWS Backup.
Replaces the body of a saved backup plan identified by its backupPlanId with the input document in JSON format. The new version is uniquely identified by a VersionId.
// Example sending a request using UpdateBackupPlanRequest. req := client.UpdateBackupPlanRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/UpdateBackupPlan
func (*Client) UpdateRecoveryPointLifecycleRequest ¶ added in v0.9.0
func (c *Client) UpdateRecoveryPointLifecycleRequest(input *UpdateRecoveryPointLifecycleInput) UpdateRecoveryPointLifecycleRequest
UpdateRecoveryPointLifecycleRequest returns a request value for making API operation for AWS Backup.
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.
// Example sending a request using UpdateRecoveryPointLifecycleRequest. req := client.UpdateRecoveryPointLifecycleRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/UpdateRecoveryPointLifecycle
type Condition ¶
type Condition struct { // The key in a key-value pair. For example, in "ec2:ResourceTag/Department": // "accounting", "ec2:ResourceTag/Department" is the key. // // ConditionKey is a required field ConditionKey *string `type:"string" required:"true"` // An operation, such as STRINGEQUALS, that is applied to a key-value pair used // to filter resources in a selection. // // ConditionType is a required field ConditionType ConditionType `type:"string" required:"true" enum:"true"` // The value in a key-value pair. For example, in "ec2:ResourceTag/Department": // "accounting", "accounting" is the value. // // ConditionValue is a required field ConditionValue *string `type:"string" required:"true"` // contains filtered or unexported fields }
Contains an array of triplets made up of a condition type (such as STRINGEQUALS), a key, and a value. Conditions are used to filter resources in a selection that is assigned to a backup plan.
func (Condition) MarshalFields ¶
func (s Condition) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
type ConditionType ¶
type ConditionType string
const (
ConditionTypeStringequals ConditionType = "STRINGEQUALS"
)
Enum values for ConditionType
func (ConditionType) MarshalValue ¶
func (enum ConditionType) MarshalValue() (string, error)
func (ConditionType) MarshalValueBuf ¶
func (enum ConditionType) MarshalValueBuf(b []byte) ([]byte, error)
type CopyAction ¶ added in v0.19.0
type CopyAction struct { // An Amazon Resource Name (ARN) that uniquely identifies the destination backup // vault for the copied backup. For example, arn:aws:backup:us-east-1:123456789012:vault:aBackupVault. // // DestinationBackupVaultArn is a required field DestinationBackupVaultArn *string `type:"string" required:"true"` // 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. Lifecycle *Lifecycle `type:"structure"` // contains filtered or unexported fields }
The details of the copy operation.
func (CopyAction) MarshalFields ¶ added in v0.19.0
func (s CopyAction) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (CopyAction) String ¶ added in v0.19.0
func (s CopyAction) String() string
String returns the string representation
func (*CopyAction) Validate ¶ added in v0.19.0
func (s *CopyAction) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type CopyJob ¶ added in v0.19.0
type CopyJob struct { // The size, in bytes, of a copy job. BackupSizeInBytes *int64 `type:"long"` // The date and time a job to create a copy 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 `type:"timestamp"` // Uniquely identifies a request to AWS Backup to copy a resource. CopyJobId *string `type:"string"` // Contains information about the backup plan and rule that AWS Backup used // to initiate the recovery point backup. CreatedBy *RecoveryPointCreator `type:"structure"` // The date and time 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 `type:"timestamp"` // An Amazon Resource Name (ARN) that uniquely identifies a destination copy // vault; for example, arn:aws:backup:us-east-1:123456789012:vault:aBackupVault. DestinationBackupVaultArn *string `type:"string"` // An ARN that uniquely identifies a destination recovery point; for example, // arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45. DestinationRecoveryPointArn *string `type:"string"` // Specifies the IAM role ARN used to copy the target recovery point; for example, // arn:aws:iam::123456789012:role/S3Access. IamRoleArn *string `type:"string"` // The type of AWS resource to be copied; for example, an Amazon Elastic Block // Store (Amazon EBS) volume or an Amazon Relational Database Service (Amazon // RDS) database. ResourceArn *string `type:"string"` // The type of AWS resource to be copied; for example, an Amazon Elastic Block // Store (Amazon EBS) volume or an Amazon Relational Database Service (Amazon // RDS) database. ResourceType *string `type:"string"` // An Amazon Resource Name (ARN) that uniquely identifies a source copy vault; // for example, arn:aws:backup:us-east-1:123456789012:vault:aBackupVault. SourceBackupVaultArn *string `type:"string"` // An ARN that uniquely identifies a source recovery point; for example, arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45. SourceRecoveryPointArn *string `type:"string"` // The current state of a resource recovery point. State CopyJobState `type:"string" enum:"true"` // A detailed message explaining the status of the job that to copy a resource. StatusMessage *string `type:"string"` // contains filtered or unexported fields }
Contains detailed information about a copy job.
func (CopyJob) MarshalFields ¶ added in v0.19.0
func (s CopyJob) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
type CopyJobState ¶ added in v0.19.0
type CopyJobState string
const ( CopyJobStateCreated CopyJobState = "CREATED" CopyJobStateRunning CopyJobState = "RUNNING" CopyJobStateCompleted CopyJobState = "COMPLETED" CopyJobStateFailed CopyJobState = "FAILED" )
Enum values for CopyJobState
func (CopyJobState) MarshalValue ¶ added in v0.19.0
func (enum CopyJobState) MarshalValue() (string, error)
func (CopyJobState) MarshalValueBuf ¶ added in v0.19.0
func (enum CopyJobState) MarshalValueBuf(b []byte) ([]byte, error)
type CreateBackupPlanInput ¶
type CreateBackupPlanInput struct { // Specifies the body of a backup plan. Includes a BackupPlanName and one or // more sets of Rules. // // BackupPlan is a required field BackupPlan *BackupPlanInput `type:"structure" required:"true"` // 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 `type:"map" sensitive:"true"` // Identifies the request and allows failed requests to be retried without the // risk of executing 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:"string"` // contains filtered or unexported fields }
func (CreateBackupPlanInput) MarshalFields ¶
func (s CreateBackupPlanInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (CreateBackupPlanInput) String ¶
func (s CreateBackupPlanInput) String() string
String returns the string representation
func (*CreateBackupPlanInput) Validate ¶
func (s *CreateBackupPlanInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type CreateBackupPlanOutput ¶
type CreateBackupPlanOutput 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 `type:"string"` // Uniquely identifies a backup plan. BackupPlanId *string `type:"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 `type:"timestamp"` // Unique, randomly generated, Unicode, UTF-8 encoded strings that are at most // 1024 bytes long. They cannot be edited. VersionId *string `type:"string"` // contains filtered or unexported fields }
func (CreateBackupPlanOutput) MarshalFields ¶
func (s CreateBackupPlanOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (CreateBackupPlanOutput) String ¶
func (s CreateBackupPlanOutput) String() string
String returns the string representation
type CreateBackupPlanRequest ¶
type CreateBackupPlanRequest struct { *aws.Request Input *CreateBackupPlanInput Copy func(*CreateBackupPlanInput) CreateBackupPlanRequest }
CreateBackupPlanRequest is the request type for the CreateBackupPlan API operation.
func (CreateBackupPlanRequest) Send ¶
func (r CreateBackupPlanRequest) Send(ctx context.Context) (*CreateBackupPlanResponse, error)
Send marshals and sends the CreateBackupPlan API request.
type CreateBackupPlanResponse ¶ added in v0.9.0
type CreateBackupPlanResponse struct { *CreateBackupPlanOutput // contains filtered or unexported fields }
CreateBackupPlanResponse is the response type for the CreateBackupPlan API operation.
func (*CreateBackupPlanResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *CreateBackupPlanResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the CreateBackupPlan request.
type CreateBackupSelectionInput ¶
type CreateBackupSelectionInput struct { // Uniquely identifies the backup plan to be associated with the selection of // resources. // // BackupPlanId is a required field BackupPlanId *string `location:"uri" locationName:"backupPlanId" type:"string" required:"true"` // Specifies the body of a request to assign a set of resources to a backup // plan. // // BackupSelection is a required field BackupSelection *BackupSelection `type:"structure" required:"true"` // A unique string that identifies the request and allows failed requests to // be retried without the risk of executing the operation twice. CreatorRequestId *string `type:"string"` // contains filtered or unexported fields }
func (CreateBackupSelectionInput) MarshalFields ¶
func (s CreateBackupSelectionInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (CreateBackupSelectionInput) String ¶
func (s CreateBackupSelectionInput) String() string
String returns the string representation
func (*CreateBackupSelectionInput) Validate ¶
func (s *CreateBackupSelectionInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type CreateBackupSelectionOutput ¶
type CreateBackupSelectionOutput struct { // Uniquely identifies a backup plan. BackupPlanId *string `type:"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 `type:"timestamp"` // Uniquely identifies the body of a request to assign a set of resources to // a backup plan. SelectionId *string `type:"string"` // contains filtered or unexported fields }
func (CreateBackupSelectionOutput) MarshalFields ¶
func (s CreateBackupSelectionOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (CreateBackupSelectionOutput) String ¶
func (s CreateBackupSelectionOutput) String() string
String returns the string representation
type CreateBackupSelectionRequest ¶
type CreateBackupSelectionRequest struct { *aws.Request Input *CreateBackupSelectionInput Copy func(*CreateBackupSelectionInput) CreateBackupSelectionRequest }
CreateBackupSelectionRequest is the request type for the CreateBackupSelection API operation.
func (CreateBackupSelectionRequest) Send ¶
func (r CreateBackupSelectionRequest) Send(ctx context.Context) (*CreateBackupSelectionResponse, error)
Send marshals and sends the CreateBackupSelection API request.
type CreateBackupSelectionResponse ¶ added in v0.9.0
type CreateBackupSelectionResponse struct { *CreateBackupSelectionOutput // contains filtered or unexported fields }
CreateBackupSelectionResponse is the response type for the CreateBackupSelection API operation.
func (*CreateBackupSelectionResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *CreateBackupSelectionResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the CreateBackupSelection request.
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 lowercase letters, // numbers, and hyphens. // // BackupVaultName is a required field BackupVaultName *string `location:"uri" locationName:"backupVaultName" type:"string" required:"true"` // Metadata that you can assign to help organize the resources that you create. // Each tag is a key-value pair. BackupVaultTags map[string]string `type:"map" sensitive:"true"` // A unique string that identifies the request and allows failed requests to // be retried without the risk of executing the operation twice. CreatorRequestId *string `type:"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:"string"` // contains filtered or unexported fields }
func (CreateBackupVaultInput) MarshalFields ¶
func (s CreateBackupVaultInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (CreateBackupVaultInput) String ¶
func (s CreateBackupVaultInput) String() string
String returns the string representation
func (*CreateBackupVaultInput) Validate ¶
func (s *CreateBackupVaultInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
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 `type:"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 `type:"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 `type:"timestamp"` // contains filtered or unexported fields }
func (CreateBackupVaultOutput) MarshalFields ¶
func (s CreateBackupVaultOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (CreateBackupVaultOutput) String ¶
func (s CreateBackupVaultOutput) String() string
String returns the string representation
type CreateBackupVaultRequest ¶
type CreateBackupVaultRequest struct { *aws.Request Input *CreateBackupVaultInput Copy func(*CreateBackupVaultInput) CreateBackupVaultRequest }
CreateBackupVaultRequest is the request type for the CreateBackupVault API operation.
func (CreateBackupVaultRequest) Send ¶
func (r CreateBackupVaultRequest) Send(ctx context.Context) (*CreateBackupVaultResponse, error)
Send marshals and sends the CreateBackupVault API request.
type CreateBackupVaultResponse ¶ added in v0.9.0
type CreateBackupVaultResponse struct { *CreateBackupVaultOutput // contains filtered or unexported fields }
CreateBackupVaultResponse is the response type for the CreateBackupVault API operation.
func (*CreateBackupVaultResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *CreateBackupVaultResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the CreateBackupVault request.
type DeleteBackupPlanInput ¶
type DeleteBackupPlanInput struct { // Uniquely identifies a backup plan. // // BackupPlanId is a required field BackupPlanId *string `location:"uri" locationName:"backupPlanId" type:"string" required:"true"` // contains filtered or unexported fields }
func (DeleteBackupPlanInput) MarshalFields ¶
func (s DeleteBackupPlanInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (DeleteBackupPlanInput) String ¶
func (s DeleteBackupPlanInput) String() string
String returns the string representation
func (*DeleteBackupPlanInput) Validate ¶
func (s *DeleteBackupPlanInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
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 `type:"string"` // Uniquely identifies a backup plan. BackupPlanId *string `type:"string"` // The date and time a backup plan is deleted, 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. DeletionDate *time.Time `type:"timestamp"` // Unique, randomly generated, Unicode, UTF-8 encoded strings that are at most // 1,024 bytes long. Version Ids cannot be edited. VersionId *string `type:"string"` // contains filtered or unexported fields }
func (DeleteBackupPlanOutput) MarshalFields ¶
func (s DeleteBackupPlanOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (DeleteBackupPlanOutput) String ¶
func (s DeleteBackupPlanOutput) String() string
String returns the string representation
type DeleteBackupPlanRequest ¶
type DeleteBackupPlanRequest struct { *aws.Request Input *DeleteBackupPlanInput Copy func(*DeleteBackupPlanInput) DeleteBackupPlanRequest }
DeleteBackupPlanRequest is the request type for the DeleteBackupPlan API operation.
func (DeleteBackupPlanRequest) Send ¶
func (r DeleteBackupPlanRequest) Send(ctx context.Context) (*DeleteBackupPlanResponse, error)
Send marshals and sends the DeleteBackupPlan API request.
type DeleteBackupPlanResponse ¶ added in v0.9.0
type DeleteBackupPlanResponse struct { *DeleteBackupPlanOutput // contains filtered or unexported fields }
DeleteBackupPlanResponse is the response type for the DeleteBackupPlan API operation.
func (*DeleteBackupPlanResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *DeleteBackupPlanResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the DeleteBackupPlan request.
type DeleteBackupSelectionInput ¶
type DeleteBackupSelectionInput struct { // Uniquely identifies a backup plan. // // BackupPlanId is a required field BackupPlanId *string `location:"uri" locationName:"backupPlanId" type:"string" required:"true"` // Uniquely identifies the body of a request to assign a set of resources to // a backup plan. // // SelectionId is a required field SelectionId *string `location:"uri" locationName:"selectionId" type:"string" required:"true"` // contains filtered or unexported fields }
func (DeleteBackupSelectionInput) MarshalFields ¶
func (s DeleteBackupSelectionInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (DeleteBackupSelectionInput) String ¶
func (s DeleteBackupSelectionInput) String() string
String returns the string representation
func (*DeleteBackupSelectionInput) Validate ¶
func (s *DeleteBackupSelectionInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DeleteBackupSelectionOutput ¶
type DeleteBackupSelectionOutput struct {
// contains filtered or unexported fields
}
func (DeleteBackupSelectionOutput) MarshalFields ¶
func (s DeleteBackupSelectionOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (DeleteBackupSelectionOutput) String ¶
func (s DeleteBackupSelectionOutput) String() string
String returns the string representation
type DeleteBackupSelectionRequest ¶
type DeleteBackupSelectionRequest struct { *aws.Request Input *DeleteBackupSelectionInput Copy func(*DeleteBackupSelectionInput) DeleteBackupSelectionRequest }
DeleteBackupSelectionRequest is the request type for the DeleteBackupSelection API operation.
func (DeleteBackupSelectionRequest) Send ¶
func (r DeleteBackupSelectionRequest) Send(ctx context.Context) (*DeleteBackupSelectionResponse, error)
Send marshals and sends the DeleteBackupSelection API request.
type DeleteBackupSelectionResponse ¶ added in v0.9.0
type DeleteBackupSelectionResponse struct { *DeleteBackupSelectionOutput // contains filtered or unexported fields }
DeleteBackupSelectionResponse is the response type for the DeleteBackupSelection API operation.
func (*DeleteBackupSelectionResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *DeleteBackupSelectionResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the DeleteBackupSelection request.
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. // // BackupVaultName is a required field BackupVaultName *string `location:"uri" locationName:"backupVaultName" type:"string" required:"true"` // contains filtered or unexported fields }
func (DeleteBackupVaultAccessPolicyInput) MarshalFields ¶
func (s DeleteBackupVaultAccessPolicyInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (DeleteBackupVaultAccessPolicyInput) String ¶
func (s DeleteBackupVaultAccessPolicyInput) String() string
String returns the string representation
func (*DeleteBackupVaultAccessPolicyInput) Validate ¶
func (s *DeleteBackupVaultAccessPolicyInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DeleteBackupVaultAccessPolicyOutput ¶
type DeleteBackupVaultAccessPolicyOutput struct {
// contains filtered or unexported fields
}
func (DeleteBackupVaultAccessPolicyOutput) MarshalFields ¶
func (s DeleteBackupVaultAccessPolicyOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (DeleteBackupVaultAccessPolicyOutput) String ¶
func (s DeleteBackupVaultAccessPolicyOutput) String() string
String returns the string representation
type DeleteBackupVaultAccessPolicyRequest ¶
type DeleteBackupVaultAccessPolicyRequest struct { *aws.Request Input *DeleteBackupVaultAccessPolicyInput Copy func(*DeleteBackupVaultAccessPolicyInput) DeleteBackupVaultAccessPolicyRequest }
DeleteBackupVaultAccessPolicyRequest is the request type for the DeleteBackupVaultAccessPolicy API operation.
func (DeleteBackupVaultAccessPolicyRequest) Send ¶
func (r DeleteBackupVaultAccessPolicyRequest) Send(ctx context.Context) (*DeleteBackupVaultAccessPolicyResponse, error)
Send marshals and sends the DeleteBackupVaultAccessPolicy API request.
type DeleteBackupVaultAccessPolicyResponse ¶ added in v0.9.0
type DeleteBackupVaultAccessPolicyResponse struct { *DeleteBackupVaultAccessPolicyOutput // contains filtered or unexported fields }
DeleteBackupVaultAccessPolicyResponse is the response type for the DeleteBackupVaultAccessPolicy API operation.
func (*DeleteBackupVaultAccessPolicyResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *DeleteBackupVaultAccessPolicyResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the DeleteBackupVaultAccessPolicy request.
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 // theAWS Region where they are created. They consist of lowercase letters, // numbers, and hyphens. // // BackupVaultName is a required field BackupVaultName *string `location:"uri" locationName:"backupVaultName" type:"string" required:"true"` // contains filtered or unexported fields }
func (DeleteBackupVaultInput) MarshalFields ¶
func (s DeleteBackupVaultInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (DeleteBackupVaultInput) String ¶
func (s DeleteBackupVaultInput) String() string
String returns the string representation
func (*DeleteBackupVaultInput) Validate ¶
func (s *DeleteBackupVaultInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
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. // // BackupVaultName is a required field BackupVaultName *string `location:"uri" locationName:"backupVaultName" type:"string" required:"true"` // contains filtered or unexported fields }
func (DeleteBackupVaultNotificationsInput) MarshalFields ¶
func (s DeleteBackupVaultNotificationsInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (DeleteBackupVaultNotificationsInput) String ¶
func (s DeleteBackupVaultNotificationsInput) String() string
String returns the string representation
func (*DeleteBackupVaultNotificationsInput) Validate ¶
func (s *DeleteBackupVaultNotificationsInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DeleteBackupVaultNotificationsOutput ¶
type DeleteBackupVaultNotificationsOutput struct {
// contains filtered or unexported fields
}
func (DeleteBackupVaultNotificationsOutput) MarshalFields ¶
func (s DeleteBackupVaultNotificationsOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (DeleteBackupVaultNotificationsOutput) String ¶
func (s DeleteBackupVaultNotificationsOutput) String() string
String returns the string representation
type DeleteBackupVaultNotificationsRequest ¶
type DeleteBackupVaultNotificationsRequest struct { *aws.Request Input *DeleteBackupVaultNotificationsInput Copy func(*DeleteBackupVaultNotificationsInput) DeleteBackupVaultNotificationsRequest }
DeleteBackupVaultNotificationsRequest is the request type for the DeleteBackupVaultNotifications API operation.
func (DeleteBackupVaultNotificationsRequest) Send ¶
func (r DeleteBackupVaultNotificationsRequest) Send(ctx context.Context) (*DeleteBackupVaultNotificationsResponse, error)
Send marshals and sends the DeleteBackupVaultNotifications API request.
type DeleteBackupVaultNotificationsResponse ¶ added in v0.9.0
type DeleteBackupVaultNotificationsResponse struct { *DeleteBackupVaultNotificationsOutput // contains filtered or unexported fields }
DeleteBackupVaultNotificationsResponse is the response type for the DeleteBackupVaultNotifications API operation.
func (*DeleteBackupVaultNotificationsResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *DeleteBackupVaultNotificationsResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the DeleteBackupVaultNotifications request.
type DeleteBackupVaultOutput ¶
type DeleteBackupVaultOutput struct {
// contains filtered or unexported fields
}
func (DeleteBackupVaultOutput) MarshalFields ¶
func (s DeleteBackupVaultOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (DeleteBackupVaultOutput) String ¶
func (s DeleteBackupVaultOutput) String() string
String returns the string representation
type DeleteBackupVaultRequest ¶
type DeleteBackupVaultRequest struct { *aws.Request Input *DeleteBackupVaultInput Copy func(*DeleteBackupVaultInput) DeleteBackupVaultRequest }
DeleteBackupVaultRequest is the request type for the DeleteBackupVault API operation.
func (DeleteBackupVaultRequest) Send ¶
func (r DeleteBackupVaultRequest) Send(ctx context.Context) (*DeleteBackupVaultResponse, error)
Send marshals and sends the DeleteBackupVault API request.
type DeleteBackupVaultResponse ¶ added in v0.9.0
type DeleteBackupVaultResponse struct { *DeleteBackupVaultOutput // contains filtered or unexported fields }
DeleteBackupVaultResponse is the response type for the DeleteBackupVault API operation.
func (*DeleteBackupVaultResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *DeleteBackupVaultResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the DeleteBackupVault request.
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. // // BackupVaultName is a required field BackupVaultName *string `location:"uri" locationName:"backupVaultName" type:"string" required:"true"` // 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 is a required field RecoveryPointArn *string `location:"uri" locationName:"recoveryPointArn" type:"string" required:"true"` // contains filtered or unexported fields }
func (DeleteRecoveryPointInput) MarshalFields ¶
func (s DeleteRecoveryPointInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (DeleteRecoveryPointInput) String ¶
func (s DeleteRecoveryPointInput) String() string
String returns the string representation
func (*DeleteRecoveryPointInput) Validate ¶
func (s *DeleteRecoveryPointInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DeleteRecoveryPointOutput ¶
type DeleteRecoveryPointOutput struct {
// contains filtered or unexported fields
}
func (DeleteRecoveryPointOutput) MarshalFields ¶
func (s DeleteRecoveryPointOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (DeleteRecoveryPointOutput) String ¶
func (s DeleteRecoveryPointOutput) String() string
String returns the string representation
type DeleteRecoveryPointRequest ¶
type DeleteRecoveryPointRequest struct { *aws.Request Input *DeleteRecoveryPointInput Copy func(*DeleteRecoveryPointInput) DeleteRecoveryPointRequest }
DeleteRecoveryPointRequest is the request type for the DeleteRecoveryPoint API operation.
func (DeleteRecoveryPointRequest) Send ¶
func (r DeleteRecoveryPointRequest) Send(ctx context.Context) (*DeleteRecoveryPointResponse, error)
Send marshals and sends the DeleteRecoveryPoint API request.
type DeleteRecoveryPointResponse ¶ added in v0.9.0
type DeleteRecoveryPointResponse struct { *DeleteRecoveryPointOutput // contains filtered or unexported fields }
DeleteRecoveryPointResponse is the response type for the DeleteRecoveryPoint API operation.
func (*DeleteRecoveryPointResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *DeleteRecoveryPointResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the DeleteRecoveryPoint request.
type DescribeBackupJobInput ¶
type DescribeBackupJobInput struct { // Uniquely identifies a request to AWS Backup to back up a resource. // // BackupJobId is a required field BackupJobId *string `location:"uri" locationName:"backupJobId" type:"string" required:"true"` // contains filtered or unexported fields }
func (DescribeBackupJobInput) MarshalFields ¶
func (s DescribeBackupJobInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (DescribeBackupJobInput) String ¶
func (s DescribeBackupJobInput) String() string
String returns the string representation
func (*DescribeBackupJobInput) Validate ¶
func (s *DescribeBackupJobInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DescribeBackupJobOutput ¶
type DescribeBackupJobOutput struct { // Uniquely identifies a request to AWS Backup to back up a resource. BackupJobId *string `type:"string"` // The size, in bytes, of a backup. BackupSizeInBytes *int64 `type:"long"` // An Amazon Resource Name (ARN) that uniquely identifies a backup vault; for // example, arn:aws:backup:us-east-1:123456789012:vault:aBackupVault. BackupVaultArn *string `type:"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 `type:"string"` // The size in bytes transferred to a backup vault at the time that the job // status was queried. BytesTransferred *int64 `type:"long"` // 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 CreationDate is // accurate to milliseconds. For example, the value 1516925490.087 represents // Friday, January 26, 2018 12:11:30.087 AM. CompletionDate *time.Time `type:"timestamp"` // 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 *RecoveryPointCreator `type:"structure"` // 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 `type:"timestamp"` // 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 `type:"timestamp"` // Specifies the IAM role ARN used to create the target recovery point; for // example, arn:aws:iam::123456789012:role/S3Access. IamRoleArn *string `type:"string"` // Contains an estimated percentage that is complete of a job at the time the // job status was queried. PercentDone *string `type:"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 `type:"string"` // An ARN that uniquely identifies a saved resource. The format of the ARN depends // on the resource type. ResourceArn *string `type:"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 `type:"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 `type:"timestamp"` // The current state of a resource recovery point. State BackupJobState `type:"string" enum:"true"` // A detailed message explaining the status of the job to back up a resource. StatusMessage *string `type:"string"` // contains filtered or unexported fields }
func (DescribeBackupJobOutput) MarshalFields ¶
func (s DescribeBackupJobOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (DescribeBackupJobOutput) String ¶
func (s DescribeBackupJobOutput) String() string
String returns the string representation
type DescribeBackupJobRequest ¶
type DescribeBackupJobRequest struct { *aws.Request Input *DescribeBackupJobInput Copy func(*DescribeBackupJobInput) DescribeBackupJobRequest }
DescribeBackupJobRequest is the request type for the DescribeBackupJob API operation.
func (DescribeBackupJobRequest) Send ¶
func (r DescribeBackupJobRequest) Send(ctx context.Context) (*DescribeBackupJobResponse, error)
Send marshals and sends the DescribeBackupJob API request.
type DescribeBackupJobResponse ¶ added in v0.9.0
type DescribeBackupJobResponse struct { *DescribeBackupJobOutput // contains filtered or unexported fields }
DescribeBackupJobResponse is the response type for the DescribeBackupJob API operation.
func (*DescribeBackupJobResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *DescribeBackupJobResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the DescribeBackupJob request.
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. // // BackupVaultName is a required field BackupVaultName *string `location:"uri" locationName:"backupVaultName" type:"string" required:"true"` // contains filtered or unexported fields }
func (DescribeBackupVaultInput) MarshalFields ¶
func (s DescribeBackupVaultInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (DescribeBackupVaultInput) String ¶
func (s DescribeBackupVaultInput) String() string
String returns the string representation
func (*DescribeBackupVaultInput) Validate ¶
func (s *DescribeBackupVaultInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
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 `type:"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 `type:"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 `type:"timestamp"` // A unique string that identifies the request and allows failed requests to // be retried without the risk of executing the operation twice. CreatorRequestId *string `type:"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:"string"` // The number of recovery points that are stored in a backup vault. NumberOfRecoveryPoints *int64 `type:"long"` // contains filtered or unexported fields }
func (DescribeBackupVaultOutput) MarshalFields ¶
func (s DescribeBackupVaultOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (DescribeBackupVaultOutput) String ¶
func (s DescribeBackupVaultOutput) String() string
String returns the string representation
type DescribeBackupVaultRequest ¶
type DescribeBackupVaultRequest struct { *aws.Request Input *DescribeBackupVaultInput Copy func(*DescribeBackupVaultInput) DescribeBackupVaultRequest }
DescribeBackupVaultRequest is the request type for the DescribeBackupVault API operation.
func (DescribeBackupVaultRequest) Send ¶
func (r DescribeBackupVaultRequest) Send(ctx context.Context) (*DescribeBackupVaultResponse, error)
Send marshals and sends the DescribeBackupVault API request.
type DescribeBackupVaultResponse ¶ added in v0.9.0
type DescribeBackupVaultResponse struct { *DescribeBackupVaultOutput // contains filtered or unexported fields }
DescribeBackupVaultResponse is the response type for the DescribeBackupVault API operation.
func (*DescribeBackupVaultResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *DescribeBackupVaultResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the DescribeBackupVault request.
type DescribeCopyJobInput ¶ added in v0.19.0
type DescribeCopyJobInput struct { // Uniquely identifies a request to AWS Backup to copy a resource. // // CopyJobId is a required field CopyJobId *string `location:"uri" locationName:"copyJobId" type:"string" required:"true"` // contains filtered or unexported fields }
func (DescribeCopyJobInput) MarshalFields ¶ added in v0.19.0
func (s DescribeCopyJobInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (DescribeCopyJobInput) String ¶ added in v0.19.0
func (s DescribeCopyJobInput) String() string
String returns the string representation
func (*DescribeCopyJobInput) Validate ¶ added in v0.19.0
func (s *DescribeCopyJobInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DescribeCopyJobOutput ¶ added in v0.19.0
type DescribeCopyJobOutput struct { // Contains detailed information about a copy job. CopyJob *CopyJob `type:"structure"` // contains filtered or unexported fields }
func (DescribeCopyJobOutput) MarshalFields ¶ added in v0.19.0
func (s DescribeCopyJobOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (DescribeCopyJobOutput) String ¶ added in v0.19.0
func (s DescribeCopyJobOutput) String() string
String returns the string representation
type DescribeCopyJobRequest ¶ added in v0.19.0
type DescribeCopyJobRequest struct { *aws.Request Input *DescribeCopyJobInput Copy func(*DescribeCopyJobInput) DescribeCopyJobRequest }
DescribeCopyJobRequest is the request type for the DescribeCopyJob API operation.
func (DescribeCopyJobRequest) Send ¶ added in v0.19.0
func (r DescribeCopyJobRequest) Send(ctx context.Context) (*DescribeCopyJobResponse, error)
Send marshals and sends the DescribeCopyJob API request.
type DescribeCopyJobResponse ¶ added in v0.19.0
type DescribeCopyJobResponse struct { *DescribeCopyJobOutput // contains filtered or unexported fields }
DescribeCopyJobResponse is the response type for the DescribeCopyJob API operation.
func (*DescribeCopyJobResponse) SDKResponseMetdata ¶ added in v0.19.0
func (r *DescribeCopyJobResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the DescribeCopyJob request.
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. // // ResourceArn is a required field ResourceArn *string `location:"uri" locationName:"resourceArn" type:"string" required:"true"` // contains filtered or unexported fields }
func (DescribeProtectedResourceInput) MarshalFields ¶
func (s DescribeProtectedResourceInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (DescribeProtectedResourceInput) String ¶
func (s DescribeProtectedResourceInput) String() string
String returns the string representation
func (*DescribeProtectedResourceInput) Validate ¶
func (s *DescribeProtectedResourceInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
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 `type:"timestamp"` // An ARN that uniquely identifies a resource. The format of the ARN depends // on the resource type. ResourceArn *string `type:"string"` // The type of AWS resource saved as a recovery point; for example, an EBS volume // or an Amazon RDS database. ResourceType *string `type:"string"` // contains filtered or unexported fields }
func (DescribeProtectedResourceOutput) MarshalFields ¶
func (s DescribeProtectedResourceOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (DescribeProtectedResourceOutput) String ¶
func (s DescribeProtectedResourceOutput) String() string
String returns the string representation
type DescribeProtectedResourceRequest ¶
type DescribeProtectedResourceRequest struct { *aws.Request Input *DescribeProtectedResourceInput Copy func(*DescribeProtectedResourceInput) DescribeProtectedResourceRequest }
DescribeProtectedResourceRequest is the request type for the DescribeProtectedResource API operation.
func (DescribeProtectedResourceRequest) Send ¶
func (r DescribeProtectedResourceRequest) Send(ctx context.Context) (*DescribeProtectedResourceResponse, error)
Send marshals and sends the DescribeProtectedResource API request.
type DescribeProtectedResourceResponse ¶ added in v0.9.0
type DescribeProtectedResourceResponse struct { *DescribeProtectedResourceOutput // contains filtered or unexported fields }
DescribeProtectedResourceResponse is the response type for the DescribeProtectedResource API operation.
func (*DescribeProtectedResourceResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *DescribeProtectedResourceResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the DescribeProtectedResource request.
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. // // BackupVaultName is a required field BackupVaultName *string `location:"uri" locationName:"backupVaultName" type:"string" required:"true"` // 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 is a required field RecoveryPointArn *string `location:"uri" locationName:"recoveryPointArn" type:"string" required:"true"` // contains filtered or unexported fields }
func (DescribeRecoveryPointInput) MarshalFields ¶
func (s DescribeRecoveryPointInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (DescribeRecoveryPointInput) String ¶
func (s DescribeRecoveryPointInput) String() string
String returns the string representation
func (*DescribeRecoveryPointInput) Validate ¶
func (s *DescribeRecoveryPointInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DescribeRecoveryPointOutput ¶
type DescribeRecoveryPointOutput struct { // The size, in bytes, of a backup. BackupSizeInBytes *int64 `type:"long"` // An ARN that uniquely identifies a backup vault; for example, arn:aws:backup:us-east-1:123456789012:vault:aBackupVault. BackupVaultArn *string `type:"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 `type:"string"` // A CalculatedLifecycle object containing DeleteAt and MoveToColdStorageAt // timestamps. CalculatedLifecycle *CalculatedLifecycle `type:"structure"` // 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 `type:"timestamp"` // 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 *RecoveryPointCreator `type:"structure"` // 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 `type:"timestamp"` // 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 `type:"string"` // Specifies the IAM role ARN used to create the target recovery point; for // example, arn:aws:iam::123456789012:role/S3Access. IamRoleArn *string `type:"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 `type:"boolean"` // 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 `type:"timestamp"` // 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. Lifecycle *Lifecycle `type:"structure"` // 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 `type:"string"` // An ARN that uniquely identifies a saved resource. The format of the ARN depends // on the resource type. ResourceArn *string `type:"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 `type:"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 RecoveryPointStatus `type:"string" enum:"true"` // Specifies the storage class of the recovery point. Valid values are WARM // or COLD. StorageClass StorageClass `type:"string" enum:"true"` // contains filtered or unexported fields }
func (DescribeRecoveryPointOutput) MarshalFields ¶
func (s DescribeRecoveryPointOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (DescribeRecoveryPointOutput) String ¶
func (s DescribeRecoveryPointOutput) String() string
String returns the string representation
type DescribeRecoveryPointRequest ¶
type DescribeRecoveryPointRequest struct { *aws.Request Input *DescribeRecoveryPointInput Copy func(*DescribeRecoveryPointInput) DescribeRecoveryPointRequest }
DescribeRecoveryPointRequest is the request type for the DescribeRecoveryPoint API operation.
func (DescribeRecoveryPointRequest) Send ¶
func (r DescribeRecoveryPointRequest) Send(ctx context.Context) (*DescribeRecoveryPointResponse, error)
Send marshals and sends the DescribeRecoveryPoint API request.
type DescribeRecoveryPointResponse ¶ added in v0.9.0
type DescribeRecoveryPointResponse struct { *DescribeRecoveryPointOutput // contains filtered or unexported fields }
DescribeRecoveryPointResponse is the response type for the DescribeRecoveryPoint API operation.
func (*DescribeRecoveryPointResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *DescribeRecoveryPointResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the DescribeRecoveryPoint request.
type DescribeRestoreJobInput ¶
type DescribeRestoreJobInput struct { // Uniquely identifies the job that restores a recovery point. // // RestoreJobId is a required field RestoreJobId *string `location:"uri" locationName:"restoreJobId" type:"string" required:"true"` // contains filtered or unexported fields }
func (DescribeRestoreJobInput) MarshalFields ¶
func (s DescribeRestoreJobInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (DescribeRestoreJobInput) String ¶
func (s DescribeRestoreJobInput) String() string
String returns the string representation
func (*DescribeRestoreJobInput) Validate ¶
func (s *DescribeRestoreJobInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DescribeRestoreJobOutput ¶
type DescribeRestoreJobOutput struct { // The size, in bytes, of the restored resource. BackupSizeInBytes *int64 `type:"long"` // 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 `type:"timestamp"` // 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 `type:"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 `type:"timestamp"` // The amount of time in minutes that a job restoring a recovery point is expected // to take. ExpectedCompletionTimeMinutes *int64 `type:"long"` // Specifies the IAM role ARN used to create the target recovery point; for // example, arn:aws:iam::123456789012:role/S3Access. IamRoleArn *string `type:"string"` // Contains an estimated percentage that is complete of a job at the time the // job status was queried. PercentDone *string `type:"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 `type:"string"` // Uniquely identifies the job that restores a recovery point. RestoreJobId *string `type:"string"` // Status code specifying the state of the job that is initiated by AWS Backup // to restore a recovery point. Status RestoreJobStatus `type:"string" enum:"true"` // A detailed message explaining the status of a job to restore a recovery point. StatusMessage *string `type:"string"` // contains filtered or unexported fields }
func (DescribeRestoreJobOutput) MarshalFields ¶
func (s DescribeRestoreJobOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (DescribeRestoreJobOutput) String ¶
func (s DescribeRestoreJobOutput) String() string
String returns the string representation
type DescribeRestoreJobRequest ¶
type DescribeRestoreJobRequest struct { *aws.Request Input *DescribeRestoreJobInput Copy func(*DescribeRestoreJobInput) DescribeRestoreJobRequest }
DescribeRestoreJobRequest is the request type for the DescribeRestoreJob API operation.
func (DescribeRestoreJobRequest) Send ¶
func (r DescribeRestoreJobRequest) Send(ctx context.Context) (*DescribeRestoreJobResponse, error)
Send marshals and sends the DescribeRestoreJob API request.
type DescribeRestoreJobResponse ¶ added in v0.9.0
type DescribeRestoreJobResponse struct { *DescribeRestoreJobOutput // contains filtered or unexported fields }
DescribeRestoreJobResponse is the response type for the DescribeRestoreJob API operation.
func (*DescribeRestoreJobResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *DescribeRestoreJobResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the DescribeRestoreJob request.
type ExportBackupPlanTemplateInput ¶
type ExportBackupPlanTemplateInput struct { // Uniquely identifies a backup plan. // // BackupPlanId is a required field BackupPlanId *string `location:"uri" locationName:"backupPlanId" type:"string" required:"true"` // contains filtered or unexported fields }
func (ExportBackupPlanTemplateInput) MarshalFields ¶
func (s ExportBackupPlanTemplateInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (ExportBackupPlanTemplateInput) String ¶
func (s ExportBackupPlanTemplateInput) String() string
String returns the string representation
func (*ExportBackupPlanTemplateInput) Validate ¶
func (s *ExportBackupPlanTemplateInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
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 `type:"string"` // contains filtered or unexported fields }
func (ExportBackupPlanTemplateOutput) MarshalFields ¶
func (s ExportBackupPlanTemplateOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (ExportBackupPlanTemplateOutput) String ¶
func (s ExportBackupPlanTemplateOutput) String() string
String returns the string representation
type ExportBackupPlanTemplateRequest ¶
type ExportBackupPlanTemplateRequest struct { *aws.Request Input *ExportBackupPlanTemplateInput Copy func(*ExportBackupPlanTemplateInput) ExportBackupPlanTemplateRequest }
ExportBackupPlanTemplateRequest is the request type for the ExportBackupPlanTemplate API operation.
func (ExportBackupPlanTemplateRequest) Send ¶
func (r ExportBackupPlanTemplateRequest) Send(ctx context.Context) (*ExportBackupPlanTemplateResponse, error)
Send marshals and sends the ExportBackupPlanTemplate API request.
type ExportBackupPlanTemplateResponse ¶ added in v0.9.0
type ExportBackupPlanTemplateResponse struct { *ExportBackupPlanTemplateOutput // contains filtered or unexported fields }
ExportBackupPlanTemplateResponse is the response type for the ExportBackupPlanTemplate API operation.
func (*ExportBackupPlanTemplateResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *ExportBackupPlanTemplateResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the ExportBackupPlanTemplate request.
type GetBackupPlanFromJSONInput ¶
type GetBackupPlanFromJSONInput struct { // A customer-supplied backup plan document in JSON format. // // BackupPlanTemplateJson is a required field BackupPlanTemplateJson *string `type:"string" required:"true"` // contains filtered or unexported fields }
func (GetBackupPlanFromJSONInput) MarshalFields ¶
func (s GetBackupPlanFromJSONInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (GetBackupPlanFromJSONInput) String ¶
func (s GetBackupPlanFromJSONInput) String() string
String returns the string representation
func (*GetBackupPlanFromJSONInput) Validate ¶
func (s *GetBackupPlanFromJSONInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetBackupPlanFromJSONOutput ¶
type GetBackupPlanFromJSONOutput struct { // Specifies the body of a backup plan. Includes a BackupPlanName and one or // more sets of Rules. BackupPlan *BackupPlan `type:"structure"` // contains filtered or unexported fields }
func (GetBackupPlanFromJSONOutput) MarshalFields ¶
func (s GetBackupPlanFromJSONOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (GetBackupPlanFromJSONOutput) String ¶
func (s GetBackupPlanFromJSONOutput) String() string
String returns the string representation
type GetBackupPlanFromJSONRequest ¶
type GetBackupPlanFromJSONRequest struct { *aws.Request Input *GetBackupPlanFromJSONInput Copy func(*GetBackupPlanFromJSONInput) GetBackupPlanFromJSONRequest }
GetBackupPlanFromJSONRequest is the request type for the GetBackupPlanFromJSON API operation.
func (GetBackupPlanFromJSONRequest) Send ¶
func (r GetBackupPlanFromJSONRequest) Send(ctx context.Context) (*GetBackupPlanFromJSONResponse, error)
Send marshals and sends the GetBackupPlanFromJSON API request.
type GetBackupPlanFromJSONResponse ¶ added in v0.9.0
type GetBackupPlanFromJSONResponse struct { *GetBackupPlanFromJSONOutput // contains filtered or unexported fields }
GetBackupPlanFromJSONResponse is the response type for the GetBackupPlanFromJSON API operation.
func (*GetBackupPlanFromJSONResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *GetBackupPlanFromJSONResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the GetBackupPlanFromJSON request.
type GetBackupPlanFromTemplateInput ¶
type GetBackupPlanFromTemplateInput struct { // Uniquely identifies a stored backup plan template. // // BackupPlanTemplateId is a required field BackupPlanTemplateId *string `location:"uri" locationName:"templateId" type:"string" required:"true"` // contains filtered or unexported fields }
func (GetBackupPlanFromTemplateInput) MarshalFields ¶
func (s GetBackupPlanFromTemplateInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (GetBackupPlanFromTemplateInput) String ¶
func (s GetBackupPlanFromTemplateInput) String() string
String returns the string representation
func (*GetBackupPlanFromTemplateInput) Validate ¶
func (s *GetBackupPlanFromTemplateInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
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 *BackupPlan `type:"structure"` // contains filtered or unexported fields }
func (GetBackupPlanFromTemplateOutput) MarshalFields ¶
func (s GetBackupPlanFromTemplateOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (GetBackupPlanFromTemplateOutput) String ¶
func (s GetBackupPlanFromTemplateOutput) String() string
String returns the string representation
type GetBackupPlanFromTemplateRequest ¶
type GetBackupPlanFromTemplateRequest struct { *aws.Request Input *GetBackupPlanFromTemplateInput Copy func(*GetBackupPlanFromTemplateInput) GetBackupPlanFromTemplateRequest }
GetBackupPlanFromTemplateRequest is the request type for the GetBackupPlanFromTemplate API operation.
func (GetBackupPlanFromTemplateRequest) Send ¶
func (r GetBackupPlanFromTemplateRequest) Send(ctx context.Context) (*GetBackupPlanFromTemplateResponse, error)
Send marshals and sends the GetBackupPlanFromTemplate API request.
type GetBackupPlanFromTemplateResponse ¶ added in v0.9.0
type GetBackupPlanFromTemplateResponse struct { *GetBackupPlanFromTemplateOutput // contains filtered or unexported fields }
GetBackupPlanFromTemplateResponse is the response type for the GetBackupPlanFromTemplate API operation.
func (*GetBackupPlanFromTemplateResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *GetBackupPlanFromTemplateResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the GetBackupPlanFromTemplate request.
type GetBackupPlanInput ¶
type GetBackupPlanInput struct { // Uniquely identifies a backup plan. // // BackupPlanId is a required field BackupPlanId *string `location:"uri" locationName:"backupPlanId" type:"string" required:"true"` // Unique, randomly generated, Unicode, UTF-8 encoded strings that are at most // 1,024 bytes long. Version IDs cannot be edited. VersionId *string `location:"querystring" locationName:"versionId" type:"string"` // contains filtered or unexported fields }
func (GetBackupPlanInput) MarshalFields ¶
func (s GetBackupPlanInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (GetBackupPlanInput) String ¶
func (s GetBackupPlanInput) String() string
String returns the string representation
func (*GetBackupPlanInput) Validate ¶
func (s *GetBackupPlanInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetBackupPlanOutput ¶
type GetBackupPlanOutput struct { // Specifies the body of a backup plan. Includes a BackupPlanName and one or // more sets of Rules. BackupPlan *BackupPlan `type:"structure"` // 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 `type:"string"` // Uniquely identifies a backup plan. BackupPlanId *string `type:"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 `type:"timestamp"` // A unique string that identifies the request and allows failed requests to // be retried without the risk of executing the operation twice. CreatorRequestId *string `type:"string"` // The date and time that a backup plan is deleted, 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. DeletionDate *time.Time `type:"timestamp"` // The last time a job to back up resources was executed 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 `type:"timestamp"` // Unique, randomly generated, Unicode, UTF-8 encoded strings that are at most // 1,024 bytes long. Version IDs cannot be edited. VersionId *string `type:"string"` // contains filtered or unexported fields }
func (GetBackupPlanOutput) MarshalFields ¶
func (s GetBackupPlanOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (GetBackupPlanOutput) String ¶
func (s GetBackupPlanOutput) String() string
String returns the string representation
type GetBackupPlanRequest ¶
type GetBackupPlanRequest struct { *aws.Request Input *GetBackupPlanInput Copy func(*GetBackupPlanInput) GetBackupPlanRequest }
GetBackupPlanRequest is the request type for the GetBackupPlan API operation.
func (GetBackupPlanRequest) Send ¶
func (r GetBackupPlanRequest) Send(ctx context.Context) (*GetBackupPlanResponse, error)
Send marshals and sends the GetBackupPlan API request.
type GetBackupPlanResponse ¶ added in v0.9.0
type GetBackupPlanResponse struct { *GetBackupPlanOutput // contains filtered or unexported fields }
GetBackupPlanResponse is the response type for the GetBackupPlan API operation.
func (*GetBackupPlanResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *GetBackupPlanResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the GetBackupPlan request.
type GetBackupSelectionInput ¶
type GetBackupSelectionInput struct { // Uniquely identifies a backup plan. // // BackupPlanId is a required field BackupPlanId *string `location:"uri" locationName:"backupPlanId" type:"string" required:"true"` // Uniquely identifies the body of a request to assign a set of resources to // a backup plan. // // SelectionId is a required field SelectionId *string `location:"uri" locationName:"selectionId" type:"string" required:"true"` // contains filtered or unexported fields }
func (GetBackupSelectionInput) MarshalFields ¶
func (s GetBackupSelectionInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (GetBackupSelectionInput) String ¶
func (s GetBackupSelectionInput) String() string
String returns the string representation
func (*GetBackupSelectionInput) Validate ¶
func (s *GetBackupSelectionInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetBackupSelectionOutput ¶
type GetBackupSelectionOutput struct { // Uniquely identifies a backup plan. BackupPlanId *string `type:"string"` // Specifies the body of a request to assign a set of resources to a backup // plan. BackupSelection *BackupSelection `type:"structure"` // 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 `type:"timestamp"` // A unique string that identifies the request and allows failed requests to // be retried without the risk of executing the operation twice. CreatorRequestId *string `type:"string"` // Uniquely identifies the body of a request to assign a set of resources to // a backup plan. SelectionId *string `type:"string"` // contains filtered or unexported fields }
func (GetBackupSelectionOutput) MarshalFields ¶
func (s GetBackupSelectionOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (GetBackupSelectionOutput) String ¶
func (s GetBackupSelectionOutput) String() string
String returns the string representation
type GetBackupSelectionRequest ¶
type GetBackupSelectionRequest struct { *aws.Request Input *GetBackupSelectionInput Copy func(*GetBackupSelectionInput) GetBackupSelectionRequest }
GetBackupSelectionRequest is the request type for the GetBackupSelection API operation.
func (GetBackupSelectionRequest) Send ¶
func (r GetBackupSelectionRequest) Send(ctx context.Context) (*GetBackupSelectionResponse, error)
Send marshals and sends the GetBackupSelection API request.
type GetBackupSelectionResponse ¶ added in v0.9.0
type GetBackupSelectionResponse struct { *GetBackupSelectionOutput // contains filtered or unexported fields }
GetBackupSelectionResponse is the response type for the GetBackupSelection API operation.
func (*GetBackupSelectionResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *GetBackupSelectionResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the GetBackupSelection request.
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. // // BackupVaultName is a required field BackupVaultName *string `location:"uri" locationName:"backupVaultName" type:"string" required:"true"` // contains filtered or unexported fields }
func (GetBackupVaultAccessPolicyInput) MarshalFields ¶
func (s GetBackupVaultAccessPolicyInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (GetBackupVaultAccessPolicyInput) String ¶
func (s GetBackupVaultAccessPolicyInput) String() string
String returns the string representation
func (*GetBackupVaultAccessPolicyInput) Validate ¶
func (s *GetBackupVaultAccessPolicyInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
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 `type:"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 `type:"string"` // The backup vault access policy document in JSON format. Policy *string `type:"string"` // contains filtered or unexported fields }
func (GetBackupVaultAccessPolicyOutput) MarshalFields ¶
func (s GetBackupVaultAccessPolicyOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (GetBackupVaultAccessPolicyOutput) String ¶
func (s GetBackupVaultAccessPolicyOutput) String() string
String returns the string representation
type GetBackupVaultAccessPolicyRequest ¶
type GetBackupVaultAccessPolicyRequest struct { *aws.Request Input *GetBackupVaultAccessPolicyInput Copy func(*GetBackupVaultAccessPolicyInput) GetBackupVaultAccessPolicyRequest }
GetBackupVaultAccessPolicyRequest is the request type for the GetBackupVaultAccessPolicy API operation.
func (GetBackupVaultAccessPolicyRequest) Send ¶
func (r GetBackupVaultAccessPolicyRequest) Send(ctx context.Context) (*GetBackupVaultAccessPolicyResponse, error)
Send marshals and sends the GetBackupVaultAccessPolicy API request.
type GetBackupVaultAccessPolicyResponse ¶ added in v0.9.0
type GetBackupVaultAccessPolicyResponse struct { *GetBackupVaultAccessPolicyOutput // contains filtered or unexported fields }
GetBackupVaultAccessPolicyResponse is the response type for the GetBackupVaultAccessPolicy API operation.
func (*GetBackupVaultAccessPolicyResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *GetBackupVaultAccessPolicyResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the GetBackupVaultAccessPolicy request.
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. // // BackupVaultName is a required field BackupVaultName *string `location:"uri" locationName:"backupVaultName" type:"string" required:"true"` // contains filtered or unexported fields }
func (GetBackupVaultNotificationsInput) MarshalFields ¶
func (s GetBackupVaultNotificationsInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (GetBackupVaultNotificationsInput) String ¶
func (s GetBackupVaultNotificationsInput) String() string
String returns the string representation
func (*GetBackupVaultNotificationsInput) Validate ¶
func (s *GetBackupVaultNotificationsInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
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 `type:"string"` // An array of events that indicate the status of jobs to back up resources // to the backup vault. BackupVaultEvents []BackupVaultEvent `type:"list"` // 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 `type:"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 `type:"string"` // contains filtered or unexported fields }
func (GetBackupVaultNotificationsOutput) MarshalFields ¶
func (s GetBackupVaultNotificationsOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (GetBackupVaultNotificationsOutput) String ¶
func (s GetBackupVaultNotificationsOutput) String() string
String returns the string representation
type GetBackupVaultNotificationsRequest ¶
type GetBackupVaultNotificationsRequest struct { *aws.Request Input *GetBackupVaultNotificationsInput Copy func(*GetBackupVaultNotificationsInput) GetBackupVaultNotificationsRequest }
GetBackupVaultNotificationsRequest is the request type for the GetBackupVaultNotifications API operation.
func (GetBackupVaultNotificationsRequest) Send ¶
func (r GetBackupVaultNotificationsRequest) Send(ctx context.Context) (*GetBackupVaultNotificationsResponse, error)
Send marshals and sends the GetBackupVaultNotifications API request.
type GetBackupVaultNotificationsResponse ¶ added in v0.9.0
type GetBackupVaultNotificationsResponse struct { *GetBackupVaultNotificationsOutput // contains filtered or unexported fields }
GetBackupVaultNotificationsResponse is the response type for the GetBackupVaultNotifications API operation.
func (*GetBackupVaultNotificationsResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *GetBackupVaultNotificationsResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the GetBackupVaultNotifications request.
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. // // BackupVaultName is a required field BackupVaultName *string `location:"uri" locationName:"backupVaultName" type:"string" required:"true"` // 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 is a required field RecoveryPointArn *string `location:"uri" locationName:"recoveryPointArn" type:"string" required:"true"` // contains filtered or unexported fields }
func (GetRecoveryPointRestoreMetadataInput) MarshalFields ¶
func (s GetRecoveryPointRestoreMetadataInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (GetRecoveryPointRestoreMetadataInput) String ¶
func (s GetRecoveryPointRestoreMetadataInput) String() string
String returns the string representation
func (*GetRecoveryPointRestoreMetadataInput) Validate ¶
func (s *GetRecoveryPointRestoreMetadataInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
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 `type:"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 `type:"string"` // The set of metadata key-value pairs that describes the original configuration // of the backed-up resource. These values vary depending on the service that // is being restored. RestoreMetadata map[string]string `type:"map" sensitive:"true"` // contains filtered or unexported fields }
func (GetRecoveryPointRestoreMetadataOutput) MarshalFields ¶
func (s GetRecoveryPointRestoreMetadataOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (GetRecoveryPointRestoreMetadataOutput) String ¶
func (s GetRecoveryPointRestoreMetadataOutput) String() string
String returns the string representation
type GetRecoveryPointRestoreMetadataRequest ¶
type GetRecoveryPointRestoreMetadataRequest struct { *aws.Request Input *GetRecoveryPointRestoreMetadataInput Copy func(*GetRecoveryPointRestoreMetadataInput) GetRecoveryPointRestoreMetadataRequest }
GetRecoveryPointRestoreMetadataRequest is the request type for the GetRecoveryPointRestoreMetadata API operation.
func (GetRecoveryPointRestoreMetadataRequest) Send ¶
func (r GetRecoveryPointRestoreMetadataRequest) Send(ctx context.Context) (*GetRecoveryPointRestoreMetadataResponse, error)
Send marshals and sends the GetRecoveryPointRestoreMetadata API request.
type GetRecoveryPointRestoreMetadataResponse ¶ added in v0.9.0
type GetRecoveryPointRestoreMetadataResponse struct { *GetRecoveryPointRestoreMetadataOutput // contains filtered or unexported fields }
GetRecoveryPointRestoreMetadataResponse is the response type for the GetRecoveryPointRestoreMetadata API operation.
func (*GetRecoveryPointRestoreMetadataResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *GetRecoveryPointRestoreMetadataResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the GetRecoveryPointRestoreMetadata request.
type GetSupportedResourceTypesInput ¶
type GetSupportedResourceTypesInput struct {
// contains filtered or unexported fields
}
func (GetSupportedResourceTypesInput) MarshalFields ¶
func (s GetSupportedResourceTypesInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (GetSupportedResourceTypesInput) String ¶
func (s GetSupportedResourceTypesInput) String() string
String returns the string representation
type GetSupportedResourceTypesOutput ¶
type GetSupportedResourceTypesOutput struct { // Contains a string with the supported AWS resource types: // // * EBS for Amazon Elastic Block Store // // * Storage Gateway for AWS Storage Gateway // // * RDS for Amazon Relational Database Service // // * DDB for Amazon DynamoDB // // * EFS for Amazon Elastic File System ResourceTypes []string `type:"list"` // contains filtered or unexported fields }
func (GetSupportedResourceTypesOutput) MarshalFields ¶
func (s GetSupportedResourceTypesOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (GetSupportedResourceTypesOutput) String ¶
func (s GetSupportedResourceTypesOutput) String() string
String returns the string representation
type GetSupportedResourceTypesRequest ¶
type GetSupportedResourceTypesRequest struct { *aws.Request Input *GetSupportedResourceTypesInput Copy func(*GetSupportedResourceTypesInput) GetSupportedResourceTypesRequest }
GetSupportedResourceTypesRequest is the request type for the GetSupportedResourceTypes API operation.
func (GetSupportedResourceTypesRequest) Send ¶
func (r GetSupportedResourceTypesRequest) Send(ctx context.Context) (*GetSupportedResourceTypesResponse, error)
Send marshals and sends the GetSupportedResourceTypes API request.
type GetSupportedResourceTypesResponse ¶ added in v0.9.0
type GetSupportedResourceTypesResponse struct { *GetSupportedResourceTypesOutput // contains filtered or unexported fields }
GetSupportedResourceTypesResponse is the response type for the GetSupportedResourceTypes API operation.
func (*GetSupportedResourceTypesResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *GetSupportedResourceTypesResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the GetSupportedResourceTypes request.
type Lifecycle ¶
type Lifecycle struct { // Specifies the number of days after creation that a recovery point is deleted. // Must be greater than 90 days plus MoveToColdStorageAfterDays. DeleteAfterDays *int64 `type:"long"` // Specifies the number of days after creation that a recovery point is moved // to cold storage. MoveToColdStorageAfterDays *int64 `type:"long"` // contains filtered or unexported fields }
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.
func (Lifecycle) MarshalFields ¶
func (s Lifecycle) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
type ListBackupJobsInput ¶
type ListBackupJobsInput struct { // 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 `location:"querystring" locationName:"backupVaultName" type:"string"` // Returns only backup jobs that were created after the specified date. ByCreatedAfter *time.Time `location:"querystring" locationName:"createdAfter" type:"timestamp"` // Returns only backup jobs that were created before the specified date. ByCreatedBefore *time.Time `location:"querystring" locationName:"createdBefore" type:"timestamp"` // Returns only backup jobs that match the specified resource Amazon Resource // Name (ARN). ByResourceArn *string `location:"querystring" locationName:"resourceArn" type:"string"` // Returns only backup jobs for the specified resources: // // * DynamoDB for Amazon DynamoDB // // * EBS for Amazon Elastic Block Store // // * EFS for Amazon Elastic File System // // * RDS for Amazon Relational Database Service // // * Storage Gateway for AWS Storage Gateway ByResourceType *string `location:"querystring" locationName:"resourceType" type:"string"` // Returns only backup jobs that are in the specified state. ByState BackupJobState `location:"querystring" locationName:"state" type:"string" enum:"true"` // The maximum number of items to be returned. MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` // 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 `location:"querystring" locationName:"nextToken" type:"string"` // contains filtered or unexported fields }
func (ListBackupJobsInput) MarshalFields ¶
func (s ListBackupJobsInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (ListBackupJobsInput) String ¶
func (s ListBackupJobsInput) String() string
String returns the string representation
func (*ListBackupJobsInput) Validate ¶
func (s *ListBackupJobsInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ListBackupJobsOutput ¶
type ListBackupJobsOutput struct { // An array of structures containing metadata about your backup jobs returned // in JSON format. BackupJobs []BackupJob `type:"list"` // 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:"string"` // contains filtered or unexported fields }
func (ListBackupJobsOutput) MarshalFields ¶
func (s ListBackupJobsOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (ListBackupJobsOutput) String ¶
func (s ListBackupJobsOutput) String() string
String returns the string representation
type ListBackupJobsPaginator ¶ added in v0.9.0
ListBackupJobsPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.
func NewListBackupJobsPaginator ¶ added in v0.9.0
func NewListBackupJobsPaginator(req ListBackupJobsRequest) ListBackupJobsPaginator
NewListBackupJobsRequestPaginator returns a paginator for ListBackupJobs. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.
Note: This operation can generate multiple requests to a service.
// Example iterating over pages. req := client.ListBackupJobsRequest(input) p := backup.NewListBackupJobsRequestPaginator(req) for p.Next(context.TODO()) { page := p.CurrentPage() } if err := p.Err(); err != nil { return err }
func (*ListBackupJobsPaginator) CurrentPage ¶ added in v0.9.0
func (p *ListBackupJobsPaginator) CurrentPage() *ListBackupJobsOutput
type ListBackupJobsRequest ¶
type ListBackupJobsRequest struct { *aws.Request Input *ListBackupJobsInput Copy func(*ListBackupJobsInput) ListBackupJobsRequest }
ListBackupJobsRequest is the request type for the ListBackupJobs API operation.
func (ListBackupJobsRequest) Send ¶
func (r ListBackupJobsRequest) Send(ctx context.Context) (*ListBackupJobsResponse, error)
Send marshals and sends the ListBackupJobs API request.
type ListBackupJobsResponse ¶ added in v0.9.0
type ListBackupJobsResponse struct { *ListBackupJobsOutput // contains filtered or unexported fields }
ListBackupJobsResponse is the response type for the ListBackupJobs API operation.
func (*ListBackupJobsResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *ListBackupJobsResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the ListBackupJobs request.
type ListBackupPlanTemplatesInput ¶
type ListBackupPlanTemplatesInput struct { // The maximum number of items to be returned. MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` // 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 `location:"querystring" locationName:"nextToken" type:"string"` // contains filtered or unexported fields }
func (ListBackupPlanTemplatesInput) MarshalFields ¶
func (s ListBackupPlanTemplatesInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (ListBackupPlanTemplatesInput) String ¶
func (s ListBackupPlanTemplatesInput) String() string
String returns the string representation
func (*ListBackupPlanTemplatesInput) Validate ¶
func (s *ListBackupPlanTemplatesInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ListBackupPlanTemplatesOutput ¶
type ListBackupPlanTemplatesOutput struct { // An array of template list items containing metadata about your saved templates. BackupPlanTemplatesList []BackupPlanTemplatesListMember `type:"list"` // 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:"string"` // contains filtered or unexported fields }
func (ListBackupPlanTemplatesOutput) MarshalFields ¶
func (s ListBackupPlanTemplatesOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (ListBackupPlanTemplatesOutput) String ¶
func (s ListBackupPlanTemplatesOutput) String() string
String returns the string representation
type ListBackupPlanTemplatesPaginator ¶ added in v0.9.0
ListBackupPlanTemplatesPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.
func NewListBackupPlanTemplatesPaginator ¶ added in v0.9.0
func NewListBackupPlanTemplatesPaginator(req ListBackupPlanTemplatesRequest) ListBackupPlanTemplatesPaginator
NewListBackupPlanTemplatesRequestPaginator returns a paginator for ListBackupPlanTemplates. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.
Note: This operation can generate multiple requests to a service.
// Example iterating over pages. req := client.ListBackupPlanTemplatesRequest(input) p := backup.NewListBackupPlanTemplatesRequestPaginator(req) for p.Next(context.TODO()) { page := p.CurrentPage() } if err := p.Err(); err != nil { return err }
func (*ListBackupPlanTemplatesPaginator) CurrentPage ¶ added in v0.9.0
func (p *ListBackupPlanTemplatesPaginator) CurrentPage() *ListBackupPlanTemplatesOutput
type ListBackupPlanTemplatesRequest ¶
type ListBackupPlanTemplatesRequest struct { *aws.Request Input *ListBackupPlanTemplatesInput Copy func(*ListBackupPlanTemplatesInput) ListBackupPlanTemplatesRequest }
ListBackupPlanTemplatesRequest is the request type for the ListBackupPlanTemplates API operation.
func (ListBackupPlanTemplatesRequest) Send ¶
func (r ListBackupPlanTemplatesRequest) Send(ctx context.Context) (*ListBackupPlanTemplatesResponse, error)
Send marshals and sends the ListBackupPlanTemplates API request.
type ListBackupPlanTemplatesResponse ¶ added in v0.9.0
type ListBackupPlanTemplatesResponse struct { *ListBackupPlanTemplatesOutput // contains filtered or unexported fields }
ListBackupPlanTemplatesResponse is the response type for the ListBackupPlanTemplates API operation.
func (*ListBackupPlanTemplatesResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *ListBackupPlanTemplatesResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the ListBackupPlanTemplates request.
type ListBackupPlanVersionsInput ¶
type ListBackupPlanVersionsInput struct { // Uniquely identifies a backup plan. // // BackupPlanId is a required field BackupPlanId *string `location:"uri" locationName:"backupPlanId" type:"string" required:"true"` // The maximum number of items to be returned. MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` // 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 `location:"querystring" locationName:"nextToken" type:"string"` // contains filtered or unexported fields }
func (ListBackupPlanVersionsInput) MarshalFields ¶
func (s ListBackupPlanVersionsInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (ListBackupPlanVersionsInput) String ¶
func (s ListBackupPlanVersionsInput) String() string
String returns the string representation
func (*ListBackupPlanVersionsInput) Validate ¶
func (s *ListBackupPlanVersionsInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ListBackupPlanVersionsOutput ¶
type ListBackupPlanVersionsOutput struct { // An array of version list items containing metadata about your backup plans. BackupPlanVersionsList []BackupPlansListMember `type:"list"` // 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:"string"` // contains filtered or unexported fields }
func (ListBackupPlanVersionsOutput) MarshalFields ¶
func (s ListBackupPlanVersionsOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (ListBackupPlanVersionsOutput) String ¶
func (s ListBackupPlanVersionsOutput) String() string
String returns the string representation
type ListBackupPlanVersionsPaginator ¶ added in v0.9.0
ListBackupPlanVersionsPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.
func NewListBackupPlanVersionsPaginator ¶ added in v0.9.0
func NewListBackupPlanVersionsPaginator(req ListBackupPlanVersionsRequest) ListBackupPlanVersionsPaginator
NewListBackupPlanVersionsRequestPaginator returns a paginator for ListBackupPlanVersions. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.
Note: This operation can generate multiple requests to a service.
// Example iterating over pages. req := client.ListBackupPlanVersionsRequest(input) p := backup.NewListBackupPlanVersionsRequestPaginator(req) for p.Next(context.TODO()) { page := p.CurrentPage() } if err := p.Err(); err != nil { return err }
func (*ListBackupPlanVersionsPaginator) CurrentPage ¶ added in v0.9.0
func (p *ListBackupPlanVersionsPaginator) CurrentPage() *ListBackupPlanVersionsOutput
type ListBackupPlanVersionsRequest ¶
type ListBackupPlanVersionsRequest struct { *aws.Request Input *ListBackupPlanVersionsInput Copy func(*ListBackupPlanVersionsInput) ListBackupPlanVersionsRequest }
ListBackupPlanVersionsRequest is the request type for the ListBackupPlanVersions API operation.
func (ListBackupPlanVersionsRequest) Send ¶
func (r ListBackupPlanVersionsRequest) Send(ctx context.Context) (*ListBackupPlanVersionsResponse, error)
Send marshals and sends the ListBackupPlanVersions API request.
type ListBackupPlanVersionsResponse ¶ added in v0.9.0
type ListBackupPlanVersionsResponse struct { *ListBackupPlanVersionsOutput // contains filtered or unexported fields }
ListBackupPlanVersionsResponse is the response type for the ListBackupPlanVersions API operation.
func (*ListBackupPlanVersionsResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *ListBackupPlanVersionsResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the ListBackupPlanVersions request.
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 `location:"querystring" locationName:"includeDeleted" type:"boolean"` // The maximum number of items to be returned. MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` // 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 `location:"querystring" locationName:"nextToken" type:"string"` // contains filtered or unexported fields }
func (ListBackupPlansInput) MarshalFields ¶
func (s ListBackupPlansInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (ListBackupPlansInput) String ¶
func (s ListBackupPlansInput) String() string
String returns the string representation
func (*ListBackupPlansInput) Validate ¶
func (s *ListBackupPlansInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ListBackupPlansOutput ¶
type ListBackupPlansOutput struct { // An array of backup plan list items containing metadata about your saved backup // plans. BackupPlansList []BackupPlansListMember `type:"list"` // 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:"string"` // contains filtered or unexported fields }
func (ListBackupPlansOutput) MarshalFields ¶
func (s ListBackupPlansOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (ListBackupPlansOutput) String ¶
func (s ListBackupPlansOutput) String() string
String returns the string representation
type ListBackupPlansPaginator ¶ added in v0.9.0
ListBackupPlansPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.
func NewListBackupPlansPaginator ¶ added in v0.9.0
func NewListBackupPlansPaginator(req ListBackupPlansRequest) ListBackupPlansPaginator
NewListBackupPlansRequestPaginator returns a paginator for ListBackupPlans. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.
Note: This operation can generate multiple requests to a service.
// Example iterating over pages. req := client.ListBackupPlansRequest(input) p := backup.NewListBackupPlansRequestPaginator(req) for p.Next(context.TODO()) { page := p.CurrentPage() } if err := p.Err(); err != nil { return err }
func (*ListBackupPlansPaginator) CurrentPage ¶ added in v0.9.0
func (p *ListBackupPlansPaginator) CurrentPage() *ListBackupPlansOutput
type ListBackupPlansRequest ¶
type ListBackupPlansRequest struct { *aws.Request Input *ListBackupPlansInput Copy func(*ListBackupPlansInput) ListBackupPlansRequest }
ListBackupPlansRequest is the request type for the ListBackupPlans API operation.
func (ListBackupPlansRequest) Send ¶
func (r ListBackupPlansRequest) Send(ctx context.Context) (*ListBackupPlansResponse, error)
Send marshals and sends the ListBackupPlans API request.
type ListBackupPlansResponse ¶ added in v0.9.0
type ListBackupPlansResponse struct { *ListBackupPlansOutput // contains filtered or unexported fields }
ListBackupPlansResponse is the response type for the ListBackupPlans API operation.
func (*ListBackupPlansResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *ListBackupPlansResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the ListBackupPlans request.
type ListBackupSelectionsInput ¶
type ListBackupSelectionsInput struct { // Uniquely identifies a backup plan. // // BackupPlanId is a required field BackupPlanId *string `location:"uri" locationName:"backupPlanId" type:"string" required:"true"` // The maximum number of items to be returned. MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` // 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 `location:"querystring" locationName:"nextToken" type:"string"` // contains filtered or unexported fields }
func (ListBackupSelectionsInput) MarshalFields ¶
func (s ListBackupSelectionsInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (ListBackupSelectionsInput) String ¶
func (s ListBackupSelectionsInput) String() string
String returns the string representation
func (*ListBackupSelectionsInput) Validate ¶
func (s *ListBackupSelectionsInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ListBackupSelectionsOutput ¶
type ListBackupSelectionsOutput struct { // An array of backup selection list items containing metadata about each resource // in the list. BackupSelectionsList []BackupSelectionsListMember `type:"list"` // 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:"string"` // contains filtered or unexported fields }
func (ListBackupSelectionsOutput) MarshalFields ¶
func (s ListBackupSelectionsOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (ListBackupSelectionsOutput) String ¶
func (s ListBackupSelectionsOutput) String() string
String returns the string representation
type ListBackupSelectionsPaginator ¶ added in v0.9.0
ListBackupSelectionsPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.
func NewListBackupSelectionsPaginator ¶ added in v0.9.0
func NewListBackupSelectionsPaginator(req ListBackupSelectionsRequest) ListBackupSelectionsPaginator
NewListBackupSelectionsRequestPaginator returns a paginator for ListBackupSelections. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.
Note: This operation can generate multiple requests to a service.
// Example iterating over pages. req := client.ListBackupSelectionsRequest(input) p := backup.NewListBackupSelectionsRequestPaginator(req) for p.Next(context.TODO()) { page := p.CurrentPage() } if err := p.Err(); err != nil { return err }
func (*ListBackupSelectionsPaginator) CurrentPage ¶ added in v0.9.0
func (p *ListBackupSelectionsPaginator) CurrentPage() *ListBackupSelectionsOutput
type ListBackupSelectionsRequest ¶
type ListBackupSelectionsRequest struct { *aws.Request Input *ListBackupSelectionsInput Copy func(*ListBackupSelectionsInput) ListBackupSelectionsRequest }
ListBackupSelectionsRequest is the request type for the ListBackupSelections API operation.
func (ListBackupSelectionsRequest) Send ¶
func (r ListBackupSelectionsRequest) Send(ctx context.Context) (*ListBackupSelectionsResponse, error)
Send marshals and sends the ListBackupSelections API request.
type ListBackupSelectionsResponse ¶ added in v0.9.0
type ListBackupSelectionsResponse struct { *ListBackupSelectionsOutput // contains filtered or unexported fields }
ListBackupSelectionsResponse is the response type for the ListBackupSelections API operation.
func (*ListBackupSelectionsResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *ListBackupSelectionsResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the ListBackupSelections request.
type ListBackupVaultsInput ¶
type ListBackupVaultsInput struct { // The maximum number of items to be returned. MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` // 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 `location:"querystring" locationName:"nextToken" type:"string"` // contains filtered or unexported fields }
func (ListBackupVaultsInput) MarshalFields ¶
func (s ListBackupVaultsInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (ListBackupVaultsInput) String ¶
func (s ListBackupVaultsInput) String() string
String returns the string representation
func (*ListBackupVaultsInput) Validate ¶
func (s *ListBackupVaultsInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
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 []BackupVaultListMember `type:"list"` // 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:"string"` // contains filtered or unexported fields }
func (ListBackupVaultsOutput) MarshalFields ¶
func (s ListBackupVaultsOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (ListBackupVaultsOutput) String ¶
func (s ListBackupVaultsOutput) String() string
String returns the string representation
type ListBackupVaultsPaginator ¶ added in v0.9.0
ListBackupVaultsPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.
func NewListBackupVaultsPaginator ¶ added in v0.9.0
func NewListBackupVaultsPaginator(req ListBackupVaultsRequest) ListBackupVaultsPaginator
NewListBackupVaultsRequestPaginator returns a paginator for ListBackupVaults. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.
Note: This operation can generate multiple requests to a service.
// Example iterating over pages. req := client.ListBackupVaultsRequest(input) p := backup.NewListBackupVaultsRequestPaginator(req) for p.Next(context.TODO()) { page := p.CurrentPage() } if err := p.Err(); err != nil { return err }
func (*ListBackupVaultsPaginator) CurrentPage ¶ added in v0.9.0
func (p *ListBackupVaultsPaginator) CurrentPage() *ListBackupVaultsOutput
type ListBackupVaultsRequest ¶
type ListBackupVaultsRequest struct { *aws.Request Input *ListBackupVaultsInput Copy func(*ListBackupVaultsInput) ListBackupVaultsRequest }
ListBackupVaultsRequest is the request type for the ListBackupVaults API operation.
func (ListBackupVaultsRequest) Send ¶
func (r ListBackupVaultsRequest) Send(ctx context.Context) (*ListBackupVaultsResponse, error)
Send marshals and sends the ListBackupVaults API request.
type ListBackupVaultsResponse ¶ added in v0.9.0
type ListBackupVaultsResponse struct { *ListBackupVaultsOutput // contains filtered or unexported fields }
ListBackupVaultsResponse is the response type for the ListBackupVaults API operation.
func (*ListBackupVaultsResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *ListBackupVaultsResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the ListBackupVaults request.
type ListCopyJobsInput ¶ added in v0.19.0
type ListCopyJobsInput struct { // Returns only copy jobs that were created after the specified date. ByCreatedAfter *time.Time `location:"querystring" locationName:"createdAfter" type:"timestamp"` // Returns only copy jobs that were created before the specified date. ByCreatedBefore *time.Time `location:"querystring" locationName:"createdBefore" type:"timestamp"` // 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 `location:"querystring" locationName:"destinationVaultArn" type:"string"` // Returns only copy jobs that match the specified resource Amazon Resource // Name (ARN). ByResourceArn *string `location:"querystring" locationName:"resourceArn" type:"string"` // Returns only backup jobs for the specified resources: // // * DynamoDB for Amazon DynamoDB // // * EBS for Amazon Elastic Block Store // // * EFS for Amazon Elastic File System // // * RDS for Amazon Relational Database Service // // * Storage Gateway for AWS Storage Gateway ByResourceType *string `location:"querystring" locationName:"resourceType" type:"string"` // Returns only copy jobs that are in the specified state. ByState CopyJobState `location:"querystring" locationName:"state" type:"string" enum:"true"` // The maximum number of items to be returned. MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` // 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 `location:"querystring" locationName:"nextToken" type:"string"` // contains filtered or unexported fields }
func (ListCopyJobsInput) MarshalFields ¶ added in v0.19.0
func (s ListCopyJobsInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (ListCopyJobsInput) String ¶ added in v0.19.0
func (s ListCopyJobsInput) String() string
String returns the string representation
func (*ListCopyJobsInput) Validate ¶ added in v0.19.0
func (s *ListCopyJobsInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ListCopyJobsOutput ¶ added in v0.19.0
type ListCopyJobsOutput struct { // An array of structures containing metadata about your copy jobs returned // in JSON format. CopyJobs []CopyJob `type:"list"` // 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:"string"` // contains filtered or unexported fields }
func (ListCopyJobsOutput) MarshalFields ¶ added in v0.19.0
func (s ListCopyJobsOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (ListCopyJobsOutput) String ¶ added in v0.19.0
func (s ListCopyJobsOutput) String() string
String returns the string representation
type ListCopyJobsPaginator ¶ added in v0.19.0
ListCopyJobsPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.
func NewListCopyJobsPaginator ¶ added in v0.19.0
func NewListCopyJobsPaginator(req ListCopyJobsRequest) ListCopyJobsPaginator
NewListCopyJobsRequestPaginator returns a paginator for ListCopyJobs. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.
Note: This operation can generate multiple requests to a service.
// Example iterating over pages. req := client.ListCopyJobsRequest(input) p := backup.NewListCopyJobsRequestPaginator(req) for p.Next(context.TODO()) { page := p.CurrentPage() } if err := p.Err(); err != nil { return err }
func (*ListCopyJobsPaginator) CurrentPage ¶ added in v0.19.0
func (p *ListCopyJobsPaginator) CurrentPage() *ListCopyJobsOutput
type ListCopyJobsRequest ¶ added in v0.19.0
type ListCopyJobsRequest struct { *aws.Request Input *ListCopyJobsInput Copy func(*ListCopyJobsInput) ListCopyJobsRequest }
ListCopyJobsRequest is the request type for the ListCopyJobs API operation.
func (ListCopyJobsRequest) Send ¶ added in v0.19.0
func (r ListCopyJobsRequest) Send(ctx context.Context) (*ListCopyJobsResponse, error)
Send marshals and sends the ListCopyJobs API request.
type ListCopyJobsResponse ¶ added in v0.19.0
type ListCopyJobsResponse struct { *ListCopyJobsOutput // contains filtered or unexported fields }
ListCopyJobsResponse is the response type for the ListCopyJobs API operation.
func (*ListCopyJobsResponse) SDKResponseMetdata ¶ added in v0.19.0
func (r *ListCopyJobsResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the ListCopyJobs request.
type ListProtectedResourcesInput ¶
type ListProtectedResourcesInput struct { // The maximum number of items to be returned. MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` // 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 `location:"querystring" locationName:"nextToken" type:"string"` // contains filtered or unexported fields }
func (ListProtectedResourcesInput) MarshalFields ¶
func (s ListProtectedResourcesInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (ListProtectedResourcesInput) String ¶
func (s ListProtectedResourcesInput) String() string
String returns the string representation
func (*ListProtectedResourcesInput) Validate ¶
func (s *ListProtectedResourcesInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
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 `type:"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 []ProtectedResource `type:"list"` // contains filtered or unexported fields }
func (ListProtectedResourcesOutput) MarshalFields ¶
func (s ListProtectedResourcesOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (ListProtectedResourcesOutput) String ¶
func (s ListProtectedResourcesOutput) String() string
String returns the string representation
type ListProtectedResourcesPaginator ¶ added in v0.9.0
ListProtectedResourcesPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.
func NewListProtectedResourcesPaginator ¶ added in v0.9.0
func NewListProtectedResourcesPaginator(req ListProtectedResourcesRequest) ListProtectedResourcesPaginator
NewListProtectedResourcesRequestPaginator returns a paginator for ListProtectedResources. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.
Note: This operation can generate multiple requests to a service.
// Example iterating over pages. req := client.ListProtectedResourcesRequest(input) p := backup.NewListProtectedResourcesRequestPaginator(req) for p.Next(context.TODO()) { page := p.CurrentPage() } if err := p.Err(); err != nil { return err }
func (*ListProtectedResourcesPaginator) CurrentPage ¶ added in v0.9.0
func (p *ListProtectedResourcesPaginator) CurrentPage() *ListProtectedResourcesOutput
type ListProtectedResourcesRequest ¶
type ListProtectedResourcesRequest struct { *aws.Request Input *ListProtectedResourcesInput Copy func(*ListProtectedResourcesInput) ListProtectedResourcesRequest }
ListProtectedResourcesRequest is the request type for the ListProtectedResources API operation.
func (ListProtectedResourcesRequest) Send ¶
func (r ListProtectedResourcesRequest) Send(ctx context.Context) (*ListProtectedResourcesResponse, error)
Send marshals and sends the ListProtectedResources API request.
type ListProtectedResourcesResponse ¶ added in v0.9.0
type ListProtectedResourcesResponse struct { *ListProtectedResourcesOutput // contains filtered or unexported fields }
ListProtectedResourcesResponse is the response type for the ListProtectedResources API operation.
func (*ListProtectedResourcesResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *ListProtectedResourcesResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the ListProtectedResources request.
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. // // BackupVaultName is a required field BackupVaultName *string `location:"uri" locationName:"backupVaultName" type:"string" required:"true"` // Returns only recovery points that match the specified backup plan ID. ByBackupPlanId *string `location:"querystring" locationName:"backupPlanId" type:"string"` // Returns only recovery points that were created after the specified timestamp. ByCreatedAfter *time.Time `location:"querystring" locationName:"createdAfter" type:"timestamp"` // Returns only recovery points that were created before the specified timestamp. ByCreatedBefore *time.Time `location:"querystring" locationName:"createdBefore" type:"timestamp"` // Returns only recovery points that match the specified resource Amazon Resource // Name (ARN). ByResourceArn *string `location:"querystring" locationName:"resourceArn" type:"string"` // Returns only recovery points that match the specified resource type. ByResourceType *string `location:"querystring" locationName:"resourceType" type:"string"` // The maximum number of items to be returned. MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` // 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 `location:"querystring" locationName:"nextToken" type:"string"` // contains filtered or unexported fields }
func (ListRecoveryPointsByBackupVaultInput) MarshalFields ¶
func (s ListRecoveryPointsByBackupVaultInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (ListRecoveryPointsByBackupVaultInput) String ¶
func (s ListRecoveryPointsByBackupVaultInput) String() string
String returns the string representation
func (*ListRecoveryPointsByBackupVaultInput) Validate ¶
func (s *ListRecoveryPointsByBackupVaultInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
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 `type:"string"` // An array of objects that contain detailed information about recovery points // saved in a backup vault. RecoveryPoints []RecoveryPointByBackupVault `type:"list"` // contains filtered or unexported fields }
func (ListRecoveryPointsByBackupVaultOutput) MarshalFields ¶
func (s ListRecoveryPointsByBackupVaultOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (ListRecoveryPointsByBackupVaultOutput) String ¶
func (s ListRecoveryPointsByBackupVaultOutput) String() string
String returns the string representation
type ListRecoveryPointsByBackupVaultPaginator ¶ added in v0.9.0
ListRecoveryPointsByBackupVaultPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.
func NewListRecoveryPointsByBackupVaultPaginator ¶ added in v0.9.0
func NewListRecoveryPointsByBackupVaultPaginator(req ListRecoveryPointsByBackupVaultRequest) ListRecoveryPointsByBackupVaultPaginator
NewListRecoveryPointsByBackupVaultRequestPaginator returns a paginator for ListRecoveryPointsByBackupVault. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.
Note: This operation can generate multiple requests to a service.
// Example iterating over pages. req := client.ListRecoveryPointsByBackupVaultRequest(input) p := backup.NewListRecoveryPointsByBackupVaultRequestPaginator(req) for p.Next(context.TODO()) { page := p.CurrentPage() } if err := p.Err(); err != nil { return err }
func (*ListRecoveryPointsByBackupVaultPaginator) CurrentPage ¶ added in v0.9.0
func (p *ListRecoveryPointsByBackupVaultPaginator) CurrentPage() *ListRecoveryPointsByBackupVaultOutput
type ListRecoveryPointsByBackupVaultRequest ¶
type ListRecoveryPointsByBackupVaultRequest struct { *aws.Request Input *ListRecoveryPointsByBackupVaultInput Copy func(*ListRecoveryPointsByBackupVaultInput) ListRecoveryPointsByBackupVaultRequest }
ListRecoveryPointsByBackupVaultRequest is the request type for the ListRecoveryPointsByBackupVault API operation.
func (ListRecoveryPointsByBackupVaultRequest) Send ¶
func (r ListRecoveryPointsByBackupVaultRequest) Send(ctx context.Context) (*ListRecoveryPointsByBackupVaultResponse, error)
Send marshals and sends the ListRecoveryPointsByBackupVault API request.
type ListRecoveryPointsByBackupVaultResponse ¶ added in v0.9.0
type ListRecoveryPointsByBackupVaultResponse struct { *ListRecoveryPointsByBackupVaultOutput // contains filtered or unexported fields }
ListRecoveryPointsByBackupVaultResponse is the response type for the ListRecoveryPointsByBackupVault API operation.
func (*ListRecoveryPointsByBackupVaultResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *ListRecoveryPointsByBackupVaultResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the ListRecoveryPointsByBackupVault request.
type ListRecoveryPointsByResourceInput ¶
type ListRecoveryPointsByResourceInput struct { // The maximum number of items to be returned. MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` // 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 `location:"querystring" locationName:"nextToken" type:"string"` // An ARN that uniquely identifies a resource. The format of the ARN depends // on the resource type. // // ResourceArn is a required field ResourceArn *string `location:"uri" locationName:"resourceArn" type:"string" required:"true"` // contains filtered or unexported fields }
func (ListRecoveryPointsByResourceInput) MarshalFields ¶
func (s ListRecoveryPointsByResourceInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (ListRecoveryPointsByResourceInput) String ¶
func (s ListRecoveryPointsByResourceInput) String() string
String returns the string representation
func (*ListRecoveryPointsByResourceInput) Validate ¶
func (s *ListRecoveryPointsByResourceInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
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 `type:"string"` // An array of objects that contain detailed information about recovery points // of the specified resource type. RecoveryPoints []RecoveryPointByResource `type:"list"` // contains filtered or unexported fields }
func (ListRecoveryPointsByResourceOutput) MarshalFields ¶
func (s ListRecoveryPointsByResourceOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (ListRecoveryPointsByResourceOutput) String ¶
func (s ListRecoveryPointsByResourceOutput) String() string
String returns the string representation
type ListRecoveryPointsByResourcePaginator ¶ added in v0.9.0
ListRecoveryPointsByResourcePaginator is used to paginate the request. This can be done by calling Next and CurrentPage.
func NewListRecoveryPointsByResourcePaginator ¶ added in v0.9.0
func NewListRecoveryPointsByResourcePaginator(req ListRecoveryPointsByResourceRequest) ListRecoveryPointsByResourcePaginator
NewListRecoveryPointsByResourceRequestPaginator returns a paginator for ListRecoveryPointsByResource. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.
Note: This operation can generate multiple requests to a service.
// Example iterating over pages. req := client.ListRecoveryPointsByResourceRequest(input) p := backup.NewListRecoveryPointsByResourceRequestPaginator(req) for p.Next(context.TODO()) { page := p.CurrentPage() } if err := p.Err(); err != nil { return err }
func (*ListRecoveryPointsByResourcePaginator) CurrentPage ¶ added in v0.9.0
func (p *ListRecoveryPointsByResourcePaginator) CurrentPage() *ListRecoveryPointsByResourceOutput
type ListRecoveryPointsByResourceRequest ¶
type ListRecoveryPointsByResourceRequest struct { *aws.Request Input *ListRecoveryPointsByResourceInput Copy func(*ListRecoveryPointsByResourceInput) ListRecoveryPointsByResourceRequest }
ListRecoveryPointsByResourceRequest is the request type for the ListRecoveryPointsByResource API operation.
func (ListRecoveryPointsByResourceRequest) Send ¶
func (r ListRecoveryPointsByResourceRequest) Send(ctx context.Context) (*ListRecoveryPointsByResourceResponse, error)
Send marshals and sends the ListRecoveryPointsByResource API request.
type ListRecoveryPointsByResourceResponse ¶ added in v0.9.0
type ListRecoveryPointsByResourceResponse struct { *ListRecoveryPointsByResourceOutput // contains filtered or unexported fields }
ListRecoveryPointsByResourceResponse is the response type for the ListRecoveryPointsByResource API operation.
func (*ListRecoveryPointsByResourceResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *ListRecoveryPointsByResourceResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the ListRecoveryPointsByResource request.
type ListRestoreJobsInput ¶
type ListRestoreJobsInput struct { // The maximum number of items to be returned. MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` // 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 `location:"querystring" locationName:"nextToken" type:"string"` // contains filtered or unexported fields }
func (ListRestoreJobsInput) MarshalFields ¶
func (s ListRestoreJobsInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (ListRestoreJobsInput) String ¶
func (s ListRestoreJobsInput) String() string
String returns the string representation
func (*ListRestoreJobsInput) Validate ¶
func (s *ListRestoreJobsInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
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 `type:"string"` // An array of objects that contain detailed information about jobs to restore // saved resources. RestoreJobs []RestoreJobsListMember `type:"list"` // contains filtered or unexported fields }
func (ListRestoreJobsOutput) MarshalFields ¶
func (s ListRestoreJobsOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (ListRestoreJobsOutput) String ¶
func (s ListRestoreJobsOutput) String() string
String returns the string representation
type ListRestoreJobsPaginator ¶ added in v0.9.0
ListRestoreJobsPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.
func NewListRestoreJobsPaginator ¶ added in v0.9.0
func NewListRestoreJobsPaginator(req ListRestoreJobsRequest) ListRestoreJobsPaginator
NewListRestoreJobsRequestPaginator returns a paginator for ListRestoreJobs. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.
Note: This operation can generate multiple requests to a service.
// Example iterating over pages. req := client.ListRestoreJobsRequest(input) p := backup.NewListRestoreJobsRequestPaginator(req) for p.Next(context.TODO()) { page := p.CurrentPage() } if err := p.Err(); err != nil { return err }
func (*ListRestoreJobsPaginator) CurrentPage ¶ added in v0.9.0
func (p *ListRestoreJobsPaginator) CurrentPage() *ListRestoreJobsOutput
type ListRestoreJobsRequest ¶
type ListRestoreJobsRequest struct { *aws.Request Input *ListRestoreJobsInput Copy func(*ListRestoreJobsInput) ListRestoreJobsRequest }
ListRestoreJobsRequest is the request type for the ListRestoreJobs API operation.
func (ListRestoreJobsRequest) Send ¶
func (r ListRestoreJobsRequest) Send(ctx context.Context) (*ListRestoreJobsResponse, error)
Send marshals and sends the ListRestoreJobs API request.
type ListRestoreJobsResponse ¶ added in v0.9.0
type ListRestoreJobsResponse struct { *ListRestoreJobsOutput // contains filtered or unexported fields }
ListRestoreJobsResponse is the response type for the ListRestoreJobs API operation.
func (*ListRestoreJobsResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *ListRestoreJobsResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the ListRestoreJobs request.
type ListTagsInput ¶
type ListTagsInput struct { // The maximum number of items to be returned. MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` // 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 `location:"querystring" locationName:"nextToken" type:"string"` // 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. // // ResourceArn is a required field ResourceArn *string `location:"uri" locationName:"resourceArn" type:"string" required:"true"` // contains filtered or unexported fields }
func (ListTagsInput) MarshalFields ¶
func (s ListTagsInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (ListTagsInput) String ¶
func (s ListTagsInput) String() string
String returns the string representation
func (*ListTagsInput) Validate ¶
func (s *ListTagsInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
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 `type:"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 `type:"map" sensitive:"true"` // contains filtered or unexported fields }
func (ListTagsOutput) MarshalFields ¶
func (s ListTagsOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (ListTagsOutput) String ¶
func (s ListTagsOutput) String() string
String returns the string representation
type ListTagsPaginator ¶ added in v0.9.0
ListTagsPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.
func NewListTagsPaginator ¶ added in v0.9.0
func NewListTagsPaginator(req ListTagsRequest) ListTagsPaginator
NewListTagsRequestPaginator returns a paginator for ListTags. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.
Note: This operation can generate multiple requests to a service.
// Example iterating over pages. req := client.ListTagsRequest(input) p := backup.NewListTagsRequestPaginator(req) for p.Next(context.TODO()) { page := p.CurrentPage() } if err := p.Err(); err != nil { return err }
func (*ListTagsPaginator) CurrentPage ¶ added in v0.9.0
func (p *ListTagsPaginator) CurrentPage() *ListTagsOutput
type ListTagsRequest ¶
type ListTagsRequest struct { *aws.Request Input *ListTagsInput Copy func(*ListTagsInput) ListTagsRequest }
ListTagsRequest is the request type for the ListTags API operation.
func (ListTagsRequest) Send ¶
func (r ListTagsRequest) Send(ctx context.Context) (*ListTagsResponse, error)
Send marshals and sends the ListTags API request.
type ListTagsResponse ¶ added in v0.9.0
type ListTagsResponse struct { *ListTagsOutput // contains filtered or unexported fields }
ListTagsResponse is the response type for the ListTags API operation.
func (*ListTagsResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *ListTagsResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the ListTags request.
type ProtectedResource ¶
type ProtectedResource struct { // The date and time 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 `type:"timestamp"` // An Amazon Resource Name (ARN) that uniquely identifies a resource. The format // of the ARN depends on the resource type. ResourceArn *string `type:"string"` // The type of AWS resource; for example, an Amazon Elastic Block Store (Amazon // EBS) volume or an Amazon Relational Database Service (Amazon RDS) database. ResourceType *string `type:"string"` // contains filtered or unexported fields }
A structure that contains information about a backed-up resource.
func (ProtectedResource) MarshalFields ¶
func (s ProtectedResource) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (ProtectedResource) String ¶
func (s ProtectedResource) String() string
String returns the string representation
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. // // BackupVaultName is a required field BackupVaultName *string `location:"uri" locationName:"backupVaultName" type:"string" required:"true"` // The backup vault access policy document in JSON format. Policy *string `type:"string"` // contains filtered or unexported fields }
func (PutBackupVaultAccessPolicyInput) MarshalFields ¶
func (s PutBackupVaultAccessPolicyInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (PutBackupVaultAccessPolicyInput) String ¶
func (s PutBackupVaultAccessPolicyInput) String() string
String returns the string representation
func (*PutBackupVaultAccessPolicyInput) Validate ¶
func (s *PutBackupVaultAccessPolicyInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type PutBackupVaultAccessPolicyOutput ¶
type PutBackupVaultAccessPolicyOutput struct {
// contains filtered or unexported fields
}
func (PutBackupVaultAccessPolicyOutput) MarshalFields ¶
func (s PutBackupVaultAccessPolicyOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (PutBackupVaultAccessPolicyOutput) String ¶
func (s PutBackupVaultAccessPolicyOutput) String() string
String returns the string representation
type PutBackupVaultAccessPolicyRequest ¶
type PutBackupVaultAccessPolicyRequest struct { *aws.Request Input *PutBackupVaultAccessPolicyInput Copy func(*PutBackupVaultAccessPolicyInput) PutBackupVaultAccessPolicyRequest }
PutBackupVaultAccessPolicyRequest is the request type for the PutBackupVaultAccessPolicy API operation.
func (PutBackupVaultAccessPolicyRequest) Send ¶
func (r PutBackupVaultAccessPolicyRequest) Send(ctx context.Context) (*PutBackupVaultAccessPolicyResponse, error)
Send marshals and sends the PutBackupVaultAccessPolicy API request.
type PutBackupVaultAccessPolicyResponse ¶ added in v0.9.0
type PutBackupVaultAccessPolicyResponse struct { *PutBackupVaultAccessPolicyOutput // contains filtered or unexported fields }
PutBackupVaultAccessPolicyResponse is the response type for the PutBackupVaultAccessPolicy API operation.
func (*PutBackupVaultAccessPolicyResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *PutBackupVaultAccessPolicyResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the PutBackupVaultAccessPolicy request.
type PutBackupVaultNotificationsInput ¶
type PutBackupVaultNotificationsInput struct { // An array of events that indicate the status of jobs to back up resources // to the backup vault. // // BackupVaultEvents is a required field BackupVaultEvents []BackupVaultEvent `type:"list" required:"true"` // 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 is a required field BackupVaultName *string `location:"uri" locationName:"backupVaultName" type:"string" required:"true"` // 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. // // SNSTopicArn is a required field SNSTopicArn *string `type:"string" required:"true"` // contains filtered or unexported fields }
func (PutBackupVaultNotificationsInput) MarshalFields ¶
func (s PutBackupVaultNotificationsInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (PutBackupVaultNotificationsInput) String ¶
func (s PutBackupVaultNotificationsInput) String() string
String returns the string representation
func (*PutBackupVaultNotificationsInput) Validate ¶
func (s *PutBackupVaultNotificationsInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type PutBackupVaultNotificationsOutput ¶
type PutBackupVaultNotificationsOutput struct {
// contains filtered or unexported fields
}
func (PutBackupVaultNotificationsOutput) MarshalFields ¶
func (s PutBackupVaultNotificationsOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (PutBackupVaultNotificationsOutput) String ¶
func (s PutBackupVaultNotificationsOutput) String() string
String returns the string representation
type PutBackupVaultNotificationsRequest ¶
type PutBackupVaultNotificationsRequest struct { *aws.Request Input *PutBackupVaultNotificationsInput Copy func(*PutBackupVaultNotificationsInput) PutBackupVaultNotificationsRequest }
PutBackupVaultNotificationsRequest is the request type for the PutBackupVaultNotifications API operation.
func (PutBackupVaultNotificationsRequest) Send ¶
func (r PutBackupVaultNotificationsRequest) Send(ctx context.Context) (*PutBackupVaultNotificationsResponse, error)
Send marshals and sends the PutBackupVaultNotifications API request.
type PutBackupVaultNotificationsResponse ¶ added in v0.9.0
type PutBackupVaultNotificationsResponse struct { *PutBackupVaultNotificationsOutput // contains filtered or unexported fields }
PutBackupVaultNotificationsResponse is the response type for the PutBackupVaultNotifications API operation.
func (*PutBackupVaultNotificationsResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *PutBackupVaultNotificationsResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the PutBackupVaultNotifications request.
type RecoveryPointByBackupVault ¶
type RecoveryPointByBackupVault struct { // The size, in bytes, of a backup. BackupSizeInBytes *int64 `type:"long"` // An ARN that uniquely identifies a backup vault; for example, arn:aws:backup:us-east-1:123456789012:vault:aBackupVault. BackupVaultArn *string `type:"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 `type:"string"` // A CalculatedLifecycle object containing DeleteAt and MoveToColdStorageAt // timestamps. CalculatedLifecycle *CalculatedLifecycle `type:"structure"` // The date and time 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 `type:"timestamp"` // Contains identifying information about the creation of a recovery point, // including the BackupPlanArn, BackupPlanId, BackupPlanVersion, and BackupRuleId // of the backup plan that is used to create it. CreatedBy *RecoveryPointCreator `type:"structure"` // The date and time 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 `type:"timestamp"` // 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:"string"` // Specifies the IAM role ARN used to create the target recovery point; for // example, arn:aws:iam::123456789012:role/S3Access. IamRoleArn *string `type:"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 `type:"boolean"` // The date and time 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 `type:"timestamp"` // 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 *Lifecycle `type:"structure"` // 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 `type:"string"` // An ARN that uniquely identifies a resource. The format of the ARN depends // on the resource type. ResourceArn *string `type:"string"` // The type of AWS resource saved 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 `type:"string"` // A status code specifying the state of the recovery point. Status RecoveryPointStatus `type:"string" enum:"true"` // contains filtered or unexported fields }
Contains detailed information about the recovery points stored in a backup vault.
func (RecoveryPointByBackupVault) MarshalFields ¶
func (s RecoveryPointByBackupVault) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (RecoveryPointByBackupVault) String ¶
func (s RecoveryPointByBackupVault) String() string
String returns the string representation
type RecoveryPointByResource ¶
type RecoveryPointByResource struct { // The size, in bytes, of a backup. BackupSizeBytes *int64 `type:"long"` // 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 `type:"string"` // The date and time 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 `type:"timestamp"` // 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:"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. RecoveryPointArn *string `type:"string"` // A status code specifying the state of the recovery point. Status RecoveryPointStatus `type:"string" enum:"true"` // contains filtered or unexported fields }
Contains detailed information about a saved recovery point.
func (RecoveryPointByResource) MarshalFields ¶
func (s RecoveryPointByResource) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (RecoveryPointByResource) String ¶
func (s RecoveryPointByResource) String() string
String returns the string representation
type RecoveryPointCreator ¶
type RecoveryPointCreator 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 `type:"string"` // Uniquely identifies a backup plan. BackupPlanId *string `type:"string"` // Version IDs are unique, randomly generated, Unicode, UTF-8 encoded strings // that are at most 1,024 bytes long. They cannot be edited. BackupPlanVersion *string `type:"string"` // Uniquely identifies a rule used to schedule the backup of a selection of // resources. BackupRuleId *string `type:"string"` // contains filtered or unexported fields }
Contains information about the backup plan and rule that AWS Backup used to initiate the recovery point backup.
func (RecoveryPointCreator) MarshalFields ¶
func (s RecoveryPointCreator) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (RecoveryPointCreator) String ¶
func (s RecoveryPointCreator) String() string
String returns the string representation
type RecoveryPointStatus ¶
type RecoveryPointStatus string
const ( RecoveryPointStatusCompleted RecoveryPointStatus = "COMPLETED" RecoveryPointStatusPartial RecoveryPointStatus = "PARTIAL" RecoveryPointStatusDeleting RecoveryPointStatus = "DELETING" RecoveryPointStatusExpired RecoveryPointStatus = "EXPIRED" )
Enum values for RecoveryPointStatus
func (RecoveryPointStatus) MarshalValue ¶
func (enum RecoveryPointStatus) MarshalValue() (string, error)
func (RecoveryPointStatus) MarshalValueBuf ¶
func (enum RecoveryPointStatus) MarshalValueBuf(b []byte) ([]byte, error)
type RestoreJobStatus ¶
type RestoreJobStatus string
const ( RestoreJobStatusPending RestoreJobStatus = "PENDING" RestoreJobStatusRunning RestoreJobStatus = "RUNNING" RestoreJobStatusCompleted RestoreJobStatus = "COMPLETED" RestoreJobStatusAborted RestoreJobStatus = "ABORTED" RestoreJobStatusFailed RestoreJobStatus = "FAILED" )
Enum values for RestoreJobStatus
func (RestoreJobStatus) MarshalValue ¶
func (enum RestoreJobStatus) MarshalValue() (string, error)
func (RestoreJobStatus) MarshalValueBuf ¶
func (enum RestoreJobStatus) MarshalValueBuf(b []byte) ([]byte, error)
type RestoreJobsListMember ¶
type RestoreJobsListMember struct { // The size, in bytes, of the restored resource. BackupSizeInBytes *int64 `type:"long"` // The date and time 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 `type:"timestamp"` // An Amazon Resource Name (ARN) that uniquely identifies a resource. The format // of the ARN depends on the resource type. CreatedResourceArn *string `type:"string"` // The date and time 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 `type:"timestamp"` // The amount of time in minutes that a job restoring a recovery point is expected // to take. ExpectedCompletionTimeMinutes *int64 `type:"long"` // Specifies the IAM role ARN used to create the target recovery point; for // example, arn:aws:iam::123456789012:role/S3Access. IamRoleArn *string `type:"string"` // Contains an estimated percentage complete of a job at the time the job status // was queried. PercentDone *string `type:"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 `type:"string"` // Uniquely identifies the job that restores a recovery point. RestoreJobId *string `type:"string"` // A status code specifying the state of the job initiated by AWS Backup to // restore a recovery point. Status RestoreJobStatus `type:"string" enum:"true"` // A detailed message explaining the status of the job to restore a recovery // point. StatusMessage *string `type:"string"` // contains filtered or unexported fields }
Contains metadata about a restore job.
func (RestoreJobsListMember) MarshalFields ¶
func (s RestoreJobsListMember) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (RestoreJobsListMember) String ¶
func (s RestoreJobsListMember) String() string
String returns the string representation
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. // // BackupVaultName is a required field BackupVaultName *string `type:"string" required:"true"` // The amount of time AWS Backup attempts a backup before canceling the job // and returning an error. CompleteWindowMinutes *int64 `type:"long"` // Specifies the IAM role ARN used to create the target recovery point; for // example, arn:aws:iam::123456789012:role/S3Access. // // IamRoleArn is a required field IamRoleArn *string `type:"string" required:"true"` // A customer chosen string that can be used to distinguish between calls to // StartBackupJob. IdempotencyToken *string `type:"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. Lifecycle *Lifecycle `type:"structure"` // 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 `type:"map" sensitive:"true"` // An Amazon Resource Name (ARN) that uniquely identifies a resource. The format // of the ARN depends on the resource type. // // ResourceArn is a required field ResourceArn *string `type:"string" required:"true"` // The amount of time in minutes before beginning a backup. StartWindowMinutes *int64 `type:"long"` // contains filtered or unexported fields }
func (StartBackupJobInput) MarshalFields ¶
func (s StartBackupJobInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (StartBackupJobInput) String ¶
func (s StartBackupJobInput) String() string
String returns the string representation
func (*StartBackupJobInput) Validate ¶
func (s *StartBackupJobInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type StartBackupJobOutput ¶
type StartBackupJobOutput struct { // Uniquely identifies a request to AWS Backup to back up a resource. BackupJobId *string `type:"string"` // The date and time that a backup job is started, 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 `type:"timestamp"` // 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 `type:"string"` // contains filtered or unexported fields }
func (StartBackupJobOutput) MarshalFields ¶
func (s StartBackupJobOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (StartBackupJobOutput) String ¶
func (s StartBackupJobOutput) String() string
String returns the string representation
type StartBackupJobRequest ¶
type StartBackupJobRequest struct { *aws.Request Input *StartBackupJobInput Copy func(*StartBackupJobInput) StartBackupJobRequest }
StartBackupJobRequest is the request type for the StartBackupJob API operation.
func (StartBackupJobRequest) Send ¶
func (r StartBackupJobRequest) Send(ctx context.Context) (*StartBackupJobResponse, error)
Send marshals and sends the StartBackupJob API request.
type StartBackupJobResponse ¶ added in v0.9.0
type StartBackupJobResponse struct { *StartBackupJobOutput // contains filtered or unexported fields }
StartBackupJobResponse is the response type for the StartBackupJob API operation.
func (*StartBackupJobResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *StartBackupJobResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the StartBackupJob request.
type StartCopyJobInput ¶ added in v0.19.0
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. // // DestinationBackupVaultArn is a required field DestinationBackupVaultArn *string `type:"string" required:"true"` // Specifies the IAM role ARN used to copy the target recovery point; for example, // arn:aws:iam::123456789012:role/S3Access. // // IamRoleArn is a required field IamRoleArn *string `type:"string" required:"true"` // A customer chosen string that can be used to distinguish between calls to // StartCopyJob. IdempotencyToken *string `type:"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. Lifecycle *Lifecycle `type:"structure"` // 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. // // RecoveryPointArn is a required field RecoveryPointArn *string `type:"string" required:"true"` // 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. > // // SourceBackupVaultName is a required field SourceBackupVaultName *string `type:"string" required:"true"` // contains filtered or unexported fields }
func (StartCopyJobInput) MarshalFields ¶ added in v0.19.0
func (s StartCopyJobInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (StartCopyJobInput) String ¶ added in v0.19.0
func (s StartCopyJobInput) String() string
String returns the string representation
func (*StartCopyJobInput) Validate ¶ added in v0.19.0
func (s *StartCopyJobInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type StartCopyJobOutput ¶ added in v0.19.0
type StartCopyJobOutput struct { // Uniquely identifies a request to AWS Backup to copy a resource. CopyJobId *string `type:"string"` // The date and time that a backup job is started, 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 `type:"timestamp"` // contains filtered or unexported fields }
func (StartCopyJobOutput) MarshalFields ¶ added in v0.19.0
func (s StartCopyJobOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (StartCopyJobOutput) String ¶ added in v0.19.0
func (s StartCopyJobOutput) String() string
String returns the string representation
type StartCopyJobRequest ¶ added in v0.19.0
type StartCopyJobRequest struct { *aws.Request Input *StartCopyJobInput Copy func(*StartCopyJobInput) StartCopyJobRequest }
StartCopyJobRequest is the request type for the StartCopyJob API operation.
func (StartCopyJobRequest) Send ¶ added in v0.19.0
func (r StartCopyJobRequest) Send(ctx context.Context) (*StartCopyJobResponse, error)
Send marshals and sends the StartCopyJob API request.
type StartCopyJobResponse ¶ added in v0.19.0
type StartCopyJobResponse struct { *StartCopyJobOutput // contains filtered or unexported fields }
StartCopyJobResponse is the response type for the StartCopyJob API operation.
func (*StartCopyJobResponse) SDKResponseMetdata ¶ added in v0.19.0
func (r *StartCopyJobResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the StartCopyJob request.
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. // // IamRoleArn is a required field IamRoleArn *string `type:"string" required:"true"` // A customer chosen string that can be used to distinguish between calls to // StartRestoreJob. IdempotencyToken *string `type:"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: 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. // // * 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. // // Metadata is a required field Metadata map[string]string `type:"map" required:"true" sensitive:"true"` // 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 is a required field RecoveryPointArn *string `type:"string" required:"true"` // Starts a job to restore a recovery point for one of the following resources: // // * EBS for Amazon Elastic Block Store // // * Storage Gateway for AWS Storage Gateway // // * RDS for Amazon Relational Database Service // // * DDB for Amazon DynamoDB // // * EFS for Amazon Elastic File System ResourceType *string `type:"string"` // contains filtered or unexported fields }
func (StartRestoreJobInput) MarshalFields ¶
func (s StartRestoreJobInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (StartRestoreJobInput) String ¶
func (s StartRestoreJobInput) String() string
String returns the string representation
func (*StartRestoreJobInput) Validate ¶
func (s *StartRestoreJobInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type StartRestoreJobOutput ¶
type StartRestoreJobOutput struct { // Uniquely identifies the job that restores a recovery point. RestoreJobId *string `type:"string"` // contains filtered or unexported fields }
func (StartRestoreJobOutput) MarshalFields ¶
func (s StartRestoreJobOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (StartRestoreJobOutput) String ¶
func (s StartRestoreJobOutput) String() string
String returns the string representation
type StartRestoreJobRequest ¶
type StartRestoreJobRequest struct { *aws.Request Input *StartRestoreJobInput Copy func(*StartRestoreJobInput) StartRestoreJobRequest }
StartRestoreJobRequest is the request type for the StartRestoreJob API operation.
func (StartRestoreJobRequest) Send ¶
func (r StartRestoreJobRequest) Send(ctx context.Context) (*StartRestoreJobResponse, error)
Send marshals and sends the StartRestoreJob API request.
type StartRestoreJobResponse ¶ added in v0.9.0
type StartRestoreJobResponse struct { *StartRestoreJobOutput // contains filtered or unexported fields }
StartRestoreJobResponse is the response type for the StartRestoreJob API operation.
func (*StartRestoreJobResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *StartRestoreJobResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the StartRestoreJob request.
type StopBackupJobInput ¶
type StopBackupJobInput struct { // Uniquely identifies a request to AWS Backup to back up a resource. // // BackupJobId is a required field BackupJobId *string `location:"uri" locationName:"backupJobId" type:"string" required:"true"` // contains filtered or unexported fields }
func (StopBackupJobInput) MarshalFields ¶
func (s StopBackupJobInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (StopBackupJobInput) String ¶
func (s StopBackupJobInput) String() string
String returns the string representation
func (*StopBackupJobInput) Validate ¶
func (s *StopBackupJobInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type StopBackupJobOutput ¶
type StopBackupJobOutput struct {
// contains filtered or unexported fields
}
func (StopBackupJobOutput) MarshalFields ¶
func (s StopBackupJobOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (StopBackupJobOutput) String ¶
func (s StopBackupJobOutput) String() string
String returns the string representation
type StopBackupJobRequest ¶
type StopBackupJobRequest struct { *aws.Request Input *StopBackupJobInput Copy func(*StopBackupJobInput) StopBackupJobRequest }
StopBackupJobRequest is the request type for the StopBackupJob API operation.
func (StopBackupJobRequest) Send ¶
func (r StopBackupJobRequest) Send(ctx context.Context) (*StopBackupJobResponse, error)
Send marshals and sends the StopBackupJob API request.
type StopBackupJobResponse ¶ added in v0.9.0
type StopBackupJobResponse struct { *StopBackupJobOutput // contains filtered or unexported fields }
StopBackupJobResponse is the response type for the StopBackupJob API operation.
func (*StopBackupJobResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *StopBackupJobResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the StopBackupJob request.
type StorageClass ¶
type StorageClass string
const ( StorageClassWarm StorageClass = "WARM" StorageClassCold StorageClass = "COLD" StorageClassDeleted StorageClass = "DELETED" )
Enum values for StorageClass
func (StorageClass) MarshalValue ¶
func (enum StorageClass) MarshalValue() (string, error)
func (StorageClass) MarshalValueBuf ¶
func (enum StorageClass) MarshalValueBuf(b []byte) ([]byte, error)
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. // // ResourceArn is a required field ResourceArn *string `location:"uri" locationName:"resourceArn" type:"string" required:"true"` // Key-value pairs that are used to help organize your resources. You can assign // your own metadata to the resources you create. // // Tags is a required field Tags map[string]string `type:"map" required:"true" sensitive:"true"` // contains filtered or unexported fields }
func (TagResourceInput) MarshalFields ¶
func (s TagResourceInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (TagResourceInput) String ¶
func (s TagResourceInput) String() string
String returns the string representation
func (*TagResourceInput) Validate ¶
func (s *TagResourceInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type TagResourceOutput ¶
type TagResourceOutput struct {
// contains filtered or unexported fields
}
func (TagResourceOutput) MarshalFields ¶
func (s TagResourceOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (TagResourceOutput) String ¶
func (s TagResourceOutput) String() string
String returns the string representation
type TagResourceRequest ¶
type TagResourceRequest struct { *aws.Request Input *TagResourceInput Copy func(*TagResourceInput) TagResourceRequest }
TagResourceRequest is the request type for the TagResource API operation.
func (TagResourceRequest) Send ¶
func (r TagResourceRequest) Send(ctx context.Context) (*TagResourceResponse, error)
Send marshals and sends the TagResource API request.
type TagResourceResponse ¶ added in v0.9.0
type TagResourceResponse struct { *TagResourceOutput // contains filtered or unexported fields }
TagResourceResponse is the response type for the TagResource API operation.
func (*TagResourceResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *TagResourceResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the TagResource request.
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. // // ResourceArn is a required field ResourceArn *string `location:"uri" locationName:"resourceArn" type:"string" required:"true"` // A list of keys to identify which key-value tags to remove from a resource. // // TagKeyList is a required field TagKeyList []string `type:"list" required:"true" sensitive:"true"` // contains filtered or unexported fields }
func (UntagResourceInput) MarshalFields ¶
func (s UntagResourceInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (UntagResourceInput) String ¶
func (s UntagResourceInput) String() string
String returns the string representation
func (*UntagResourceInput) Validate ¶
func (s *UntagResourceInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type UntagResourceOutput ¶
type UntagResourceOutput struct {
// contains filtered or unexported fields
}
func (UntagResourceOutput) MarshalFields ¶
func (s UntagResourceOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (UntagResourceOutput) String ¶
func (s UntagResourceOutput) String() string
String returns the string representation
type UntagResourceRequest ¶
type UntagResourceRequest struct { *aws.Request Input *UntagResourceInput Copy func(*UntagResourceInput) UntagResourceRequest }
UntagResourceRequest is the request type for the UntagResource API operation.
func (UntagResourceRequest) Send ¶
func (r UntagResourceRequest) Send(ctx context.Context) (*UntagResourceResponse, error)
Send marshals and sends the UntagResource API request.
type UntagResourceResponse ¶ added in v0.9.0
type UntagResourceResponse struct { *UntagResourceOutput // contains filtered or unexported fields }
UntagResourceResponse is the response type for the UntagResource API operation.
func (*UntagResourceResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *UntagResourceResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the UntagResource request.
type UpdateBackupPlanInput ¶
type UpdateBackupPlanInput struct { // Specifies the body of a backup plan. Includes a BackupPlanName and one or // more sets of Rules. // // BackupPlan is a required field BackupPlan *BackupPlanInput `type:"structure" required:"true"` // Uniquely identifies a backup plan. // // BackupPlanId is a required field BackupPlanId *string `location:"uri" locationName:"backupPlanId" type:"string" required:"true"` // contains filtered or unexported fields }
func (UpdateBackupPlanInput) MarshalFields ¶
func (s UpdateBackupPlanInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (UpdateBackupPlanInput) String ¶
func (s UpdateBackupPlanInput) String() string
String returns the string representation
func (*UpdateBackupPlanInput) Validate ¶
func (s *UpdateBackupPlanInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type UpdateBackupPlanOutput ¶
type UpdateBackupPlanOutput 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 `type:"string"` // Uniquely identifies a backup plan. BackupPlanId *string `type:"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 `type:"timestamp"` // Unique, randomly generated, Unicode, UTF-8 encoded strings that are at most // 1,024 bytes long. Version Ids cannot be edited. VersionId *string `type:"string"` // contains filtered or unexported fields }
func (UpdateBackupPlanOutput) MarshalFields ¶
func (s UpdateBackupPlanOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (UpdateBackupPlanOutput) String ¶
func (s UpdateBackupPlanOutput) String() string
String returns the string representation
type UpdateBackupPlanRequest ¶
type UpdateBackupPlanRequest struct { *aws.Request Input *UpdateBackupPlanInput Copy func(*UpdateBackupPlanInput) UpdateBackupPlanRequest }
UpdateBackupPlanRequest is the request type for the UpdateBackupPlan API operation.
func (UpdateBackupPlanRequest) Send ¶
func (r UpdateBackupPlanRequest) Send(ctx context.Context) (*UpdateBackupPlanResponse, error)
Send marshals and sends the UpdateBackupPlan API request.
type UpdateBackupPlanResponse ¶ added in v0.9.0
type UpdateBackupPlanResponse struct { *UpdateBackupPlanOutput // contains filtered or unexported fields }
UpdateBackupPlanResponse is the response type for the UpdateBackupPlan API operation.
func (*UpdateBackupPlanResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *UpdateBackupPlanResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the UpdateBackupPlan request.
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. // // BackupVaultName is a required field BackupVaultName *string `location:"uri" locationName:"backupVaultName" type:"string" required:"true"` // 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 *Lifecycle `type:"structure"` // 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 is a required field RecoveryPointArn *string `location:"uri" locationName:"recoveryPointArn" type:"string" required:"true"` // contains filtered or unexported fields }
func (UpdateRecoveryPointLifecycleInput) MarshalFields ¶
func (s UpdateRecoveryPointLifecycleInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (UpdateRecoveryPointLifecycleInput) String ¶
func (s UpdateRecoveryPointLifecycleInput) String() string
String returns the string representation
func (*UpdateRecoveryPointLifecycleInput) Validate ¶
func (s *UpdateRecoveryPointLifecycleInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
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 `type:"string"` // A CalculatedLifecycle object containing DeleteAt and MoveToColdStorageAt // timestamps. CalculatedLifecycle *CalculatedLifecycle `type:"structure"` // 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 *Lifecycle `type:"structure"` // 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 `type:"string"` // contains filtered or unexported fields }
func (UpdateRecoveryPointLifecycleOutput) MarshalFields ¶
func (s UpdateRecoveryPointLifecycleOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (UpdateRecoveryPointLifecycleOutput) String ¶
func (s UpdateRecoveryPointLifecycleOutput) String() string
String returns the string representation
type UpdateRecoveryPointLifecycleRequest ¶
type UpdateRecoveryPointLifecycleRequest struct { *aws.Request Input *UpdateRecoveryPointLifecycleInput Copy func(*UpdateRecoveryPointLifecycleInput) UpdateRecoveryPointLifecycleRequest }
UpdateRecoveryPointLifecycleRequest is the request type for the UpdateRecoveryPointLifecycle API operation.
func (UpdateRecoveryPointLifecycleRequest) Send ¶
func (r UpdateRecoveryPointLifecycleRequest) Send(ctx context.Context) (*UpdateRecoveryPointLifecycleResponse, error)
Send marshals and sends the UpdateRecoveryPointLifecycle API request.
type UpdateRecoveryPointLifecycleResponse ¶ added in v0.9.0
type UpdateRecoveryPointLifecycleResponse struct { *UpdateRecoveryPointLifecycleOutput // contains filtered or unexported fields }
UpdateRecoveryPointLifecycleResponse is the response type for the UpdateRecoveryPointLifecycle API operation.
func (*UpdateRecoveryPointLifecycleResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *UpdateRecoveryPointLifecycleResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the UpdateRecoveryPointLifecycle request.
Source Files ¶
- api_client.go
- api_doc.go
- api_enums.go
- api_errors.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_DescribeProtectedResource.go
- api_op_DescribeRecoveryPoint.go
- api_op_DescribeRestoreJob.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_UpdateRecoveryPointLifecycle.go
- api_types.go
Directories ¶
Path | Synopsis |
---|---|
Package backupiface provides an interface to enable mocking the AWS Backup service client for testing your code.
|
Package backupiface provides an interface to enable mocking the AWS Backup service client for testing your code. |