Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v17] Add PluginAWSICStatusV1 to record group import status #48660

Merged
merged 2 commits into from
Nov 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading