aws-sdk-go: github.com/aws/aws-sdk-go/service/databasemigrationservice Index | Examples | Files | Directories

package databasemigrationservice

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

Package databasemigrationservice provides the client and types for making API requests to AWS Database Migration Service.

AWS Database Migration Service (AWS DMS) can migrate your data to and from the most widely used commercial and open-source databases such as Oracle, PostgreSQL, Microsoft SQL Server, Amazon Redshift, MariaDB, Amazon Aurora, MySQL, and SAP Adaptive Server Enterprise (ASE). The service supports homogeneous migrations such as Oracle to Oracle, as well as heterogeneous migrations between different database platforms, such as Oracle to MySQL or SQL Server to PostgreSQL.

For more information about AWS DMS, see What Is AWS Database Migration Service? (https://docs.aws.amazon.com/dms/latest/userguide/Welcome.html) in the AWS Database Migration User Guide.

See https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01 for more information on this service.

See databasemigrationservice package documentation for more information. https://docs.aws.amazon.com/sdk-for-go/api/service/databasemigrationservice/

Using the Client

To contact AWS Database Migration Service 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 Database Migration Service client DatabaseMigrationService for more information on creating client for this service. https://docs.aws.amazon.com/sdk-for-go/api/service/databasemigrationservice/#New

Index

Examples

Package Files

api.go doc.go errors.go service.go waiters.go

Constants

const (
    // AuthMechanismValueDefault is a AuthMechanismValue enum value
    AuthMechanismValueDefault = "default"

    // AuthMechanismValueMongodbCr is a AuthMechanismValue enum value
    AuthMechanismValueMongodbCr = "mongodb_cr"

    // AuthMechanismValueScramSha1 is a AuthMechanismValue enum value
    AuthMechanismValueScramSha1 = "scram_sha_1"
)
const (
    // AuthTypeValueNo is a AuthTypeValue enum value
    AuthTypeValueNo = "no"

    // AuthTypeValuePassword is a AuthTypeValue enum value
    AuthTypeValuePassword = "password"
)
const (
    // CompressionTypeValueNone is a CompressionTypeValue enum value
    CompressionTypeValueNone = "none"

    // CompressionTypeValueGzip is a CompressionTypeValue enum value
    CompressionTypeValueGzip = "gzip"
)
const (
    // DataFormatValueCsv is a DataFormatValue enum value
    DataFormatValueCsv = "csv"

    // DataFormatValueParquet is a DataFormatValue enum value
    DataFormatValueParquet = "parquet"
)
const (
    // DmsSslModeValueNone is a DmsSslModeValue enum value
    DmsSslModeValueNone = "none"

    // DmsSslModeValueRequire is a DmsSslModeValue enum value
    DmsSslModeValueRequire = "require"

    // DmsSslModeValueVerifyCa is a DmsSslModeValue enum value
    DmsSslModeValueVerifyCa = "verify-ca"

    // DmsSslModeValueVerifyFull is a DmsSslModeValue enum value
    DmsSslModeValueVerifyFull = "verify-full"
)
const (
    // EncodingTypeValuePlain is a EncodingTypeValue enum value
    EncodingTypeValuePlain = "plain"

    // EncodingTypeValuePlainDictionary is a EncodingTypeValue enum value
    EncodingTypeValuePlainDictionary = "plain-dictionary"

    // EncodingTypeValueRleDictionary is a EncodingTypeValue enum value
    EncodingTypeValueRleDictionary = "rle-dictionary"
)
const (
    // EncryptionModeValueSseS3 is a EncryptionModeValue enum value
    EncryptionModeValueSseS3 = "sse-s3"

    // EncryptionModeValueSseKms is a EncryptionModeValue enum value
    EncryptionModeValueSseKms = "sse-kms"
)
const (
    // MessageFormatValueJson is a MessageFormatValue enum value
    MessageFormatValueJson = "json"

    // MessageFormatValueJsonUnformatted is a MessageFormatValue enum value
    MessageFormatValueJsonUnformatted = "json-unformatted"
)
const (
    // MigrationTypeValueFullLoad is a MigrationTypeValue enum value
    MigrationTypeValueFullLoad = "full-load"

    // MigrationTypeValueCdc is a MigrationTypeValue enum value
    MigrationTypeValueCdc = "cdc"

    // MigrationTypeValueFullLoadAndCdc is a MigrationTypeValue enum value
    MigrationTypeValueFullLoadAndCdc = "full-load-and-cdc"
)
const (
    // NestingLevelValueNone is a NestingLevelValue enum value
    NestingLevelValueNone = "none"

    // NestingLevelValueOne is a NestingLevelValue enum value
    NestingLevelValueOne = "one"
)
const (
    // ParquetVersionValueParquet10 is a ParquetVersionValue enum value
    ParquetVersionValueParquet10 = "parquet-1-0"

    // ParquetVersionValueParquet20 is a ParquetVersionValue enum value
    ParquetVersionValueParquet20 = "parquet-2-0"
)
const (
    // RefreshSchemasStatusTypeValueSuccessful is a RefreshSchemasStatusTypeValue enum value
    RefreshSchemasStatusTypeValueSuccessful = "successful"

    // RefreshSchemasStatusTypeValueFailed is a RefreshSchemasStatusTypeValue enum value
    RefreshSchemasStatusTypeValueFailed = "failed"

    // RefreshSchemasStatusTypeValueRefreshing is a RefreshSchemasStatusTypeValue enum value
    RefreshSchemasStatusTypeValueRefreshing = "refreshing"
)
const (
    // ReloadOptionValueDataReload is a ReloadOptionValue enum value
    ReloadOptionValueDataReload = "data-reload"

    // ReloadOptionValueValidateOnly is a ReloadOptionValue enum value
    ReloadOptionValueValidateOnly = "validate-only"
)
const (
    // ReplicationEndpointTypeValueSource is a ReplicationEndpointTypeValue enum value
    ReplicationEndpointTypeValueSource = "source"

    // ReplicationEndpointTypeValueTarget is a ReplicationEndpointTypeValue enum value
    ReplicationEndpointTypeValueTarget = "target"
)
const (
    // StartReplicationTaskTypeValueStartReplication is a StartReplicationTaskTypeValue enum value
    StartReplicationTaskTypeValueStartReplication = "start-replication"

    // StartReplicationTaskTypeValueResumeProcessing is a StartReplicationTaskTypeValue enum value
    StartReplicationTaskTypeValueResumeProcessing = "resume-processing"

    // StartReplicationTaskTypeValueReloadTarget is a StartReplicationTaskTypeValue enum value
    StartReplicationTaskTypeValueReloadTarget = "reload-target"
)
const (

    // ErrCodeAccessDeniedFault for service response error code
    // "AccessDeniedFault".
    //
    // AWS DMS was denied access to the endpoint. Check that the role is correctly
    // configured.
    ErrCodeAccessDeniedFault = "AccessDeniedFault"

    // ErrCodeInsufficientResourceCapacityFault for service response error code
    // "InsufficientResourceCapacityFault".
    //
    // There are not enough resources allocated to the database migration.
    ErrCodeInsufficientResourceCapacityFault = "InsufficientResourceCapacityFault"

    // ErrCodeInvalidCertificateFault for service response error code
    // "InvalidCertificateFault".
    //
    // The certificate was not valid.
    ErrCodeInvalidCertificateFault = "InvalidCertificateFault"

    // ErrCodeInvalidResourceStateFault for service response error code
    // "InvalidResourceStateFault".
    //
    // The resource is in a state that prevents it from being used for database
    // migration.
    ErrCodeInvalidResourceStateFault = "InvalidResourceStateFault"

    // ErrCodeInvalidSubnet for service response error code
    // "InvalidSubnet".
    //
    // The subnet provided is invalid.
    ErrCodeInvalidSubnet = "InvalidSubnet"

    // ErrCodeKMSAccessDeniedFault for service response error code
    // "KMSAccessDeniedFault".
    //
    // The ciphertext references a key that doesn't exist or that the DMS account
    // doesn't have access to.
    ErrCodeKMSAccessDeniedFault = "KMSAccessDeniedFault"

    // ErrCodeKMSDisabledFault for service response error code
    // "KMSDisabledFault".
    //
    // The specified master key (CMK) isn't enabled.
    ErrCodeKMSDisabledFault = "KMSDisabledFault"

    // ErrCodeKMSFault for service response error code
    // "KMSFault".
    //
    // An AWS Key Management Service (AWS KMS) error is preventing access to AWS
    // KMS.
    ErrCodeKMSFault = "KMSFault"

    // ErrCodeKMSInvalidStateFault for service response error code
    // "KMSInvalidStateFault".
    //
    // The state of the specified AWS KMS resource isn't valid for this request.
    ErrCodeKMSInvalidStateFault = "KMSInvalidStateFault"

    // ErrCodeKMSKeyNotAccessibleFault for service response error code
    // "KMSKeyNotAccessibleFault".
    //
    // AWS DMS cannot access the AWS KMS key.
    ErrCodeKMSKeyNotAccessibleFault = "KMSKeyNotAccessibleFault"

    // ErrCodeKMSNotFoundFault for service response error code
    // "KMSNotFoundFault".
    //
    // The specified AWS KMS entity or resource can't be found.
    ErrCodeKMSNotFoundFault = "KMSNotFoundFault"

    // ErrCodeKMSThrottlingFault for service response error code
    // "KMSThrottlingFault".
    //
    // This request triggered AWS KMS request throttling.
    ErrCodeKMSThrottlingFault = "KMSThrottlingFault"

    // ErrCodeReplicationSubnetGroupDoesNotCoverEnoughAZs for service response error code
    // "ReplicationSubnetGroupDoesNotCoverEnoughAZs".
    //
    // The replication subnet group does not cover enough Availability Zones (AZs).
    // Edit the replication subnet group and add more AZs.
    ErrCodeReplicationSubnetGroupDoesNotCoverEnoughAZs = "ReplicationSubnetGroupDoesNotCoverEnoughAZs"

    // ErrCodeResourceAlreadyExistsFault for service response error code
    // "ResourceAlreadyExistsFault".
    //
    // The resource you are attempting to create already exists.
    ErrCodeResourceAlreadyExistsFault = "ResourceAlreadyExistsFault"

    // ErrCodeResourceNotFoundFault for service response error code
    // "ResourceNotFoundFault".
    //
    // The resource could not be found.
    ErrCodeResourceNotFoundFault = "ResourceNotFoundFault"

    // ErrCodeResourceQuotaExceededFault for service response error code
    // "ResourceQuotaExceededFault".
    //
    // The quota for this resource quota has been exceeded.
    ErrCodeResourceQuotaExceededFault = "ResourceQuotaExceededFault"

    // ErrCodeS3AccessDeniedFault for service response error code
    // "S3AccessDeniedFault".
    //
    // Insufficient privileges are preventing access to an Amazon S3 object.
    ErrCodeS3AccessDeniedFault = "S3AccessDeniedFault"

    // ErrCodeS3ResourceNotFoundFault for service response error code
    // "S3ResourceNotFoundFault".
    //
    // A specified Amazon S3 bucket, bucket folder, or other object can't be found.
    ErrCodeS3ResourceNotFoundFault = "S3ResourceNotFoundFault"

    // ErrCodeSNSInvalidTopicFault for service response error code
    // "SNSInvalidTopicFault".
    //
    // The SNS topic is invalid.
    ErrCodeSNSInvalidTopicFault = "SNSInvalidTopicFault"

    // ErrCodeSNSNoAuthorizationFault for service response error code
    // "SNSNoAuthorizationFault".
    //
    // You are not authorized for the SNS subscription.
    ErrCodeSNSNoAuthorizationFault = "SNSNoAuthorizationFault"

    // ErrCodeStorageQuotaExceededFault for service response error code
    // "StorageQuotaExceededFault".
    //
    // The storage quota has been exceeded.
    ErrCodeStorageQuotaExceededFault = "StorageQuotaExceededFault"

    // ErrCodeSubnetAlreadyInUse for service response error code
    // "SubnetAlreadyInUse".
    //
    // The specified subnet is already in use.
    ErrCodeSubnetAlreadyInUse = "SubnetAlreadyInUse"

    // ErrCodeUpgradeDependencyFailureFault for service response error code
    // "UpgradeDependencyFailureFault".
    //
    // An upgrade dependency is preventing the database migration.
    ErrCodeUpgradeDependencyFailureFault = "UpgradeDependencyFailureFault"
)
const (
    ServiceName = "dms"                        // Name of service.
    EndpointsID = ServiceName                  // ID to lookup a service endpoint with.
    ServiceID   = "Database Migration Service" // ServiceID is a unique identifier of a specific service.
)

Service information constants

const (
    // ReleaseStatusValuesBeta is a ReleaseStatusValues enum value
    ReleaseStatusValuesBeta = "beta"
)
const (
    // SourceTypeReplicationInstance is a SourceType enum value
    SourceTypeReplicationInstance = "replication-instance"
)

type AccessDeniedFault Uses

type AccessDeniedFault struct {
    RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`

    Message_ *string `locationName:"message" type:"string"`
    // contains filtered or unexported fields
}

AWS DMS was denied access to the endpoint. Check that the role is correctly configured.

func (*AccessDeniedFault) Code Uses

func (s *AccessDeniedFault) Code() string

Code returns the exception type name.

func (*AccessDeniedFault) Error Uses

func (s *AccessDeniedFault) Error() string

func (AccessDeniedFault) GoString Uses

func (s AccessDeniedFault) GoString() string

GoString returns the string representation

func (*AccessDeniedFault) Message Uses

func (s *AccessDeniedFault) Message() string

Message returns the exception's message.

func (*AccessDeniedFault) OrigErr Uses

func (s *AccessDeniedFault) OrigErr() error

OrigErr always returns nil, satisfies awserr.Error interface.

func (*AccessDeniedFault) RequestID Uses

func (s *AccessDeniedFault) RequestID() string

RequestID returns the service's response RequestID for request.

func (*AccessDeniedFault) StatusCode Uses

func (s *AccessDeniedFault) StatusCode() int

Status code returns the HTTP status code for the request's response error.

func (AccessDeniedFault) String Uses

func (s AccessDeniedFault) String() string

String returns the string representation

type AccountQuota Uses

type AccountQuota struct {

    // The name of the AWS DMS quota for this AWS account.
    AccountQuotaName *string `type:"string"`

    // The maximum allowed value for the quota.
    Max *int64 `type:"long"`

    // The amount currently used toward the quota maximum.
    Used *int64 `type:"long"`
    // contains filtered or unexported fields
}

Describes a quota for an AWS account, for example, the number of replication instances allowed.

func (AccountQuota) GoString Uses

func (s AccountQuota) GoString() string

GoString returns the string representation

func (*AccountQuota) SetAccountQuotaName Uses

func (s *AccountQuota) SetAccountQuotaName(v string) *AccountQuota

SetAccountQuotaName sets the AccountQuotaName field's value.

func (*AccountQuota) SetMax Uses

func (s *AccountQuota) SetMax(v int64) *AccountQuota

SetMax sets the Max field's value.

func (*AccountQuota) SetUsed Uses

func (s *AccountQuota) SetUsed(v int64) *AccountQuota

SetUsed sets the Used field's value.

func (AccountQuota) String Uses

func (s AccountQuota) String() string

String returns the string representation

type AddTagsToResourceInput Uses

type AddTagsToResourceInput struct {

    // Identifies the AWS DMS resource to which tags should be added. The value
    // for this parameter is an Amazon Resource Name (ARN).
    //
    // For AWS DMS, you can tag a replication instance, an endpoint, or a replication
    // task.
    //
    // ResourceArn is a required field
    ResourceArn *string `type:"string" required:"true"`

    // One or more tags to be assigned to the resource.
    //
    // Tags is a required field
    Tags []*Tag `type:"list" required:"true"`
    // contains filtered or unexported fields
}

Associates a set of tags with an AWS DMS resource.

func (AddTagsToResourceInput) GoString Uses

func (s AddTagsToResourceInput) GoString() string

GoString returns the string representation

func (*AddTagsToResourceInput) SetResourceArn Uses

func (s *AddTagsToResourceInput) SetResourceArn(v string) *AddTagsToResourceInput

SetResourceArn sets the ResourceArn field's value.

func (*AddTagsToResourceInput) SetTags Uses

func (s *AddTagsToResourceInput) SetTags(v []*Tag) *AddTagsToResourceInput

SetTags sets the Tags field's value.

func (AddTagsToResourceInput) String Uses

func (s AddTagsToResourceInput) String() string

String returns the string representation

func (*AddTagsToResourceInput) Validate Uses

func (s *AddTagsToResourceInput) Validate() error

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

type AddTagsToResourceOutput Uses

type AddTagsToResourceOutput struct {
    // contains filtered or unexported fields
}

func (AddTagsToResourceOutput) GoString Uses

func (s AddTagsToResourceOutput) GoString() string

GoString returns the string representation

func (AddTagsToResourceOutput) String Uses

func (s AddTagsToResourceOutput) String() string

String returns the string representation

type ApplyPendingMaintenanceActionInput Uses

type ApplyPendingMaintenanceActionInput struct {

    // The pending maintenance action to apply to this resource.
    //
    // ApplyAction is a required field
    ApplyAction *string `type:"string" required:"true"`

    // A value that specifies the type of opt-in request, or undoes an opt-in request.
    // You can't undo an opt-in request of type immediate.
    //
    // Valid values:
    //
    //    * immediate - Apply the maintenance action immediately.
    //
    //    * next-maintenance - Apply the maintenance action during the next maintenance
    //    window for the resource.
    //
    //    * undo-opt-in - Cancel any existing next-maintenance opt-in requests.
    //
    // OptInType is a required field
    OptInType *string `type:"string" required:"true"`

    // The Amazon Resource Name (ARN) of the AWS DMS resource that the pending maintenance
    // action applies to.
    //
    // ReplicationInstanceArn is a required field
    ReplicationInstanceArn *string `type:"string" required:"true"`
    // contains filtered or unexported fields
}

func (ApplyPendingMaintenanceActionInput) GoString Uses

func (s ApplyPendingMaintenanceActionInput) GoString() string

GoString returns the string representation

func (*ApplyPendingMaintenanceActionInput) SetApplyAction Uses

func (s *ApplyPendingMaintenanceActionInput) SetApplyAction(v string) *ApplyPendingMaintenanceActionInput

SetApplyAction sets the ApplyAction field's value.

func (*ApplyPendingMaintenanceActionInput) SetOptInType Uses

func (s *ApplyPendingMaintenanceActionInput) SetOptInType(v string) *ApplyPendingMaintenanceActionInput

SetOptInType sets the OptInType field's value.

func (*ApplyPendingMaintenanceActionInput) SetReplicationInstanceArn Uses

func (s *ApplyPendingMaintenanceActionInput) SetReplicationInstanceArn(v string) *ApplyPendingMaintenanceActionInput

SetReplicationInstanceArn sets the ReplicationInstanceArn field's value.

func (ApplyPendingMaintenanceActionInput) String Uses

func (s ApplyPendingMaintenanceActionInput) String() string

String returns the string representation

func (*ApplyPendingMaintenanceActionInput) Validate Uses

func (s *ApplyPendingMaintenanceActionInput) Validate() error

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

type ApplyPendingMaintenanceActionOutput Uses

type ApplyPendingMaintenanceActionOutput struct {

    // The AWS DMS resource that the pending maintenance action will be applied
    // to.
    ResourcePendingMaintenanceActions *ResourcePendingMaintenanceActions `type:"structure"`
    // contains filtered or unexported fields
}

func (ApplyPendingMaintenanceActionOutput) GoString Uses

func (s ApplyPendingMaintenanceActionOutput) GoString() string

GoString returns the string representation

func (*ApplyPendingMaintenanceActionOutput) SetResourcePendingMaintenanceActions Uses

func (s *ApplyPendingMaintenanceActionOutput) SetResourcePendingMaintenanceActions(v *ResourcePendingMaintenanceActions) *ApplyPendingMaintenanceActionOutput

SetResourcePendingMaintenanceActions sets the ResourcePendingMaintenanceActions field's value.

func (ApplyPendingMaintenanceActionOutput) String Uses

func (s ApplyPendingMaintenanceActionOutput) String() string

String returns the string representation

type AvailabilityZone Uses

type AvailabilityZone struct {

    // The name of the Availability Zone.
    Name *string `type:"string"`
    // contains filtered or unexported fields
}

The name of an Availability Zone for use during database migration.

func (AvailabilityZone) GoString Uses

func (s AvailabilityZone) GoString() string

GoString returns the string representation

func (*AvailabilityZone) SetName Uses

func (s *AvailabilityZone) SetName(v string) *AvailabilityZone

SetName sets the Name field's value.

func (AvailabilityZone) String Uses

func (s AvailabilityZone) String() string

String returns the string representation

type CancelReplicationTaskAssessmentRunInput Uses

type CancelReplicationTaskAssessmentRunInput struct {

    // Amazon Resource Name (ARN) of the premigration assessment run to be canceled.
    //
    // ReplicationTaskAssessmentRunArn is a required field
    ReplicationTaskAssessmentRunArn *string `type:"string" required:"true"`
    // contains filtered or unexported fields
}

func (CancelReplicationTaskAssessmentRunInput) GoString Uses

func (s CancelReplicationTaskAssessmentRunInput) GoString() string

GoString returns the string representation

func (*CancelReplicationTaskAssessmentRunInput) SetReplicationTaskAssessmentRunArn Uses

func (s *CancelReplicationTaskAssessmentRunInput) SetReplicationTaskAssessmentRunArn(v string) *CancelReplicationTaskAssessmentRunInput

SetReplicationTaskAssessmentRunArn sets the ReplicationTaskAssessmentRunArn field's value.

func (CancelReplicationTaskAssessmentRunInput) String Uses

func (s CancelReplicationTaskAssessmentRunInput) String() string

String returns the string representation

func (*CancelReplicationTaskAssessmentRunInput) Validate Uses

func (s *CancelReplicationTaskAssessmentRunInput) Validate() error

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

type CancelReplicationTaskAssessmentRunOutput Uses

type CancelReplicationTaskAssessmentRunOutput struct {

    // The ReplicationTaskAssessmentRun object for the canceled assessment run.
    ReplicationTaskAssessmentRun *ReplicationTaskAssessmentRun `type:"structure"`
    // contains filtered or unexported fields
}

func (CancelReplicationTaskAssessmentRunOutput) GoString Uses

func (s CancelReplicationTaskAssessmentRunOutput) GoString() string

GoString returns the string representation

func (*CancelReplicationTaskAssessmentRunOutput) SetReplicationTaskAssessmentRun Uses

func (s *CancelReplicationTaskAssessmentRunOutput) SetReplicationTaskAssessmentRun(v *ReplicationTaskAssessmentRun) *CancelReplicationTaskAssessmentRunOutput

SetReplicationTaskAssessmentRun sets the ReplicationTaskAssessmentRun field's value.

func (CancelReplicationTaskAssessmentRunOutput) String Uses

func (s CancelReplicationTaskAssessmentRunOutput) String() string

String returns the string representation

type Certificate Uses

type Certificate struct {

    // The Amazon Resource Name (ARN) for the certificate.
    CertificateArn *string `type:"string"`

    // The date that the certificate was created.
    CertificateCreationDate *time.Time `type:"timestamp"`

    // A customer-assigned name for the certificate. Identifiers must begin with
    // a letter and must contain only ASCII letters, digits, and hyphens. They can't
    // end with a hyphen or contain two consecutive hyphens.
    CertificateIdentifier *string `type:"string"`

    // The owner of the certificate.
    CertificateOwner *string `type:"string"`

    // The contents of a .pem file, which contains an X.509 certificate.
    CertificatePem *string `type:"string"`

    // The location of an imported Oracle Wallet certificate for use with SSL.
    //
    // CertificateWallet is automatically base64 encoded/decoded by the SDK.
    CertificateWallet []byte `type:"blob"`

    // The key length of the cryptographic algorithm being used.
    KeyLength *int64 `type:"integer"`

    // The signing algorithm for the certificate.
    SigningAlgorithm *string `type:"string"`

    // The beginning date that the certificate is valid.
    ValidFromDate *time.Time `type:"timestamp"`

    // The final date that the certificate is valid.
    ValidToDate *time.Time `type:"timestamp"`
    // contains filtered or unexported fields
}

The SSL certificate that can be used to encrypt connections between the endpoints and the replication instance.

func (Certificate) GoString Uses

func (s Certificate) GoString() string

GoString returns the string representation

func (*Certificate) SetCertificateArn Uses

func (s *Certificate) SetCertificateArn(v string) *Certificate

SetCertificateArn sets the CertificateArn field's value.

func (*Certificate) SetCertificateCreationDate Uses

func (s *Certificate) SetCertificateCreationDate(v time.Time) *Certificate

SetCertificateCreationDate sets the CertificateCreationDate field's value.

func (*Certificate) SetCertificateIdentifier Uses

func (s *Certificate) SetCertificateIdentifier(v string) *Certificate

SetCertificateIdentifier sets the CertificateIdentifier field's value.

func (*Certificate) SetCertificateOwner Uses

func (s *Certificate) SetCertificateOwner(v string) *Certificate

SetCertificateOwner sets the CertificateOwner field's value.

func (*Certificate) SetCertificatePem Uses

func (s *Certificate) SetCertificatePem(v string) *Certificate

SetCertificatePem sets the CertificatePem field's value.

func (*Certificate) SetCertificateWallet Uses

func (s *Certificate) SetCertificateWallet(v []byte) *Certificate

SetCertificateWallet sets the CertificateWallet field's value.

func (*Certificate) SetKeyLength Uses

func (s *Certificate) SetKeyLength(v int64) *Certificate

SetKeyLength sets the KeyLength field's value.

func (*Certificate) SetSigningAlgorithm Uses

func (s *Certificate) SetSigningAlgorithm(v string) *Certificate

SetSigningAlgorithm sets the SigningAlgorithm field's value.

func (*Certificate) SetValidFromDate Uses

func (s *Certificate) SetValidFromDate(v time.Time) *Certificate

SetValidFromDate sets the ValidFromDate field's value.

func (*Certificate) SetValidToDate Uses

func (s *Certificate) SetValidToDate(v time.Time) *Certificate

SetValidToDate sets the ValidToDate field's value.

func (Certificate) String Uses

func (s Certificate) String() string

String returns the string representation

type Connection Uses

type Connection struct {

    // The ARN string that uniquely identifies the endpoint.
    EndpointArn *string `type:"string"`

    // The identifier of the endpoint. Identifiers must begin with a letter and
    // must contain only ASCII letters, digits, and hyphens. They can't end with
    // a hyphen or contain two consecutive hyphens.
    EndpointIdentifier *string `type:"string"`

    // The error message when the connection last failed.
    LastFailureMessage *string `type:"string"`

    // The ARN of the replication instance.
    ReplicationInstanceArn *string `type:"string"`

    // The replication instance identifier. This parameter is stored as a lowercase
    // string.
    ReplicationInstanceIdentifier *string `type:"string"`

    // The connection status. This parameter can return one of the following values:
    //
    //    * "successful"
    //
    //    * "testing"
    //
    //    * "failed"
    //
    //    * "deleting"
    Status *string `type:"string"`
    // contains filtered or unexported fields
}

Status of the connection between an endpoint and a replication instance, including Amazon Resource Names (ARNs) and the last error message issued.

func (Connection) GoString Uses

func (s Connection) GoString() string

GoString returns the string representation

func (*Connection) SetEndpointArn Uses

func (s *Connection) SetEndpointArn(v string) *Connection

SetEndpointArn sets the EndpointArn field's value.

func (*Connection) SetEndpointIdentifier Uses

func (s *Connection) SetEndpointIdentifier(v string) *Connection

SetEndpointIdentifier sets the EndpointIdentifier field's value.

func (*Connection) SetLastFailureMessage Uses

func (s *Connection) SetLastFailureMessage(v string) *Connection

SetLastFailureMessage sets the LastFailureMessage field's value.

func (*Connection) SetReplicationInstanceArn Uses

func (s *Connection) SetReplicationInstanceArn(v string) *Connection

SetReplicationInstanceArn sets the ReplicationInstanceArn field's value.

func (*Connection) SetReplicationInstanceIdentifier Uses

func (s *Connection) SetReplicationInstanceIdentifier(v string) *Connection

SetReplicationInstanceIdentifier sets the ReplicationInstanceIdentifier field's value.

func (*Connection) SetStatus Uses

func (s *Connection) SetStatus(v string) *Connection

SetStatus sets the Status field's value.

func (Connection) String Uses

func (s Connection) String() string

String returns the string representation

type CreateEndpointInput Uses

type CreateEndpointInput struct {

    // The Amazon Resource Name (ARN) for the certificate.
    CertificateArn *string `type:"string"`

    // The name of the endpoint database.
    DatabaseName *string `type:"string"`

    // The settings in JSON format for the DMS transfer type of source endpoint.
    //
    // Possible settings include the following:
    //
    //    * ServiceAccessRoleArn - The IAM role that has permission to access the
    //    Amazon S3 bucket.
    //
    //    * BucketName - The name of the S3 bucket to use.
    //
    //    * CompressionType - An optional parameter to use GZIP to compress the
    //    target files. To use GZIP, set this value to NONE (the default). To keep
    //    the files uncompressed, don't use this value.
    //
    // Shorthand syntax for these settings is as follows: ServiceAccessRoleArn=string,BucketName=string,CompressionType=string
    //
    // JSON syntax for these settings is as follows: { "ServiceAccessRoleArn": "string",
    // "BucketName": "string", "CompressionType": "none"|"gzip" }
    DmsTransferSettings *DmsTransferSettings `type:"structure"`

    // Settings in JSON format for the target Amazon DynamoDB endpoint. For information
    // about other available settings, see Using Object Mapping to Migrate Data
    // to DynamoDB (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.DynamoDB.html)
    // in the AWS Database Migration Service User Guide.
    DynamoDbSettings *DynamoDbSettings `type:"structure"`

    // Settings in JSON format for the target Elasticsearch endpoint. For more information
    // about the available settings, see Extra Connection Attributes When Using
    // Elasticsearch as a Target for AWS DMS (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.Elasticsearch.html#CHAP_Target.Elasticsearch.Configuration)
    // in the AWS Database Migration Service User Guide.
    ElasticsearchSettings *ElasticsearchSettings `type:"structure"`

    // The database endpoint identifier. Identifiers must begin with a letter and
    // must contain only ASCII letters, digits, and hyphens. They can't end with
    // a hyphen or contain two consecutive hyphens.
    //
    // EndpointIdentifier is a required field
    EndpointIdentifier *string `type:"string" required:"true"`

    // The type of endpoint. Valid values are source and target.
    //
    // EndpointType is a required field
    EndpointType *string `type:"string" required:"true" enum:"ReplicationEndpointTypeValue"`

    // The type of engine for the endpoint. Valid values, depending on the EndpointType
    // value, include "mysql", "oracle", "postgres", "mariadb", "aurora", "aurora-postgresql",
    // "redshift", "s3", "db2", "azuredb", "sybase", "dynamodb", "mongodb", "kinesis",
    // "kafka", "elasticsearch", "documentdb", "sqlserver", and "neptune".
    //
    // EngineName is a required field
    EngineName *string `type:"string" required:"true"`

    // The external table definition.
    ExternalTableDefinition *string `type:"string"`

    // Additional attributes associated with the connection. Each attribute is specified
    // as a name-value pair associated by an equal sign (=). Multiple attributes
    // are separated by a semicolon (;) with no additional white space. For information
    // on the attributes available for connecting your source or target endpoint,
    // see Working with AWS DMS Endpoints (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Endpoints.html)
    // in the AWS Database Migration Service User Guide.
    ExtraConnectionAttributes *string `type:"string"`

    // Settings in JSON format for the source IBM Db2 LUW endpoint. For information
    // about other available settings, see Extra connection attributes when using
    // Db2 LUW as a source for AWS DMS (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.DB2.ConnectionAttrib)
    // in the AWS Database Migration Service User Guide.
    IBMDb2Settings *IBMDb2Settings `type:"structure"`

    // Settings in JSON format for the target Apache Kafka endpoint. For more information
    // about the available settings, see Using Apache Kafka as a Target for AWS
    // Database Migration Service (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.Kafka.html)
    // in the AWS Database Migration Service User Guide.
    KafkaSettings *KafkaSettings `type:"structure"`

    // Settings in JSON format for the target endpoint for Amazon Kinesis Data Streams.
    // For more information about the available settings, see Using Amazon Kinesis
    // Data Streams as a Target for AWS Database Migration Service (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.Kinesis.html)
    // in the AWS Database Migration Service User Guide.
    KinesisSettings *KinesisSettings `type:"structure"`

    // An AWS KMS key identifier that is used to encrypt the connection parameters
    // for the endpoint.
    //
    // If you don't specify a value for the KmsKeyId parameter, then AWS DMS uses
    // your default encryption key.
    //
    // AWS KMS creates the default encryption key for your AWS account. Your AWS
    // account has a different default encryption key for each AWS Region.
    KmsKeyId *string `type:"string"`

    // Settings in JSON format for the source and target Microsoft SQL Server endpoint.
    // For information about other available settings, see Extra connection attributes
    // when using SQL Server as a source for AWS DMS (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.SQLServer.ConnectionAttrib)
    // and Extra connection attributes when using SQL Server as a target for AWS
    // DMS (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.SQLServer.ConnectionAttrib)
    // in the AWS Database Migration Service User Guide.
    MicrosoftSQLServerSettings *MicrosoftSQLServerSettings `type:"structure"`

    // Settings in JSON format for the source MongoDB endpoint. For more information
    // about the available settings, see Using MongoDB as a Target for AWS Database
    // Migration Service (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.MongoDB.html#CHAP_Source.MongoDB.Configuration)
    // in the AWS Database Migration Service User Guide.
    MongoDbSettings *MongoDbSettings `type:"structure"`

    // Settings in JSON format for the source and target MySQL endpoint. For information
    // about other available settings, see Extra connection attributes when using
    // MySQL as a source for AWS DMS (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.MySQL.ConnectionAttrib)
    // and Extra connection attributes when using a MySQL-compatible database as
    // a target for AWS DMS (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.MySQL.ConnectionAttrib)
    // in the AWS Database Migration Service User Guide.
    MySQLSettings *MySQLSettings `type:"structure"`

    // Settings in JSON format for the target Amazon Neptune endpoint. For more
    // information about the available settings, see Specifying Endpoint Settings
    // for Amazon Neptune as a Target (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.Neptune.html#CHAP_Target.Neptune.EndpointSettings)
    // in the AWS Database Migration Service User Guide.
    NeptuneSettings *NeptuneSettings `type:"structure"`

    // Settings in JSON format for the source and target Oracle endpoint. For information
    // about other available settings, see Extra connection attributes when using
    // Oracle as a source for AWS DMS (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.Oracle.ConnectionAttrib)
    // and Extra connection attributes when using Oracle as a target for AWS DMS
    // (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.Oracle.ConnectionAttrib)
    // in the AWS Database Migration Service User Guide.
    OracleSettings *OracleSettings `type:"structure"`

    // The password to be used to log in to the endpoint database.
    Password *string `type:"string" sensitive:"true"`

    // The port used by the endpoint database.
    Port *int64 `type:"integer"`

    // Settings in JSON format for the source and target PostgreSQL endpoint. For
    // information about other available settings, see Extra connection attributes
    // when using PostgreSQL as a source for AWS DMS (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.PostgreSQL.ConnectionAttrib)
    // and Extra connection attributes when using PostgreSQL as a target for AWS
    // DMS (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.PostgreSQL.ConnectionAttrib)
    // in the AWS Database Migration Service User Guide.
    PostgreSQLSettings *PostgreSQLSettings `type:"structure"`

    // Provides information that defines an Amazon Redshift endpoint.
    RedshiftSettings *RedshiftSettings `type:"structure"`

    // Settings in JSON format for the target Amazon S3 endpoint. For more information
    // about the available settings, see Extra Connection Attributes When Using
    // Amazon S3 as a Target for AWS DMS (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.S3.html#CHAP_Target.S3.Configuring)
    // in the AWS Database Migration Service User Guide.
    S3Settings *S3Settings `type:"structure"`

    // The name of the server where the endpoint database resides.
    ServerName *string `type:"string"`

    // The Amazon Resource Name (ARN) for the service access role that you want
    // to use to create the endpoint.
    ServiceAccessRoleArn *string `type:"string"`

    // The Secure Sockets Layer (SSL) mode to use for the SSL connection. The default
    // is none
    SslMode *string `type:"string" enum:"DmsSslModeValue"`

    // Settings in JSON format for the source and target SAP ASE endpoint. For information
    // about other available settings, see Extra connection attributes when using
    // SAP ASE as a source for AWS DMS (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.SAP.ConnectionAttrib)
    // and Extra connection attributes when using SAP ASE as a target for AWS DMS
    // (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.SAP.ConnectionAttrib)
    // in the AWS Database Migration Service User Guide.
    SybaseSettings *SybaseSettings `type:"structure"`

    // One or more tags to be assigned to the endpoint.
    Tags []*Tag `type:"list"`

    // The user name to be used to log in to the endpoint database.
    Username *string `type:"string"`
    // contains filtered or unexported fields
}

func (CreateEndpointInput) GoString Uses

func (s CreateEndpointInput) GoString() string

GoString returns the string representation

func (*CreateEndpointInput) SetCertificateArn Uses

func (s *CreateEndpointInput) SetCertificateArn(v string) *CreateEndpointInput

SetCertificateArn sets the CertificateArn field's value.

func (*CreateEndpointInput) SetDatabaseName Uses

func (s *CreateEndpointInput) SetDatabaseName(v string) *CreateEndpointInput

SetDatabaseName sets the DatabaseName field's value.

func (*CreateEndpointInput) SetDmsTransferSettings Uses

func (s *CreateEndpointInput) SetDmsTransferSettings(v *DmsTransferSettings) *CreateEndpointInput

SetDmsTransferSettings sets the DmsTransferSettings field's value.

func (*CreateEndpointInput) SetDynamoDbSettings Uses

func (s *CreateEndpointInput) SetDynamoDbSettings(v *DynamoDbSettings) *CreateEndpointInput

SetDynamoDbSettings sets the DynamoDbSettings field's value.

func (*CreateEndpointInput) SetElasticsearchSettings Uses

func (s *CreateEndpointInput) SetElasticsearchSettings(v *ElasticsearchSettings) *CreateEndpointInput

SetElasticsearchSettings sets the ElasticsearchSettings field's value.

func (*CreateEndpointInput) SetEndpointIdentifier Uses

func (s *CreateEndpointInput) SetEndpointIdentifier(v string) *CreateEndpointInput

SetEndpointIdentifier sets the EndpointIdentifier field's value.

func (*CreateEndpointInput) SetEndpointType Uses

func (s *CreateEndpointInput) SetEndpointType(v string) *CreateEndpointInput

SetEndpointType sets the EndpointType field's value.

func (*CreateEndpointInput) SetEngineName Uses

func (s *CreateEndpointInput) SetEngineName(v string) *CreateEndpointInput

SetEngineName sets the EngineName field's value.

func (*CreateEndpointInput) SetExternalTableDefinition Uses

func (s *CreateEndpointInput) SetExternalTableDefinition(v string) *CreateEndpointInput

SetExternalTableDefinition sets the ExternalTableDefinition field's value.

func (*CreateEndpointInput) SetExtraConnectionAttributes Uses

func (s *CreateEndpointInput) SetExtraConnectionAttributes(v string) *CreateEndpointInput

SetExtraConnectionAttributes sets the ExtraConnectionAttributes field's value.

func (*CreateEndpointInput) SetIBMDb2Settings Uses

func (s *CreateEndpointInput) SetIBMDb2Settings(v *IBMDb2Settings) *CreateEndpointInput

SetIBMDb2Settings sets the IBMDb2Settings field's value.

func (*CreateEndpointInput) SetKafkaSettings Uses

func (s *CreateEndpointInput) SetKafkaSettings(v *KafkaSettings) *CreateEndpointInput

SetKafkaSettings sets the KafkaSettings field's value.

func (*CreateEndpointInput) SetKinesisSettings Uses

func (s *CreateEndpointInput) SetKinesisSettings(v *KinesisSettings) *CreateEndpointInput

SetKinesisSettings sets the KinesisSettings field's value.

func (*CreateEndpointInput) SetKmsKeyId Uses

func (s *CreateEndpointInput) SetKmsKeyId(v string) *CreateEndpointInput

SetKmsKeyId sets the KmsKeyId field's value.

func (*CreateEndpointInput) SetMicrosoftSQLServerSettings Uses

func (s *CreateEndpointInput) SetMicrosoftSQLServerSettings(v *MicrosoftSQLServerSettings) *CreateEndpointInput

SetMicrosoftSQLServerSettings sets the MicrosoftSQLServerSettings field's value.

func (*CreateEndpointInput) SetMongoDbSettings Uses

func (s *CreateEndpointInput) SetMongoDbSettings(v *MongoDbSettings) *CreateEndpointInput

SetMongoDbSettings sets the MongoDbSettings field's value.

func (*CreateEndpointInput) SetMySQLSettings Uses

func (s *CreateEndpointInput) SetMySQLSettings(v *MySQLSettings) *CreateEndpointInput

SetMySQLSettings sets the MySQLSettings field's value.

func (*CreateEndpointInput) SetNeptuneSettings Uses

func (s *CreateEndpointInput) SetNeptuneSettings(v *NeptuneSettings) *CreateEndpointInput

SetNeptuneSettings sets the NeptuneSettings field's value.

func (*CreateEndpointInput) SetOracleSettings Uses

func (s *CreateEndpointInput) SetOracleSettings(v *OracleSettings) *CreateEndpointInput

SetOracleSettings sets the OracleSettings field's value.

func (*CreateEndpointInput) SetPassword Uses

func (s *CreateEndpointInput) SetPassword(v string) *CreateEndpointInput

SetPassword sets the Password field's value.

func (*CreateEndpointInput) SetPort Uses

func (s *CreateEndpointInput) SetPort(v int64) *CreateEndpointInput

SetPort sets the Port field's value.

func (*CreateEndpointInput) SetPostgreSQLSettings Uses

func (s *CreateEndpointInput) SetPostgreSQLSettings(v *PostgreSQLSettings) *CreateEndpointInput

SetPostgreSQLSettings sets the PostgreSQLSettings field's value.

func (*CreateEndpointInput) SetRedshiftSettings Uses

func (s *CreateEndpointInput) SetRedshiftSettings(v *RedshiftSettings) *CreateEndpointInput

SetRedshiftSettings sets the RedshiftSettings field's value.

func (*CreateEndpointInput) SetS3Settings Uses

func (s *CreateEndpointInput) SetS3Settings(v *S3Settings) *CreateEndpointInput

SetS3Settings sets the S3Settings field's value.

func (*CreateEndpointInput) SetServerName Uses

func (s *CreateEndpointInput) SetServerName(v string) *CreateEndpointInput

SetServerName sets the ServerName field's value.

func (*CreateEndpointInput) SetServiceAccessRoleArn Uses

func (s *CreateEndpointInput) SetServiceAccessRoleArn(v string) *CreateEndpointInput

SetServiceAccessRoleArn sets the ServiceAccessRoleArn field's value.

func (*CreateEndpointInput) SetSslMode Uses

func (s *CreateEndpointInput) SetSslMode(v string) *CreateEndpointInput

SetSslMode sets the SslMode field's value.

func (*CreateEndpointInput) SetSybaseSettings Uses

func (s *CreateEndpointInput) SetSybaseSettings(v *SybaseSettings) *CreateEndpointInput

SetSybaseSettings sets the SybaseSettings field's value.

func (*CreateEndpointInput) SetTags Uses

func (s *CreateEndpointInput) SetTags(v []*Tag) *CreateEndpointInput

SetTags sets the Tags field's value.

func (*CreateEndpointInput) SetUsername Uses

func (s *CreateEndpointInput) SetUsername(v string) *CreateEndpointInput

SetUsername sets the Username field's value.

func (CreateEndpointInput) String Uses

func (s CreateEndpointInput) String() string

String returns the string representation

func (*CreateEndpointInput) Validate Uses

func (s *CreateEndpointInput) Validate() error

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

type CreateEndpointOutput Uses

type CreateEndpointOutput struct {

    // The endpoint that was created.
    Endpoint *Endpoint `type:"structure"`
    // contains filtered or unexported fields
}

func (CreateEndpointOutput) GoString Uses

func (s CreateEndpointOutput) GoString() string

GoString returns the string representation

func (*CreateEndpointOutput) SetEndpoint Uses

func (s *CreateEndpointOutput) SetEndpoint(v *Endpoint) *CreateEndpointOutput

SetEndpoint sets the Endpoint field's value.

func (CreateEndpointOutput) String Uses

func (s CreateEndpointOutput) String() string

String returns the string representation

type CreateEventSubscriptionInput Uses

type CreateEventSubscriptionInput struct {

    // A Boolean value; set to true to activate the subscription, or set to false
    // to create the subscription but not activate it.
    Enabled *bool `type:"boolean"`

    // A list of event categories for a source type that you want to subscribe to.
    // For more information, see Working with Events and Notifications (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Events.html)
    // in the AWS Database Migration Service User Guide.
    EventCategories []*string `type:"list"`

    // The Amazon Resource Name (ARN) of the Amazon SNS topic created for event
    // notification. The ARN is created by Amazon SNS when you create a topic and
    // subscribe to it.
    //
    // SnsTopicArn is a required field
    SnsTopicArn *string `type:"string" required:"true"`

    // A list of identifiers for which AWS DMS provides notification events.
    //
    // If you don't specify a value, notifications are provided for all sources.
    //
    // If you specify multiple values, they must be of the same type. For example,
    // if you specify a database instance ID, then all of the other values must
    // be database instance IDs.
    SourceIds []*string `type:"list"`

    // The type of AWS DMS resource that generates the events. For example, if you
    // want to be notified of events generated by a replication instance, you set
    // this parameter to replication-instance. If this value isn't specified, all
    // events are returned.
    //
    // Valid values: replication-instance | replication-task
    SourceType *string `type:"string"`

    // The name of the AWS DMS event notification subscription. This name must be
    // less than 255 characters.
    //
    // SubscriptionName is a required field
    SubscriptionName *string `type:"string" required:"true"`

    // One or more tags to be assigned to the event subscription.
    Tags []*Tag `type:"list"`
    // contains filtered or unexported fields
}

func (CreateEventSubscriptionInput) GoString Uses

func (s CreateEventSubscriptionInput) GoString() string

GoString returns the string representation

func (*CreateEventSubscriptionInput) SetEnabled Uses

func (s *CreateEventSubscriptionInput) SetEnabled(v bool) *CreateEventSubscriptionInput

SetEnabled sets the Enabled field's value.

func (*CreateEventSubscriptionInput) SetEventCategories Uses

func (s *CreateEventSubscriptionInput) SetEventCategories(v []*string) *CreateEventSubscriptionInput

SetEventCategories sets the EventCategories field's value.

func (*CreateEventSubscriptionInput) SetSnsTopicArn Uses

func (s *CreateEventSubscriptionInput) SetSnsTopicArn(v string) *CreateEventSubscriptionInput

SetSnsTopicArn sets the SnsTopicArn field's value.

func (*CreateEventSubscriptionInput) SetSourceIds Uses

func (s *CreateEventSubscriptionInput) SetSourceIds(v []*string) *CreateEventSubscriptionInput

SetSourceIds sets the SourceIds field's value.

func (*CreateEventSubscriptionInput) SetSourceType Uses

func (s *CreateEventSubscriptionInput) SetSourceType(v string) *CreateEventSubscriptionInput

SetSourceType sets the SourceType field's value.

func (*CreateEventSubscriptionInput) SetSubscriptionName Uses

func (s *CreateEventSubscriptionInput) SetSubscriptionName(v string) *CreateEventSubscriptionInput

SetSubscriptionName sets the SubscriptionName field's value.

func (*CreateEventSubscriptionInput) SetTags Uses

func (s *CreateEventSubscriptionInput) SetTags(v []*Tag) *CreateEventSubscriptionInput

SetTags sets the Tags field's value.

func (CreateEventSubscriptionInput) String Uses

func (s CreateEventSubscriptionInput) String() string

String returns the string representation

func (*CreateEventSubscriptionInput) Validate Uses

func (s *CreateEventSubscriptionInput) Validate() error

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

type CreateEventSubscriptionOutput Uses

type CreateEventSubscriptionOutput struct {

    // The event subscription that was created.
    EventSubscription *EventSubscription `type:"structure"`
    // contains filtered or unexported fields
}

func (CreateEventSubscriptionOutput) GoString Uses

func (s CreateEventSubscriptionOutput) GoString() string

GoString returns the string representation

func (*CreateEventSubscriptionOutput) SetEventSubscription Uses

func (s *CreateEventSubscriptionOutput) SetEventSubscription(v *EventSubscription) *CreateEventSubscriptionOutput

SetEventSubscription sets the EventSubscription field's value.

func (CreateEventSubscriptionOutput) String Uses

func (s CreateEventSubscriptionOutput) String() string

String returns the string representation

type CreateReplicationInstanceInput Uses

type CreateReplicationInstanceInput struct {

    // The amount of storage (in gigabytes) to be initially allocated for the replication
    // instance.
    AllocatedStorage *int64 `type:"integer"`

    // A value that indicates whether minor engine upgrades are applied automatically
    // to the replication instance during the maintenance window. This parameter
    // defaults to true.
    //
    // Default: true
    AutoMinorVersionUpgrade *bool `type:"boolean"`

    // The Availability Zone where the replication instance will be created. The
    // default value is a random, system-chosen Availability Zone in the endpoint's
    // AWS Region, for example: us-east-1d
    AvailabilityZone *string `type:"string"`

    // A list of custom DNS name servers supported for the replication instance
    // to access your on-premise source or target database. This list overrides
    // the default name servers supported by the replication instance. You can specify
    // a comma-separated list of internet addresses for up to four on-premise DNS
    // name servers. For example: "1.1.1.1,2.2.2.2,3.3.3.3,4.4.4.4"
    DnsNameServers *string `type:"string"`

    // The engine version number of the replication instance.
    EngineVersion *string `type:"string"`

    // An AWS KMS key identifier that is used to encrypt the data on the replication
    // instance.
    //
    // If you don't specify a value for the KmsKeyId parameter, then AWS DMS uses
    // your default encryption key.
    //
    // AWS KMS creates the default encryption key for your AWS account. Your AWS
    // account has a different default encryption key for each AWS Region.
    KmsKeyId *string `type:"string"`

    // Specifies whether the replication instance is a Multi-AZ deployment. You
    // can't set the AvailabilityZone parameter if the Multi-AZ parameter is set
    // to true.
    MultiAZ *bool `type:"boolean"`

    // The weekly time range during which system maintenance can occur, in Universal
    // Coordinated Time (UTC).
    //
    // Format: ddd:hh24:mi-ddd:hh24:mi
    //
    // Default: A 30-minute window selected at random from an 8-hour block of time
    // per AWS Region, occurring on a random day of the week.
    //
    // Valid Days: Mon, Tue, Wed, Thu, Fri, Sat, Sun
    //
    // Constraints: Minimum 30-minute window.
    PreferredMaintenanceWindow *string `type:"string"`

    // Specifies the accessibility options for the replication instance. A value
    // of true represents an instance with a public IP address. A value of false
    // represents an instance with a private IP address. The default value is true.
    PubliclyAccessible *bool `type:"boolean"`

    // The compute and memory capacity of the replication instance as defined for
    // the specified replication instance class. For example to specify the instance
    // class dms.c4.large, set this parameter to "dms.c4.large".
    //
    // For more information on the settings and capacities for the available replication
    // instance classes, see Selecting the right AWS DMS replication instance for
    // your migration (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_ReplicationInstance.html#CHAP_ReplicationInstance.InDepth).
    //
    // ReplicationInstanceClass is a required field
    ReplicationInstanceClass *string `type:"string" required:"true"`

    // The replication instance identifier. This parameter is stored as a lowercase
    // string.
    //
    // Constraints:
    //
    //    * Must contain 1-63 alphanumeric characters or hyphens.
    //
    //    * First character must be a letter.
    //
    //    * Can't end with a hyphen or contain two consecutive hyphens.
    //
    // Example: myrepinstance
    //
    // ReplicationInstanceIdentifier is a required field
    ReplicationInstanceIdentifier *string `type:"string" required:"true"`

    // A subnet group to associate with the replication instance.
    ReplicationSubnetGroupIdentifier *string `type:"string"`

    // One or more tags to be assigned to the replication instance.
    Tags []*Tag `type:"list"`

    // Specifies the VPC security group to be used with the replication instance.
    // The VPC security group must work with the VPC containing the replication
    // instance.
    VpcSecurityGroupIds []*string `type:"list"`
    // contains filtered or unexported fields
}

func (CreateReplicationInstanceInput) GoString Uses

func (s CreateReplicationInstanceInput) GoString() string

GoString returns the string representation

func (*CreateReplicationInstanceInput) SetAllocatedStorage Uses

func (s *CreateReplicationInstanceInput) SetAllocatedStorage(v int64) *CreateReplicationInstanceInput

SetAllocatedStorage sets the AllocatedStorage field's value.

func (*CreateReplicationInstanceInput) SetAutoMinorVersionUpgrade Uses

func (s *CreateReplicationInstanceInput) SetAutoMinorVersionUpgrade(v bool) *CreateReplicationInstanceInput

SetAutoMinorVersionUpgrade sets the AutoMinorVersionUpgrade field's value.

func (*CreateReplicationInstanceInput) SetAvailabilityZone Uses

func (s *CreateReplicationInstanceInput) SetAvailabilityZone(v string) *CreateReplicationInstanceInput

SetAvailabilityZone sets the AvailabilityZone field's value.

func (*CreateReplicationInstanceInput) SetDnsNameServers Uses

func (s *CreateReplicationInstanceInput) SetDnsNameServers(v string) *CreateReplicationInstanceInput

SetDnsNameServers sets the DnsNameServers field's value.

func (*CreateReplicationInstanceInput) SetEngineVersion Uses

func (s *CreateReplicationInstanceInput) SetEngineVersion(v string) *CreateReplicationInstanceInput

SetEngineVersion sets the EngineVersion field's value.

func (*CreateReplicationInstanceInput) SetKmsKeyId Uses

func (s *CreateReplicationInstanceInput) SetKmsKeyId(v string) *CreateReplicationInstanceInput

SetKmsKeyId sets the KmsKeyId field's value.

func (*CreateReplicationInstanceInput) SetMultiAZ Uses

func (s *CreateReplicationInstanceInput) SetMultiAZ(v bool) *CreateReplicationInstanceInput

SetMultiAZ sets the MultiAZ field's value.

func (*CreateReplicationInstanceInput) SetPreferredMaintenanceWindow Uses

func (s *CreateReplicationInstanceInput) SetPreferredMaintenanceWindow(v string) *CreateReplicationInstanceInput

SetPreferredMaintenanceWindow sets the PreferredMaintenanceWindow field's value.

func (*CreateReplicationInstanceInput) SetPubliclyAccessible Uses

func (s *CreateReplicationInstanceInput) SetPubliclyAccessible(v bool) *CreateReplicationInstanceInput

SetPubliclyAccessible sets the PubliclyAccessible field's value.

func (*CreateReplicationInstanceInput) SetReplicationInstanceClass Uses

func (s *CreateReplicationInstanceInput) SetReplicationInstanceClass(v string) *CreateReplicationInstanceInput

SetReplicationInstanceClass sets the ReplicationInstanceClass field's value.

func (*CreateReplicationInstanceInput) SetReplicationInstanceIdentifier Uses

func (s *CreateReplicationInstanceInput) SetReplicationInstanceIdentifier(v string) *CreateReplicationInstanceInput

SetReplicationInstanceIdentifier sets the ReplicationInstanceIdentifier field's value.

func (*CreateReplicationInstanceInput) SetReplicationSubnetGroupIdentifier Uses

func (s *CreateReplicationInstanceInput) SetReplicationSubnetGroupIdentifier(v string) *CreateReplicationInstanceInput

SetReplicationSubnetGroupIdentifier sets the ReplicationSubnetGroupIdentifier field's value.

func (*CreateReplicationInstanceInput) SetTags Uses

func (s *CreateReplicationInstanceInput) SetTags(v []*Tag) *CreateReplicationInstanceInput

SetTags sets the Tags field's value.

func (*CreateReplicationInstanceInput) SetVpcSecurityGroupIds Uses

func (s *CreateReplicationInstanceInput) SetVpcSecurityGroupIds(v []*string) *CreateReplicationInstanceInput

SetVpcSecurityGroupIds sets the VpcSecurityGroupIds field's value.

func (CreateReplicationInstanceInput) String Uses

func (s CreateReplicationInstanceInput) String() string

String returns the string representation

func (*CreateReplicationInstanceInput) Validate Uses

func (s *CreateReplicationInstanceInput) Validate() error

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

type CreateReplicationInstanceOutput Uses

type CreateReplicationInstanceOutput struct {

    // The replication instance that was created.
    ReplicationInstance *ReplicationInstance `type:"structure"`
    // contains filtered or unexported fields
}

func (CreateReplicationInstanceOutput) GoString Uses

func (s CreateReplicationInstanceOutput) GoString() string

GoString returns the string representation

func (*CreateReplicationInstanceOutput) SetReplicationInstance Uses

func (s *CreateReplicationInstanceOutput) SetReplicationInstance(v *ReplicationInstance) *CreateReplicationInstanceOutput

SetReplicationInstance sets the ReplicationInstance field's value.

func (CreateReplicationInstanceOutput) String Uses

func (s CreateReplicationInstanceOutput) String() string

String returns the string representation

type CreateReplicationSubnetGroupInput Uses

type CreateReplicationSubnetGroupInput struct {

    // The description for the subnet group.
    //
    // ReplicationSubnetGroupDescription is a required field
    ReplicationSubnetGroupDescription *string `type:"string" required:"true"`

    // The name for the replication subnet group. This value is stored as a lowercase
    // string.
    //
    // Constraints: Must contain no more than 255 alphanumeric characters, periods,
    // spaces, underscores, or hyphens. Must not be "default".
    //
    // Example: mySubnetgroup
    //
    // ReplicationSubnetGroupIdentifier is a required field
    ReplicationSubnetGroupIdentifier *string `type:"string" required:"true"`

    // One or more subnet IDs to be assigned to the subnet group.
    //
    // SubnetIds is a required field
    SubnetIds []*string `type:"list" required:"true"`

    // One or more tags to be assigned to the subnet group.
    Tags []*Tag `type:"list"`
    // contains filtered or unexported fields
}

func (CreateReplicationSubnetGroupInput) GoString Uses

func (s CreateReplicationSubnetGroupInput) GoString() string

GoString returns the string representation

func (*CreateReplicationSubnetGroupInput) SetReplicationSubnetGroupDescription Uses

func (s *CreateReplicationSubnetGroupInput) SetReplicationSubnetGroupDescription(v string) *CreateReplicationSubnetGroupInput

SetReplicationSubnetGroupDescription sets the ReplicationSubnetGroupDescription field's value.

func (*CreateReplicationSubnetGroupInput) SetReplicationSubnetGroupIdentifier Uses

func (s *CreateReplicationSubnetGroupInput) SetReplicationSubnetGroupIdentifier(v string) *CreateReplicationSubnetGroupInput

SetReplicationSubnetGroupIdentifier sets the ReplicationSubnetGroupIdentifier field's value.

func (*CreateReplicationSubnetGroupInput) SetSubnetIds Uses

func (s *CreateReplicationSubnetGroupInput) SetSubnetIds(v []*string) *CreateReplicationSubnetGroupInput

SetSubnetIds sets the SubnetIds field's value.

func (*CreateReplicationSubnetGroupInput) SetTags Uses

func (s *CreateReplicationSubnetGroupInput) SetTags(v []*Tag) *CreateReplicationSubnetGroupInput

SetTags sets the Tags field's value.

func (CreateReplicationSubnetGroupInput) String Uses

func (s CreateReplicationSubnetGroupInput) String() string

String returns the string representation

func (*CreateReplicationSubnetGroupInput) Validate Uses

func (s *CreateReplicationSubnetGroupInput) Validate() error

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

type CreateReplicationSubnetGroupOutput Uses

type CreateReplicationSubnetGroupOutput struct {

    // The replication subnet group that was created.
    ReplicationSubnetGroup *ReplicationSubnetGroup `type:"structure"`
    // contains filtered or unexported fields
}

func (CreateReplicationSubnetGroupOutput) GoString Uses

func (s CreateReplicationSubnetGroupOutput) GoString() string

GoString returns the string representation

func (*CreateReplicationSubnetGroupOutput) SetReplicationSubnetGroup Uses

func (s *CreateReplicationSubnetGroupOutput) SetReplicationSubnetGroup(v *ReplicationSubnetGroup) *CreateReplicationSubnetGroupOutput

SetReplicationSubnetGroup sets the ReplicationSubnetGroup field's value.

func (CreateReplicationSubnetGroupOutput) String Uses

func (s CreateReplicationSubnetGroupOutput) String() string

String returns the string representation

type CreateReplicationTaskInput Uses

type CreateReplicationTaskInput struct {

    // Indicates when you want a change data capture (CDC) operation to start. Use
    // either CdcStartPosition or CdcStartTime to specify when you want a CDC operation
    // to start. Specifying both values results in an error.
    //
    // The value can be in date, checkpoint, or LSN/SCN format.
    //
    // Date Example: --cdc-start-position “2018-03-08T12:12:12”
    //
    // Checkpoint Example: --cdc-start-position "checkpoint:V1#27#mysql-bin-changelog.157832:1975:-1:2002:677883278264080:mysql-bin-changelog.157832:1876#0#0#*#0#93"
    //
    // LSN Example: --cdc-start-position “mysql-bin-changelog.000024:373”
    //
    // When you use this task setting with a source PostgreSQL database, a logical
    // replication slot should already be created and associated with the source
    // endpoint. You can verify this by setting the slotName extra connection attribute
    // to the name of this logical replication slot. For more information, see Extra
    // Connection Attributes When Using PostgreSQL as a Source for AWS DMS (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.PostgreSQL.html#CHAP_Source.PostgreSQL.ConnectionAttrib).
    CdcStartPosition *string `type:"string"`

    // Indicates the start time for a change data capture (CDC) operation. Use either
    // CdcStartTime or CdcStartPosition to specify when you want a CDC operation
    // to start. Specifying both values results in an error.
    //
    // Timestamp Example: --cdc-start-time “2018-03-08T12:12:12”
    CdcStartTime *time.Time `type:"timestamp"`

    // Indicates when you want a change data capture (CDC) operation to stop. The
    // value can be either server time or commit time.
    //
    // Server time example: --cdc-stop-position “server_time:3018-02-09T12:12:12”
    //
    // Commit time example: --cdc-stop-position “commit_time: 3018-02-09T12:12:12
    // “
    CdcStopPosition *string `type:"string"`

    // The migration type. Valid values: full-load | cdc | full-load-and-cdc
    //
    // MigrationType is a required field
    MigrationType *string `type:"string" required:"true" enum:"MigrationTypeValue"`

    // The Amazon Resource Name (ARN) of a replication instance.
    //
    // ReplicationInstanceArn is a required field
    ReplicationInstanceArn *string `type:"string" required:"true"`

    // An identifier for the replication task.
    //
    // Constraints:
    //
    //    * Must contain 1-255 alphanumeric characters or hyphens.
    //
    //    * First character must be a letter.
    //
    //    * Cannot end with a hyphen or contain two consecutive hyphens.
    //
    // ReplicationTaskIdentifier is a required field
    ReplicationTaskIdentifier *string `type:"string" required:"true"`

    // Overall settings for the task, in JSON format. For more information, see
    // Specifying Task Settings for AWS Database Migration Service Tasks (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.CustomizingTasks.TaskSettings.html)
    // in the AWS Database Migration User Guide.
    ReplicationTaskSettings *string `type:"string"`

    // An Amazon Resource Name (ARN) that uniquely identifies the source endpoint.
    //
    // SourceEndpointArn is a required field
    SourceEndpointArn *string `type:"string" required:"true"`

    // The table mappings for the task, in JSON format. For more information, see
    // Using Table Mapping to Specify Task Settings (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.CustomizingTasks.TableMapping.html)
    // in the AWS Database Migration Service User Guide.
    //
    // TableMappings is a required field
    TableMappings *string `type:"string" required:"true"`

    // One or more tags to be assigned to the replication task.
    Tags []*Tag `type:"list"`

    // An Amazon Resource Name (ARN) that uniquely identifies the target endpoint.
    //
    // TargetEndpointArn is a required field
    TargetEndpointArn *string `type:"string" required:"true"`

    // Supplemental information that the task requires to migrate the data for certain
    // source and target endpoints. For more information, see Specifying Supplemental
    // Data for Task Settings (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.TaskData.html)
    // in the AWS Database Migration Service User Guide.
    TaskData *string `type:"string"`
    // contains filtered or unexported fields
}

func (CreateReplicationTaskInput) GoString Uses

func (s CreateReplicationTaskInput) GoString() string

GoString returns the string representation

func (*CreateReplicationTaskInput) SetCdcStartPosition Uses

func (s *CreateReplicationTaskInput) SetCdcStartPosition(v string) *CreateReplicationTaskInput

SetCdcStartPosition sets the CdcStartPosition field's value.

func (*CreateReplicationTaskInput) SetCdcStartTime Uses

func (s *CreateReplicationTaskInput) SetCdcStartTime(v time.Time) *CreateReplicationTaskInput

SetCdcStartTime sets the CdcStartTime field's value.

func (*CreateReplicationTaskInput) SetCdcStopPosition Uses

func (s *CreateReplicationTaskInput) SetCdcStopPosition(v string) *CreateReplicationTaskInput

SetCdcStopPosition sets the CdcStopPosition field's value.

func (*CreateReplicationTaskInput) SetMigrationType Uses

func (s *CreateReplicationTaskInput) SetMigrationType(v string) *CreateReplicationTaskInput

SetMigrationType sets the MigrationType field's value.

func (*CreateReplicationTaskInput) SetReplicationInstanceArn Uses

func (s *CreateReplicationTaskInput) SetReplicationInstanceArn(v string) *CreateReplicationTaskInput

SetReplicationInstanceArn sets the ReplicationInstanceArn field's value.

func (*CreateReplicationTaskInput) SetReplicationTaskIdentifier Uses

func (s *CreateReplicationTaskInput) SetReplicationTaskIdentifier(v string) *CreateReplicationTaskInput

SetReplicationTaskIdentifier sets the ReplicationTaskIdentifier field's value.

func (*CreateReplicationTaskInput) SetReplicationTaskSettings Uses

func (s *CreateReplicationTaskInput) SetReplicationTaskSettings(v string) *CreateReplicationTaskInput

SetReplicationTaskSettings sets the ReplicationTaskSettings field's value.

func (*CreateReplicationTaskInput) SetSourceEndpointArn Uses

func (s *CreateReplicationTaskInput) SetSourceEndpointArn(v string) *CreateReplicationTaskInput

SetSourceEndpointArn sets the SourceEndpointArn field's value.

func (*CreateReplicationTaskInput) SetTableMappings Uses

func (s *CreateReplicationTaskInput) SetTableMappings(v string) *CreateReplicationTaskInput

SetTableMappings sets the TableMappings field's value.

func (*CreateReplicationTaskInput) SetTags Uses

func (s *CreateReplicationTaskInput) SetTags(v []*Tag) *CreateReplicationTaskInput

SetTags sets the Tags field's value.

func (*CreateReplicationTaskInput) SetTargetEndpointArn Uses

func (s *CreateReplicationTaskInput) SetTargetEndpointArn(v string) *CreateReplicationTaskInput

SetTargetEndpointArn sets the TargetEndpointArn field's value.

func (*CreateReplicationTaskInput) SetTaskData Uses

func (s *CreateReplicationTaskInput) SetTaskData(v string) *CreateReplicationTaskInput

SetTaskData sets the TaskData field's value.

func (CreateReplicationTaskInput) String Uses

func (s CreateReplicationTaskInput) String() string

String returns the string representation

func (*CreateReplicationTaskInput) Validate Uses

func (s *CreateReplicationTaskInput) Validate() error

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

type CreateReplicationTaskOutput Uses

type CreateReplicationTaskOutput struct {

    // The replication task that was created.
    ReplicationTask *ReplicationTask `type:"structure"`
    // contains filtered or unexported fields
}

func (CreateReplicationTaskOutput) GoString Uses

func (s CreateReplicationTaskOutput) GoString() string

GoString returns the string representation

func (*CreateReplicationTaskOutput) SetReplicationTask Uses

func (s *CreateReplicationTaskOutput) SetReplicationTask(v *ReplicationTask) *CreateReplicationTaskOutput

SetReplicationTask sets the ReplicationTask field's value.

func (CreateReplicationTaskOutput) String Uses

func (s CreateReplicationTaskOutput) String() string

String returns the string representation

type DatabaseMigrationService Uses

type DatabaseMigrationService struct {
    *client.Client
}

DatabaseMigrationService provides the API operation methods for making requests to AWS Database Migration Service. See this package's package overview docs for details on the service.

DatabaseMigrationService methods are safe to use concurrently. It is not safe to modify mutate any of the struct's properties though.

func New Uses

func New(p client.ConfigProvider, cfgs ...*aws.Config) *DatabaseMigrationService

New creates a new instance of the DatabaseMigrationService client with a session. If additional configuration is needed for the client instance use the optional aws.Config parameter to add your extra config.

Example:

mySession := session.Must(session.NewSession())

// Create a DatabaseMigrationService client from just a session.
svc := databasemigrationservice.New(mySession)

// Create a DatabaseMigrationService client with additional configuration
svc := databasemigrationservice.New(mySession, aws.NewConfig().WithRegion("us-west-2"))

func (*DatabaseMigrationService) AddTagsToResource Uses

func (c *DatabaseMigrationService) AddTagsToResource(input *AddTagsToResourceInput) (*AddTagsToResourceOutput, error)

AddTagsToResource API operation for AWS Database Migration Service.

Adds metadata tags to an AWS DMS resource, including replication instance, endpoint, security group, and migration task. These tags can also be used with cost allocation reporting to track cost associated with DMS resources, or used in a Condition statement in an IAM policy for DMS.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Database Migration Service's API operation AddTagsToResource for usage and error information.

Returned Error Types:

* ResourceNotFoundFault
The resource could not be found.

See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/AddTagsToResource

Add tags to resource

Adds metadata tags to an AWS DMS resource, including replication instance, endpoint, security group, and migration task. These tags can also be used with cost allocation reporting to track cost associated with AWS DMS resources, or used in a Condition statement in an IAM policy for AWS DMS.

Code:

svc := databasemigrationservice.New(session.New())
input := &databasemigrationservice.AddTagsToResourceInput{
    ResourceArn: aws.String("arn:aws:dms:us-east-1:123456789012:endpoint:ASXWXJZLNWNT5HTWCGV2BUJQ7E"),
    Tags: []*databasemigrationservice.Tag{
        {
            Key:   aws.String("Acount"),
            Value: aws.String("1633456"),
        },
    },
}

result, err := svc.AddTagsToResource(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case databasemigrationservice.ErrCodeResourceNotFoundFault:
            fmt.Println(databasemigrationservice.ErrCodeResourceNotFoundFault, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*DatabaseMigrationService) AddTagsToResourceRequest Uses

func (c *DatabaseMigrationService) AddTagsToResourceRequest(input *AddTagsToResourceInput) (req *request.Request, output *AddTagsToResourceOutput)

AddTagsToResourceRequest generates a "aws/request.Request" representing the client's request for the AddTagsToResource operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See AddTagsToResource for more information on using the AddTagsToResource API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the AddTagsToResourceRequest method.
req, resp := client.AddTagsToResourceRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/AddTagsToResource

func (*DatabaseMigrationService) AddTagsToResourceWithContext Uses

func (c *DatabaseMigrationService) AddTagsToResourceWithContext(ctx aws.Context, input *AddTagsToResourceInput, opts ...request.Option) (*AddTagsToResourceOutput, error)

AddTagsToResourceWithContext is the same as AddTagsToResource with the addition of the ability to pass a context and additional request options.

See AddTagsToResource for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*DatabaseMigrationService) ApplyPendingMaintenanceAction Uses

func (c *DatabaseMigrationService) ApplyPendingMaintenanceAction(input *ApplyPendingMaintenanceActionInput) (*ApplyPendingMaintenanceActionOutput, error)

ApplyPendingMaintenanceAction API operation for AWS Database Migration Service.

Applies a pending maintenance action to a resource (for example, to a replication instance).

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Database Migration Service's API operation ApplyPendingMaintenanceAction for usage and error information.

Returned Error Types:

* ResourceNotFoundFault
The resource could not be found.

See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/ApplyPendingMaintenanceAction

func (*DatabaseMigrationService) ApplyPendingMaintenanceActionRequest Uses

func (c *DatabaseMigrationService) ApplyPendingMaintenanceActionRequest(input *ApplyPendingMaintenanceActionInput) (req *request.Request, output *ApplyPendingMaintenanceActionOutput)

ApplyPendingMaintenanceActionRequest generates a "aws/request.Request" representing the client's request for the ApplyPendingMaintenanceAction operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ApplyPendingMaintenanceAction for more information on using the ApplyPendingMaintenanceAction API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ApplyPendingMaintenanceActionRequest method.
req, resp := client.ApplyPendingMaintenanceActionRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/ApplyPendingMaintenanceAction

func (*DatabaseMigrationService) ApplyPendingMaintenanceActionWithContext Uses

func (c *DatabaseMigrationService) ApplyPendingMaintenanceActionWithContext(ctx aws.Context, input *ApplyPendingMaintenanceActionInput, opts ...request.Option) (*ApplyPendingMaintenanceActionOutput, error)

ApplyPendingMaintenanceActionWithContext is the same as ApplyPendingMaintenanceAction with the addition of the ability to pass a context and additional request options.

See ApplyPendingMaintenanceAction for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*DatabaseMigrationService) CancelReplicationTaskAssessmentRun Uses

func (c *DatabaseMigrationService) CancelReplicationTaskAssessmentRun(input *CancelReplicationTaskAssessmentRunInput) (*CancelReplicationTaskAssessmentRunOutput, error)

CancelReplicationTaskAssessmentRun API operation for AWS Database Migration Service.

Cancels a single premigration assessment run.

This operation prevents any individual assessments from running if they haven't started running. It also attempts to cancel any individual assessments that are currently running.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Database Migration Service's API operation CancelReplicationTaskAssessmentRun for usage and error information.

Returned Error Types:

* AccessDeniedFault
AWS DMS was denied access to the endpoint. Check that the role is correctly
configured.

* ResourceNotFoundFault
The resource could not be found.

* InvalidResourceStateFault
The resource is in a state that prevents it from being used for database
migration.

See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/CancelReplicationTaskAssessmentRun

func (*DatabaseMigrationService) CancelReplicationTaskAssessmentRunRequest Uses

func (c *DatabaseMigrationService) CancelReplicationTaskAssessmentRunRequest(input *CancelReplicationTaskAssessmentRunInput) (req *request.Request, output *CancelReplicationTaskAssessmentRunOutput)

CancelReplicationTaskAssessmentRunRequest generates a "aws/request.Request" representing the client's request for the CancelReplicationTaskAssessmentRun operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CancelReplicationTaskAssessmentRun for more information on using the CancelReplicationTaskAssessmentRun API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CancelReplicationTaskAssessmentRunRequest method.
req, resp := client.CancelReplicationTaskAssessmentRunRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/CancelReplicationTaskAssessmentRun

func (*DatabaseMigrationService) CancelReplicationTaskAssessmentRunWithContext Uses

func (c *DatabaseMigrationService) CancelReplicationTaskAssessmentRunWithContext(ctx aws.Context, input *CancelReplicationTaskAssessmentRunInput, opts ...request.Option) (*CancelReplicationTaskAssessmentRunOutput, error)

CancelReplicationTaskAssessmentRunWithContext is the same as CancelReplicationTaskAssessmentRun with the addition of the ability to pass a context and additional request options.

See CancelReplicationTaskAssessmentRun for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*DatabaseMigrationService) CreateEndpoint Uses

func (c *DatabaseMigrationService) CreateEndpoint(input *CreateEndpointInput) (*CreateEndpointOutput, error)

CreateEndpoint API operation for AWS Database Migration Service.

Creates an endpoint using the provided settings.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Database Migration Service's API operation CreateEndpoint for usage and error information.

Returned Error Types:

* KMSKeyNotAccessibleFault
AWS DMS cannot access the AWS KMS key.

* ResourceAlreadyExistsFault
The resource you are attempting to create already exists.

* ResourceQuotaExceededFault
The quota for this resource quota has been exceeded.

* InvalidResourceStateFault
The resource is in a state that prevents it from being used for database
migration.

* ResourceNotFoundFault
The resource could not be found.

* AccessDeniedFault
AWS DMS was denied access to the endpoint. Check that the role is correctly
configured.

See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/CreateEndpoint

Create endpoint

Creates an endpoint using the provided settings.

Code:

svc := databasemigrationservice.New(session.New())
input := &databasemigrationservice.CreateEndpointInput{
    CertificateArn:            aws.String(""),
    DatabaseName:              aws.String("testdb"),
    EndpointIdentifier:        aws.String("test-endpoint-1"),
    EndpointType:              aws.String("source"),
    EngineName:                aws.String("mysql"),
    ExtraConnectionAttributes: aws.String(""),
    KmsKeyId:                  aws.String("arn:aws:kms:us-east-1:123456789012:key/4c1731d6-5435-ed4d-be13-d53411a7cfbd"),
    Password:                  aws.String("pasword"),
    Port:                      aws.Int64(3306),
    ServerName:                aws.String("mydb.cx1llnox7iyx.us-west-2.rds.amazonaws.com"),
    SslMode:                   aws.String("require"),
    Tags: []*databasemigrationservice.Tag{
        {
            Key:   aws.String("Acount"),
            Value: aws.String("143327655"),
        },
    },
    Username: aws.String("username"),
}

result, err := svc.CreateEndpoint(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case databasemigrationservice.ErrCodeKMSKeyNotAccessibleFault:
            fmt.Println(databasemigrationservice.ErrCodeKMSKeyNotAccessibleFault, aerr.Error())
        case databasemigrationservice.ErrCodeResourceAlreadyExistsFault:
            fmt.Println(databasemigrationservice.ErrCodeResourceAlreadyExistsFault, aerr.Error())
        case databasemigrationservice.ErrCodeResourceQuotaExceededFault:
            fmt.Println(databasemigrationservice.ErrCodeResourceQuotaExceededFault, aerr.Error())
        case databasemigrationservice.ErrCodeInvalidResourceStateFault:
            fmt.Println(databasemigrationservice.ErrCodeInvalidResourceStateFault, aerr.Error())
        case databasemigrationservice.ErrCodeResourceNotFoundFault:
            fmt.Println(databasemigrationservice.ErrCodeResourceNotFoundFault, aerr.Error())
        case databasemigrationservice.ErrCodeAccessDeniedFault:
            fmt.Println(databasemigrationservice.ErrCodeAccessDeniedFault, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*DatabaseMigrationService) CreateEndpointRequest Uses

func (c *DatabaseMigrationService) CreateEndpointRequest(input *CreateEndpointInput) (req *request.Request, output *CreateEndpointOutput)

CreateEndpointRequest generates a "aws/request.Request" representing the client's request for the CreateEndpoint operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CreateEndpoint for more information on using the CreateEndpoint API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CreateEndpointRequest method.
req, resp := client.CreateEndpointRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/CreateEndpoint

func (*DatabaseMigrationService) CreateEndpointWithContext Uses

func (c *DatabaseMigrationService) CreateEndpointWithContext(ctx aws.Context, input *CreateEndpointInput, opts ...request.Option) (*CreateEndpointOutput, error)

CreateEndpointWithContext is the same as CreateEndpoint with the addition of the ability to pass a context and additional request options.

See CreateEndpoint for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*DatabaseMigrationService) CreateEventSubscription Uses

func (c *DatabaseMigrationService) CreateEventSubscription(input *CreateEventSubscriptionInput) (*CreateEventSubscriptionOutput, error)

CreateEventSubscription API operation for AWS Database Migration Service.

Creates an AWS DMS event notification subscription.

You can specify the type of source (SourceType) you want to be notified of, provide a list of AWS DMS source IDs (SourceIds) that triggers the events, and provide a list of event categories (EventCategories) for events you want to be notified of. If you specify both the SourceType and SourceIds, such as SourceType = replication-instance and SourceIdentifier = my-replinstance, you will be notified of all the replication instance events for the specified source. If you specify a SourceType but don't specify a SourceIdentifier, you receive notice of the events for that source type for all your AWS DMS sources. If you don't specify either SourceType nor SourceIdentifier, you will be notified of events generated from all AWS DMS sources belonging to your customer account.

For more information about AWS DMS events, see Working with Events and Notifications (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Events.html) in the AWS Database Migration Service User Guide.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Database Migration Service's API operation CreateEventSubscription for usage and error information.

Returned Error Types:

* ResourceQuotaExceededFault
The quota for this resource quota has been exceeded.

* ResourceNotFoundFault
The resource could not be found.

* ResourceAlreadyExistsFault
The resource you are attempting to create already exists.

* SNSInvalidTopicFault
The SNS topic is invalid.

* SNSNoAuthorizationFault
You are not authorized for the SNS subscription.

* KMSAccessDeniedFault
The ciphertext references a key that doesn't exist or that the DMS account
doesn't have access to.

* KMSDisabledFault
The specified master key (CMK) isn't enabled.

* KMSInvalidStateFault
The state of the specified AWS KMS resource isn't valid for this request.

* KMSNotFoundFault
The specified AWS KMS entity or resource can't be found.

* KMSThrottlingFault
This request triggered AWS KMS request throttling.

See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/CreateEventSubscription

func (*DatabaseMigrationService) CreateEventSubscriptionRequest Uses

func (c *DatabaseMigrationService) CreateEventSubscriptionRequest(input *CreateEventSubscriptionInput) (req *request.Request, output *CreateEventSubscriptionOutput)

CreateEventSubscriptionRequest generates a "aws/request.Request" representing the client's request for the CreateEventSubscription operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CreateEventSubscription for more information on using the CreateEventSubscription API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CreateEventSubscriptionRequest method.
req, resp := client.CreateEventSubscriptionRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/CreateEventSubscription

func (*DatabaseMigrationService) CreateEventSubscriptionWithContext Uses

func (c *DatabaseMigrationService) CreateEventSubscriptionWithContext(ctx aws.Context, input *CreateEventSubscriptionInput, opts ...request.Option) (*CreateEventSubscriptionOutput, error)

CreateEventSubscriptionWithContext is the same as CreateEventSubscription with the addition of the ability to pass a context and additional request options.

See CreateEventSubscription for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*DatabaseMigrationService) CreateReplicationInstance Uses

func (c *DatabaseMigrationService) CreateReplicationInstance(input *CreateReplicationInstanceInput) (*CreateReplicationInstanceOutput, error)

CreateReplicationInstance API operation for AWS Database Migration Service.

Creates the replication instance using the specified parameters.

AWS DMS requires that your account have certain roles with appropriate permissions before you can create a replication instance. For information on the required roles, see Creating the IAM Roles to Use With the AWS CLI and AWS DMS API (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Security.APIRole.html). For information on the required permissions, see IAM Permissions Needed to Use AWS DMS (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Security.IAMPermissions.html).

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Database Migration Service's API operation CreateReplicationInstance for usage and error information.

Returned Error Types:

* AccessDeniedFault
AWS DMS was denied access to the endpoint. Check that the role is correctly
configured.

* ResourceAlreadyExistsFault
The resource you are attempting to create already exists.

* InsufficientResourceCapacityFault
There are not enough resources allocated to the database migration.

* ResourceQuotaExceededFault
The quota for this resource quota has been exceeded.

* StorageQuotaExceededFault
The storage quota has been exceeded.

* ResourceNotFoundFault
The resource could not be found.

* ReplicationSubnetGroupDoesNotCoverEnoughAZs
The replication subnet group does not cover enough Availability Zones (AZs).
Edit the replication subnet group and add more AZs.

* InvalidResourceStateFault
The resource is in a state that prevents it from being used for database
migration.

* InvalidSubnet
The subnet provided is invalid.

* KMSKeyNotAccessibleFault
AWS DMS cannot access the AWS KMS key.

See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/CreateReplicationInstance

Create replication instance

Creates the replication instance using the specified parameters.

Code:

svc := databasemigrationservice.New(session.New())
input := &databasemigrationservice.CreateReplicationInstanceInput{
    AllocatedStorage:                 aws.Int64(123),
    AutoMinorVersionUpgrade:          aws.Bool(true),
    AvailabilityZone:                 aws.String(""),
    EngineVersion:                    aws.String(""),
    KmsKeyId:                         aws.String(""),
    MultiAZ:                          aws.Bool(true),
    PreferredMaintenanceWindow:       aws.String(""),
    PubliclyAccessible:               aws.Bool(true),
    ReplicationInstanceClass:         aws.String(""),
    ReplicationInstanceIdentifier:    aws.String(""),
    ReplicationSubnetGroupIdentifier: aws.String(""),
    Tags: []*databasemigrationservice.Tag{
        {
            Key:   aws.String("string"),
            Value: aws.String("string"),
        },
    },
}

result, err := svc.CreateReplicationInstance(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case databasemigrationservice.ErrCodeAccessDeniedFault:
            fmt.Println(databasemigrationservice.ErrCodeAccessDeniedFault, aerr.Error())
        case databasemigrationservice.ErrCodeResourceAlreadyExistsFault:
            fmt.Println(databasemigrationservice.ErrCodeResourceAlreadyExistsFault, aerr.Error())
        case databasemigrationservice.ErrCodeInsufficientResourceCapacityFault:
            fmt.Println(databasemigrationservice.ErrCodeInsufficientResourceCapacityFault, aerr.Error())
        case databasemigrationservice.ErrCodeResourceQuotaExceededFault:
            fmt.Println(databasemigrationservice.ErrCodeResourceQuotaExceededFault, aerr.Error())
        case databasemigrationservice.ErrCodeStorageQuotaExceededFault:
            fmt.Println(databasemigrationservice.ErrCodeStorageQuotaExceededFault, aerr.Error())
        case databasemigrationservice.ErrCodeResourceNotFoundFault:
            fmt.Println(databasemigrationservice.ErrCodeResourceNotFoundFault, aerr.Error())
        case databasemigrationservice.ErrCodeReplicationSubnetGroupDoesNotCoverEnoughAZs:
            fmt.Println(databasemigrationservice.ErrCodeReplicationSubnetGroupDoesNotCoverEnoughAZs, aerr.Error())
        case databasemigrationservice.ErrCodeInvalidResourceStateFault:
            fmt.Println(databasemigrationservice.ErrCodeInvalidResourceStateFault, aerr.Error())
        case databasemigrationservice.ErrCodeInvalidSubnet:
            fmt.Println(databasemigrationservice.ErrCodeInvalidSubnet, aerr.Error())
        case databasemigrationservice.ErrCodeKMSKeyNotAccessibleFault:
            fmt.Println(databasemigrationservice.ErrCodeKMSKeyNotAccessibleFault, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*DatabaseMigrationService) CreateReplicationInstanceRequest Uses

func (c *DatabaseMigrationService) CreateReplicationInstanceRequest(input *CreateReplicationInstanceInput) (req *request.Request, output *CreateReplicationInstanceOutput)

CreateReplicationInstanceRequest generates a "aws/request.Request" representing the client's request for the CreateReplicationInstance operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CreateReplicationInstance for more information on using the CreateReplicationInstance API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CreateReplicationInstanceRequest method.
req, resp := client.CreateReplicationInstanceRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/CreateReplicationInstance

func (*DatabaseMigrationService) CreateReplicationInstanceWithContext Uses

func (c *DatabaseMigrationService) CreateReplicationInstanceWithContext(ctx aws.Context, input *CreateReplicationInstanceInput, opts ...request.Option) (*CreateReplicationInstanceOutput, error)

CreateReplicationInstanceWithContext is the same as CreateReplicationInstance with the addition of the ability to pass a context and additional request options.

See CreateReplicationInstance for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*DatabaseMigrationService) CreateReplicationSubnetGroup Uses

func (c *DatabaseMigrationService) CreateReplicationSubnetGroup(input *CreateReplicationSubnetGroupInput) (*CreateReplicationSubnetGroupOutput, error)

CreateReplicationSubnetGroup API operation for AWS Database Migration Service.

Creates a replication subnet group given a list of the subnet IDs in a VPC.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Database Migration Service's API operation CreateReplicationSubnetGroup for usage and error information.

Returned Error Types:

* AccessDeniedFault
AWS DMS was denied access to the endpoint. Check that the role is correctly
configured.

* ResourceAlreadyExistsFault
The resource you are attempting to create already exists.

* ResourceNotFoundFault
The resource could not be found.

* ResourceQuotaExceededFault
The quota for this resource quota has been exceeded.

* ReplicationSubnetGroupDoesNotCoverEnoughAZs
The replication subnet group does not cover enough Availability Zones (AZs).
Edit the replication subnet group and add more AZs.

* InvalidSubnet
The subnet provided is invalid.

See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/CreateReplicationSubnetGroup

Create replication subnet group

Creates a replication subnet group given a list of the subnet IDs in a VPC.

Code:

svc := databasemigrationservice.New(session.New())
input := &databasemigrationservice.CreateReplicationSubnetGroupInput{
    ReplicationSubnetGroupDescription: aws.String("US West subnet group"),
    ReplicationSubnetGroupIdentifier:  aws.String("us-west-2ab-vpc-215ds366"),
    SubnetIds: []*string{
        aws.String("subnet-e145356n"),
        aws.String("subnet-58f79200"),
    },
    Tags: []*databasemigrationservice.Tag{
        {
            Key:   aws.String("Acount"),
            Value: aws.String("145235"),
        },
    },
}

result, err := svc.CreateReplicationSubnetGroup(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case databasemigrationservice.ErrCodeAccessDeniedFault:
            fmt.Println(databasemigrationservice.ErrCodeAccessDeniedFault, aerr.Error())
        case databasemigrationservice.ErrCodeResourceAlreadyExistsFault:
            fmt.Println(databasemigrationservice.ErrCodeResourceAlreadyExistsFault, aerr.Error())
        case databasemigrationservice.ErrCodeResourceNotFoundFault:
            fmt.Println(databasemigrationservice.ErrCodeResourceNotFoundFault, aerr.Error())
        case databasemigrationservice.ErrCodeResourceQuotaExceededFault:
            fmt.Println(databasemigrationservice.ErrCodeResourceQuotaExceededFault, aerr.Error())
        case databasemigrationservice.ErrCodeReplicationSubnetGroupDoesNotCoverEnoughAZs:
            fmt.Println(databasemigrationservice.ErrCodeReplicationSubnetGroupDoesNotCoverEnoughAZs, aerr.Error())
        case databasemigrationservice.ErrCodeInvalidSubnet:
            fmt.Println(databasemigrationservice.ErrCodeInvalidSubnet, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*DatabaseMigrationService) CreateReplicationSubnetGroupRequest Uses

func (c *DatabaseMigrationService) CreateReplicationSubnetGroupRequest(input *CreateReplicationSubnetGroupInput) (req *request.Request, output *CreateReplicationSubnetGroupOutput)

CreateReplicationSubnetGroupRequest generates a "aws/request.Request" representing the client's request for the CreateReplicationSubnetGroup operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CreateReplicationSubnetGroup for more information on using the CreateReplicationSubnetGroup API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CreateReplicationSubnetGroupRequest method.
req, resp := client.CreateReplicationSubnetGroupRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/CreateReplicationSubnetGroup

func (*DatabaseMigrationService) CreateReplicationSubnetGroupWithContext Uses

func (c *DatabaseMigrationService) CreateReplicationSubnetGroupWithContext(ctx aws.Context, input *CreateReplicationSubnetGroupInput, opts ...request.Option) (*CreateReplicationSubnetGroupOutput, error)

CreateReplicationSubnetGroupWithContext is the same as CreateReplicationSubnetGroup with the addition of the ability to pass a context and additional request options.

See CreateReplicationSubnetGroup for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*DatabaseMigrationService) CreateReplicationTask Uses

func (c *DatabaseMigrationService) CreateReplicationTask(input *CreateReplicationTaskInput) (*CreateReplicationTaskOutput, error)

CreateReplicationTask API operation for AWS Database Migration Service.

Creates a replication task using the specified parameters.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Database Migration Service's API operation CreateReplicationTask for usage and error information.

Returned Error Types:

* AccessDeniedFault
AWS DMS was denied access to the endpoint. Check that the role is correctly
configured.

* InvalidResourceStateFault
The resource is in a state that prevents it from being used for database
migration.

* ResourceAlreadyExistsFault
The resource you are attempting to create already exists.

* ResourceNotFoundFault
The resource could not be found.

* KMSKeyNotAccessibleFault
AWS DMS cannot access the AWS KMS key.

* ResourceQuotaExceededFault
The quota for this resource quota has been exceeded.

See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/CreateReplicationTask

Create replication task

Creates a replication task using the specified parameters.

Code:

svc := databasemigrationservice.New(session.New())
input := &databasemigrationservice.CreateReplicationTaskInput{
    CdcStartTime:              parseTime("2006-01-02T15:04:05.999999999Z", "2016-12-14T18:25:43Z"),
    MigrationType:             aws.String("full-load"),
    ReplicationInstanceArn:    aws.String("arn:aws:dms:us-east-1:123456789012:rep:6UTDJGBOUS3VI3SUWA66XFJCJQ"),
    ReplicationTaskIdentifier: aws.String("task1"),
    ReplicationTaskSettings:   aws.String(""),
    SourceEndpointArn:         aws.String("arn:aws:dms:us-east-1:123456789012:endpoint:ZW5UAN6P4E77EC7YWHK4RZZ3BE"),
    TableMappings:             aws.String("file://mappingfile.json"),
    Tags: []*databasemigrationservice.Tag{
        {
            Key:   aws.String("Acount"),
            Value: aws.String("24352226"),
        },
    },
    TargetEndpointArn: aws.String("arn:aws:dms:us-east-1:123456789012:endpoint:ASXWXJZLNWNT5HTWCGV2BUJQ7E"),
}

result, err := svc.CreateReplicationTask(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case databasemigrationservice.ErrCodeAccessDeniedFault:
            fmt.Println(databasemigrationservice.ErrCodeAccessDeniedFault, aerr.Error())
        case databasemigrationservice.ErrCodeInvalidResourceStateFault:
            fmt.Println(databasemigrationservice.ErrCodeInvalidResourceStateFault, aerr.Error())
        case databasemigrationservice.ErrCodeResourceAlreadyExistsFault:
            fmt.Println(databasemigrationservice.ErrCodeResourceAlreadyExistsFault, aerr.Error())
        case databasemigrationservice.ErrCodeResourceNotFoundFault:
            fmt.Println(databasemigrationservice.ErrCodeResourceNotFoundFault, aerr.Error())
        case databasemigrationservice.ErrCodeKMSKeyNotAccessibleFault:
            fmt.Println(databasemigrationservice.ErrCodeKMSKeyNotAccessibleFault, aerr.Error())
        case databasemigrationservice.ErrCodeResourceQuotaExceededFault:
            fmt.Println(databasemigrationservice.ErrCodeResourceQuotaExceededFault, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*DatabaseMigrationService) CreateReplicationTaskRequest Uses

func (c *DatabaseMigrationService) CreateReplicationTaskRequest(input *CreateReplicationTaskInput) (req *request.Request, output *CreateReplicationTaskOutput)

CreateReplicationTaskRequest generates a "aws/request.Request" representing the client's request for the CreateReplicationTask operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CreateReplicationTask for more information on using the CreateReplicationTask API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CreateReplicationTaskRequest method.
req, resp := client.CreateReplicationTaskRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/CreateReplicationTask

func (*DatabaseMigrationService) CreateReplicationTaskWithContext Uses

func (c *DatabaseMigrationService) CreateReplicationTaskWithContext(ctx aws.Context, input *CreateReplicationTaskInput, opts ...request.Option) (*CreateReplicationTaskOutput, error)

CreateReplicationTaskWithContext is the same as CreateReplicationTask with the addition of the ability to pass a context and additional request options.

See CreateReplicationTask for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*DatabaseMigrationService) DeleteCertificate Uses

func (c *DatabaseMigrationService) DeleteCertificate(input *DeleteCertificateInput) (*DeleteCertificateOutput, error)

DeleteCertificate API operation for AWS Database Migration Service.

Deletes the specified certificate.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Database Migration Service's API operation DeleteCertificate for usage and error information.

Returned Error Types:

* ResourceNotFoundFault
The resource could not be found.

* InvalidResourceStateFault
The resource is in a state that prevents it from being used for database
migration.

See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DeleteCertificate

Delete Certificate

Deletes the specified certificate.

Code:

svc := databasemigrationservice.New(session.New())
input := &databasemigrationservice.DeleteCertificateInput{
    CertificateArn: aws.String("arn:aws:dms:us-east-1:123456789012:rep:6UTDJGBOUSM457DE6XFJCJQ"),
}

result, err := svc.DeleteCertificate(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case databasemigrationservice.ErrCodeResourceNotFoundFault:
            fmt.Println(databasemigrationservice.ErrCodeResourceNotFoundFault, aerr.Error())
        case databasemigrationservice.ErrCodeInvalidResourceStateFault:
            fmt.Println(databasemigrationservice.ErrCodeInvalidResourceStateFault, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*DatabaseMigrationService) DeleteCertificateRequest Uses

func (c *DatabaseMigrationService) DeleteCertificateRequest(input *DeleteCertificateInput) (req *request.Request, output *DeleteCertificateOutput)

DeleteCertificateRequest generates a "aws/request.Request" representing the client's request for the DeleteCertificate operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteCertificate for more information on using the DeleteCertificate API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeleteCertificateRequest method.
req, resp := client.DeleteCertificateRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DeleteCertificate

func (*DatabaseMigrationService) DeleteCertificateWithContext Uses

func (c *DatabaseMigrationService) DeleteCertificateWithContext(ctx aws.Context, input *DeleteCertificateInput, opts ...request.Option) (*DeleteCertificateOutput, error)

DeleteCertificateWithContext is the same as DeleteCertificate with the addition of the ability to pass a context and additional request options.

See DeleteCertificate for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*DatabaseMigrationService) DeleteConnection Uses

func (c *DatabaseMigrationService) DeleteConnection(input *DeleteConnectionInput) (*DeleteConnectionOutput, error)

DeleteConnection API operation for AWS Database Migration Service.

Deletes the connection between a replication instance and an endpoint.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Database Migration Service's API operation DeleteConnection for usage and error information.

Returned Error Types:

* AccessDeniedFault
AWS DMS was denied access to the endpoint. Check that the role is correctly
configured.

* ResourceNotFoundFault
The resource could not be found.

* InvalidResourceStateFault
The resource is in a state that prevents it from being used for database
migration.

See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DeleteConnection

Delete Connection

Deletes the connection between the replication instance and the endpoint.

Code:

svc := databasemigrationservice.New(session.New())
input := &databasemigrationservice.DeleteConnectionInput{
    EndpointArn:            aws.String("arn:aws:dms:us-east-1:123456789012:endpoint:RAAR3R22XSH46S3PWLC3NJAWKM"),
    ReplicationInstanceArn: aws.String("arn:aws:dms:us-east-1:123456789012:rep:6UTDJGBOUS3VI3SUWA66XFJCJQ"),
}

result, err := svc.DeleteConnection(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case databasemigrationservice.ErrCodeAccessDeniedFault:
            fmt.Println(databasemigrationservice.ErrCodeAccessDeniedFault, aerr.Error())
        case databasemigrationservice.ErrCodeResourceNotFoundFault:
            fmt.Println(databasemigrationservice.ErrCodeResourceNotFoundFault, aerr.Error())
        case databasemigrationservice.ErrCodeInvalidResourceStateFault:
            fmt.Println(databasemigrationservice.ErrCodeInvalidResourceStateFault, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*DatabaseMigrationService) DeleteConnectionRequest Uses

func (c *DatabaseMigrationService) DeleteConnectionRequest(input *DeleteConnectionInput) (req *request.Request, output *DeleteConnectionOutput)

DeleteConnectionRequest generates a "aws/request.Request" representing the client's request for the DeleteConnection operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteConnection for more information on using the DeleteConnection API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeleteConnectionRequest method.
req, resp := client.DeleteConnectionRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DeleteConnection

func (*DatabaseMigrationService) DeleteConnectionWithContext Uses

func (c *DatabaseMigrationService) DeleteConnectionWithContext(ctx aws.Context, input *DeleteConnectionInput, opts ...request.Option) (*DeleteConnectionOutput, error)

DeleteConnectionWithContext is the same as DeleteConnection with the addition of the ability to pass a context and additional request options.

See DeleteConnection for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*DatabaseMigrationService) DeleteEndpoint Uses

func (c *DatabaseMigrationService) DeleteEndpoint(input *DeleteEndpointInput) (*DeleteEndpointOutput, error)

DeleteEndpoint API operation for AWS Database Migration Service.

Deletes the specified endpoint.

All tasks associated with the endpoint must be deleted before you can delete the endpoint.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Database Migration Service's API operation DeleteEndpoint for usage and error information.

Returned Error Types:

* ResourceNotFoundFault
The resource could not be found.

* InvalidResourceStateFault
The resource is in a state that prevents it from being used for database
migration.

See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DeleteEndpoint

Delete Endpoint

Deletes the specified endpoint. All tasks associated with the endpoint must be deleted before you can delete the endpoint.

Code:

svc := databasemigrationservice.New(session.New())
input := &databasemigrationservice.DeleteEndpointInput{
    EndpointArn: aws.String("arn:aws:dms:us-east-1:123456789012:endpoint:RAAR3R22XSH46S3PWLC3NJAWKM"),
}

result, err := svc.DeleteEndpoint(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case databasemigrationservice.ErrCodeResourceNotFoundFault:
            fmt.Println(databasemigrationservice.ErrCodeResourceNotFoundFault, aerr.Error())
        case databasemigrationservice.ErrCodeInvalidResourceStateFault:
            fmt.Println(databasemigrationservice.ErrCodeInvalidResourceStateFault, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*DatabaseMigrationService) DeleteEndpointRequest Uses

func (c *DatabaseMigrationService) DeleteEndpointRequest(input *DeleteEndpointInput) (req *request.Request, output *DeleteEndpointOutput)

DeleteEndpointRequest generates a "aws/request.Request" representing the client's request for the DeleteEndpoint operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteEndpoint for more information on using the DeleteEndpoint API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeleteEndpointRequest method.
req, resp := client.DeleteEndpointRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DeleteEndpoint

func (*DatabaseMigrationService) DeleteEndpointWithContext Uses

func (c *DatabaseMigrationService) DeleteEndpointWithContext(ctx aws.Context, input *DeleteEndpointInput, opts ...request.Option) (*DeleteEndpointOutput, error)

DeleteEndpointWithContext is the same as DeleteEndpoint with the addition of the ability to pass a context and additional request options.

See DeleteEndpoint for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*DatabaseMigrationService) DeleteEventSubscription Uses

func (c *DatabaseMigrationService) DeleteEventSubscription(input *DeleteEventSubscriptionInput) (*DeleteEventSubscriptionOutput, error)

DeleteEventSubscription API operation for AWS Database Migration Service.

Deletes an AWS DMS event subscription.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Database Migration Service's API operation DeleteEventSubscription for usage and error information.

Returned Error Types:

* ResourceNotFoundFault
The resource could not be found.

* InvalidResourceStateFault
The resource is in a state that prevents it from being used for database
migration.

See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DeleteEventSubscription

func (*DatabaseMigrationService) DeleteEventSubscriptionRequest Uses

func (c *DatabaseMigrationService) DeleteEventSubscriptionRequest(input *DeleteEventSubscriptionInput) (req *request.Request, output *DeleteEventSubscriptionOutput)

DeleteEventSubscriptionRequest generates a "aws/request.Request" representing the client's request for the DeleteEventSubscription operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteEventSubscription for more information on using the DeleteEventSubscription API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeleteEventSubscriptionRequest method.
req, resp := client.DeleteEventSubscriptionRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DeleteEventSubscription

func (*DatabaseMigrationService) DeleteEventSubscriptionWithContext Uses

func (c *DatabaseMigrationService) DeleteEventSubscriptionWithContext(ctx aws.Context, input *DeleteEventSubscriptionInput, opts ...request.Option) (*DeleteEventSubscriptionOutput, error)

DeleteEventSubscriptionWithContext is the same as DeleteEventSubscription with the addition of the ability to pass a context and additional request options.

See DeleteEventSubscription for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*DatabaseMigrationService) DeleteReplicationInstance Uses

func (c *DatabaseMigrationService) DeleteReplicationInstance(input *DeleteReplicationInstanceInput) (*DeleteReplicationInstanceOutput, error)

DeleteReplicationInstance API operation for AWS Database Migration Service.

Deletes the specified replication instance.

You must delete any migration tasks that are associated with the replication instance before you can delete it.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Database Migration Service's API operation DeleteReplicationInstance for usage and error information.

Returned Error Types:

* InvalidResourceStateFault
The resource is in a state that prevents it from being used for database
migration.

* ResourceNotFoundFault
The resource could not be found.

See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DeleteReplicationInstance

Delete Replication Instance

Deletes the specified replication instance. You must delete any migration tasks that are associated with the replication instance before you can delete it.

Code:

svc := databasemigrationservice.New(session.New())
input := &databasemigrationservice.DeleteReplicationInstanceInput{
    ReplicationInstanceArn: aws.String("arn:aws:dms:us-east-1:123456789012:rep:6UTDJGBOUS3VI3SUWA66XFJCJQ"),
}

result, err := svc.DeleteReplicationInstance(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case databasemigrationservice.ErrCodeInvalidResourceStateFault:
            fmt.Println(databasemigrationservice.ErrCodeInvalidResourceStateFault, aerr.Error())
        case databasemigrationservice.ErrCodeResourceNotFoundFault:
            fmt.Println(databasemigrationservice.ErrCodeResourceNotFoundFault, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*DatabaseMigrationService) DeleteReplicationInstanceRequest Uses

func (c *DatabaseMigrationService) DeleteReplicationInstanceRequest(input *DeleteReplicationInstanceInput) (req *request.Request, output *DeleteReplicationInstanceOutput)

DeleteReplicationInstanceRequest generates a "aws/request.Request" representing the client's request for the DeleteReplicationInstance operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteReplicationInstance for more information on using the DeleteReplicationInstance API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeleteReplicationInstanceRequest method.
req, resp := client.DeleteReplicationInstanceRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DeleteReplicationInstance

func (*DatabaseMigrationService) DeleteReplicationInstanceWithContext Uses

func (c *DatabaseMigrationService) DeleteReplicationInstanceWithContext(ctx aws.Context, input *DeleteReplicationInstanceInput, opts ...request.Option) (*DeleteReplicationInstanceOutput, error)

DeleteReplicationInstanceWithContext is the same as DeleteReplicationInstance with the addition of the ability to pass a context and additional request options.

See DeleteReplicationInstance for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*DatabaseMigrationService) DeleteReplicationSubnetGroup Uses

func (c *DatabaseMigrationService) DeleteReplicationSubnetGroup(input *DeleteReplicationSubnetGroupInput) (*DeleteReplicationSubnetGroupOutput, error)

DeleteReplicationSubnetGroup API operation for AWS Database Migration Service.

Deletes a subnet group.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Database Migration Service's API operation DeleteReplicationSubnetGroup for usage and error information.

Returned Error Types:

* InvalidResourceStateFault
The resource is in a state that prevents it from being used for database
migration.

* ResourceNotFoundFault
The resource could not be found.

See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DeleteReplicationSubnetGroup

Delete Replication Subnet Group

Deletes a replication subnet group.

Code:

svc := databasemigrationservice.New(session.New())
input := &databasemigrationservice.DeleteReplicationSubnetGroupInput{
    ReplicationSubnetGroupIdentifier: aws.String("us-west-2ab-vpc-215ds366"),
}

result, err := svc.DeleteReplicationSubnetGroup(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case databasemigrationservice.ErrCodeInvalidResourceStateFault:
            fmt.Println(databasemigrationservice.ErrCodeInvalidResourceStateFault, aerr.Error())
        case databasemigrationservice.ErrCodeResourceNotFoundFault:
            fmt.Println(databasemigrationservice.ErrCodeResourceNotFoundFault, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*DatabaseMigrationService) DeleteReplicationSubnetGroupRequest Uses

func (c *DatabaseMigrationService) DeleteReplicationSubnetGroupRequest(input *DeleteReplicationSubnetGroupInput) (req *request.Request, output *DeleteReplicationSubnetGroupOutput)

DeleteReplicationSubnetGroupRequest generates a "aws/request.Request" representing the client's request for the DeleteReplicationSubnetGroup operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteReplicationSubnetGroup for more information on using the DeleteReplicationSubnetGroup API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeleteReplicationSubnetGroupRequest method.
req, resp := client.DeleteReplicationSubnetGroupRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DeleteReplicationSubnetGroup

func (*DatabaseMigrationService) DeleteReplicationSubnetGroupWithContext Uses

func (c *DatabaseMigrationService) DeleteReplicationSubnetGroupWithContext(ctx aws.Context, input *DeleteReplicationSubnetGroupInput, opts ...request.Option) (*DeleteReplicationSubnetGroupOutput, error)

DeleteReplicationSubnetGroupWithContext is the same as DeleteReplicationSubnetGroup with the addition of the ability to pass a context and additional request options.

See DeleteReplicationSubnetGroup for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*DatabaseMigrationService) DeleteReplicationTask Uses

func (c *DatabaseMigrationService) DeleteReplicationTask(input *DeleteReplicationTaskInput) (*DeleteReplicationTaskOutput, error)

DeleteReplicationTask API operation for AWS Database Migration Service.

Deletes the specified replication task.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Database Migration Service's API operation DeleteReplicationTask for usage and error information.

Returned Error Types:

* ResourceNotFoundFault
The resource could not be found.

* InvalidResourceStateFault
The resource is in a state that prevents it from being used for database
migration.

See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DeleteReplicationTask

Delete Replication Task

Deletes the specified replication task.

Code:

svc := databasemigrationservice.New(session.New())
input := &databasemigrationservice.DeleteReplicationTaskInput{
    ReplicationTaskArn: aws.String("arn:aws:dms:us-east-1:123456789012:rep:6UTDJGBOUS3VI3SUWA66XFJCJQ"),
}

result, err := svc.DeleteReplicationTask(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case databasemigrationservice.ErrCodeResourceNotFoundFault:
            fmt.Println(databasemigrationservice.ErrCodeResourceNotFoundFault, aerr.Error())
        case databasemigrationservice.ErrCodeInvalidResourceStateFault:
            fmt.Println(databasemigrationservice.ErrCodeInvalidResourceStateFault, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*DatabaseMigrationService) DeleteReplicationTaskAssessmentRun Uses

func (c *DatabaseMigrationService) DeleteReplicationTaskAssessmentRun(input *DeleteReplicationTaskAssessmentRunInput) (*DeleteReplicationTaskAssessmentRunOutput, error)

DeleteReplicationTaskAssessmentRun API operation for AWS Database Migration Service.

Deletes the record of a single premigration assessment run.

This operation removes all metadata that AWS DMS maintains about this assessment run. However, the operation leaves untouched all information about this assessment run that is stored in your Amazon S3 bucket.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Database Migration Service's API operation DeleteReplicationTaskAssessmentRun for usage and error information.

Returned Error Types:

* AccessDeniedFault
AWS DMS was denied access to the endpoint. Check that the role is correctly
configured.

* ResourceNotFoundFault
The resource could not be found.

* InvalidResourceStateFault
The resource is in a state that prevents it from being used for database
migration.

See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DeleteReplicationTaskAssessmentRun

func (*DatabaseMigrationService) DeleteReplicationTaskAssessmentRunRequest Uses

func (c *DatabaseMigrationService) DeleteReplicationTaskAssessmentRunRequest(input *DeleteReplicationTaskAssessmentRunInput) (req *request.Request, output *DeleteReplicationTaskAssessmentRunOutput)

DeleteReplicationTaskAssessmentRunRequest generates a "aws/request.Request" representing the client's request for the DeleteReplicationTaskAssessmentRun operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteReplicationTaskAssessmentRun for more information on using the DeleteReplicationTaskAssessmentRun API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeleteReplicationTaskAssessmentRunRequest method.
req, resp := client.DeleteReplicationTaskAssessmentRunRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DeleteReplicationTaskAssessmentRun

func (*DatabaseMigrationService) DeleteReplicationTaskAssessmentRunWithContext Uses

func (c *DatabaseMigrationService) DeleteReplicationTaskAssessmentRunWithContext(ctx aws.Context, input *DeleteReplicationTaskAssessmentRunInput, opts ...request.Option) (*DeleteReplicationTaskAssessmentRunOutput, error)

DeleteReplicationTaskAssessmentRunWithContext is the same as DeleteReplicationTaskAssessmentRun with the addition of the ability to pass a context and additional request options.

See DeleteReplicationTaskAssessmentRun for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*DatabaseMigrationService) DeleteReplicationTaskRequest Uses

func (c *DatabaseMigrationService) DeleteReplicationTaskRequest(input *DeleteReplicationTaskInput) (req *request.Request, output *DeleteReplicationTaskOutput)

DeleteReplicationTaskRequest generates a "aws/request.Request" representing the client's request for the DeleteReplicationTask operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteReplicationTask for more information on using the DeleteReplicationTask API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeleteReplicationTaskRequest method.
req, resp := client.DeleteReplicationTaskRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DeleteReplicationTask

func (*DatabaseMigrationService) DeleteReplicationTaskWithContext Uses

func (c *DatabaseMigrationService) DeleteReplicationTaskWithContext(ctx aws.Context, input *DeleteReplicationTaskInput, opts ...request.Option) (*DeleteReplicationTaskOutput, error)

DeleteReplicationTaskWithContext is the same as DeleteReplicationTask with the addition of the ability to pass a context and additional request options.

See DeleteReplicationTask for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*DatabaseMigrationService) DescribeAccountAttributes Uses

func (c *DatabaseMigrationService) DescribeAccountAttributes(input *DescribeAccountAttributesInput) (*DescribeAccountAttributesOutput, error)

DescribeAccountAttributes API operation for AWS Database Migration Service.

Lists all of the AWS DMS attributes for a customer account. These attributes include AWS DMS quotas for the account and a unique account identifier in a particular DMS region. DMS quotas include a list of resource quotas supported by the account, such as the number of replication instances allowed. The description for each resource quota, includes the quota name, current usage toward that quota, and the quota's maximum value. DMS uses the unique account identifier to name each artifact used by DMS in the given region.

This command does not take any parameters.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Database Migration Service's API operation DescribeAccountAttributes for usage and error information. See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeAccountAttributes

Describe acount attributes

Lists all of the AWS DMS attributes for a customer account. The attributes include AWS DMS quotas for the account, such as the number of replication instances allowed. The description for a quota includes the quota name, current usage toward that quota, and the quota's maximum value. This operation does not take any parameters.

Code:

svc := databasemigrationservice.New(session.New())
input := &databasemigrationservice.DescribeAccountAttributesInput{}

result, err := svc.DescribeAccountAttributes(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*DatabaseMigrationService) DescribeAccountAttributesRequest Uses

func (c *DatabaseMigrationService) DescribeAccountAttributesRequest(input *DescribeAccountAttributesInput) (req *request.Request, output *DescribeAccountAttributesOutput)

DescribeAccountAttributesRequest generates a "aws/request.Request" representing the client's request for the DescribeAccountAttributes operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeAccountAttributes for more information on using the DescribeAccountAttributes API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribeAccountAttributesRequest method.
req, resp := client.DescribeAccountAttributesRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeAccountAttributes

func (*DatabaseMigrationService) DescribeAccountAttributesWithContext Uses

func (c *DatabaseMigrationService) DescribeAccountAttributesWithContext(ctx aws.Context, input *DescribeAccountAttributesInput, opts ...request.Option) (*DescribeAccountAttributesOutput, error)

DescribeAccountAttributesWithContext is the same as DescribeAccountAttributes with the addition of the ability to pass a context and additional request options.

See DescribeAccountAttributes for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*DatabaseMigrationService) DescribeApplicableIndividualAssessments Uses

func (c *DatabaseMigrationService) DescribeApplicableIndividualAssessments(input *DescribeApplicableIndividualAssessmentsInput) (*DescribeApplicableIndividualAssessmentsOutput, error)

DescribeApplicableIndividualAssessments API operation for AWS Database Migration Service.

Provides a list of individual assessments that you can specify for a new premigration assessment run, given one or more parameters.

If you specify an existing migration task, this operation provides the default individual assessments you can specify for that task. Otherwise, the specified parameters model elements of a possible migration task on which to base a premigration assessment run.

To use these migration task modeling parameters, you must specify an existing replication instance, a source database engine, a target database engine, and a migration type. This combination of parameters potentially limits the default individual assessments available for an assessment run created for a corresponding migration task.

If you specify no parameters, this operation provides a list of all possible individual assessments that you can specify for an assessment run. If you specify any one of the task modeling parameters, you must specify all of them or the operation cannot provide a list of individual assessments. The only parameter that you can specify alone is for an existing migration task. The specified task definition then determines the default list of individual assessments that you can specify in an assessment run for the task.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Database Migration Service's API operation DescribeApplicableIndividualAssessments for usage and error information.

Returned Error Types:

* AccessDeniedFault
AWS DMS was denied access to the endpoint. Check that the role is correctly
configured.

* ResourceNotFoundFault
The resource could not be found.

* InvalidResourceStateFault
The resource is in a state that prevents it from being used for database
migration.

See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeApplicableIndividualAssessments

func (*DatabaseMigrationService) DescribeApplicableIndividualAssessmentsPages Uses

func (c *DatabaseMigrationService) DescribeApplicableIndividualAssessmentsPages(input *DescribeApplicableIndividualAssessmentsInput, fn func(*DescribeApplicableIndividualAssessmentsOutput, bool) bool) error

DescribeApplicableIndividualAssessmentsPages iterates over the pages of a DescribeApplicableIndividualAssessments operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See DescribeApplicableIndividualAssessments method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a DescribeApplicableIndividualAssessments operation.
pageNum := 0
err := client.DescribeApplicableIndividualAssessmentsPages(params,
    func(page *databasemigrationservice.DescribeApplicableIndividualAssessmentsOutput, lastPage bool) bool {
        pageNum++
        fmt.Println(page)
        return pageNum <= 3
    })

func (*DatabaseMigrationService) DescribeApplicableIndividualAssessmentsPagesWithContext Uses

func (c *DatabaseMigrationService) DescribeApplicableIndividualAssessmentsPagesWithContext(ctx aws.Context, input *DescribeApplicableIndividualAssessmentsInput, fn func(*DescribeApplicableIndividualAssessmentsOutput, bool) bool, opts ...request.Option) error

DescribeApplicableIndividualAssessmentsPagesWithContext same as DescribeApplicableIndividualAssessmentsPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*DatabaseMigrationService) DescribeApplicableIndividualAssessmentsRequest Uses

func (c *DatabaseMigrationService) DescribeApplicableIndividualAssessmentsRequest(input *DescribeApplicableIndividualAssessmentsInput) (req *request.Request, output *DescribeApplicableIndividualAssessmentsOutput)

DescribeApplicableIndividualAssessmentsRequest generates a "aws/request.Request" representing the client's request for the DescribeApplicableIndividualAssessments operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeApplicableIndividualAssessments for more information on using the DescribeApplicableIndividualAssessments API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribeApplicableIndividualAssessmentsRequest method.
req, resp := client.DescribeApplicableIndividualAssessmentsRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeApplicableIndividualAssessments

func (*DatabaseMigrationService) DescribeApplicableIndividualAssessmentsWithContext Uses

func (c *DatabaseMigrationService) DescribeApplicableIndividualAssessmentsWithContext(ctx aws.Context, input *DescribeApplicableIndividualAssessmentsInput, opts ...request.Option) (*DescribeApplicableIndividualAssessmentsOutput, error)

DescribeApplicableIndividualAssessmentsWithContext is the same as DescribeApplicableIndividualAssessments with the addition of the ability to pass a context and additional request options.

See DescribeApplicableIndividualAssessments for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*DatabaseMigrationService) DescribeCertificates Uses

func (c *DatabaseMigrationService) DescribeCertificates(input *DescribeCertificatesInput) (*DescribeCertificatesOutput, error)

DescribeCertificates API operation for AWS Database Migration Service.

Provides a description of the certificate.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Database Migration Service's API operation DescribeCertificates for usage and error information.

Returned Error Types:

* ResourceNotFoundFault
The resource could not be found.

See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeCertificates

Describe certificates

Provides a description of the certificate.

Code:

svc := databasemigrationservice.New(session.New())
input := &databasemigrationservice.DescribeCertificatesInput{
    Filters: []*databasemigrationservice.Filter{
        {
            Name: aws.String("string"),
            Values: []*string{
                aws.String("string"),
                aws.String("string"),
            },
        },
    },
    Marker:     aws.String(""),
    MaxRecords: aws.Int64(123),
}

result, err := svc.DescribeCertificates(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case databasemigrationservice.ErrCodeResourceNotFoundFault:
            fmt.Println(databasemigrationservice.ErrCodeResourceNotFoundFault, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*DatabaseMigrationService) DescribeCertificatesPages Uses

func (c *DatabaseMigrationService) DescribeCertificatesPages(input *DescribeCertificatesInput, fn func(*DescribeCertificatesOutput, bool) bool) error

DescribeCertificatesPages iterates over the pages of a DescribeCertificates operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See DescribeCertificates method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a DescribeCertificates operation.
pageNum := 0
err := client.DescribeCertificatesPages(params,
    func(page *databasemigrationservice.DescribeCertificatesOutput, lastPage bool) bool {
        pageNum++
        fmt.Println(page)
        return pageNum <= 3
    })

func (*DatabaseMigrationService) DescribeCertificatesPagesWithContext Uses

func (c *DatabaseMigrationService) DescribeCertificatesPagesWithContext(ctx aws.Context, input *DescribeCertificatesInput, fn func(*DescribeCertificatesOutput, bool) bool, opts ...request.Option) error

DescribeCertificatesPagesWithContext same as DescribeCertificatesPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*DatabaseMigrationService) DescribeCertificatesRequest Uses

func (c *DatabaseMigrationService) DescribeCertificatesRequest(input *DescribeCertificatesInput) (req *request.Request, output *DescribeCertificatesOutput)

DescribeCertificatesRequest generates a "aws/request.Request" representing the client's request for the DescribeCertificates operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeCertificates for more information on using the DescribeCertificates API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribeCertificatesRequest method.
req, resp := client.DescribeCertificatesRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeCertificates

func (*DatabaseMigrationService) DescribeCertificatesWithContext Uses

func (c *DatabaseMigrationService) DescribeCertificatesWithContext(ctx aws.Context, input *DescribeCertificatesInput, opts ...request.Option) (*DescribeCertificatesOutput, error)

DescribeCertificatesWithContext is the same as DescribeCertificates with the addition of the ability to pass a context and additional request options.

See DescribeCertificates for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*DatabaseMigrationService) DescribeConnections Uses

func (c *DatabaseMigrationService) DescribeConnections(input *DescribeConnectionsInput) (*DescribeConnectionsOutput, error)

DescribeConnections API operation for AWS Database Migration Service.

Describes the status of the connections that have been made between the replication instance and an endpoint. Connections are created when you test an endpoint.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Database Migration Service's API operation DescribeConnections for usage and error information.

Returned Error Types:

* ResourceNotFoundFault
The resource could not be found.

See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeConnections

Describe connections

Describes the status of the connections that have been made between the replication instance and an endpoint. Connections are created when you test an endpoint.

Code:

svc := databasemigrationservice.New(session.New())
input := &databasemigrationservice.DescribeConnectionsInput{
    Filters: []*databasemigrationservice.Filter{
        {
            Name: aws.String("string"),
            Values: []*string{
                aws.String("string"),
                aws.String("string"),
            },
        },
    },
    Marker:     aws.String(""),
    MaxRecords: aws.Int64(123),
}

result, err := svc.DescribeConnections(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case databasemigrationservice.ErrCodeResourceNotFoundFault:
            fmt.Println(databasemigrationservice.ErrCodeResourceNotFoundFault, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*DatabaseMigrationService) DescribeConnectionsPages Uses

func (c *DatabaseMigrationService) DescribeConnectionsPages(input *DescribeConnectionsInput, fn func(*DescribeConnectionsOutput, bool) bool) error

DescribeConnectionsPages iterates over the pages of a DescribeConnections operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See DescribeConnections method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a DescribeConnections operation.
pageNum := 0
err := client.DescribeConnectionsPages(params,
    func(page *databasemigrationservice.DescribeConnectionsOutput, lastPage bool) bool {
        pageNum++
        fmt.Println(page)
        return pageNum <= 3
    })

func (*DatabaseMigrationService) DescribeConnectionsPagesWithContext Uses

func (c *DatabaseMigrationService) DescribeConnectionsPagesWithContext(ctx aws.Context, input *DescribeConnectionsInput, fn func(*DescribeConnectionsOutput, bool) bool, opts ...request.Option) error

DescribeConnectionsPagesWithContext same as DescribeConnectionsPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*DatabaseMigrationService) DescribeConnectionsRequest Uses

func (c *DatabaseMigrationService) DescribeConnectionsRequest(input *DescribeConnectionsInput) (req *request.Request, output *DescribeConnectionsOutput)

DescribeConnectionsRequest generates a "aws/request.Request" representing the client's request for the DescribeConnections operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeConnections for more information on using the DescribeConnections API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribeConnectionsRequest method.
req, resp := client.DescribeConnectionsRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeConnections

func (*DatabaseMigrationService) DescribeConnectionsWithContext Uses

func (c *DatabaseMigrationService) DescribeConnectionsWithContext(ctx aws.Context, input *DescribeConnectionsInput, opts ...request.Option) (*DescribeConnectionsOutput, error)

DescribeConnectionsWithContext is the same as DescribeConnections with the addition of the ability to pass a context and additional request options.

See DescribeConnections for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*DatabaseMigrationService) DescribeEndpointTypes Uses

func (c *DatabaseMigrationService) DescribeEndpointTypes(input *DescribeEndpointTypesInput) (*DescribeEndpointTypesOutput, error)

DescribeEndpointTypes API operation for AWS Database Migration Service.

Returns information about the type of endpoints available.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Database Migration Service's API operation DescribeEndpointTypes for usage and error information. See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeEndpointTypes

Describe endpoint types

Returns information about the type of endpoints available.

Code:

svc := databasemigrationservice.New(session.New())
input := &databasemigrationservice.DescribeEndpointTypesInput{
    Filters: []*databasemigrationservice.Filter{
        {
            Name: aws.String("string"),
            Values: []*string{
                aws.String("string"),
                aws.String("string"),
            },
        },
    },
    Marker:     aws.String(""),
    MaxRecords: aws.Int64(123),
}

result, err := svc.DescribeEndpointTypes(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*DatabaseMigrationService) DescribeEndpointTypesPages Uses

func (c *DatabaseMigrationService) DescribeEndpointTypesPages(input *DescribeEndpointTypesInput, fn func(*DescribeEndpointTypesOutput, bool) bool) error

DescribeEndpointTypesPages iterates over the pages of a DescribeEndpointTypes operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See DescribeEndpointTypes method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a DescribeEndpointTypes operation.
pageNum := 0
err := client.DescribeEndpointTypesPages(params,
    func(page *databasemigrationservice.DescribeEndpointTypesOutput, lastPage bool) bool {
        pageNum++
        fmt.Println(page)
        return pageNum <= 3
    })

func (*DatabaseMigrationService) DescribeEndpointTypesPagesWithContext Uses

func (c *DatabaseMigrationService) DescribeEndpointTypesPagesWithContext(ctx aws.Context, input *DescribeEndpointTypesInput, fn func(*DescribeEndpointTypesOutput, bool) bool, opts ...request.Option) error

DescribeEndpointTypesPagesWithContext same as DescribeEndpointTypesPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*DatabaseMigrationService) DescribeEndpointTypesRequest Uses

func (c *DatabaseMigrationService) DescribeEndpointTypesRequest(input *DescribeEndpointTypesInput) (req *request.Request, output *DescribeEndpointTypesOutput)

DescribeEndpointTypesRequest generates a "aws/request.Request" representing the client's request for the DescribeEndpointTypes operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeEndpointTypes for more information on using the DescribeEndpointTypes API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribeEndpointTypesRequest method.
req, resp := client.DescribeEndpointTypesRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeEndpointTypes

func (*DatabaseMigrationService) DescribeEndpointTypesWithContext Uses

func (c *DatabaseMigrationService) DescribeEndpointTypesWithContext(ctx aws.Context, input *DescribeEndpointTypesInput, opts ...request.Option) (*DescribeEndpointTypesOutput, error)

DescribeEndpointTypesWithContext is the same as DescribeEndpointTypes with the addition of the ability to pass a context and additional request options.

See DescribeEndpointTypes for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*DatabaseMigrationService) DescribeEndpoints Uses

func (c *DatabaseMigrationService) DescribeEndpoints(input *DescribeEndpointsInput) (*DescribeEndpointsOutput, error)

DescribeEndpoints API operation for AWS Database Migration Service.

Returns information about the endpoints for your account in the current region.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Database Migration Service's API operation DescribeEndpoints for usage and error information.

Returned Error Types:

* ResourceNotFoundFault
The resource could not be found.

See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeEndpoints

Describe endpoints

Returns information about the endpoints for your account in the current region.

Code:

svc := databasemigrationservice.New(session.New())
input := &databasemigrationservice.DescribeEndpointsInput{
    Filters: []*databasemigrationservice.Filter{
        {
            Name: aws.String("string"),
            Values: []*string{
                aws.String("string"),
                aws.String("string"),
            },
        },
    },
    Marker:     aws.String(""),
    MaxRecords: aws.Int64(123),
}

result, err := svc.DescribeEndpoints(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case databasemigrationservice.ErrCodeResourceNotFoundFault:
            fmt.Println(databasemigrationservice.ErrCodeResourceNotFoundFault, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*DatabaseMigrationService) DescribeEndpointsPages Uses

func (c *DatabaseMigrationService) DescribeEndpointsPages(input *DescribeEndpointsInput, fn func(*DescribeEndpointsOutput, bool) bool) error

DescribeEndpointsPages iterates over the pages of a DescribeEndpoints operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See DescribeEndpoints method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a DescribeEndpoints operation.
pageNum := 0
err := client.DescribeEndpointsPages(params,
    func(page *databasemigrationservice.DescribeEndpointsOutput, lastPage bool) bool {
        pageNum++
        fmt.Println(page)
        return pageNum <= 3
    })

func (*DatabaseMigrationService) DescribeEndpointsPagesWithContext Uses

func (c *DatabaseMigrationService) DescribeEndpointsPagesWithContext(ctx aws.Context, input *DescribeEndpointsInput, fn func(*DescribeEndpointsOutput, bool) bool, opts ...request.Option) error

DescribeEndpointsPagesWithContext same as DescribeEndpointsPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*DatabaseMigrationService) DescribeEndpointsRequest Uses

func (c *DatabaseMigrationService) DescribeEndpointsRequest(input *DescribeEndpointsInput) (req *request.Request, output *DescribeEndpointsOutput)

DescribeEndpointsRequest generates a "aws/request.Request" representing the client's request for the DescribeEndpoints operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeEndpoints for more information on using the DescribeEndpoints API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribeEndpointsRequest method.
req, resp := client.DescribeEndpointsRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeEndpoints

func (*DatabaseMigrationService) DescribeEndpointsWithContext Uses

func (c *DatabaseMigrationService) DescribeEndpointsWithContext(ctx aws.Context, input *DescribeEndpointsInput, opts ...request.Option) (*DescribeEndpointsOutput, error)

DescribeEndpointsWithContext is the same as DescribeEndpoints with the addition of the ability to pass a context and additional request options.

See DescribeEndpoints for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*DatabaseMigrationService) DescribeEventCategories Uses

func (c *DatabaseMigrationService) DescribeEventCategories(input *DescribeEventCategoriesInput) (*DescribeEventCategoriesOutput, error)

DescribeEventCategories API operation for AWS Database Migration Service.

Lists categories for all event source types, or, if specified, for a specified source type. You can see a list of the event categories and source types in Working with Events and Notifications (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Events.html) in the AWS Database Migration Service User Guide.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Database Migration Service's API operation DescribeEventCategories for usage and error information. See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeEventCategories

func (*DatabaseMigrationService) DescribeEventCategoriesRequest Uses

func (c *DatabaseMigrationService) DescribeEventCategoriesRequest(input *DescribeEventCategoriesInput) (req *request.Request, output *DescribeEventCategoriesOutput)

DescribeEventCategoriesRequest generates a "aws/request.Request" representing the client's request for the DescribeEventCategories operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeEventCategories for more information on using the DescribeEventCategories API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribeEventCategoriesRequest method.
req, resp := client.DescribeEventCategoriesRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeEventCategories

func (*DatabaseMigrationService) DescribeEventCategoriesWithContext Uses

func (c *DatabaseMigrationService) DescribeEventCategoriesWithContext(ctx aws.Context, input *DescribeEventCategoriesInput, opts ...request.Option) (*DescribeEventCategoriesOutput, error)

DescribeEventCategoriesWithContext is the same as DescribeEventCategories with the addition of the ability to pass a context and additional request options.

See DescribeEventCategories for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*DatabaseMigrationService) DescribeEventSubscriptions Uses

func (c *DatabaseMigrationService) DescribeEventSubscriptions(input *DescribeEventSubscriptionsInput) (*DescribeEventSubscriptionsOutput, error)

DescribeEventSubscriptions API operation for AWS Database Migration Service.

Lists all the event subscriptions for a customer account. The description of a subscription includes SubscriptionName, SNSTopicARN, CustomerID, SourceType, SourceID, CreationTime, and Status.

If you specify SubscriptionName, this action lists the description for that subscription.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Database Migration Service's API operation DescribeEventSubscriptions for usage and error information.

Returned Error Types:

* ResourceNotFoundFault
The resource could not be found.

See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeEventSubscriptions

func (*DatabaseMigrationService) DescribeEventSubscriptionsPages Uses

func (c *DatabaseMigrationService) DescribeEventSubscriptionsPages(input *DescribeEventSubscriptionsInput, fn func(*DescribeEventSubscriptionsOutput, bool) bool) error

DescribeEventSubscriptionsPages iterates over the pages of a DescribeEventSubscriptions operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See DescribeEventSubscriptions method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a DescribeEventSubscriptions operation.
pageNum := 0
err := client.DescribeEventSubscriptionsPages(params,
    func(page *databasemigrationservice.DescribeEventSubscriptionsOutput, lastPage bool) bool {
        pageNum++
        fmt.Println(page)
        return pageNum <= 3
    })

func (*DatabaseMigrationService) DescribeEventSubscriptionsPagesWithContext Uses

func (c *DatabaseMigrationService) DescribeEventSubscriptionsPagesWithContext(ctx aws.Context, input *DescribeEventSubscriptionsInput, fn func(*DescribeEventSubscriptionsOutput, bool) bool, opts ...request.Option) error

DescribeEventSubscriptionsPagesWithContext same as DescribeEventSubscriptionsPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*DatabaseMigrationService) DescribeEventSubscriptionsRequest Uses

func (c *DatabaseMigrationService) DescribeEventSubscriptionsRequest(input *DescribeEventSubscriptionsInput) (req *request.Request, output *DescribeEventSubscriptionsOutput)

DescribeEventSubscriptionsRequest generates a "aws/request.Request" representing the client's request for the DescribeEventSubscriptions operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeEventSubscriptions for more information on using the DescribeEventSubscriptions API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribeEventSubscriptionsRequest method.
req, resp := client.DescribeEventSubscriptionsRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeEventSubscriptions

func (*DatabaseMigrationService) DescribeEventSubscriptionsWithContext Uses

func (c *DatabaseMigrationService) DescribeEventSubscriptionsWithContext(ctx aws.Context, input *DescribeEventSubscriptionsInput, opts ...request.Option) (*DescribeEventSubscriptionsOutput, error)

DescribeEventSubscriptionsWithContext is the same as DescribeEventSubscriptions with the addition of the ability to pass a context and additional request options.

See DescribeEventSubscriptions for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*DatabaseMigrationService) DescribeEvents Uses

func (c *DatabaseMigrationService) DescribeEvents(input *DescribeEventsInput) (*DescribeEventsOutput, error)

DescribeEvents API operation for AWS Database Migration Service.

Lists events for a given source identifier and source type. You can also specify a start and end time. For more information on AWS DMS events, see Working with Events and Notifications (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Events.html) in the AWS Database Migration User Guide.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Database Migration Service's API operation DescribeEvents for usage and error information. See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeEvents

func (*DatabaseMigrationService) DescribeEventsPages Uses

func (c *DatabaseMigrationService) DescribeEventsPages(input *DescribeEventsInput, fn func(*DescribeEventsOutput, bool) bool) error

DescribeEventsPages iterates over the pages of a DescribeEvents operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See DescribeEvents method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a DescribeEvents operation.
pageNum := 0
err := client.DescribeEventsPages(params,
    func(page *databasemigrationservice.DescribeEventsOutput, lastPage bool) bool {
        pageNum++
        fmt.Println(page)
        return pageNum <= 3
    })

func (*DatabaseMigrationService) DescribeEventsPagesWithContext Uses

func (c *DatabaseMigrationService) DescribeEventsPagesWithContext(ctx aws.Context, input *DescribeEventsInput, fn func(*DescribeEventsOutput, bool) bool, opts ...request.Option) error

DescribeEventsPagesWithContext same as DescribeEventsPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*DatabaseMigrationService) DescribeEventsRequest Uses

func (c *DatabaseMigrationService) DescribeEventsRequest(input *DescribeEventsInput) (req *request.Request, output *DescribeEventsOutput)

DescribeEventsRequest generates a "aws/request.Request" representing the client's request for the DescribeEvents operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeEvents for more information on using the DescribeEvents API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribeEventsRequest method.
req, resp := client.DescribeEventsRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeEvents

func (*DatabaseMigrationService) DescribeEventsWithContext Uses

func (c *DatabaseMigrationService) DescribeEventsWithContext(ctx aws.Context, input *DescribeEventsInput, opts ...request.Option) (*DescribeEventsOutput, error)

DescribeEventsWithContext is the same as DescribeEvents with the addition of the ability to pass a context and additional request options.

See DescribeEvents for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*DatabaseMigrationService) DescribeOrderableReplicationInstances Uses

func (c *DatabaseMigrationService) DescribeOrderableReplicationInstances(input *DescribeOrderableReplicationInstancesInput) (*DescribeOrderableReplicationInstancesOutput, error)

DescribeOrderableReplicationInstances API operation for AWS Database Migration Service.

Returns information about the replication instance types that can be created in the specified region.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Database Migration Service's API operation DescribeOrderableReplicationInstances for usage and error information. See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeOrderableReplicationInstances

Describe orderable replication instances

Returns information about the replication instance types that can be created in the specified region.

Code:

svc := databasemigrationservice.New(session.New())
input := &databasemigrationservice.DescribeOrderableReplicationInstancesInput{
    Marker:     aws.String(""),
    MaxRecords: aws.Int64(123),
}

result, err := svc.DescribeOrderableReplicationInstances(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*DatabaseMigrationService) DescribeOrderableReplicationInstancesPages Uses

func (c *DatabaseMigrationService) DescribeOrderableReplicationInstancesPages(input *DescribeOrderableReplicationInstancesInput, fn func(*DescribeOrderableReplicationInstancesOutput, bool) bool) error

DescribeOrderableReplicationInstancesPages iterates over the pages of a DescribeOrderableReplicationInstances operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See DescribeOrderableReplicationInstances method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a DescribeOrderableReplicationInstances operation.
pageNum := 0
err := client.DescribeOrderableReplicationInstancesPages(params,
    func(page *databasemigrationservice.DescribeOrderableReplicationInstancesOutput, lastPage bool) bool {
        pageNum++
        fmt.Println(page)
        return pageNum <= 3
    })

func (*DatabaseMigrationService) DescribeOrderableReplicationInstancesPagesWithContext Uses

func (c *DatabaseMigrationService) DescribeOrderableReplicationInstancesPagesWithContext(ctx aws.Context, input *DescribeOrderableReplicationInstancesInput, fn func(*DescribeOrderableReplicationInstancesOutput, bool) bool, opts ...request.Option) error

DescribeOrderableReplicationInstancesPagesWithContext same as DescribeOrderableReplicationInstancesPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*DatabaseMigrationService) DescribeOrderableReplicationInstancesRequest Uses

func (c *DatabaseMigrationService) DescribeOrderableReplicationInstancesRequest(input *DescribeOrderableReplicationInstancesInput) (req *request.Request, output *DescribeOrderableReplicationInstancesOutput)

DescribeOrderableReplicationInstancesRequest generates a "aws/request.Request" representing the client's request for the DescribeOrderableReplicationInstances operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeOrderableReplicationInstances for more information on using the DescribeOrderableReplicationInstances API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribeOrderableReplicationInstancesRequest method.
req, resp := client.DescribeOrderableReplicationInstancesRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeOrderableReplicationInstances

func (*DatabaseMigrationService) DescribeOrderableReplicationInstancesWithContext Uses

func (c *DatabaseMigrationService) DescribeOrderableReplicationInstancesWithContext(ctx aws.Context, input *DescribeOrderableReplicationInstancesInput, opts ...request.Option) (*DescribeOrderableReplicationInstancesOutput, error)

DescribeOrderableReplicationInstancesWithContext is the same as DescribeOrderableReplicationInstances with the addition of the ability to pass a context and additional request options.

See DescribeOrderableReplicationInstances for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*DatabaseMigrationService) DescribePendingMaintenanceActions Uses

func (c *DatabaseMigrationService) DescribePendingMaintenanceActions(input *DescribePendingMaintenanceActionsInput) (*DescribePendingMaintenanceActionsOutput, error)

DescribePendingMaintenanceActions API operation for AWS Database Migration Service.

For internal use only

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Database Migration Service's API operation DescribePendingMaintenanceActions for usage and error information.

Returned Error Types:

* ResourceNotFoundFault
The resource could not be found.

See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribePendingMaintenanceActions

func (*DatabaseMigrationService) DescribePendingMaintenanceActionsPages Uses

func (c *DatabaseMigrationService) DescribePendingMaintenanceActionsPages(input *DescribePendingMaintenanceActionsInput, fn func(*DescribePendingMaintenanceActionsOutput, bool) bool) error

DescribePendingMaintenanceActionsPages iterates over the pages of a DescribePendingMaintenanceActions operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See DescribePendingMaintenanceActions method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a DescribePendingMaintenanceActions operation.
pageNum := 0
err := client.DescribePendingMaintenanceActionsPages(params,
    func(page *databasemigrationservice.DescribePendingMaintenanceActionsOutput, lastPage bool) bool {
        pageNum++
        fmt.Println(page)
        return pageNum <= 3
    })

func (*DatabaseMigrationService) DescribePendingMaintenanceActionsPagesWithContext Uses

func (c *DatabaseMigrationService) DescribePendingMaintenanceActionsPagesWithContext(ctx aws.Context, input *DescribePendingMaintenanceActionsInput, fn func(*DescribePendingMaintenanceActionsOutput, bool) bool, opts ...request.Option) error

DescribePendingMaintenanceActionsPagesWithContext same as DescribePendingMaintenanceActionsPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*DatabaseMigrationService) DescribePendingMaintenanceActionsRequest Uses

func (c *DatabaseMigrationService) DescribePendingMaintenanceActionsRequest(input *DescribePendingMaintenanceActionsInput) (req *request.Request, output *DescribePendingMaintenanceActionsOutput)

DescribePendingMaintenanceActionsRequest generates a "aws/request.Request" representing the client's request for the DescribePendingMaintenanceActions operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribePendingMaintenanceActions for more information on using the DescribePendingMaintenanceActions API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribePendingMaintenanceActionsRequest method.
req, resp := client.DescribePendingMaintenanceActionsRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribePendingMaintenanceActions

func (*DatabaseMigrationService) DescribePendingMaintenanceActionsWithContext Uses

func (c *DatabaseMigrationService) DescribePendingMaintenanceActionsWithContext(ctx aws.Context, input *DescribePendingMaintenanceActionsInput, opts ...request.Option) (*DescribePendingMaintenanceActionsOutput, error)

DescribePendingMaintenanceActionsWithContext is the same as DescribePendingMaintenanceActions with the addition of the ability to pass a context and additional request options.

See DescribePendingMaintenanceActions for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*DatabaseMigrationService) DescribeRefreshSchemasStatus Uses

func (c *DatabaseMigrationService) DescribeRefreshSchemasStatus(input *DescribeRefreshSchemasStatusInput) (*DescribeRefreshSchemasStatusOutput, error)

DescribeRefreshSchemasStatus API operation for AWS Database Migration Service.

Returns the status of the RefreshSchemas operation.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Database Migration Service's API operation DescribeRefreshSchemasStatus for usage and error information.

Returned Error Types:

* InvalidResourceStateFault
The resource is in a state that prevents it from being used for database
migration.

* ResourceNotFoundFault
The resource could not be found.

See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeRefreshSchemasStatus

Describe refresh schema status

Returns the status of the refresh-schemas operation.

Code:

svc := databasemigrationservice.New(session.New())
input := &databasemigrationservice.DescribeRefreshSchemasStatusInput{
    EndpointArn: aws.String(""),
}

result, err := svc.DescribeRefreshSchemasStatus(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case databasemigrationservice.ErrCodeInvalidResourceStateFault:
            fmt.Println(databasemigrationservice.ErrCodeInvalidResourceStateFault, aerr.Error())
        case databasemigrationservice.ErrCodeResourceNotFoundFault:
            fmt.Println(databasemigrationservice.ErrCodeResourceNotFoundFault, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*DatabaseMigrationService) DescribeRefreshSchemasStatusRequest Uses

func (c *DatabaseMigrationService) DescribeRefreshSchemasStatusRequest(input *DescribeRefreshSchemasStatusInput) (req *request.Request, output *DescribeRefreshSchemasStatusOutput)

DescribeRefreshSchemasStatusRequest generates a "aws/request.Request" representing the client's request for the DescribeRefreshSchemasStatus operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeRefreshSchemasStatus for more information on using the DescribeRefreshSchemasStatus API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribeRefreshSchemasStatusRequest method.
req, resp := client.DescribeRefreshSchemasStatusRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeRefreshSchemasStatus

func (*DatabaseMigrationService) DescribeRefreshSchemasStatusWithContext Uses

func (c *DatabaseMigrationService) DescribeRefreshSchemasStatusWithContext(ctx aws.Context, input *DescribeRefreshSchemasStatusInput, opts ...request.Option) (*DescribeRefreshSchemasStatusOutput, error)

DescribeRefreshSchemasStatusWithContext is the same as DescribeRefreshSchemasStatus with the addition of the ability to pass a context and additional request options.

See DescribeRefreshSchemasStatus for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*DatabaseMigrationService) DescribeReplicationInstanceTaskLogs Uses

func (c *DatabaseMigrationService) DescribeReplicationInstanceTaskLogs(input *DescribeReplicationInstanceTaskLogsInput) (*DescribeReplicationInstanceTaskLogsOutput, error)

DescribeReplicationInstanceTaskLogs API operation for AWS Database Migration Service.

Returns information about the task logs for the specified task.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Database Migration Service's API operation DescribeReplicationInstanceTaskLogs for usage and error information.

Returned Error Types:

* ResourceNotFoundFault
The resource could not be found.

* InvalidResourceStateFault
The resource is in a state that prevents it from being used for database
migration.

See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeReplicationInstanceTaskLogs

func (*DatabaseMigrationService) DescribeReplicationInstanceTaskLogsPages Uses

func (c *DatabaseMigrationService) DescribeReplicationInstanceTaskLogsPages(input *DescribeReplicationInstanceTaskLogsInput, fn func(*DescribeReplicationInstanceTaskLogsOutput, bool) bool) error

DescribeReplicationInstanceTaskLogsPages iterates over the pages of a DescribeReplicationInstanceTaskLogs operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See DescribeReplicationInstanceTaskLogs method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a DescribeReplicationInstanceTaskLogs operation.
pageNum := 0
err := client.DescribeReplicationInstanceTaskLogsPages(params,
    func(page *databasemigrationservice.DescribeReplicationInstanceTaskLogsOutput, lastPage bool) bool {
        pageNum++
        fmt.Println(page)
        return pageNum <= 3
    })

func (*DatabaseMigrationService) DescribeReplicationInstanceTaskLogsPagesWithContext Uses

func (c *DatabaseMigrationService) DescribeReplicationInstanceTaskLogsPagesWithContext(ctx aws.Context, input *DescribeReplicationInstanceTaskLogsInput, fn func(*DescribeReplicationInstanceTaskLogsOutput, bool) bool, opts ...request.Option) error

DescribeReplicationInstanceTaskLogsPagesWithContext same as DescribeReplicationInstanceTaskLogsPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*DatabaseMigrationService) DescribeReplicationInstanceTaskLogsRequest Uses

func (c *DatabaseMigrationService) DescribeReplicationInstanceTaskLogsRequest(input *DescribeReplicationInstanceTaskLogsInput) (req *request.Request, output *DescribeReplicationInstanceTaskLogsOutput)

DescribeReplicationInstanceTaskLogsRequest generates a "aws/request.Request" representing the client's request for the DescribeReplicationInstanceTaskLogs operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeReplicationInstanceTaskLogs for more information on using the DescribeReplicationInstanceTaskLogs API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribeReplicationInstanceTaskLogsRequest method.
req, resp := client.DescribeReplicationInstanceTaskLogsRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeReplicationInstanceTaskLogs

func (*DatabaseMigrationService) DescribeReplicationInstanceTaskLogsWithContext Uses

func (c *DatabaseMigrationService) DescribeReplicationInstanceTaskLogsWithContext(ctx aws.Context, input *DescribeReplicationInstanceTaskLogsInput, opts ...request.Option) (*DescribeReplicationInstanceTaskLogsOutput, error)

DescribeReplicationInstanceTaskLogsWithContext is the same as DescribeReplicationInstanceTaskLogs with the addition of the ability to pass a context and additional request options.

See DescribeReplicationInstanceTaskLogs for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*DatabaseMigrationService) DescribeReplicationInstances Uses

func (c *DatabaseMigrationService) DescribeReplicationInstances(input *DescribeReplicationInstancesInput) (*DescribeReplicationInstancesOutput, error)

DescribeReplicationInstances API operation for AWS Database Migration Service.

Returns information about replication instances for your account in the current region.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Database Migration Service's API operation DescribeReplicationInstances for usage and error information.

Returned Error Types:

* ResourceNotFoundFault
The resource could not be found.

See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeReplicationInstances

Describe replication instances

Returns the status of the refresh-schemas operation.

Code:

svc := databasemigrationservice.New(session.New())
input := &databasemigrationservice.DescribeReplicationInstancesInput{
    Filters: []*databasemigrationservice.Filter{
        {
            Name: aws.String("string"),
            Values: []*string{
                aws.String("string"),
                aws.String("string"),
            },
        },
    },
    Marker:     aws.String(""),
    MaxRecords: aws.Int64(123),
}

result, err := svc.DescribeReplicationInstances(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case databasemigrationservice.ErrCodeResourceNotFoundFault:
            fmt.Println(databasemigrationservice.ErrCodeResourceNotFoundFault, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*DatabaseMigrationService) DescribeReplicationInstancesPages Uses

func (c *DatabaseMigrationService) DescribeReplicationInstancesPages(input *DescribeReplicationInstancesInput, fn func(*DescribeReplicationInstancesOutput, bool) bool) error

DescribeReplicationInstancesPages iterates over the pages of a DescribeReplicationInstances operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See DescribeReplicationInstances method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a DescribeReplicationInstances operation.
pageNum := 0
err := client.DescribeReplicationInstancesPages(params,
    func(page *databasemigrationservice.DescribeReplicationInstancesOutput, lastPage bool) bool {
        pageNum++
        fmt.Println(page)
        return pageNum <= 3
    })

func (*DatabaseMigrationService) DescribeReplicationInstancesPagesWithContext Uses

func (c *DatabaseMigrationService) DescribeReplicationInstancesPagesWithContext(ctx aws.Context, input *DescribeReplicationInstancesInput, fn func(*DescribeReplicationInstancesOutput, bool) bool, opts ...request.Option) error

DescribeReplicationInstancesPagesWithContext same as DescribeReplicationInstancesPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*DatabaseMigrationService) DescribeReplicationInstancesRequest Uses

func (c *DatabaseMigrationService) DescribeReplicationInstancesRequest(input *DescribeReplicationInstancesInput) (req *request.Request, output *DescribeReplicationInstancesOutput)

DescribeReplicationInstancesRequest generates a "aws/request.Request" representing the client's request for the DescribeReplicationInstances operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeReplicationInstances for more information on using the DescribeReplicationInstances API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribeReplicationInstancesRequest method.
req, resp := client.DescribeReplicationInstancesRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeReplicationInstances

func (*DatabaseMigrationService) DescribeReplicationInstancesWithContext Uses

func (c *DatabaseMigrationService) DescribeReplicationInstancesWithContext(ctx aws.Context, input *DescribeReplicationInstancesInput, opts ...request.Option) (*DescribeReplicationInstancesOutput, error)

DescribeReplicationInstancesWithContext is the same as DescribeReplicationInstances with the addition of the ability to pass a context and additional request options.

See DescribeReplicationInstances for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*DatabaseMigrationService) DescribeReplicationSubnetGroups Uses

func (c *DatabaseMigrationService) DescribeReplicationSubnetGroups(input *DescribeReplicationSubnetGroupsInput) (*DescribeReplicationSubnetGroupsOutput, error)

DescribeReplicationSubnetGroups API operation for AWS Database Migration Service.

Returns information about the replication subnet groups.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Database Migration Service's API operation DescribeReplicationSubnetGroups for usage and error information.

Returned Error Types:

* ResourceNotFoundFault
The resource could not be found.

See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeReplicationSubnetGroups

Describe replication subnet groups

Returns information about the replication subnet groups.

Code:

svc := databasemigrationservice.New(session.New())
input := &databasemigrationservice.DescribeReplicationSubnetGroupsInput{
    Filters: []*databasemigrationservice.Filter{
        {
            Name: aws.String("string"),
            Values: []*string{
                aws.String("string"),
                aws.String("string"),
            },
        },
    },
    Marker:     aws.String(""),
    MaxRecords: aws.Int64(123),
}

result, err := svc.DescribeReplicationSubnetGroups(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case databasemigrationservice.ErrCodeResourceNotFoundFault:
            fmt.Println(databasemigrationservice.ErrCodeResourceNotFoundFault, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*DatabaseMigrationService) DescribeReplicationSubnetGroupsPages Uses

func (c *DatabaseMigrationService) DescribeReplicationSubnetGroupsPages(input *DescribeReplicationSubnetGroupsInput, fn func(*DescribeReplicationSubnetGroupsOutput, bool) bool) error

DescribeReplicationSubnetGroupsPages iterates over the pages of a DescribeReplicationSubnetGroups operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See DescribeReplicationSubnetGroups method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a DescribeReplicationSubnetGroups operation.
pageNum := 0
err := client.DescribeReplicationSubnetGroupsPages(params,
    func(page *databasemigrationservice.DescribeReplicationSubnetGroupsOutput, lastPage bool) bool {
        pageNum++
        fmt.Println(page)
        return pageNum <= 3
    })

func (*DatabaseMigrationService) DescribeReplicationSubnetGroupsPagesWithContext Uses

func (c *DatabaseMigrationService) DescribeReplicationSubnetGroupsPagesWithContext(ctx aws.Context, input *DescribeReplicationSubnetGroupsInput, fn func(*DescribeReplicationSubnetGroupsOutput, bool) bool, opts ...request.Option) error

DescribeReplicationSubnetGroupsPagesWithContext same as DescribeReplicationSubnetGroupsPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*DatabaseMigrationService) DescribeReplicationSubnetGroupsRequest Uses

func (c *DatabaseMigrationService) DescribeReplicationSubnetGroupsRequest(input *DescribeReplicationSubnetGroupsInput) (req *request.Request, output *DescribeReplicationSubnetGroupsOutput)

DescribeReplicationSubnetGroupsRequest generates a "aws/request.Request" representing the client's request for the DescribeReplicationSubnetGroups operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeReplicationSubnetGroups for more information on using the DescribeReplicationSubnetGroups API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribeReplicationSubnetGroupsRequest method.
req, resp := client.DescribeReplicationSubnetGroupsRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeReplicationSubnetGroups

func (*DatabaseMigrationService) DescribeReplicationSubnetGroupsWithContext Uses

func (c *DatabaseMigrationService) DescribeReplicationSubnetGroupsWithContext(ctx aws.Context, input *DescribeReplicationSubnetGroupsInput, opts ...request.Option) (*DescribeReplicationSubnetGroupsOutput, error)

DescribeReplicationSubnetGroupsWithContext is the same as DescribeReplicationSubnetGroups with the addition of the ability to pass a context and additional request options.

See DescribeReplicationSubnetGroups for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*DatabaseMigrationService) DescribeReplicationTaskAssessmentResults Uses

func (c *DatabaseMigrationService) DescribeReplicationTaskAssessmentResults(input *DescribeReplicationTaskAssessmentResultsInput) (*DescribeReplicationTaskAssessmentResultsOutput, error)

DescribeReplicationTaskAssessmentResults API operation for AWS Database Migration Service.

Returns the task assessment results from Amazon S3. This action always returns the latest results.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Database Migration Service's API operation DescribeReplicationTaskAssessmentResults for usage and error information.

Returned Error Types:

* ResourceNotFoundFault
The resource could not be found.

See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeReplicationTaskAssessmentResults

func (*DatabaseMigrationService) DescribeReplicationTaskAssessmentResultsPages Uses

func (c *DatabaseMigrationService) DescribeReplicationTaskAssessmentResultsPages(input *DescribeReplicationTaskAssessmentResultsInput, fn func(*DescribeReplicationTaskAssessmentResultsOutput, bool) bool) error

DescribeReplicationTaskAssessmentResultsPages iterates over the pages of a DescribeReplicationTaskAssessmentResults operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See DescribeReplicationTaskAssessmentResults method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a DescribeReplicationTaskAssessmentResults operation.
pageNum := 0
err := client.DescribeReplicationTaskAssessmentResultsPages(params,
    func(page *databasemigrationservice.DescribeReplicationTaskAssessmentResultsOutput, lastPage bool) bool {
        pageNum++
        fmt.Println(page)
        return pageNum <= 3
    })

func (*DatabaseMigrationService) DescribeReplicationTaskAssessmentResultsPagesWithContext Uses

func (c *DatabaseMigrationService) DescribeReplicationTaskAssessmentResultsPagesWithContext(ctx aws.Context, input *DescribeReplicationTaskAssessmentResultsInput, fn func(*DescribeReplicationTaskAssessmentResultsOutput, bool) bool, opts ...request.Option) error

DescribeReplicationTaskAssessmentResultsPagesWithContext same as DescribeReplicationTaskAssessmentResultsPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*DatabaseMigrationService) DescribeReplicationTaskAssessmentResultsRequest Uses

func (c *DatabaseMigrationService) DescribeReplicationTaskAssessmentResultsRequest(input *DescribeReplicationTaskAssessmentResultsInput) (req *request.Request, output *DescribeReplicationTaskAssessmentResultsOutput)

DescribeReplicationTaskAssessmentResultsRequest generates a "aws/request.Request" representing the client's request for the DescribeReplicationTaskAssessmentResults operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeReplicationTaskAssessmentResults for more information on using the DescribeReplicationTaskAssessmentResults API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribeReplicationTaskAssessmentResultsRequest method.
req, resp := client.DescribeReplicationTaskAssessmentResultsRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeReplicationTaskAssessmentResults

func (*DatabaseMigrationService) DescribeReplicationTaskAssessmentResultsWithContext Uses

func (c *DatabaseMigrationService) DescribeReplicationTaskAssessmentResultsWithContext(ctx aws.Context, input *DescribeReplicationTaskAssessmentResultsInput, opts ...request.Option) (*DescribeReplicationTaskAssessmentResultsOutput, error)

DescribeReplicationTaskAssessmentResultsWithContext is the same as DescribeReplicationTaskAssessmentResults with the addition of the ability to pass a context and additional request options.

See DescribeReplicationTaskAssessmentResults for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*DatabaseMigrationService) DescribeReplicationTaskAssessmentRuns Uses

func (c *DatabaseMigrationService) DescribeReplicationTaskAssessmentRuns(input *DescribeReplicationTaskAssessmentRunsInput) (*DescribeReplicationTaskAssessmentRunsOutput, error)

DescribeReplicationTaskAssessmentRuns API operation for AWS Database Migration Service.

Returns a paginated list of premigration assessment runs based on filter settings.

These filter settings can specify a combination of premigration assessment runs, migration tasks, replication instances, and assessment run status values.

This operation doesn't return information about individual assessments. For this information, see the DescribeReplicationTaskIndividualAssessments operation.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Database Migration Service's API operation DescribeReplicationTaskAssessmentRuns for usage and error information.

Returned Error Types:

* ResourceNotFoundFault
The resource could not be found.

See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeReplicationTaskAssessmentRuns

func (*DatabaseMigrationService) DescribeReplicationTaskAssessmentRunsPages Uses

func (c *DatabaseMigrationService) DescribeReplicationTaskAssessmentRunsPages(input *DescribeReplicationTaskAssessmentRunsInput, fn func(*DescribeReplicationTaskAssessmentRunsOutput, bool) bool) error

DescribeReplicationTaskAssessmentRunsPages iterates over the pages of a DescribeReplicationTaskAssessmentRuns operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See DescribeReplicationTaskAssessmentRuns method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a DescribeReplicationTaskAssessmentRuns operation.
pageNum := 0
err := client.DescribeReplicationTaskAssessmentRunsPages(params,
    func(page *databasemigrationservice.DescribeReplicationTaskAssessmentRunsOutput, lastPage bool) bool {
        pageNum++
        fmt.Println(page)
        return pageNum <= 3
    })

func (*DatabaseMigrationService) DescribeReplicationTaskAssessmentRunsPagesWithContext Uses

func (c *DatabaseMigrationService) DescribeReplicationTaskAssessmentRunsPagesWithContext(ctx aws.Context, input *DescribeReplicationTaskAssessmentRunsInput, fn func(*DescribeReplicationTaskAssessmentRunsOutput, bool) bool, opts ...request.Option) error

DescribeReplicationTaskAssessmentRunsPagesWithContext same as DescribeReplicationTaskAssessmentRunsPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*DatabaseMigrationService) DescribeReplicationTaskAssessmentRunsRequest Uses

func (c *DatabaseMigrationService) DescribeReplicationTaskAssessmentRunsRequest(input *DescribeReplicationTaskAssessmentRunsInput) (req *request.Request, output *DescribeReplicationTaskAssessmentRunsOutput)

DescribeReplicationTaskAssessmentRunsRequest generates a "aws/request.Request" representing the client's request for the DescribeReplicationTaskAssessmentRuns operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeReplicationTaskAssessmentRuns for more information on using the DescribeReplicationTaskAssessmentRuns API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribeReplicationTaskAssessmentRunsRequest method.
req, resp := client.DescribeReplicationTaskAssessmentRunsRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeReplicationTaskAssessmentRuns

func (*DatabaseMigrationService) DescribeReplicationTaskAssessmentRunsWithContext Uses

func (c *DatabaseMigrationService) DescribeReplicationTaskAssessmentRunsWithContext(ctx aws.Context, input *DescribeReplicationTaskAssessmentRunsInput, opts ...request.Option) (*DescribeReplicationTaskAssessmentRunsOutput, error)

DescribeReplicationTaskAssessmentRunsWithContext is the same as DescribeReplicationTaskAssessmentRuns with the addition of the ability to pass a context and additional request options.

See DescribeReplicationTaskAssessmentRuns for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*DatabaseMigrationService) DescribeReplicationTaskIndividualAssessments Uses

func (c *DatabaseMigrationService) DescribeReplicationTaskIndividualAssessments(input *DescribeReplicationTaskIndividualAssessmentsInput) (*DescribeReplicationTaskIndividualAssessmentsOutput, error)

DescribeReplicationTaskIndividualAssessments API operation for AWS Database Migration Service.

Returns a paginated list of individual assessments based on filter settings.

These filter settings can specify a combination of premigration assessment runs, migration tasks, and assessment status values.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Database Migration Service's API operation DescribeReplicationTaskIndividualAssessments for usage and error information.

Returned Error Types:

* ResourceNotFoundFault
The resource could not be found.

See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeReplicationTaskIndividualAssessments

func (*DatabaseMigrationService) DescribeReplicationTaskIndividualAssessmentsPages Uses

func (c *DatabaseMigrationService) DescribeReplicationTaskIndividualAssessmentsPages(input *DescribeReplicationTaskIndividualAssessmentsInput, fn func(*DescribeReplicationTaskIndividualAssessmentsOutput, bool) bool) error

DescribeReplicationTaskIndividualAssessmentsPages iterates over the pages of a DescribeReplicationTaskIndividualAssessments operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See DescribeReplicationTaskIndividualAssessments method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a DescribeReplicationTaskIndividualAssessments operation.
pageNum := 0
err := client.DescribeReplicationTaskIndividualAssessmentsPages(params,
    func(page *databasemigrationservice.DescribeReplicationTaskIndividualAssessmentsOutput, lastPage bool) bool {
        pageNum++
        fmt.Println(page)
        return pageNum <= 3
    })

func (*DatabaseMigrationService) DescribeReplicationTaskIndividualAssessmentsPagesWithContext Uses

func (c *DatabaseMigrationService) DescribeReplicationTaskIndividualAssessmentsPagesWithContext(ctx aws.Context, input *DescribeReplicationTaskIndividualAssessmentsInput, fn func(*DescribeReplicationTaskIndividualAssessmentsOutput, bool) bool, opts ...request.Option) error

DescribeReplicationTaskIndividualAssessmentsPagesWithContext same as DescribeReplicationTaskIndividualAssessmentsPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*DatabaseMigrationService) DescribeReplicationTaskIndividualAssessmentsRequest Uses

func (c *DatabaseMigrationService) DescribeReplicationTaskIndividualAssessmentsRequest(input *DescribeReplicationTaskIndividualAssessmentsInput) (req *request.Request, output *DescribeReplicationTaskIndividualAssessmentsOutput)

DescribeReplicationTaskIndividualAssessmentsRequest generates a "aws/request.Request" representing the client's request for the DescribeReplicationTaskIndividualAssessments operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeReplicationTaskIndividualAssessments for more information on using the DescribeReplicationTaskIndividualAssessments API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribeReplicationTaskIndividualAssessmentsRequest method.
req, resp := client.DescribeReplicationTaskIndividualAssessmentsRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeReplicationTaskIndividualAssessments

func (*DatabaseMigrationService) DescribeReplicationTaskIndividualAssessmentsWithContext Uses

func (c *DatabaseMigrationService) DescribeReplicationTaskIndividualAssessmentsWithContext(ctx aws.Context, input *DescribeReplicationTaskIndividualAssessmentsInput, opts ...request.Option) (*DescribeReplicationTaskIndividualAssessmentsOutput, error)

DescribeReplicationTaskIndividualAssessmentsWithContext is the same as DescribeReplicationTaskIndividualAssessments with the addition of the ability to pass a context and additional request options.

See DescribeReplicationTaskIndividualAssessments for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*DatabaseMigrationService) DescribeReplicationTasks Uses

func (c *DatabaseMigrationService) DescribeReplicationTasks(input *DescribeReplicationTasksInput) (*DescribeReplicationTasksOutput, error)

DescribeReplicationTasks API operation for AWS Database Migration Service.

Returns information about replication tasks for your account in the current region.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Database Migration Service's API operation DescribeReplicationTasks for usage and error information.

Returned Error Types:

* ResourceNotFoundFault
The resource could not be found.

See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeReplicationTasks

Describe replication tasks

Returns information about replication tasks for your account in the current region.

Code:

svc := databasemigrationservice.New(session.New())
input := &databasemigrationservice.DescribeReplicationTasksInput{
    Filters: []*databasemigrationservice.Filter{
        {
            Name: aws.String("string"),
            Values: []*string{
                aws.String("string"),
                aws.String("string"),
            },
        },
    },
    Marker:     aws.String(""),
    MaxRecords: aws.Int64(123),
}

result, err := svc.DescribeReplicationTasks(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case databasemigrationservice.ErrCodeResourceNotFoundFault:
            fmt.Println(databasemigrationservice.ErrCodeResourceNotFoundFault, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*DatabaseMigrationService) DescribeReplicationTasksPages Uses

func (c *DatabaseMigrationService) DescribeReplicationTasksPages(input *DescribeReplicationTasksInput, fn func(*DescribeReplicationTasksOutput, bool) bool) error

DescribeReplicationTasksPages iterates over the pages of a DescribeReplicationTasks operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See DescribeReplicationTasks method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a DescribeReplicationTasks operation.
pageNum := 0
err := client.DescribeReplicationTasksPages(params,
    func(page *databasemigrationservice.DescribeReplicationTasksOutput, lastPage bool) bool {
        pageNum++
        fmt.Println(page)
        return pageNum <= 3
    })

func (*DatabaseMigrationService) DescribeReplicationTasksPagesWithContext Uses

func (c *DatabaseMigrationService) DescribeReplicationTasksPagesWithContext(ctx aws.Context, input *DescribeReplicationTasksInput, fn func(*DescribeReplicationTasksOutput, bool) bool, opts ...request.Option) error

DescribeReplicationTasksPagesWithContext same as DescribeReplicationTasksPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*DatabaseMigrationService) DescribeReplicationTasksRequest Uses

func (c *DatabaseMigrationService) DescribeReplicationTasksRequest(input *DescribeReplicationTasksInput) (req *request.Request, output *DescribeReplicationTasksOutput)

DescribeReplicationTasksRequest generates a "aws/request.Request" representing the client's request for the DescribeReplicationTasks operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeReplicationTasks for more information on using the DescribeReplicationTasks API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribeReplicationTasksRequest method.
req, resp := client.DescribeReplicationTasksRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeReplicationTasks

func (*DatabaseMigrationService) DescribeReplicationTasksWithContext Uses

func (c *DatabaseMigrationService) DescribeReplicationTasksWithContext(ctx aws.Context, input *DescribeReplicationTasksInput, opts ...request.Option) (*DescribeReplicationTasksOutput, error)

DescribeReplicationTasksWithContext is the same as DescribeReplicationTasks with the addition of the ability to pass a context and additional request options.

See DescribeReplicationTasks for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*DatabaseMigrationService) DescribeSchemas Uses

func (c *DatabaseMigrationService) DescribeSchemas(input *DescribeSchemasInput) (*DescribeSchemasOutput, error)

DescribeSchemas API operation for AWS Database Migration Service.

Returns information about the schema for the specified endpoint.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Database Migration Service's API operation DescribeSchemas for usage and error information.

Returned Error Types:

* InvalidResourceStateFault
The resource is in a state that prevents it from being used for database
migration.

* ResourceNotFoundFault
The resource could not be found.

See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeSchemas

Describe schemas

Returns information about the schema for the specified endpoint.

Code:

svc := databasemigrationservice.New(session.New())
input := &databasemigrationservice.DescribeSchemasInput{
    EndpointArn: aws.String(""),
    Marker:      aws.String(""),
    MaxRecords:  aws.Int64(123),
}

result, err := svc.DescribeSchemas(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case databasemigrationservice.ErrCodeInvalidResourceStateFault:
            fmt.Println(databasemigrationservice.ErrCodeInvalidResourceStateFault, aerr.Error())
        case databasemigrationservice.ErrCodeResourceNotFoundFault:
            fmt.Println(databasemigrationservice.ErrCodeResourceNotFoundFault, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*DatabaseMigrationService) DescribeSchemasPages Uses

func (c *DatabaseMigrationService) DescribeSchemasPages(input *DescribeSchemasInput, fn func(*DescribeSchemasOutput, bool) bool) error

DescribeSchemasPages iterates over the pages of a DescribeSchemas operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See DescribeSchemas method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a DescribeSchemas operation.
pageNum := 0
err := client.DescribeSchemasPages(params,
    func(page *databasemigrationservice.DescribeSchemasOutput, lastPage bool) bool {
        pageNum++
        fmt.Println(page)
        return pageNum <= 3
    })

func (*DatabaseMigrationService) DescribeSchemasPagesWithContext Uses

func (c *DatabaseMigrationService) DescribeSchemasPagesWithContext(ctx aws.Context, input *DescribeSchemasInput, fn func(*DescribeSchemasOutput, bool) bool, opts ...request.Option) error

DescribeSchemasPagesWithContext same as DescribeSchemasPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*DatabaseMigrationService) DescribeSchemasRequest Uses

func (c *DatabaseMigrationService) DescribeSchemasRequest(input *DescribeSchemasInput) (req *request.Request, output *DescribeSchemasOutput)

DescribeSchemasRequest generates a "aws/request.Request" representing the client's request for the DescribeSchemas operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeSchemas for more information on using the DescribeSchemas API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribeSchemasRequest method.
req, resp := client.DescribeSchemasRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeSchemas

func (*DatabaseMigrationService) DescribeSchemasWithContext Uses

func (c *DatabaseMigrationService) DescribeSchemasWithContext(ctx aws.Context, input *DescribeSchemasInput, opts ...request.Option) (*DescribeSchemasOutput, error)

DescribeSchemasWithContext is the same as DescribeSchemas with the addition of the ability to pass a context and additional request options.

See DescribeSchemas for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*DatabaseMigrationService) DescribeTableStatistics Uses

func (c *DatabaseMigrationService) DescribeTableStatistics(input *DescribeTableStatisticsInput) (*DescribeTableStatisticsOutput, error)

DescribeTableStatistics API operation for AWS Database Migration Service.

Returns table statistics on the database migration task, including table name, rows inserted, rows updated, and rows deleted.

Note that the "last updated" column the DMS console only indicates the time that AWS DMS last updated the table statistics record for a table. It does not indicate the time of the last update to the table.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Database Migration Service's API operation DescribeTableStatistics for usage and error information.

Returned Error Types:

* ResourceNotFoundFault
The resource could not be found.

* InvalidResourceStateFault
The resource is in a state that prevents it from being used for database
migration.

See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeTableStatistics

Describe table statistics

Returns table statistics on the database migration task, including table name, rows inserted, rows updated, and rows deleted.

Code:

svc := databasemigrationservice.New(session.New())
input := &databasemigrationservice.DescribeTableStatisticsInput{
    Marker:             aws.String(""),
    MaxRecords:         aws.Int64(123),
    ReplicationTaskArn: aws.String(""),
}

result, err := svc.DescribeTableStatistics(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case databasemigrationservice.ErrCodeResourceNotFoundFault:
            fmt.Println(databasemigrationservice.ErrCodeResourceNotFoundFault, aerr.Error())
        case databasemigrationservice.ErrCodeInvalidResourceStateFault:
            fmt.Println(databasemigrationservice.ErrCodeInvalidResourceStateFault, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*DatabaseMigrationService) DescribeTableStatisticsPages Uses

func (c *DatabaseMigrationService) DescribeTableStatisticsPages(input *DescribeTableStatisticsInput, fn func(*DescribeTableStatisticsOutput, bool) bool) error

DescribeTableStatisticsPages iterates over the pages of a DescribeTableStatistics operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See DescribeTableStatistics method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a DescribeTableStatistics operation.
pageNum := 0
err := client.DescribeTableStatisticsPages(params,
    func(page *databasemigrationservice.DescribeTableStatisticsOutput, lastPage bool) bool {
        pageNum++
        fmt.Println(page)
        return pageNum <= 3
    })

func (*DatabaseMigrationService) DescribeTableStatisticsPagesWithContext Uses

func (c *DatabaseMigrationService) DescribeTableStatisticsPagesWithContext(ctx aws.Context, input *DescribeTableStatisticsInput, fn func(*DescribeTableStatisticsOutput, bool) bool, opts ...request.Option) error

DescribeTableStatisticsPagesWithContext same as DescribeTableStatisticsPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*DatabaseMigrationService) DescribeTableStatisticsRequest Uses

func (c *DatabaseMigrationService) DescribeTableStatisticsRequest(input *DescribeTableStatisticsInput) (req *request.Request, output *DescribeTableStatisticsOutput)

DescribeTableStatisticsRequest generates a "aws/request.Request" representing the client's request for the DescribeTableStatistics operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeTableStatistics for more information on using the DescribeTableStatistics API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribeTableStatisticsRequest method.
req, resp := client.DescribeTableStatisticsRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeTableStatistics

func (*DatabaseMigrationService) DescribeTableStatisticsWithContext Uses

func (c *DatabaseMigrationService) DescribeTableStatisticsWithContext(ctx aws.Context, input *DescribeTableStatisticsInput, opts ...request.Option) (*DescribeTableStatisticsOutput, error)

DescribeTableStatisticsWithContext is the same as DescribeTableStatistics with the addition of the ability to pass a context and additional request options.

See DescribeTableStatistics for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*DatabaseMigrationService) ImportCertificate Uses

func (c *DatabaseMigrationService) ImportCertificate(input *ImportCertificateInput) (*ImportCertificateOutput, error)

ImportCertificate API operation for AWS Database Migration Service.

Uploads the specified certificate.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Database Migration Service's API operation ImportCertificate for usage and error information.

Returned Error Types:

* ResourceAlreadyExistsFault
The resource you are attempting to create already exists.

* InvalidCertificateFault
The certificate was not valid.

* ResourceQuotaExceededFault
The quota for this resource quota has been exceeded.

See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/ImportCertificate

Import certificate

Uploads the specified certificate.

Code:

svc := databasemigrationservice.New(session.New())
input := &databasemigrationservice.ImportCertificateInput{
    CertificateIdentifier: aws.String(""),
    CertificatePem:        aws.String(""),
}

result, err := svc.ImportCertificate(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case databasemigrationservice.ErrCodeResourceAlreadyExistsFault:
            fmt.Println(databasemigrationservice.ErrCodeResourceAlreadyExistsFault, aerr.Error())
        case databasemigrationservice.ErrCodeInvalidCertificateFault:
            fmt.Println(databasemigrationservice.ErrCodeInvalidCertificateFault, aerr.Error())
        case databasemigrationservice.ErrCodeResourceQuotaExceededFault:
            fmt.Println(databasemigrationservice.ErrCodeResourceQuotaExceededFault, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*DatabaseMigrationService) ImportCertificateRequest Uses

func (c *DatabaseMigrationService) ImportCertificateRequest(input *ImportCertificateInput) (req *request.Request, output *ImportCertificateOutput)

ImportCertificateRequest generates a "aws/request.Request" representing the client's request for the ImportCertificate operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ImportCertificate for more information on using the ImportCertificate API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ImportCertificateRequest method.
req, resp := client.ImportCertificateRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/ImportCertificate

func (*DatabaseMigrationService) ImportCertificateWithContext Uses

func (c *DatabaseMigrationService) ImportCertificateWithContext(ctx aws.Context, input *ImportCertificateInput, opts ...request.Option) (*ImportCertificateOutput, error)

ImportCertificateWithContext is the same as ImportCertificate with the addition of the ability to pass a context and additional request options.

See ImportCertificate for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*DatabaseMigrationService) ListTagsForResource Uses

func (c *DatabaseMigrationService) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error)

ListTagsForResource API operation for AWS Database Migration Service.

Lists all tags for an AWS DMS resource.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Database Migration Service's API operation ListTagsForResource for usage and error information.

Returned Error Types:

* ResourceNotFoundFault
The resource could not be found.

See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/ListTagsForResource

List tags for resource

Lists all tags for an AWS DMS resource.

Code:

svc := databasemigrationservice.New(session.New())
input := &databasemigrationservice.ListTagsForResourceInput{
    ResourceArn: aws.String(""),
}

result, err := svc.ListTagsForResource(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case databasemigrationservice.ErrCodeResourceNotFoundFault:
            fmt.Println(databasemigrationservice.ErrCodeResourceNotFoundFault, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*DatabaseMigrationService) ListTagsForResourceRequest Uses

func (c *DatabaseMigrationService) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput)

ListTagsForResourceRequest generates a "aws/request.Request" representing the client's request for the ListTagsForResource operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ListTagsForResource for more information on using the ListTagsForResource API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ListTagsForResourceRequest method.
req, resp := client.ListTagsForResourceRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/ListTagsForResource

func (*DatabaseMigrationService) ListTagsForResourceWithContext Uses

func (c *DatabaseMigrationService) ListTagsForResourceWithContext(ctx aws.Context, input *ListTagsForResourceInput, opts ...request.Option) (*ListTagsForResourceOutput, error)

ListTagsForResourceWithContext is the same as ListTagsForResource with the addition of the ability to pass a context and additional request options.

See ListTagsForResource for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*DatabaseMigrationService) ModifyEndpoint Uses

func (c *DatabaseMigrationService) ModifyEndpoint(input *ModifyEndpointInput) (*ModifyEndpointOutput, error)

ModifyEndpoint API operation for AWS Database Migration Service.

Modifies the specified endpoint.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Database Migration Service's API operation ModifyEndpoint for usage and error information.

Returned Error Types:

* InvalidResourceStateFault
The resource is in a state that prevents it from being used for database
migration.

* ResourceNotFoundFault
The resource could not be found.

* ResourceAlreadyExistsFault
The resource you are attempting to create already exists.

* KMSKeyNotAccessibleFault
AWS DMS cannot access the AWS KMS key.

* AccessDeniedFault
AWS DMS was denied access to the endpoint. Check that the role is correctly
configured.

See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/ModifyEndpoint

Modify endpoint

Modifies the specified endpoint.

Code:

svc := databasemigrationservice.New(session.New())
input := &databasemigrationservice.ModifyEndpointInput{
    CertificateArn:            aws.String(""),
    DatabaseName:              aws.String(""),
    EndpointArn:               aws.String(""),
    EndpointIdentifier:        aws.String(""),
    EndpointType:              aws.String("source"),
    EngineName:                aws.String(""),
    ExtraConnectionAttributes: aws.String(""),
    Password:                  aws.String(""),
    Port:                      aws.Int64(123),
    ServerName:                aws.String(""),
    SslMode:                   aws.String("require"),
    Username:                  aws.String(""),
}

result, err := svc.ModifyEndpoint(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case databasemigrationservice.ErrCodeInvalidResourceStateFault:
            fmt.Println(databasemigrationservice.ErrCodeInvalidResourceStateFault, aerr.Error())
        case databasemigrationservice.ErrCodeResourceNotFoundFault:
            fmt.Println(databasemigrationservice.ErrCodeResourceNotFoundFault, aerr.Error())
        case databasemigrationservice.ErrCodeResourceAlreadyExistsFault:
            fmt.Println(databasemigrationservice.ErrCodeResourceAlreadyExistsFault, aerr.Error())
        case databasemigrationservice.ErrCodeKMSKeyNotAccessibleFault:
            fmt.Println(databasemigrationservice.ErrCodeKMSKeyNotAccessibleFault, aerr.Error())
        case databasemigrationservice.ErrCodeAccessDeniedFault:
            fmt.Println(databasemigrationservice.ErrCodeAccessDeniedFault, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*DatabaseMigrationService) ModifyEndpointRequest Uses

func (c *DatabaseMigrationService) ModifyEndpointRequest(input *ModifyEndpointInput) (req *request.Request, output *ModifyEndpointOutput)

ModifyEndpointRequest generates a "aws/request.Request" representing the client's request for the ModifyEndpoint operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ModifyEndpoint for more information on using the ModifyEndpoint API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ModifyEndpointRequest method.
req, resp := client.ModifyEndpointRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/ModifyEndpoint

func (*DatabaseMigrationService) ModifyEndpointWithContext Uses

func (c *DatabaseMigrationService) ModifyEndpointWithContext(ctx aws.Context, input *ModifyEndpointInput, opts ...request.Option) (*ModifyEndpointOutput, error)

ModifyEndpointWithContext is the same as ModifyEndpoint with the addition of the ability to pass a context and additional request options.

See ModifyEndpoint for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*DatabaseMigrationService) ModifyEventSubscription Uses

func (c *DatabaseMigrationService) ModifyEventSubscription(input *ModifyEventSubscriptionInput) (*ModifyEventSubscriptionOutput, error)

ModifyEventSubscription API operation for AWS Database Migration Service.

Modifies an existing AWS DMS event notification subscription.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Database Migration Service's API operation ModifyEventSubscription for usage and error information.

Returned Error Types:

* ResourceQuotaExceededFault
The quota for this resource quota has been exceeded.

* ResourceNotFoundFault
The resource could not be found.

* SNSInvalidTopicFault
The SNS topic is invalid.

* SNSNoAuthorizationFault
You are not authorized for the SNS subscription.

* KMSAccessDeniedFault
The ciphertext references a key that doesn't exist or that the DMS account
doesn't have access to.

* KMSDisabledFault
The specified master key (CMK) isn't enabled.

* KMSInvalidStateFault
The state of the specified AWS KMS resource isn't valid for this request.

* KMSNotFoundFault
The specified AWS KMS entity or resource can't be found.

* KMSThrottlingFault
This request triggered AWS KMS request throttling.

See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/ModifyEventSubscription

func (*DatabaseMigrationService) ModifyEventSubscriptionRequest Uses

func (c *DatabaseMigrationService) ModifyEventSubscriptionRequest(input *ModifyEventSubscriptionInput) (req *request.Request, output *ModifyEventSubscriptionOutput)

ModifyEventSubscriptionRequest generates a "aws/request.Request" representing the client's request for the ModifyEventSubscription operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ModifyEventSubscription for more information on using the ModifyEventSubscription API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ModifyEventSubscriptionRequest method.
req, resp := client.ModifyEventSubscriptionRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/ModifyEventSubscription

func (*DatabaseMigrationService) ModifyEventSubscriptionWithContext Uses

func (c *DatabaseMigrationService) ModifyEventSubscriptionWithContext(ctx aws.Context, input *ModifyEventSubscriptionInput, opts ...request.Option) (*ModifyEventSubscriptionOutput, error)

ModifyEventSubscriptionWithContext is the same as ModifyEventSubscription with the addition of the ability to pass a context and additional request options.

See ModifyEventSubscription for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*DatabaseMigrationService) ModifyReplicationInstance Uses

func (c *DatabaseMigrationService) ModifyReplicationInstance(input *ModifyReplicationInstanceInput) (*ModifyReplicationInstanceOutput, error)

ModifyReplicationInstance API operation for AWS Database Migration Service.

Modifies the replication instance to apply new settings. You can change one or more parameters by specifying these parameters and the new values in the request.

Some settings are applied during the maintenance window.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Database Migration Service's API operation ModifyReplicationInstance for usage and error information.

Returned Error Types:

* AccessDeniedFault
AWS DMS was denied access to the endpoint. Check that the role is correctly
configured.

* InvalidResourceStateFault
The resource is in a state that prevents it from being used for database
migration.

* ResourceAlreadyExistsFault
The resource you are attempting to create already exists.

* ResourceNotFoundFault
The resource could not be found.

* InsufficientResourceCapacityFault
There are not enough resources allocated to the database migration.

* StorageQuotaExceededFault
The storage quota has been exceeded.

* UpgradeDependencyFailureFault
An upgrade dependency is preventing the database migration.

See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/ModifyReplicationInstance

Modify replication instance

Modifies the replication instance to apply new settings. You can change one or more parameters by specifying these parameters and the new values in the request. Some settings are applied during the maintenance window.

Code:

svc := databasemigrationservice.New(session.New())
input := &databasemigrationservice.ModifyReplicationInstanceInput{
    AllocatedStorage:              aws.Int64(123),
    AllowMajorVersionUpgrade:      aws.Bool(true),
    ApplyImmediately:              aws.Bool(true),
    AutoMinorVersionUpgrade:       aws.Bool(true),
    EngineVersion:                 aws.String("1.5.0"),
    MultiAZ:                       aws.Bool(true),
    PreferredMaintenanceWindow:    aws.String("sun:06:00-sun:14:00"),
    ReplicationInstanceArn:        aws.String("arn:aws:dms:us-east-1:123456789012:rep:6UTDJGBOUS3VI3SUWA66XFJCJQ"),
    ReplicationInstanceClass:      aws.String("dms.t2.micro"),
    ReplicationInstanceIdentifier: aws.String("test-rep-1"),
}

result, err := svc.ModifyReplicationInstance(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case databasemigrationservice.ErrCodeAccessDeniedFault:
            fmt.Println(databasemigrationservice.ErrCodeAccessDeniedFault, aerr.Error())
        case databasemigrationservice.ErrCodeInvalidResourceStateFault:
            fmt.Println(databasemigrationservice.ErrCodeInvalidResourceStateFault, aerr.Error())
        case databasemigrationservice.ErrCodeResourceAlreadyExistsFault:
            fmt.Println(databasemigrationservice.ErrCodeResourceAlreadyExistsFault, aerr.Error())
        case databasemigrationservice.ErrCodeResourceNotFoundFault:
            fmt.Println(databasemigrationservice.ErrCodeResourceNotFoundFault, aerr.Error())
        case databasemigrationservice.ErrCodeInsufficientResourceCapacityFault:
            fmt.Println(databasemigrationservice.ErrCodeInsufficientResourceCapacityFault, aerr.Error())
        case databasemigrationservice.ErrCodeStorageQuotaExceededFault:
            fmt.Println(databasemigrationservice.ErrCodeStorageQuotaExceededFault, aerr.Error())
        case databasemigrationservice.ErrCodeUpgradeDependencyFailureFault:
            fmt.Println(databasemigrationservice.ErrCodeUpgradeDependencyFailureFault, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*DatabaseMigrationService) ModifyReplicationInstanceRequest Uses

func (c *DatabaseMigrationService) ModifyReplicationInstanceRequest(input *ModifyReplicationInstanceInput) (req *request.Request, output *ModifyReplicationInstanceOutput)

ModifyReplicationInstanceRequest generates a "aws/request.Request" representing the client's request for the ModifyReplicationInstance operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ModifyReplicationInstance for more information on using the ModifyReplicationInstance API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ModifyReplicationInstanceRequest method.
req, resp := client.ModifyReplicationInstanceRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/ModifyReplicationInstance

func (*DatabaseMigrationService) ModifyReplicationInstanceWithContext Uses

func (c *DatabaseMigrationService) ModifyReplicationInstanceWithContext(ctx aws.Context, input *ModifyReplicationInstanceInput, opts ...request.Option) (*ModifyReplicationInstanceOutput, error)

ModifyReplicationInstanceWithContext is the same as ModifyReplicationInstance with the addition of the ability to pass a context and additional request options.

See ModifyReplicationInstance for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*DatabaseMigrationService) ModifyReplicationSubnetGroup Uses

func (c *DatabaseMigrationService) ModifyReplicationSubnetGroup(input *ModifyReplicationSubnetGroupInput) (*ModifyReplicationSubnetGroupOutput, error)

ModifyReplicationSubnetGroup API operation for AWS Database Migration Service.

Modifies the settings for the specified replication subnet group.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Database Migration Service's API operation ModifyReplicationSubnetGroup for usage and error information.

Returned Error Types:

* AccessDeniedFault
AWS DMS was denied access to the endpoint. Check that the role is correctly
configured.

* ResourceNotFoundFault
The resource could not be found.

* ResourceQuotaExceededFault
The quota for this resource quota has been exceeded.

* SubnetAlreadyInUse
The specified subnet is already in use.

* ReplicationSubnetGroupDoesNotCoverEnoughAZs
The replication subnet group does not cover enough Availability Zones (AZs).
Edit the replication subnet group and add more AZs.

* InvalidSubnet
The subnet provided is invalid.

See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/ModifyReplicationSubnetGroup

Modify replication subnet group

Modifies the settings for the specified replication subnet group.

Code:

svc := databasemigrationservice.New(session.New())
input := &databasemigrationservice.ModifyReplicationSubnetGroupInput{
    ReplicationSubnetGroupDescription: aws.String(""),
    ReplicationSubnetGroupIdentifier:  aws.String(""),
}

result, err := svc.ModifyReplicationSubnetGroup(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case databasemigrationservice.ErrCodeAccessDeniedFault:
            fmt.Println(databasemigrationservice.ErrCodeAccessDeniedFault, aerr.Error())
        case databasemigrationservice.ErrCodeResourceNotFoundFault:
            fmt.Println(databasemigrationservice.ErrCodeResourceNotFoundFault, aerr.Error())
        case databasemigrationservice.ErrCodeResourceQuotaExceededFault:
            fmt.Println(databasemigrationservice.ErrCodeResourceQuotaExceededFault, aerr.Error())
        case databasemigrationservice.ErrCodeSubnetAlreadyInUse:
            fmt.Println(databasemigrationservice.ErrCodeSubnetAlreadyInUse, aerr.Error())
        case databasemigrationservice.ErrCodeReplicationSubnetGroupDoesNotCoverEnoughAZs:
            fmt.Println(databasemigrationservice.ErrCodeReplicationSubnetGroupDoesNotCoverEnoughAZs, aerr.Error())
        case databasemigrationservice.ErrCodeInvalidSubnet:
            fmt.Println(databasemigrationservice.ErrCodeInvalidSubnet, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*DatabaseMigrationService) ModifyReplicationSubnetGroupRequest Uses

func (c *DatabaseMigrationService) ModifyReplicationSubnetGroupRequest(input *ModifyReplicationSubnetGroupInput) (req *request.Request, output *ModifyReplicationSubnetGroupOutput)

ModifyReplicationSubnetGroupRequest generates a "aws/request.Request" representing the client's request for the ModifyReplicationSubnetGroup operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ModifyReplicationSubnetGroup for more information on using the ModifyReplicationSubnetGroup API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ModifyReplicationSubnetGroupRequest method.
req, resp := client.ModifyReplicationSubnetGroupRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/ModifyReplicationSubnetGroup

func (*DatabaseMigrationService) ModifyReplicationSubnetGroupWithContext Uses

func (c *DatabaseMigrationService) ModifyReplicationSubnetGroupWithContext(ctx aws.Context, input *ModifyReplicationSubnetGroupInput, opts ...request.Option) (*ModifyReplicationSubnetGroupOutput, error)

ModifyReplicationSubnetGroupWithContext is the same as ModifyReplicationSubnetGroup with the addition of the ability to pass a context and additional request options.

See ModifyReplicationSubnetGroup for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*DatabaseMigrationService) ModifyReplicationTask Uses

func (c *DatabaseMigrationService) ModifyReplicationTask(input *ModifyReplicationTaskInput) (*ModifyReplicationTaskOutput, error)

ModifyReplicationTask API operation for AWS Database Migration Service.

Modifies the specified replication task.

You can't modify the task endpoints. The task must be stopped before you can modify it.

For more information about AWS DMS tasks, see Working with Migration Tasks (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.html) in the AWS Database Migration Service User Guide.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Database Migration Service's API operation ModifyReplicationTask for usage and error information.

Returned Error Types:

* InvalidResourceStateFault
The resource is in a state that prevents it from being used for database
migration.

* ResourceNotFoundFault
The resource could not be found.

* ResourceAlreadyExistsFault
The resource you are attempting to create already exists.

* KMSKeyNotAccessibleFault
AWS DMS cannot access the AWS KMS key.

See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/ModifyReplicationTask

func (*DatabaseMigrationService) ModifyReplicationTaskRequest Uses

func (c *DatabaseMigrationService) ModifyReplicationTaskRequest(input *ModifyReplicationTaskInput) (req *request.Request, output *ModifyReplicationTaskOutput)

ModifyReplicationTaskRequest generates a "aws/request.Request" representing the client's request for the ModifyReplicationTask operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ModifyReplicationTask for more information on using the ModifyReplicationTask API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ModifyReplicationTaskRequest method.
req, resp := client.ModifyReplicationTaskRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/ModifyReplicationTask

func (*DatabaseMigrationService) ModifyReplicationTaskWithContext Uses

func (c *DatabaseMigrationService) ModifyReplicationTaskWithContext(ctx aws.Context, input *ModifyReplicationTaskInput, opts ...request.Option) (*ModifyReplicationTaskOutput, error)

ModifyReplicationTaskWithContext is the same as ModifyReplicationTask with the addition of the ability to pass a context and additional request options.

See ModifyReplicationTask for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*DatabaseMigrationService) RebootReplicationInstance Uses

func (c *DatabaseMigrationService) RebootReplicationInstance(input *RebootReplicationInstanceInput) (*RebootReplicationInstanceOutput, error)

RebootReplicationInstance API operation for AWS Database Migration Service.

Reboots a replication instance. Rebooting results in a momentary outage, until the replication instance becomes available again.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Database Migration Service's API operation RebootReplicationInstance for usage and error information.

Returned Error Types:

* ResourceNotFoundFault
The resource could not be found.

* InvalidResourceStateFault
The resource is in a state that prevents it from being used for database
migration.

See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/RebootReplicationInstance

func (*DatabaseMigrationService) RebootReplicationInstanceRequest Uses

func (c *DatabaseMigrationService) RebootReplicationInstanceRequest(input *RebootReplicationInstanceInput) (req *request.Request, output *RebootReplicationInstanceOutput)

RebootReplicationInstanceRequest generates a "aws/request.Request" representing the client's request for the RebootReplicationInstance operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See RebootReplicationInstance for more information on using the RebootReplicationInstance API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the RebootReplicationInstanceRequest method.
req, resp := client.RebootReplicationInstanceRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/RebootReplicationInstance

func (*DatabaseMigrationService) RebootReplicationInstanceWithContext Uses

func (c *DatabaseMigrationService) RebootReplicationInstanceWithContext(ctx aws.Context, input *RebootReplicationInstanceInput, opts ...request.Option) (*RebootReplicationInstanceOutput, error)

RebootReplicationInstanceWithContext is the same as RebootReplicationInstance with the addition of the ability to pass a context and additional request options.

See RebootReplicationInstance for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*DatabaseMigrationService) RefreshSchemas Uses

func (c *DatabaseMigrationService) RefreshSchemas(input *RefreshSchemasInput) (*RefreshSchemasOutput, error)

RefreshSchemas API operation for AWS Database Migration Service.

Populates the schema for the specified endpoint. This is an asynchronous operation and can take several minutes. You can check the status of this operation by calling the DescribeRefreshSchemasStatus operation.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Database Migration Service's API operation RefreshSchemas for usage and error information.

Returned Error Types:

* InvalidResourceStateFault
The resource is in a state that prevents it from being used for database
migration.

* ResourceNotFoundFault
The resource could not be found.

* KMSKeyNotAccessibleFault
AWS DMS cannot access the AWS KMS key.

* ResourceQuotaExceededFault
The quota for this resource quota has been exceeded.

See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/RefreshSchemas

Refresh schema

Populates the schema for the specified endpoint. This is an asynchronous operation and can take several minutes. You can check the status of this operation by calling the describe-refresh-schemas-status operation.

Code:

svc := databasemigrationservice.New(session.New())
input := &databasemigrationservice.RefreshSchemasInput{
    EndpointArn:            aws.String(""),
    ReplicationInstanceArn: aws.String(""),
}

result, err := svc.RefreshSchemas(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case databasemigrationservice.ErrCodeInvalidResourceStateFault:
            fmt.Println(databasemigrationservice.ErrCodeInvalidResourceStateFault, aerr.Error())
        case databasemigrationservice.ErrCodeResourceNotFoundFault:
            fmt.Println(databasemigrationservice.ErrCodeResourceNotFoundFault, aerr.Error())
        case databasemigrationservice.ErrCodeKMSKeyNotAccessibleFault:
            fmt.Println(databasemigrationservice.ErrCodeKMSKeyNotAccessibleFault, aerr.Error())
        case databasemigrationservice.ErrCodeResourceQuotaExceededFault:
            fmt.Println(databasemigrationservice.ErrCodeResourceQuotaExceededFault, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*DatabaseMigrationService) RefreshSchemasRequest Uses

func (c *DatabaseMigrationService) RefreshSchemasRequest(input *RefreshSchemasInput) (req *request.Request, output *RefreshSchemasOutput)

RefreshSchemasRequest generates a "aws/request.Request" representing the client's request for the RefreshSchemas operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See RefreshSchemas for more information on using the RefreshSchemas API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the RefreshSchemasRequest method.
req, resp := client.RefreshSchemasRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/RefreshSchemas

func (*DatabaseMigrationService) RefreshSchemasWithContext Uses

func (c *DatabaseMigrationService) RefreshSchemasWithContext(ctx aws.Context, input *RefreshSchemasInput, opts ...request.Option) (*RefreshSchemasOutput, error)

RefreshSchemasWithContext is the same as RefreshSchemas with the addition of the ability to pass a context and additional request options.

See RefreshSchemas for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*DatabaseMigrationService) ReloadTables Uses

func (c *DatabaseMigrationService) ReloadTables(input *ReloadTablesInput) (*ReloadTablesOutput, error)

ReloadTables API operation for AWS Database Migration Service.

Reloads the target database table with the source data.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Database Migration Service's API operation ReloadTables for usage and error information.

Returned Error Types:

* ResourceNotFoundFault
The resource could not be found.

* InvalidResourceStateFault
The resource is in a state that prevents it from being used for database
migration.

See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/ReloadTables

func (*DatabaseMigrationService) ReloadTablesRequest Uses

func (c *DatabaseMigrationService) ReloadTablesRequest(input *ReloadTablesInput) (req *request.Request, output *ReloadTablesOutput)

ReloadTablesRequest generates a "aws/request.Request" representing the client's request for the ReloadTables operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ReloadTables for more information on using the ReloadTables API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ReloadTablesRequest method.
req, resp := client.ReloadTablesRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/ReloadTables

func (*DatabaseMigrationService) ReloadTablesWithContext Uses

func (c *DatabaseMigrationService) ReloadTablesWithContext(ctx aws.Context, input *ReloadTablesInput, opts ...request.Option) (*ReloadTablesOutput, error)

ReloadTablesWithContext is the same as ReloadTables with the addition of the ability to pass a context and additional request options.

See ReloadTables for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*DatabaseMigrationService) RemoveTagsFromResource Uses

func (c *DatabaseMigrationService) RemoveTagsFromResource(input *RemoveTagsFromResourceInput) (*RemoveTagsFromResourceOutput, error)

RemoveTagsFromResource API operation for AWS Database Migration Service.

Removes metadata tags from a DMS resource.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Database Migration Service's API operation RemoveTagsFromResource for usage and error information.

Returned Error Types:

* ResourceNotFoundFault
The resource could not be found.

See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/RemoveTagsFromResource

Remove tags from resource

Removes metadata tags from an AWS DMS resource.

Code:

svc := databasemigrationservice.New(session.New())
input := &databasemigrationservice.RemoveTagsFromResourceInput{
    ResourceArn: aws.String("arn:aws:dms:us-east-1:123456789012:endpoint:ASXWXJZLNWNT5HTWCGV2BUJQ7E"),
}

result, err := svc.RemoveTagsFromResource(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case databasemigrationservice.ErrCodeResourceNotFoundFault:
            fmt.Println(databasemigrationservice.ErrCodeResourceNotFoundFault, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*DatabaseMigrationService) RemoveTagsFromResourceRequest Uses

func (c *DatabaseMigrationService) RemoveTagsFromResourceRequest(input *RemoveTagsFromResourceInput) (req *request.Request, output *RemoveTagsFromResourceOutput)

RemoveTagsFromResourceRequest generates a "aws/request.Request" representing the client's request for the RemoveTagsFromResource operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See RemoveTagsFromResource for more information on using the RemoveTagsFromResource API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the RemoveTagsFromResourceRequest method.
req, resp := client.RemoveTagsFromResourceRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/RemoveTagsFromResource

func (*DatabaseMigrationService) RemoveTagsFromResourceWithContext Uses

func (c *DatabaseMigrationService) RemoveTagsFromResourceWithContext(ctx aws.Context, input *RemoveTagsFromResourceInput, opts ...request.Option) (*RemoveTagsFromResourceOutput, error)

RemoveTagsFromResourceWithContext is the same as RemoveTagsFromResource with the addition of the ability to pass a context and additional request options.

See RemoveTagsFromResource for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*DatabaseMigrationService) StartReplicationTask Uses

func (c *DatabaseMigrationService) StartReplicationTask(input *StartReplicationTaskInput) (*StartReplicationTaskOutput, error)

StartReplicationTask API operation for AWS Database Migration Service.

Starts the replication task.

For more information about AWS DMS tasks, see Working with Migration Tasks (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.html) in the AWS Database Migration Service User Guide.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Database Migration Service's API operation StartReplicationTask for usage and error information.

Returned Error Types:

* ResourceNotFoundFault
The resource could not be found.

* InvalidResourceStateFault
The resource is in a state that prevents it from being used for database
migration.

* AccessDeniedFault
AWS DMS was denied access to the endpoint. Check that the role is correctly
configured.

See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/StartReplicationTask

Start replication task

Starts the replication task.

Code:

svc := databasemigrationservice.New(session.New())
input := &databasemigrationservice.StartReplicationTaskInput{
    CdcStartTime:             parseTime("2006-01-02T15:04:05.999999999Z", "2016-12-14T13:33:20Z"),
    ReplicationTaskArn:       aws.String("arn:aws:dms:us-east-1:123456789012:rep:6UTDJGBOUS3VI3SUWA66XFJCJQ"),
    StartReplicationTaskType: aws.String("start-replication"),
}

result, err := svc.StartReplicationTask(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case databasemigrationservice.ErrCodeResourceNotFoundFault:
            fmt.Println(databasemigrationservice.ErrCodeResourceNotFoundFault, aerr.Error())
        case databasemigrationservice.ErrCodeInvalidResourceStateFault:
            fmt.Println(databasemigrationservice.ErrCodeInvalidResourceStateFault, aerr.Error())
        case databasemigrationservice.ErrCodeAccessDeniedFault:
            fmt.Println(databasemigrationservice.ErrCodeAccessDeniedFault, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*DatabaseMigrationService) StartReplicationTaskAssessment Uses

func (c *DatabaseMigrationService) StartReplicationTaskAssessment(input *StartReplicationTaskAssessmentInput) (*StartReplicationTaskAssessmentOutput, error)

StartReplicationTaskAssessment API operation for AWS Database Migration Service.

Starts the replication task assessment for unsupported data types in the source database.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Database Migration Service's API operation StartReplicationTaskAssessment for usage and error information.

Returned Error Types:

* InvalidResourceStateFault
The resource is in a state that prevents it from being used for database
migration.

* ResourceNotFoundFault
The resource could not be found.

See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/StartReplicationTaskAssessment

func (*DatabaseMigrationService) StartReplicationTaskAssessmentRequest Uses

func (c *DatabaseMigrationService) StartReplicationTaskAssessmentRequest(input *StartReplicationTaskAssessmentInput) (req *request.Request, output *StartReplicationTaskAssessmentOutput)

StartReplicationTaskAssessmentRequest generates a "aws/request.Request" representing the client's request for the StartReplicationTaskAssessment operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See StartReplicationTaskAssessment for more information on using the StartReplicationTaskAssessment API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the StartReplicationTaskAssessmentRequest method.
req, resp := client.StartReplicationTaskAssessmentRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/StartReplicationTaskAssessment

func (*DatabaseMigrationService) StartReplicationTaskAssessmentRun Uses

func (c *DatabaseMigrationService) StartReplicationTaskAssessmentRun(input *StartReplicationTaskAssessmentRunInput) (*StartReplicationTaskAssessmentRunOutput, error)

StartReplicationTaskAssessmentRun API operation for AWS Database Migration Service.

Starts a new premigration assessment run for one or more individual assessments of a migration task.

The assessments that you can specify depend on the source and target database engine and the migration type defined for the given task. To run this operation, your migration task must already be created. After you run this operation, you can review the status of each individual assessment. You can also run the migration task manually after the assessment run and its individual assessments complete.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Database Migration Service's API operation StartReplicationTaskAssessmentRun for usage and error information.

Returned Error Types:

* AccessDeniedFault
AWS DMS was denied access to the endpoint. Check that the role is correctly
configured.

* ResourceNotFoundFault
The resource could not be found.

* InvalidResourceStateFault
The resource is in a state that prevents it from being used for database
migration.

* KMSAccessDeniedFault
The ciphertext references a key that doesn't exist or that the DMS account
doesn't have access to.

* KMSDisabledFault
The specified master key (CMK) isn't enabled.

* KMSFault
An AWS Key Management Service (AWS KMS) error is preventing access to AWS
KMS.

* KMSInvalidStateFault
The state of the specified AWS KMS resource isn't valid for this request.

* KMSNotFoundFault
The specified AWS KMS entity or resource can't be found.

* KMSKeyNotAccessibleFault
AWS DMS cannot access the AWS KMS key.

* S3AccessDeniedFault
Insufficient privileges are preventing access to an Amazon S3 object.

* S3ResourceNotFoundFault
A specified Amazon S3 bucket, bucket folder, or other object can't be found.

* ResourceAlreadyExistsFault
The resource you are attempting to create already exists.

See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/StartReplicationTaskAssessmentRun

func (*DatabaseMigrationService) StartReplicationTaskAssessmentRunRequest Uses

func (c *DatabaseMigrationService) StartReplicationTaskAssessmentRunRequest(input *StartReplicationTaskAssessmentRunInput) (req *request.Request, output *StartReplicationTaskAssessmentRunOutput)

StartReplicationTaskAssessmentRunRequest generates a "aws/request.Request" representing the client's request for the StartReplicationTaskAssessmentRun operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See StartReplicationTaskAssessmentRun for more information on using the StartReplicationTaskAssessmentRun API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the StartReplicationTaskAssessmentRunRequest method.
req, resp := client.StartReplicationTaskAssessmentRunRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/StartReplicationTaskAssessmentRun

func (*DatabaseMigrationService) StartReplicationTaskAssessmentRunWithContext Uses

func (c *DatabaseMigrationService) StartReplicationTaskAssessmentRunWithContext(ctx aws.Context, input *StartReplicationTaskAssessmentRunInput, opts ...request.Option) (*StartReplicationTaskAssessmentRunOutput, error)

StartReplicationTaskAssessmentRunWithContext is the same as StartReplicationTaskAssessmentRun with the addition of the ability to pass a context and additional request options.

See StartReplicationTaskAssessmentRun for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*DatabaseMigrationService) StartReplicationTaskAssessmentWithContext Uses

func (c *DatabaseMigrationService) StartReplicationTaskAssessmentWithContext(ctx aws.Context, input *StartReplicationTaskAssessmentInput, opts ...request.Option) (*StartReplicationTaskAssessmentOutput, error)

StartReplicationTaskAssessmentWithContext is the same as StartReplicationTaskAssessment with the addition of the ability to pass a context and additional request options.

See StartReplicationTaskAssessment for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*DatabaseMigrationService) StartReplicationTaskRequest Uses

func (c *DatabaseMigrationService) StartReplicationTaskRequest(input *StartReplicationTaskInput) (req *request.Request, output *StartReplicationTaskOutput)

StartReplicationTaskRequest generates a "aws/request.Request" representing the client's request for the StartReplicationTask operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See StartReplicationTask for more information on using the StartReplicationTask API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the StartReplicationTaskRequest method.
req, resp := client.StartReplicationTaskRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/StartReplicationTask

func (*DatabaseMigrationService) StartReplicationTaskWithContext Uses

func (c *DatabaseMigrationService) StartReplicationTaskWithContext(ctx aws.Context, input *StartReplicationTaskInput, opts ...request.Option) (*StartReplicationTaskOutput, error)

StartReplicationTaskWithContext is the same as StartReplicationTask with the addition of the ability to pass a context and additional request options.

See StartReplicationTask for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*DatabaseMigrationService) StopReplicationTask Uses

func (c *DatabaseMigrationService) StopReplicationTask(input *StopReplicationTaskInput) (*StopReplicationTaskOutput, error)

StopReplicationTask API operation for AWS Database Migration Service.

Stops the replication task.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Database Migration Service's API operation StopReplicationTask for usage and error information.

Returned Error Types:

* ResourceNotFoundFault
The resource could not be found.

* InvalidResourceStateFault
The resource is in a state that prevents it from being used for database
migration.

See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/StopReplicationTask

Stop replication task

Stops the replication task.

Code:

svc := databasemigrationservice.New(session.New())
input := &databasemigrationservice.StopReplicationTaskInput{
    ReplicationTaskArn: aws.String("arn:aws:dms:us-east-1:123456789012:endpoint:ASXWXJZLNWNT5HTWCGV2BUJQ7E"),
}

result, err := svc.StopReplicationTask(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case databasemigrationservice.ErrCodeResourceNotFoundFault:
            fmt.Println(databasemigrationservice.ErrCodeResourceNotFoundFault, aerr.Error())
        case databasemigrationservice.ErrCodeInvalidResourceStateFault:
            fmt.Println(databasemigrationservice.ErrCodeInvalidResourceStateFault, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*DatabaseMigrationService) StopReplicationTaskRequest Uses

func (c *DatabaseMigrationService) StopReplicationTaskRequest(input *StopReplicationTaskInput) (req *request.Request, output *StopReplicationTaskOutput)

StopReplicationTaskRequest generates a "aws/request.Request" representing the client's request for the StopReplicationTask operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See StopReplicationTask for more information on using the StopReplicationTask API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the StopReplicationTaskRequest method.
req, resp := client.StopReplicationTaskRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/StopReplicationTask

func (*DatabaseMigrationService) StopReplicationTaskWithContext Uses

func (c *DatabaseMigrationService) StopReplicationTaskWithContext(ctx aws.Context, input *StopReplicationTaskInput, opts ...request.Option) (*StopReplicationTaskOutput, error)

StopReplicationTaskWithContext is the same as StopReplicationTask with the addition of the ability to pass a context and additional request options.

See StopReplicationTask for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*DatabaseMigrationService) TestConnection Uses

func (c *DatabaseMigrationService) TestConnection(input *TestConnectionInput) (*TestConnectionOutput, error)

TestConnection API operation for AWS Database Migration Service.

Tests the connection between the replication instance and the endpoint.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Database Migration Service's API operation TestConnection for usage and error information.

Returned Error Types:

* ResourceNotFoundFault
The resource could not be found.

* InvalidResourceStateFault
The resource is in a state that prevents it from being used for database
migration.

* KMSKeyNotAccessibleFault
AWS DMS cannot access the AWS KMS key.

* ResourceQuotaExceededFault
The quota for this resource quota has been exceeded.

See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/TestConnection

Test conection

Tests the connection between the replication instance and the endpoint.

Code:

svc := databasemigrationservice.New(session.New())
input := &databasemigrationservice.TestConnectionInput{
    EndpointArn:            aws.String("arn:aws:dms:us-east-1:123456789012:endpoint:RAAR3R22XSH46S3PWLC3NJAWKM"),
    ReplicationInstanceArn: aws.String("arn:aws:dms:us-east-1:123456789012:rep:6UTDJGBOUS3VI3SUWA66XFJCJQ"),
}

result, err := svc.TestConnection(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case databasemigrationservice.ErrCodeResourceNotFoundFault:
            fmt.Println(databasemigrationservice.ErrCodeResourceNotFoundFault, aerr.Error())
        case databasemigrationservice.ErrCodeInvalidResourceStateFault:
            fmt.Println(databasemigrationservice.ErrCodeInvalidResourceStateFault, aerr.Error())
        case databasemigrationservice.ErrCodeKMSKeyNotAccessibleFault:
            fmt.Println(databasemigrationservice.ErrCodeKMSKeyNotAccessibleFault, aerr.Error())
        case databasemigrationservice.ErrCodeResourceQuotaExceededFault:
            fmt.Println(databasemigrationservice.ErrCodeResourceQuotaExceededFault, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*DatabaseMigrationService) TestConnectionRequest Uses

func (c *DatabaseMigrationService) TestConnectionRequest(input *TestConnectionInput) (req *request.Request, output *TestConnectionOutput)

TestConnectionRequest generates a "aws/request.Request" representing the client's request for the TestConnection operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See TestConnection for more information on using the TestConnection API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the TestConnectionRequest method.
req, resp := client.TestConnectionRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/TestConnection

func (*DatabaseMigrationService) TestConnectionWithContext Uses

func (c *DatabaseMigrationService) TestConnectionWithContext(ctx aws.Context, input *TestConnectionInput, opts ...request.Option) (*TestConnectionOutput, error)

TestConnectionWithContext is the same as TestConnection with the addition of the ability to pass a context and additional request options.

See TestConnection for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*DatabaseMigrationService) WaitUntilEndpointDeleted Uses

func (c *DatabaseMigrationService) WaitUntilEndpointDeleted(input *DescribeEndpointsInput) error

WaitUntilEndpointDeleted uses the AWS Database Migration Service API operation DescribeEndpoints to wait for a condition to be met before returning. If the condition is not met within the max attempt window, an error will be returned.

func (*DatabaseMigrationService) WaitUntilEndpointDeletedWithContext Uses

func (c *DatabaseMigrationService) WaitUntilEndpointDeletedWithContext(ctx aws.Context, input *DescribeEndpointsInput, opts ...request.WaiterOption) error

WaitUntilEndpointDeletedWithContext is an extended version of WaitUntilEndpointDeleted. With the support for passing in a context and options to configure the Waiter and the underlying request options.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*DatabaseMigrationService) WaitUntilReplicationInstanceAvailable Uses

func (c *DatabaseMigrationService) WaitUntilReplicationInstanceAvailable(input *DescribeReplicationInstancesInput) error

WaitUntilReplicationInstanceAvailable uses the AWS Database Migration Service API operation DescribeReplicationInstances to wait for a condition to be met before returning. If the condition is not met within the max attempt window, an error will be returned.

func (*DatabaseMigrationService) WaitUntilReplicationInstanceAvailableWithContext Uses

func (c *DatabaseMigrationService) WaitUntilReplicationInstanceAvailableWithContext(ctx aws.Context, input *DescribeReplicationInstancesInput, opts ...request.WaiterOption) error

WaitUntilReplicationInstanceAvailableWithContext is an extended version of WaitUntilReplicationInstanceAvailable. With the support for passing in a context and options to configure the Waiter and the underlying request options.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*DatabaseMigrationService) WaitUntilReplicationInstanceDeleted Uses

func (c *DatabaseMigrationService) WaitUntilReplicationInstanceDeleted(input *DescribeReplicationInstancesInput) error

WaitUntilReplicationInstanceDeleted uses the AWS Database Migration Service API operation DescribeReplicationInstances to wait for a condition to be met before returning. If the condition is not met within the max attempt window, an error will be returned.

func (*DatabaseMigrationService) WaitUntilReplicationInstanceDeletedWithContext Uses

func (c *DatabaseMigrationService) WaitUntilReplicationInstanceDeletedWithContext(ctx aws.Context, input *DescribeReplicationInstancesInput, opts ...request.WaiterOption) error

WaitUntilReplicationInstanceDeletedWithContext is an extended version of WaitUntilReplicationInstanceDeleted. With the support for passing in a context and options to configure the Waiter and the underlying request options.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*DatabaseMigrationService) WaitUntilReplicationTaskDeleted Uses

func (c *DatabaseMigrationService) WaitUntilReplicationTaskDeleted(input *DescribeReplicationTasksInput) error

WaitUntilReplicationTaskDeleted uses the AWS Database Migration Service API operation DescribeReplicationTasks to wait for a condition to be met before returning. If the condition is not met within the max attempt window, an error will be returned.

func (*DatabaseMigrationService) WaitUntilReplicationTaskDeletedWithContext Uses

func (c *DatabaseMigrationService) WaitUntilReplicationTaskDeletedWithContext(ctx aws.Context, input *DescribeReplicationTasksInput, opts ...request.WaiterOption) error

WaitUntilReplicationTaskDeletedWithContext is an extended version of WaitUntilReplicationTaskDeleted. With the support for passing in a context and options to configure the Waiter and the underlying request options.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*DatabaseMigrationService) WaitUntilReplicationTaskReady Uses

func (c *DatabaseMigrationService) WaitUntilReplicationTaskReady(input *DescribeReplicationTasksInput) error

WaitUntilReplicationTaskReady uses the AWS Database Migration Service API operation DescribeReplicationTasks to wait for a condition to be met before returning. If the condition is not met within the max attempt window, an error will be returned.

func (*DatabaseMigrationService) WaitUntilReplicationTaskReadyWithContext Uses

func (c *DatabaseMigrationService) WaitUntilReplicationTaskReadyWithContext(ctx aws.Context, input *DescribeReplicationTasksInput, opts ...request.WaiterOption) error

WaitUntilReplicationTaskReadyWithContext is an extended version of WaitUntilReplicationTaskReady. With the support for passing in a context and options to configure the Waiter and the underlying request options.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*DatabaseMigrationService) WaitUntilReplicationTaskRunning Uses

func (c *DatabaseMigrationService) WaitUntilReplicationTaskRunning(input *DescribeReplicationTasksInput) error

WaitUntilReplicationTaskRunning uses the AWS Database Migration Service API operation DescribeReplicationTasks to wait for a condition to be met before returning. If the condition is not met within the max attempt window, an error will be returned.

func (*DatabaseMigrationService) WaitUntilReplicationTaskRunningWithContext Uses

func (c *DatabaseMigrationService) WaitUntilReplicationTaskRunningWithContext(ctx aws.Context, input *DescribeReplicationTasksInput, opts ...request.WaiterOption) error

WaitUntilReplicationTaskRunningWithContext is an extended version of WaitUntilReplicationTaskRunning. With the support for passing in a context and options to configure the Waiter and the underlying request options.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*DatabaseMigrationService) WaitUntilReplicationTaskStopped Uses

func (c *DatabaseMigrationService) WaitUntilReplicationTaskStopped(input *DescribeReplicationTasksInput) error

WaitUntilReplicationTaskStopped uses the AWS Database Migration Service API operation DescribeReplicationTasks to wait for a condition to be met before returning. If the condition is not met within the max attempt window, an error will be returned.

func (*DatabaseMigrationService) WaitUntilReplicationTaskStoppedWithContext Uses

func (c *DatabaseMigrationService) WaitUntilReplicationTaskStoppedWithContext(ctx aws.Context, input *DescribeReplicationTasksInput, opts ...request.WaiterOption) error

WaitUntilReplicationTaskStoppedWithContext is an extended version of WaitUntilReplicationTaskStopped. With the support for passing in a context and options to configure the Waiter and the underlying request options.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*DatabaseMigrationService) WaitUntilTestConnectionSucceeds Uses

func (c *DatabaseMigrationService) WaitUntilTestConnectionSucceeds(input *DescribeConnectionsInput) error

WaitUntilTestConnectionSucceeds uses the AWS Database Migration Service API operation DescribeConnections to wait for a condition to be met before returning. If the condition is not met within the max attempt window, an error will be returned.

func (*DatabaseMigrationService) WaitUntilTestConnectionSucceedsWithContext Uses

func (c *DatabaseMigrationService) WaitUntilTestConnectionSucceedsWithContext(ctx aws.Context, input *DescribeConnectionsInput, opts ...request.WaiterOption) error

WaitUntilTestConnectionSucceedsWithContext is an extended version of WaitUntilTestConnectionSucceeds. With the support for passing in a context and options to configure the Waiter and the underlying request options.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

type DeleteCertificateInput Uses

type DeleteCertificateInput struct {

    // The Amazon Resource Name (ARN) of the deleted certificate.
    //
    // CertificateArn is a required field
    CertificateArn *string `type:"string" required:"true"`
    // contains filtered or unexported fields
}

func (DeleteCertificateInput) GoString Uses

func (s DeleteCertificateInput) GoString() string

GoString returns the string representation

func (*DeleteCertificateInput) SetCertificateArn Uses

func (s *DeleteCertificateInput) SetCertificateArn(v string) *DeleteCertificateInput

SetCertificateArn sets the CertificateArn field's value.

func (DeleteCertificateInput) String Uses

func (s DeleteCertificateInput) String() string

String returns the string representation

func (*DeleteCertificateInput) Validate Uses

func (s *DeleteCertificateInput) Validate() error

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

type DeleteCertificateOutput Uses

type DeleteCertificateOutput struct {

    // The Secure Sockets Layer (SSL) certificate.
    Certificate *Certificate `type:"structure"`
    // contains filtered or unexported fields
}

func (DeleteCertificateOutput) GoString Uses

func (s DeleteCertificateOutput) GoString() string

GoString returns the string representation

func (*DeleteCertificateOutput) SetCertificate Uses

func (s *DeleteCertificateOutput) SetCertificate(v *Certificate) *DeleteCertificateOutput

SetCertificate sets the Certificate field's value.

func (DeleteCertificateOutput) String Uses

func (s DeleteCertificateOutput) String() string

String returns the string representation

type DeleteConnectionInput Uses

type DeleteConnectionInput struct {

    // The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.
    //
    // EndpointArn is a required field
    EndpointArn *string `type:"string" required:"true"`

    // The Amazon Resource Name (ARN) of the replication instance.
    //
    // ReplicationInstanceArn is a required field
    ReplicationInstanceArn *string `type:"string" required:"true"`
    // contains filtered or unexported fields
}

func (DeleteConnectionInput) GoString Uses

func (s DeleteConnectionInput) GoString() string

GoString returns the string representation

func (*DeleteConnectionInput) SetEndpointArn Uses

func (s *DeleteConnectionInput) SetEndpointArn(v string) *DeleteConnectionInput

SetEndpointArn sets the EndpointArn field's value.

func (*DeleteConnectionInput) SetReplicationInstanceArn Uses

func (s *DeleteConnectionInput) SetReplicationInstanceArn(v string) *DeleteConnectionInput

SetReplicationInstanceArn sets the ReplicationInstanceArn field's value.

func (DeleteConnectionInput) String Uses

func (s DeleteConnectionInput) String() string

String returns the string representation

func (*DeleteConnectionInput) Validate Uses

func (s *DeleteConnectionInput) Validate() error

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

type DeleteConnectionOutput Uses

type DeleteConnectionOutput struct {

    // The connection that is being deleted.
    Connection *Connection `type:"structure"`
    // contains filtered or unexported fields
}

func (DeleteConnectionOutput) GoString Uses

func (s DeleteConnectionOutput) GoString() string

GoString returns the string representation

func (*DeleteConnectionOutput) SetConnection Uses

func (s *DeleteConnectionOutput) SetConnection(v *Connection) *DeleteConnectionOutput

SetConnection sets the Connection field's value.

func (DeleteConnectionOutput) String Uses

func (s DeleteConnectionOutput) String() string

String returns the string representation

type DeleteEndpointInput Uses

type DeleteEndpointInput struct {

    // The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.
    //
    // EndpointArn is a required field
    EndpointArn *string `type:"string" required:"true"`
    // contains filtered or unexported fields
}

func (DeleteEndpointInput) GoString Uses

func (s DeleteEndpointInput) GoString() string

GoString returns the string representation

func (*DeleteEndpointInput) SetEndpointArn Uses

func (s *DeleteEndpointInput) SetEndpointArn(v string) *DeleteEndpointInput

SetEndpointArn sets the EndpointArn field's value.

func (DeleteEndpointInput) String Uses

func (s DeleteEndpointInput) String() string

String returns the string representation

func (*DeleteEndpointInput)