AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

StartRestoreJobInput

import "github.com/aws/aws-sdk-go/service/backup"

type StartRestoreJobInput struct { IamRoleArn *string `type:"string" required:"true"` IdempotencyToken *string `type:"string"` Metadata map[string]*string `type:"map" required:"true"` RecoveryPointArn *string `type:"string" required:"true"` ResourceType *string `type:"string"` }

IamRoleArn

Type: *string

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

IdempotencyToken

Type: *string

A customer chosen string that can be used to distinguish between calls to StartRestoreJob. Idempotency tokens time out after one hour. Therefore, if you call StartRestoreJob multiple times with the same idempotency token within one hour, AWS Backup recognizes that you are requesting only one restore job and initiates only one. If you change the idempotency token for each call, AWS Backup recognizes that you are requesting to start multiple restores.

Metadata

Type: map[string]*string

A set of metadata key-value pairs. Lists the metadata that the recovery point was created with.

Metadata is a required field

RecoveryPointArn

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 is a required field

ResourceType

Type: *string

Starts a job to restore a recovery point for one of the following resources:

  • EBS for Amazon Elastic Block Store

  • SGW for AWS Storage Gateway

  • RDS for Amazon Relational Database Service

  • DDB for Amazon DynamoDB

  • EFS for Amazon Elastic File System

Method

GoString

func (s StartRestoreJobInput) GoString() string

GoString returns the string representation

SetIamRoleArn

func (s *StartRestoreJobInput) SetIamRoleArn(v string) *StartRestoreJobInput

SetIamRoleArn sets the IamRoleArn field's value.

SetIdempotencyToken

func (s *StartRestoreJobInput) SetIdempotencyToken(v string) *StartRestoreJobInput

SetIdempotencyToken sets the IdempotencyToken field's value.

SetMetadata

func (s *StartRestoreJobInput) SetMetadata(v map[string]*string) *StartRestoreJobInput

SetMetadata sets the Metadata field's value.

SetRecoveryPointArn

func (s *StartRestoreJobInput) SetRecoveryPointArn(v string) *StartRestoreJobInput

SetRecoveryPointArn sets the RecoveryPointArn field's value.

SetResourceType

func (s *StartRestoreJobInput) SetResourceType(v string) *StartRestoreJobInput

SetResourceType sets the ResourceType field's value.

String

func (s StartRestoreJobInput) String() string

String returns the string representation

Validate

func (s *StartRestoreJobInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

On this page: