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.
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.
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.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Interface IngestionDataSourceSettings.AwsKinesisOrBuilder (1.141.2)\n\nVersion latestkeyboard_arrow_down\n\n- [1.141.2 (latest)](/java/docs/reference/google-cloud-pubsub/latest/com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesisOrBuilder)\n- [1.141.1](/java/docs/reference/google-cloud-pubsub/1.141.1/com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesisOrBuilder)\n- [1.140.2](/java/docs/reference/google-cloud-pubsub/1.140.2/com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesisOrBuilder)\n- [1.139.4](/java/docs/reference/google-cloud-pubsub/1.139.4/com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesisOrBuilder)\n- [1.138.0](/java/docs/reference/google-cloud-pubsub/1.138.0/com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesisOrBuilder)\n- [1.137.1](/java/docs/reference/google-cloud-pubsub/1.137.1/com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesisOrBuilder)\n- [1.136.1](/java/docs/reference/google-cloud-pubsub/1.136.1/com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesisOrBuilder)\n- [1.135.0](/java/docs/reference/google-cloud-pubsub/1.135.0/com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesisOrBuilder)\n- [1.134.2](/java/docs/reference/google-cloud-pubsub/1.134.2/com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesisOrBuilder)\n- [1.133.1](/java/docs/reference/google-cloud-pubsub/1.133.1/com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesisOrBuilder)\n- [1.132.2](/java/docs/reference/google-cloud-pubsub/1.132.2/com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesisOrBuilder)\n- [1.131.0](/java/docs/reference/google-cloud-pubsub/1.131.0/com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesisOrBuilder)\n- [1.130.0](/java/docs/reference/google-cloud-pubsub/1.130.0/com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesisOrBuilder)\n- [1.129.6](/java/docs/reference/google-cloud-pubsub/1.129.6/com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesisOrBuilder)\n- [1.127.3](/java/docs/reference/google-cloud-pubsub/1.127.3/com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesisOrBuilder)\n- [1.126.6](/java/docs/reference/google-cloud-pubsub/1.126.6/com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesisOrBuilder)\n- [1.125.13](/java/docs/reference/google-cloud-pubsub/1.125.13/com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesisOrBuilder)\n- [1.123.18](/java/docs/reference/google-cloud-pubsub/1.123.18/com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesisOrBuilder)\n- [1.122.2](/java/docs/reference/google-cloud-pubsub/1.122.2/com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesisOrBuilder)\n- [1.121.1](/java/docs/reference/google-cloud-pubsub/1.121.1/com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesisOrBuilder)\n- [1.120.24](/java/docs/reference/google-cloud-pubsub/1.120.24/com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesisOrBuilder)\n- [1.119.1](/java/docs/reference/google-cloud-pubsub/1.119.1/com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesisOrBuilder)\n- [1.118.0](/java/docs/reference/google-cloud-pubsub/1.118.0/com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesisOrBuilder)\n- [1.117.0](/java/docs/reference/google-cloud-pubsub/1.117.0/com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesisOrBuilder)\n- [1.116.4](/java/docs/reference/google-cloud-pubsub/1.116.4/com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesisOrBuilder)\n- [1.115.5](/java/docs/reference/google-cloud-pubsub/1.115.5/com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesisOrBuilder) \n\n public static interface IngestionDataSourceSettings.AwsKinesisOrBuilder extends MessageOrBuilder\n\nImplements\n----------\n\n[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)\n\nMethods\n-------\n\n### getAwsRoleArn()\n\n public abstract String getAwsRoleArn()\n\nRequired. AWS role ARN to be used for Federated Identity authentication\nwith Kinesis. Check the Pub/Sub docs for how to set up this role and the\nrequired permissions that need to be attached to it.\n\n`string aws_role_arn = 4 [(.google.api.field_behavior) = REQUIRED];`\n\n### getAwsRoleArnBytes()\n\n public abstract ByteString getAwsRoleArnBytes()\n\nRequired. AWS role ARN to be used for Federated Identity authentication\nwith Kinesis. Check the Pub/Sub docs for how to set up this role and the\nrequired permissions that need to be attached to it.\n\n`string aws_role_arn = 4 [(.google.api.field_behavior) = REQUIRED];`\n\n### getConsumerArn()\n\n public abstract String getConsumerArn()\n\nRequired. The Kinesis consumer ARN to used for ingestion in Enhanced\nFan-Out mode. The consumer must be already created and ready to be used.\n\n`string consumer_arn = 3 [(.google.api.field_behavior) = REQUIRED];`\n\n### getConsumerArnBytes()\n\n public abstract ByteString getConsumerArnBytes()\n\nRequired. The Kinesis consumer ARN to used for ingestion in Enhanced\nFan-Out mode. The consumer must be already created and ready to be used.\n\n`string consumer_arn = 3 [(.google.api.field_behavior) = REQUIRED];`\n\n### getGcpServiceAccount()\n\n public abstract String getGcpServiceAccount()\n\nRequired. The GCP service account to be used for Federated Identity\nauthentication with Kinesis (via a `AssumeRoleWithWebIdentity` call for\nthe provided role). The `aws_role_arn` must be set up with\n`accounts.google.com:sub` equals to this service account number.\n\n`string gcp_service_account = 5 [(.google.api.field_behavior) = REQUIRED];`\n\n### getGcpServiceAccountBytes()\n\n public abstract ByteString getGcpServiceAccountBytes()\n\nRequired. The GCP service account to be used for Federated Identity\nauthentication with Kinesis (via a `AssumeRoleWithWebIdentity` call for\nthe provided role). The `aws_role_arn` must be set up with\n`accounts.google.com:sub` equals to this service account number.\n\n`string gcp_service_account = 5 [(.google.api.field_behavior) = REQUIRED];`\n\n### getState()\n\n public abstract IngestionDataSourceSettings.AwsKinesis.State getState()\n\nOutput only. An output-only field that indicates the state of the Kinesis\ningestion source.\n\n`\n.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];\n`\n\n### getStateValue()\n\n public abstract int getStateValue()\n\nOutput only. An output-only field that indicates the state of the Kinesis\ningestion source.\n\n`\n.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];\n`\n\n### getStreamArn()\n\n public abstract String getStreamArn()\n\nRequired. The Kinesis stream ARN to ingest data from.\n\n`string stream_arn = 2 [(.google.api.field_behavior) = REQUIRED];`\n\n### getStreamArnBytes()\n\n public abstract ByteString getStreamArnBytes()\n\nRequired. The Kinesis stream ARN to ingest data from.\n\n`string stream_arn = 2 [(.google.api.field_behavior) = REQUIRED];`"]]