Skip to content
This repository has been archived by the owner on Jul 20, 2023. It is now read-only.

Commit

Permalink
feat: add aws connection support (#33)
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 334870265

Source-Author: Google APIs <noreply@google.com>
Source-Date: Thu Oct 1 12:16:35 2020 -0700
Source-Repo: googleapis/googleapis
Source-Sha: aa72330a8d16d281df131e8d37bb1a4bde53401f
Source-Link: googleapis/googleapis@aa72330
  • Loading branch information
yoshi-automation authored Oct 17, 2020
1 parent 0316fd6 commit 13fecb8
Show file tree
Hide file tree
Showing 5 changed files with 756 additions and 7 deletions.
29 changes: 29 additions & 0 deletions protos/google/cloud/bigquery/connection/v1/connection.proto
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,9 @@ message Connection {
oneof properties {
// Cloud SQL properties.
CloudSqlProperties cloud_sql = 4;

// Amazon Web Services (AWS) properties.
AwsProperties aws = 8;
}

// Output only. The creation timestamp of the connection.
Expand Down Expand Up @@ -277,3 +280,29 @@ message CloudSqlCredential {
// The password for the credential.
string password = 2;
}

// Connection properties specific to Amazon Web Services (AWS).
message AwsProperties {
// Authentication method chosen at connection creation.
oneof authentication_method {
// Authentication using Google owned AWS IAM user's access key to assume
// into customer's AWS IAM Role.
AwsCrossAccountRole cross_account_role = 2;
}
}

// Authentication method for Amazon Web Services (AWS) that uses Google owned
// AWS IAM user's access key to assume into customer's AWS IAM Role.
message AwsCrossAccountRole {
// The user’s AWS IAM Role that trusts the Google-owned AWS IAM user
// Connection.
string iam_role_id = 1;

// Output only. Google-owned AWS IAM User for a Connection.
string iam_user_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY];

// Output only. A Google-generated id for representing Connection’s identity in AWS.
// External Id is also used for preventing the Confused Deputy Problem. See
// https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_create_for-user_externalid.html
string external_id = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
}
203 changes: 202 additions & 1 deletion protos/protos.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 13fecb8

Please sign in to comment.