@@ -230,6 +230,9 @@ message Connection { |
230 | 230 | oneof properties { |
231 | 231 | // Cloud SQL properties. |
232 | 232 | CloudSqlProperties cloud_sql = 4; |
| 233 | + |
| 234 | + // Amazon Web Services (AWS) properties. |
| 235 | + AwsProperties aws = 8; |
233 | 236 | } |
234 | 237 |
|
235 | 238 | // Output only. The creation timestamp of the connection. |
@@ -277,3 +280,29 @@ message CloudSqlCredential { |
277 | 280 | // The password for the credential. |
278 | 281 | string password = 2; |
279 | 282 | } |
| 283 | + |
| 284 | +// Connection properties specific to Amazon Web Services (AWS). |
| 285 | +message AwsProperties { |
| 286 | + // Authentication method chosen at connection creation. |
| 287 | + oneof authentication_method { |
| 288 | + // Authentication using Google owned AWS IAM user's access key to assume |
| 289 | + // into customer's AWS IAM Role. |
| 290 | + AwsCrossAccountRole cross_account_role = 2; |
| 291 | + } |
| 292 | +} |
| 293 | + |
| 294 | +// Authentication method for Amazon Web Services (AWS) that uses Google owned |
| 295 | +// AWS IAM user's access key to assume into customer's AWS IAM Role. |
| 296 | +message AwsCrossAccountRole { |
| 297 | + // The user’s AWS IAM Role that trusts the Google-owned AWS IAM user |
| 298 | + // Connection. |
| 299 | + string iam_role_id = 1; |
| 300 | + |
| 301 | + // Output only. Google-owned AWS IAM User for a Connection. |
| 302 | + string iam_user_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; |
| 303 | + |
| 304 | + // Output only. A Google-generated id for representing Connection’s identity in AWS. |
| 305 | + // External Id is also used for preventing the Confused Deputy Problem. See |
| 306 | + // https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_create_for-user_externalid.html |
| 307 | + string external_id = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; |
| 308 | +} |