Class: Google::Apis::PubsubV1::AwsKinesis

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/pubsub_v1/classes.rb,
lib/google/apis/pubsub_v1/representations.rb,
lib/google/apis/pubsub_v1/representations.rb

Overview

Ingestion settings for Amazon Kinesis Data Streams.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AwsKinesis

Returns a new instance of AwsKinesis.



143
144
145
# File 'lib/google/apis/pubsub_v1/classes.rb', line 143

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#aws_role_arnString

Required. AWS role ARN to be used for Federated Identity authentication with Kinesis. Check the Pub/Sub docs for how to set up this role and the required permissions that need to be attached to it. Corresponds to the JSON property awsRoleArn

Returns:

  • (String)


116
117
118
# File 'lib/google/apis/pubsub_v1/classes.rb', line 116

def aws_role_arn
  @aws_role_arn
end

#consumer_arnString

Required. The Kinesis consumer ARN to used for ingestion in Enhanced Fan-Out mode. The consumer must be already created and ready to be used. Corresponds to the JSON property consumerArn

Returns:

  • (String)


122
123
124
# File 'lib/google/apis/pubsub_v1/classes.rb', line 122

def consumer_arn
  @consumer_arn
end

#gcp_service_accountString

Required. The GCP service account to be used for Federated Identity authentication with Kinesis (via a AssumeRoleWithWebIdentity call for the provided role). The aws_role_arn must be set up with accounts.google.com: sub equals to this service account number. Corresponds to the JSON property gcpServiceAccount

Returns:

  • (String)


130
131
132
# File 'lib/google/apis/pubsub_v1/classes.rb', line 130

def 
  @gcp_service_account
end

#stateString

Output only. An output-only field that indicates the state of the Kinesis ingestion source. Corresponds to the JSON property state

Returns:

  • (String)


136
137
138
# File 'lib/google/apis/pubsub_v1/classes.rb', line 136

def state
  @state
end

#stream_arnString

Required. The Kinesis stream ARN to ingest data from. Corresponds to the JSON property streamArn

Returns:

  • (String)


141
142
143
# File 'lib/google/apis/pubsub_v1/classes.rb', line 141

def stream_arn
  @stream_arn
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



148
149
150
151
152
153
154
# File 'lib/google/apis/pubsub_v1/classes.rb', line 148

def update!(**args)
  @aws_role_arn = args[:aws_role_arn] if args.key?(:aws_role_arn)
  @consumer_arn = args[:consumer_arn] if args.key?(:consumer_arn)
  @gcp_service_account = args[:gcp_service_account] if args.key?(:gcp_service_account)
  @state = args[:state] if args.key?(:state)
  @stream_arn = args[:stream_arn] if args.key?(:stream_arn)
end