@@ -139,7 +139,12 @@ public class CredentialProfileOptions
139
139
/// Provided by the SSO service via the web console.
140
140
/// </summary>
141
141
public string SsoStartUrl { get ; set ; }
142
-
142
+
143
+ /// <summary>
144
+ /// The account id to use for account id based endpoint routing
145
+ /// </summary>
146
+ public string AwsAccountId { get ; set ; }
147
+
143
148
/// <summary>
144
149
/// Return true the properties are all null or empty, false otherwise.
145
150
/// </summary>
@@ -167,7 +172,8 @@ internal bool IsEmpty
167
172
string . IsNullOrEmpty ( SsoRoleName ) &&
168
173
string . IsNullOrEmpty ( SsoStartUrl ) &&
169
174
string . IsNullOrEmpty ( SsoSession ) &&
170
- string . IsNullOrEmpty ( WebIdentityTokenFile ) ;
175
+ string . IsNullOrEmpty ( WebIdentityTokenFile ) &&
176
+ string . IsNullOrEmpty ( AwsAccountId ) ;
171
177
}
172
178
}
173
179
public override string ToString ( )
@@ -193,6 +199,7 @@ public override string ToString()
193
199
", " + "SsoRoleName=" + SsoRoleName +
194
200
", " + "SsoStartUrl=" + SsoStartUrl +
195
201
", " + "SsoSession=" + SsoSession +
202
+ ", " + "AwsAccountId=" + AwsAccountId +
196
203
"]" ;
197
204
}
198
205
@@ -206,13 +213,13 @@ public override bool Equals(object obj)
206
213
return false ;
207
214
208
215
return AWSSDKUtils . AreEqual (
209
- new object [ ] { AccessKey , EndpointName , ExternalID , MfaSerial , RoleArn , RoleSessionName , SecretKey , SourceProfile , Token , UserIdentity , CredentialProcess , WebIdentityTokenFile , SsoAccountId , SsoRegion , SsoRegistrationScopes , SsoRoleName , SsoStartUrl , SsoSession , Services , EndpointUrl } ,
210
- new object [ ] { po . AccessKey , po . EndpointName , po . ExternalID , po . MfaSerial , po . RoleArn , po . RoleSessionName , po . SecretKey , po . SourceProfile , po . Token , po . UserIdentity , po . CredentialProcess , po . WebIdentityTokenFile , po . SsoAccountId , po . SsoRegion , po . SsoRegistrationScopes , po . SsoRoleName , po . SsoStartUrl , po . SsoSession , po . Services , po . EndpointUrl } ) ;
216
+ new object [ ] { AccessKey , EndpointName , ExternalID , MfaSerial , RoleArn , RoleSessionName , SecretKey , SourceProfile , Token , UserIdentity , CredentialProcess , WebIdentityTokenFile , SsoAccountId , SsoRegion , SsoRegistrationScopes , SsoRoleName , SsoStartUrl , SsoSession , Services , EndpointUrl , AwsAccountId } ,
217
+ new object [ ] { po . AccessKey , po . EndpointName , po . ExternalID , po . MfaSerial , po . RoleArn , po . RoleSessionName , po . SecretKey , po . SourceProfile , po . Token , po . UserIdentity , po . CredentialProcess , po . WebIdentityTokenFile , po . SsoAccountId , po . SsoRegion , po . SsoRegistrationScopes , po . SsoRoleName , po . SsoStartUrl , po . SsoSession , po . Services , po . EndpointUrl , po . AwsAccountId } ) ;
211
218
}
212
219
213
220
public override int GetHashCode ( )
214
221
{
215
- return Hashing . Hash ( AccessKey , EndpointName , ExternalID , MfaSerial , RoleArn , RoleSessionName , SecretKey , SourceProfile , Token , UserIdentity , CredentialProcess , WebIdentityTokenFile , SsoAccountId , SsoRegion , SsoRegistrationScopes , SsoRoleName , SsoStartUrl , SsoSession , Services , EndpointUrl ) ;
222
+ return Hashing . Hash ( AccessKey , EndpointName , ExternalID , MfaSerial , RoleArn , RoleSessionName , SecretKey , SourceProfile , Token , UserIdentity , CredentialProcess , WebIdentityTokenFile , SsoAccountId , SsoRegion , SsoRegistrationScopes , SsoRoleName , SsoStartUrl , SsoSession , Services , EndpointUrl , AwsAccountId ) ;
216
223
}
217
224
}
218
225
}
0 commit comments