Class: Google::Apis::PubsubV1::AwsKinesis
- Inherits:
-
Object
- Object
- Google::Apis::PubsubV1::AwsKinesis
- 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
-
#aws_role_arn ⇒ String
Required.
-
#consumer_arn ⇒ String
Required.
-
#gcp_service_account ⇒ String
Required.
-
#state ⇒ String
Output only.
-
#stream_arn ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AwsKinesis
constructor
A new instance of AwsKinesis.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AwsKinesis
Returns a new instance of AwsKinesis.
157 158 159 |
# File 'lib/google/apis/pubsub_v1/classes.rb', line 157 def initialize(**args) update!(**args) end |
Instance Attribute Details
#aws_role_arn ⇒ String
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
130 131 132 |
# File 'lib/google/apis/pubsub_v1/classes.rb', line 130 def aws_role_arn @aws_role_arn end |
#consumer_arn ⇒ String
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
136 137 138 |
# File 'lib/google/apis/pubsub_v1/classes.rb', line 136 def consumer_arn @consumer_arn end |
#gcp_service_account ⇒ String
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
144 145 146 |
# File 'lib/google/apis/pubsub_v1/classes.rb', line 144 def gcp_service_account @gcp_service_account end |
#state ⇒ String
Output only. An output-only field that indicates the state of the Kinesis
ingestion source.
Corresponds to the JSON property state
150 151 152 |
# File 'lib/google/apis/pubsub_v1/classes.rb', line 150 def state @state end |
#stream_arn ⇒ String
Required. The Kinesis stream ARN to ingest data from.
Corresponds to the JSON property streamArn
155 156 157 |
# File 'lib/google/apis/pubsub_v1/classes.rb', line 155 def stream_arn @stream_arn end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
162 163 164 165 166 167 168 |
# File 'lib/google/apis/pubsub_v1/classes.rb', line 162 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 |