public sealed class IngestionDataSourceSettings.Types.AwsMsk : IMessage<IngestionDataSourceSettings.Types.AwsMsk>, IEquatable<IngestionDataSourceSettings.Types.AwsMsk>, IDeepCloneable<IngestionDataSourceSettings.Types.AwsMsk>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud Pub/Sub v1 API class IngestionDataSourceSettings.Types.AwsMsk.
Required. AWS role ARN to be used for Federated Identity authentication
with Amazon MSK. 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 Amazon MSK (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"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis document provides reference information for the \u003ccode\u003eIngestionDataSourceSettings.Types.AwsMsk\u003c/code\u003e class within the Google Cloud Pub/Sub v1 API for .NET.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eIngestionDataSourceSettings.Types.AwsMsk\u003c/code\u003e class is used for configuring ingestion settings from Amazon MSK into Google Cloud Pub/Sub, with the latest version being 3.23.0.\u003c/p\u003e\n"],["\u003cp\u003eThe class implements interfaces such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e to allow flexibility, comparison and deep cloning of the ingestion settings.\u003c/p\u003e\n"],["\u003cp\u003eKey properties include \u003ccode\u003eAwsRoleArn\u003c/code\u003e, \u003ccode\u003eClusterArn\u003c/code\u003e, \u003ccode\u003eGcpServiceAccount\u003c/code\u003e, \u003ccode\u003eState\u003c/code\u003e, and \u003ccode\u003eTopic\u003c/code\u003e, which are used to configure the connection to the Amazon MSK cluster and define how to handle ingestion.\u003c/p\u003e\n"],["\u003cp\u003eThe document also shows a version history, with the latest version being 3.23.0 and a list of all the versions available all the way to version 2.3.0.\u003c/p\u003e\n"]]],[],null,["# Cloud Pub/Sub v1 API - Class IngestionDataSourceSettings.Types.AwsMsk (3.27.0)\n\nVersion latestkeyboard_arrow_down\n\n- [3.27.0 (latest)](/dotnet/docs/reference/Google.Cloud.PubSub.V1/latest/Google.Cloud.PubSub.V1.IngestionDataSourceSettings.Types.AwsMsk)\n- [3.26.0](/dotnet/docs/reference/Google.Cloud.PubSub.V1/3.26.0/Google.Cloud.PubSub.V1.IngestionDataSourceSettings.Types.AwsMsk)\n- [3.25.0](/dotnet/docs/reference/Google.Cloud.PubSub.V1/3.25.0/Google.Cloud.PubSub.V1.IngestionDataSourceSettings.Types.AwsMsk)\n- [3.24.0](/dotnet/docs/reference/Google.Cloud.PubSub.V1/3.24.0/Google.Cloud.PubSub.V1.IngestionDataSourceSettings.Types.AwsMsk)\n- [3.23.0](/dotnet/docs/reference/Google.Cloud.PubSub.V1/3.23.0/Google.Cloud.PubSub.V1.IngestionDataSourceSettings.Types.AwsMsk)\n- [3.22.0](/dotnet/docs/reference/Google.Cloud.PubSub.V1/3.22.0/Google.Cloud.PubSub.V1.IngestionDataSourceSettings.Types.AwsMsk)\n- [3.21.0](/dotnet/docs/reference/Google.Cloud.PubSub.V1/3.21.0/Google.Cloud.PubSub.V1.IngestionDataSourceSettings.Types.AwsMsk)\n- [3.20.0](/dotnet/docs/reference/Google.Cloud.PubSub.V1/3.20.0/Google.Cloud.PubSub.V1.IngestionDataSourceSettings.Types.AwsMsk)\n- [3.19.0](/dotnet/docs/reference/Google.Cloud.PubSub.V1/3.19.0/Google.Cloud.PubSub.V1.IngestionDataSourceSettings.Types.AwsMsk)\n- [3.18.0](/dotnet/docs/reference/Google.Cloud.PubSub.V1/3.18.0/Google.Cloud.PubSub.V1.IngestionDataSourceSettings.Types.AwsMsk)\n- [3.17.0](/dotnet/docs/reference/Google.Cloud.PubSub.V1/3.17.0/Google.Cloud.PubSub.V1.IngestionDataSourceSettings.Types.AwsMsk)\n- [3.16.0](/dotnet/docs/reference/Google.Cloud.PubSub.V1/3.16.0/Google.Cloud.PubSub.V1.IngestionDataSourceSettings.Types.AwsMsk)\n- [3.15.0](/dotnet/docs/reference/Google.Cloud.PubSub.V1/3.15.0/Google.Cloud.PubSub.V1.IngestionDataSourceSettings.Types.AwsMsk)\n- [3.14.0](/dotnet/docs/reference/Google.Cloud.PubSub.V1/3.14.0/Google.Cloud.PubSub.V1.IngestionDataSourceSettings.Types.AwsMsk)\n- [3.13.0](/dotnet/docs/reference/Google.Cloud.PubSub.V1/3.13.0/Google.Cloud.PubSub.V1.IngestionDataSourceSettings.Types.AwsMsk)\n- [3.12.0](/dotnet/docs/reference/Google.Cloud.PubSub.V1/3.12.0/Google.Cloud.PubSub.V1.IngestionDataSourceSettings.Types.AwsMsk)\n- [3.11.0](/dotnet/docs/reference/Google.Cloud.PubSub.V1/3.11.0/Google.Cloud.PubSub.V1.IngestionDataSourceSettings.Types.AwsMsk)\n- [3.10.1](/dotnet/docs/reference/Google.Cloud.PubSub.V1/3.10.1/Google.Cloud.PubSub.V1.IngestionDataSourceSettings.Types.AwsMsk)\n- [3.9.1](/dotnet/docs/reference/Google.Cloud.PubSub.V1/3.9.1/Google.Cloud.PubSub.V1.IngestionDataSourceSettings.Types.AwsMsk)\n- [3.8.0](/dotnet/docs/reference/Google.Cloud.PubSub.V1/3.8.0/Google.Cloud.PubSub.V1.IngestionDataSourceSettings.Types.AwsMsk)\n- [3.7.0](/dotnet/docs/reference/Google.Cloud.PubSub.V1/3.7.0/Google.Cloud.PubSub.V1.IngestionDataSourceSettings.Types.AwsMsk)\n- [3.6.0](/dotnet/docs/reference/Google.Cloud.PubSub.V1/3.6.0/Google.Cloud.PubSub.V1.IngestionDataSourceSettings.Types.AwsMsk)\n- [3.5.1](/dotnet/docs/reference/Google.Cloud.PubSub.V1/3.5.1/Google.Cloud.PubSub.V1.IngestionDataSourceSettings.Types.AwsMsk)\n- [3.4.0](/dotnet/docs/reference/Google.Cloud.PubSub.V1/3.4.0/Google.Cloud.PubSub.V1.IngestionDataSourceSettings.Types.AwsMsk)\n- [3.3.0](/dotnet/docs/reference/Google.Cloud.PubSub.V1/3.3.0/Google.Cloud.PubSub.V1.IngestionDataSourceSettings.Types.AwsMsk)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.PubSub.V1/3.2.0/Google.Cloud.PubSub.V1.IngestionDataSourceSettings.Types.AwsMsk)\n- [3.1.0](/dotnet/docs/reference/Google.Cloud.PubSub.V1/3.1.0/Google.Cloud.PubSub.V1.IngestionDataSourceSettings.Types.AwsMsk)\n- [3.0.0](/dotnet/docs/reference/Google.Cloud.PubSub.V1/3.0.0/Google.Cloud.PubSub.V1.IngestionDataSourceSettings.Types.AwsMsk)\n- [2.10.0](/dotnet/docs/reference/Google.Cloud.PubSub.V1/2.10.0/Google.Cloud.PubSub.V1.IngestionDataSourceSettings.Types.AwsMsk)\n- [2.9.0](/dotnet/docs/reference/Google.Cloud.PubSub.V1/2.9.0/Google.Cloud.PubSub.V1.IngestionDataSourceSettings.Types.AwsMsk)\n- [2.8.0](/dotnet/docs/reference/Google.Cloud.PubSub.V1/2.8.0/Google.Cloud.PubSub.V1.IngestionDataSourceSettings.Types.AwsMsk)\n- [2.7.0](/dotnet/docs/reference/Google.Cloud.PubSub.V1/2.7.0/Google.Cloud.PubSub.V1.IngestionDataSourceSettings.Types.AwsMsk)\n- [2.6.0](/dotnet/docs/reference/Google.Cloud.PubSub.V1/2.6.0/Google.Cloud.PubSub.V1.IngestionDataSourceSettings.Types.AwsMsk)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.PubSub.V1/2.5.0/Google.Cloud.PubSub.V1.IngestionDataSourceSettings.Types.AwsMsk)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.PubSub.V1/2.4.0/Google.Cloud.PubSub.V1.IngestionDataSourceSettings.Types.AwsMsk)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.PubSub.V1/2.3.0/Google.Cloud.PubSub.V1.IngestionDataSourceSettings.Types.AwsMsk) \n\n public sealed class IngestionDataSourceSettings.Types.AwsMsk : IMessage\u003cIngestionDataSourceSettings.Types.AwsMsk\u003e, IEquatable\u003cIngestionDataSourceSettings.Types.AwsMsk\u003e, IDeepCloneable\u003cIngestionDataSourceSettings.Types.AwsMsk\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Cloud Pub/Sub v1 API class IngestionDataSourceSettings.Types.AwsMsk.\n\nIngestion settings for Amazon MSK. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e IngestionDataSourceSettings.Types.AwsMsk \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[IngestionDataSourceSettings](/dotnet/docs/reference/Google.Cloud.PubSub.V1/latest/Google.Cloud.PubSub.V1.IngestionDataSourceSettings)[Types](/dotnet/docs/reference/Google.Cloud.PubSub.V1/latest/Google.Cloud.PubSub.V1.IngestionDataSourceSettings.Types)[AwsMsk](/dotnet/docs/reference/Google.Cloud.PubSub.V1/latest/Google.Cloud.PubSub.V1.IngestionDataSourceSettings.Types.AwsMsk), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[IngestionDataSourceSettings](/dotnet/docs/reference/Google.Cloud.PubSub.V1/latest/Google.Cloud.PubSub.V1.IngestionDataSourceSettings)[Types](/dotnet/docs/reference/Google.Cloud.PubSub.V1/latest/Google.Cloud.PubSub.V1.IngestionDataSourceSettings.Types)[AwsMsk](/dotnet/docs/reference/Google.Cloud.PubSub.V1/latest/Google.Cloud.PubSub.V1.IngestionDataSourceSettings.Types.AwsMsk), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[IngestionDataSourceSettings](/dotnet/docs/reference/Google.Cloud.PubSub.V1/latest/Google.Cloud.PubSub.V1.IngestionDataSourceSettings)[Types](/dotnet/docs/reference/Google.Cloud.PubSub.V1/latest/Google.Cloud.PubSub.V1.IngestionDataSourceSettings.Types)[AwsMsk](/dotnet/docs/reference/Google.Cloud.PubSub.V1/latest/Google.Cloud.PubSub.V1.IngestionDataSourceSettings.Types.AwsMsk), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.PubSub.V1](/dotnet/docs/reference/Google.Cloud.PubSub.V1/latest/Google.Cloud.PubSub.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.PubSub.V1.dll\n\nConstructors\n------------\n\n### AwsMsk()\n\n public AwsMsk()\n\n### AwsMsk(AwsMsk)\n\n public AwsMsk(IngestionDataSourceSettings.Types.AwsMsk other)\n\nProperties\n----------\n\n### AwsRoleArn\n\n public string AwsRoleArn { get; set; }\n\nRequired. AWS role ARN to be used for Federated Identity authentication\nwith Amazon MSK. Check the Pub/Sub docs for how to set up this role and\nthe required permissions that need to be attached to it.\n\n### ClusterArn\n\n public string ClusterArn { get; set; }\n\nRequired. The Amazon Resource Name (ARN) that uniquely identifies the\ncluster.\n\n### GcpServiceAccount\n\n public string GcpServiceAccount { get; set; }\n\nRequired. The GCP service account to be used for Federated Identity\nauthentication with Amazon MSK (via a `AssumeRoleWithWebIdentity` call\nfor the provided role). The `aws_role_arn` must be set up with\n`accounts.google.com:sub` equals to this service account number.\n\n### State\n\n public IngestionDataSourceSettings.Types.AwsMsk.Types.State State { get; set; }\n\nOutput only. An output-only field that indicates the state of the Amazon\nMSK ingestion source.\n\n### Topic\n\n public string Topic { get; set; }\n\nRequired. The name of the topic in the Amazon MSK cluster that Pub/Sub\nwill import from."]]