DeleteReplicationGroupInput
import "github.com/aws/aws-sdk-go/service/elasticache"
type DeleteReplicationGroupInput struct { FinalSnapshotIdentifier *string `type:"string"` ReplicationGroupId *string `type:"string" required:"true"` RetainPrimaryCluster *bool `type:"boolean"` }
Represents the input of a DeleteReplicationGroup operation.
- FinalSnapshotIdentifier
-
Type:
*string
The name of a final node group (shard) snapshot. ElastiCache creates the snapshot from the primary node in the cluster, rather than one of the replicas; this is to ensure that it captures the freshest data. After the final snapshot is taken, the replication group is immediately deleted.
- ReplicationGroupId
-
Type:
*string
The identifier for the cluster to be deleted. This parameter is not case sensitive.
ReplicationGroupId is a required field
- RetainPrimaryCluster
-
Type:
*bool
If set to true, all of the read replicas are deleted, but the primary node is retained.
Method
GoString
func (s DeleteReplicationGroupInput) GoString() string
GoString returns the string representation
SetFinalSnapshotIdentifier
func (s *DeleteReplicationGroupInput) SetFinalSnapshotIdentifier(v string) *DeleteReplicationGroupInput
SetFinalSnapshotIdentifier sets the FinalSnapshotIdentifier field's value.
SetReplicationGroupId
func (s *DeleteReplicationGroupInput) SetReplicationGroupId(v string) *DeleteReplicationGroupInput
SetReplicationGroupId sets the ReplicationGroupId field's value.
SetRetainPrimaryCluster
func (s *DeleteReplicationGroupInput) SetRetainPrimaryCluster(v bool) *DeleteReplicationGroupInput
SetRetainPrimaryCluster sets the RetainPrimaryCluster field's value.
String
func (s DeleteReplicationGroupInput) String() string
String returns the string representation
Validate
func (s *DeleteReplicationGroupInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.