public sealed class AwsMetadata.Types.AwsAccount : IMessage<AwsMetadata.Types.AwsAccount>, IEquatable<AwsMetadata.Types.AwsAccount>, IDeepCloneable<AwsMetadata.Types.AwsAccount>, IBufferMessage, IMessage
Reference documentation and code samples for the Security Command Center v2 API class AwsMetadata.Types.AwsAccount.
An AWS account that is a member of an organization.
[[["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-07 UTC."],[[["\u003cp\u003eThis document provides reference documentation for the \u003ccode\u003eAwsMetadata.Types.AwsAccount\u003c/code\u003e class within the Security Command Center v2 API.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eAwsAccount\u003c/code\u003e class represents an AWS account that is part of an organization and inherits from the \u003ccode\u003eobject\u003c/code\u003e class.\u003c/p\u003e\n"],["\u003cp\u003eIt 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.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes properties for \u003ccode\u003eId\u003c/code\u003e, which is the unique 12-digit identifier of the account, and \u003ccode\u003eName\u003c/code\u003e, which represents the user friendly name of the account.\u003c/p\u003e\n"],["\u003cp\u003eTwo constructors are available for the class, one that is empty, and one that takes another instance of \u003ccode\u003eAwsMetadata.Types.AwsAccount\u003c/code\u003e as a parameter.\u003c/p\u003e\n"]]],[],null,["# Security Command Center v2 API - Class AwsMetadata.Types.AwsAccount (1.2.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.2.0 (latest)](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.AwsMetadata.Types.AwsAccount)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/1.1.0/Google.Cloud.SecurityCenter.V2.AwsMetadata.Types.AwsAccount)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/1.0.0/Google.Cloud.SecurityCenter.V2.AwsMetadata.Types.AwsAccount) \n\n public sealed class AwsMetadata.Types.AwsAccount : IMessage\u003cAwsMetadata.Types.AwsAccount\u003e, IEquatable\u003cAwsMetadata.Types.AwsAccount\u003e, IDeepCloneable\u003cAwsMetadata.Types.AwsAccount\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Security Command Center v2 API class AwsMetadata.Types.AwsAccount.\n\nAn AWS account that is a member of an organization. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e AwsMetadata.Types.AwsAccount \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[AwsMetadata](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.AwsMetadata)[Types](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.AwsMetadata.Types)[AwsAccount](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.AwsMetadata.Types.AwsAccount), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[AwsMetadata](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.AwsMetadata)[Types](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.AwsMetadata.Types)[AwsAccount](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.AwsMetadata.Types.AwsAccount), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[AwsMetadata](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.AwsMetadata)[Types](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.AwsMetadata.Types)[AwsAccount](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.AwsMetadata.Types.AwsAccount), [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.SecurityCenter.V2](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2)\n\nAssembly\n--------\n\nGoogle.Cloud.SecurityCenter.V2.dll\n\nConstructors\n------------\n\n### AwsAccount()\n\n public AwsAccount()\n\n### AwsAccount(AwsAccount)\n\n public AwsAccount(AwsMetadata.Types.AwsAccount other)\n\nProperties\n----------\n\n### Id\n\n public string Id { get; set; }\n\nThe unique identifier (ID) of the account, containing exactly 12 digits.\n\n### Name\n\n public string Name { get; set; }\n\nThe friendly name of this account."]]