Class: Aws::RedshiftServerless::Types::TargetAction

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-redshiftserverless/lib/aws-sdk-redshiftserverless/types.rb

Overview

Note:

TargetAction is a union - when making an API calls you must set exactly one of the members.

Note:

TargetAction is a union - when returned from an API call exactly one value will be set and the returned type will be a subclass of TargetAction corresponding to the set member.

A JSON format string of the Amazon Redshift Serverless API operation with input parameters. The following is an example of a target action.

"\{"CreateSnapshot": \{"NamespaceName": "sampleNamespace","SnapshotName": "sampleSnapshot", "retentionPeriod": "1"\}\}"

Direct Known Subclasses

CreateSnapshot, Unknown

Defined Under Namespace

Classes: CreateSnapshot, Unknown

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#create_snapshotTypes::CreateSnapshotScheduleActionParameters

The parameters that you can use to configure a scheduled action to create a snapshot. For more information about creating a scheduled action, see CreateScheduledAction.



2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
# File 'gems/aws-sdk-redshiftserverless/lib/aws-sdk-redshiftserverless/types.rb', line 2963

class TargetAction < Struct.new(
  :create_snapshot,
  :unknown)
  SENSITIVE = []
  include Aws::Structure
  include Aws::Structure::Union

  class CreateSnapshot < TargetAction; end
  class Unknown < TargetAction; end
end

#unknownObject

Returns the value of attribute unknown

Returns:

  • (Object)

    the current value of unknown



2963
2964
2965
# File 'gems/aws-sdk-redshiftserverless/lib/aws-sdk-redshiftserverless/types.rb', line 2963

def unknown
  @unknown
end