Skip to content

Commit

Permalink
[v17] Add PluginAWSICStatusV1 to record group import status (#48660)
Browse files Browse the repository at this point in the history
Backports #48551
  • Loading branch information
tcsc authored Nov 8, 2024
1 parent 94cc854 commit 023794a
Show file tree
Hide file tree
Showing 3 changed files with 1,027 additions and 485 deletions.
29 changes: 29 additions & 0 deletions api/proto/teleport/legacy/types/types.proto
Original file line number Diff line number Diff line change
Expand Up @@ -6597,6 +6597,33 @@ message AWSICProvisioningSpec {
string bearer_token = 2;
}

// PluginAWSICStatusV1 defines AWS Identity Center plugin sub-process status.
message PluginAWSICStatusV1 {
// GroupImportStatus is a status of Identity Center group and group members import.
AWSICGroupImportStatus group_import_status = 1;
}

// AWSICGroupImportStatus defines Identity Center group and group members import status.
message AWSICGroupImportStatus {
// StatusCode is a status code of group and group members import operation.
AWSICGroupImportStatusCode status_code = 1;
// ErrorMessage contains error message for a group and group members import attempt
// that met with an error.
string error_message = 2;
}

// AWSICGroupImportStatus defines Identity Center group and group members
// import status codes.
enum AWSICGroupImportStatusCode {
// UNSPECIFIED denotes that a status is unknown.
UNSPECIFIED = 0;
// DONE denotes that the group and group members import operation was
// completed.
DONE = 1;
// FAILED denotes that the group and group members import met with an error.
FAILED = 2;
}

// PluginEmailSettings holds the settings for an Email Access Request plugin.
message PluginEmailSettings {
option (gogoproto.equal) = true;
Expand Down Expand Up @@ -6672,6 +6699,8 @@ message PluginStatusV1 {
PluginEntraIDStatusV1 entra_id = 5;
// Okta holds status details for the Okta plugin
PluginOktaStatusV1 okta = 7;
// AWSIC holds status details for the AWS Identity Center plugin.
PluginAWSICStatusV1 aws_ic = 8;
}

// last_raw_error variable stores the most recent raw error message received from an API or service.
Expand Down
1 change: 1 addition & 0 deletions api/types/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ type PluginStatus interface {
GetGitlab() *PluginGitlabStatusV1
GetEntraId() *PluginEntraIDStatusV1
GetOkta() *PluginOktaStatusV1
GetAwsIc() *PluginAWSICStatusV1
}

// NewPluginV1 creates a new PluginV1 resource.
Expand Down
Loading

0 comments on commit 023794a

Please # to comment.