@@ -786,50 +786,50 @@ internal struct NodeAddress
786786 }
787787
788788 [ StructLayout ( LayoutKind . Sequential , CharSet = CharSet . Ansi ) ]
789- internal struct AuthenticationInfo ( string ? username , string ? password , IamCredentials ? iamCredentials )
789+ internal readonly struct AuthenticationInfo ( string ? username , string ? password , IamCredentials ? iamCredentials )
790790 {
791791 /// <summary>
792792 /// Username for authentication.
793793 /// </summary>
794794 [ MarshalAs ( UnmanagedType . LPStr ) ]
795- public string ? Username = username ;
795+ public readonly string ? Username = username ;
796796
797797 /// <summary>
798798 /// Password for authentication.
799799 /// </summary>
800800 [ MarshalAs ( UnmanagedType . LPStr ) ]
801- public string ? Password = password ;
801+ public readonly string ? Password = password ;
802802
803803 /// <summary>
804804 /// IAM credentials for authentication.
805805 /// </summary>
806- public IamCredentials ? IamCredentials = iamCredentials ;
806+ public readonly IamCredentials ? IamCredentials = iamCredentials ;
807807 }
808808
809809 [ StructLayout ( LayoutKind . Sequential , CharSet = CharSet . Ansi ) ]
810- internal struct IamCredentials ( string clusterName , string region , ServiceType serviceType , uint ? refreshIntervalSeconds )
810+ internal readonly struct IamCredentials ( string clusterName , string region , ServiceType serviceType , uint ? refreshIntervalSeconds )
811811 {
812812 /// <summary>
813813 /// The name of the cluster for IAM authentication.
814814 /// </summary>
815815 [ MarshalAs ( UnmanagedType . LPStr ) ]
816- public string ClusterName = clusterName ;
816+ public readonly string ClusterName = clusterName ;
817817
818818 /// <summary>
819819 /// The AWS region for IAM authentication.
820820 /// </summary>
821821 [ MarshalAs ( UnmanagedType . LPStr ) ]
822- public string Region = region ;
822+ public readonly string Region = region ;
823823
824824 /// <summary>
825825 /// The AWS service type for IAM authentication.
826826 /// </summary>
827- public ServiceType ServiceType = serviceType ;
827+ public readonly ServiceType ServiceType = serviceType ;
828828
829829 /// <summary>
830830 /// The refresh interval in seconds for IAM authentication.
831831 /// </summary>
832- public uint ? RefreshIntervalSeconds = refreshIntervalSeconds ;
832+ public readonly uint ? RefreshIntervalSeconds = refreshIntervalSeconds ;
833833 }
834834
835835 internal enum ServiceType : uint
0 commit comments