@@ -24,26 +24,31 @@ type AwsReplicationConfig struct {
2424}
2525
2626type AwsAccessConfig struct {
27- OrganizationRootAccountRole string `json:"organizationRootAccountRole" tfsdk:"organization_root_account_role"`
28- OrganizationRootAccountExternalId * string `json:"organizationRootAccountExternalId,omitempty" tfsdk:"organization_root_account_external_id"`
29- ServiceUserConfig * AwsServiceUserConfig `json:"serviceUserConfig,omitempty" tfsdk:"service_user_config"`
30- WorkloadIdentityConfig * AwsWorkloadIdentityConfig `json:"workloadIdentityConfig,omitempty" tfsdk:"workload_identity_config"`
27+ OrganizationRootAccountRole string `json:"organizationRootAccountRole" tfsdk:"organization_root_account_role"`
28+ OrganizationRootAccountExternalId * string `json:"organizationRootAccountExternalId,omitempty" tfsdk:"organization_root_account_external_id"`
29+ Auth AwsAuth `json:"auth" tfsdk:"auth"`
3130}
3231
33- type AwsServiceUserConfig struct {
34- AccessKey string `json:"accessKey" tfsdk:"access_key"`
35- SecretKey string `json:"secretKey" tfsdk:"secret_key"`
32+ type AwsAuth struct {
33+ Type string `json:"type" tfsdk:"type"`
34+ Credential * AwsServiceUserCredential `json:"credential,omitempty" tfsdk:"credential"`
35+ WorkloadIdentity * AwsWorkloadIdentityCredential `json:"workloadIdentity,omitempty" tfsdk:"workload_identity"`
3636}
3737
38- type AwsWorkloadIdentityConfig struct {
38+ type AwsServiceUserCredential struct {
39+ AccessKey string `json:"accessKey" tfsdk:"access_key"`
40+ SecretKey SecretEmbedded `json:"secretKey" tfsdk:"secret_key"`
41+ }
42+
43+ type AwsWorkloadIdentityCredential struct {
3944 RoleArn string `json:"roleArn" tfsdk:"role_arn"`
4045}
4146
4247type AwsSsoConfig struct {
4348 ScimEndpoint string `json:"scimEndpoint" tfsdk:"scim_endpoint"`
4449 Arn string `json:"arn" tfsdk:"arn"`
4550 GroupNamePattern string `json:"groupNamePattern" tfsdk:"group_name_pattern"`
46- SsoAccessToken string `json:"ssoAccessToken" tfsdk:"sso_access_token"`
51+ SsoAccessToken SecretEmbedded `json:"ssoAccessToken" tfsdk:"sso_access_token"`
4752 AwsRoleMappings []AwsSsoRoleMapping `json:"awsRoleMappings" tfsdk:"aws_role_mappings"`
4853 SignInUrl string `json:"signInUrl" tfsdk:"sign_in_url"`
4954}
0 commit comments