Skip to content

Commit

Permalink
Adds Identity Center PluginType and Origin constants
Browse files Browse the repository at this point in the history
  • Loading branch information
tcsc committed Oct 23, 2024
1 parent d82ee84 commit d127383
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions api/types/common/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ const (
// via a SCIM service
OriginSCIM = "scim"

// OriginAWSIdentityCenter is an Origin value indicating that a resource was
// provisioned via the Identity Center integration
OriginAWSIdentityCenter = "aws_identity_center"

// OriginIntegrationAWSOIDC is an origin value indicating that the resource was
// created from the AWS OIDC Integration.
OriginIntegrationAWSOIDC = "integration_awsoidc"
Expand All @@ -82,4 +86,5 @@ var OriginValues = []string{
OriginSCIM,
OriginDiscoveryKubernetes,
OriginEntraID,
OriginAWSIdentityCenter,
}
4 changes: 4 additions & 0 deletions api/types/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ const (
PluginTypeSCIM = "scim"
// PluginTypeDatadog indicates the Datadog Incident Management plugin
PluginTypeDatadog = "datadog"
// PluginTypeAWSIC indicates the AWS IdentityCenter integration
PluginTypeAWSIdentityCenter = "aws-identity-center"
)

// PluginSubkind represents the type of the plugin, e.g., access request, MDM etc.
Expand Down Expand Up @@ -512,6 +514,8 @@ func (p *PluginV1) GetType() PluginType {
return PluginTypeSCIM
case *PluginSpecV1_Datadog:
return PluginTypeDatadog
case *PluginSpecV1_AwsIc:
return PluginTypeAWSIC

default:
return PluginTypeUnknown
Expand Down

0 comments on commit d127383

Please sign in to comment.