models

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 22, 2020 License: AGPL-3.0, Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action = string

Action defines an action the organization took

const (
	// VisitedOnboardingFlow defines when an organization visited the onboarding flow
	VisitedOnboardingFlow Action = "VISITED_ONBOARDING_FLOW"
)

type AwsConfig

type AwsConfig struct {
	UserPoolID     *string `json:"userPoolId"`
	AppClientID    *string `json:"appClientId"`
	IdentityPoolID *string `json:"identityPoolId"`
}

AwsConfig defines metadata related to AWS infrastructure for the organization

type CompleteActionInput

type CompleteActionInput struct {
	CompletedActions []*Action `json:"actions"`
}

CompleteActionInput Adds a Action to an Organization

type CompleteActionOutput

type CompleteActionOutput struct {
	CompletedActions []*Action `json:"actions"`
}

CompleteActionOutput Adds a Action to an Organization

type CreateOrganizationInput

type CreateOrganizationInput struct {
	AlertReportFrequency *string            `json:"alertReportFrequency" validate:"omitempty,oneof=P1D P1W"`
	AwsConfig            *AwsConfig         `json:"awsConfig"`
	DisplayName          *string            `json:"displayName" validate:"required,min=1"`
	Email                *string            `genericapi:"redact" json:"email" validate:"required,email"`
	Phone                *string            `genericapi:"redact" json:"phone"`
	RemediationConfig    *RemediationConfig `json:"remediationConfig,omitempty"`
}

CreateOrganizationInput creates a new Panther customer account.

type CreateOrganizationOutput

type CreateOrganizationOutput struct {
	Organization *Organization `json:"organization"`
}

CreateOrganizationOutput returns the newly created organization.

type GetOrganizationInput

type GetOrganizationInput struct {
}

GetOrganizationInput retrieves the details of a Panther customer account.

type GetOrganizationOutput

type GetOrganizationOutput struct {
	Organization *Organization `json:"organization"`
}

GetOrganizationOutput is the table row representing a customer account.

type LambdaInput

type LambdaInput struct {
	CompleteAction     *CompleteActionInput     `json:"getCompletedActions"`
	CreateOrganization *CreateOrganizationInput `json:"createOrganization"`
	GetOrganization    *GetOrganizationInput    `json:"getOrganization"`
	UpdateOrganization *UpdateOrganizationInput `json:"updateOrganization"`
}

LambdaInput is the request structure for the organization-api Lambda function.

type Organization

type Organization struct {
	AlertReportFrequency *string            `json:"alertReportFrequency"`
	AwsConfig            *AwsConfig         `json:"awsConfig"`
	CompletedActions     []*Action          `dynamodbav:"completedActions,omitempty,stringset" json:"completedActions"`
	CreatedAt            *string            `json:"createdAt"`
	DisplayName          *string            `json:"displayName"`
	Email                *string            `json:"email"`
	Phone                *string            `json:"phone"`
	RemediationConfig    *RemediationConfig `json:"remediationConfig,omitempty"`
}

Organization defines the fields in the table row.

type RemediationConfig

type RemediationConfig struct {
	// Each organization will have one Lambda that is able to perform remediation for their AWS infrastructure.
	// This field contains the ARN for that Lambda.
	AwsRemediationLambdaArn *string `json:"awsRemediationLambdaArn,omitempty"`
}

RemediationConfig contains information related to Remediation actions

type UpdateOrganizationInput

type UpdateOrganizationInput struct {
	CreateOrganizationInput
}

UpdateOrganizationInput modifies the details of an existing organization.

type UpdateOrganizationOutput

type UpdateOrganizationOutput struct {
	Organization *Organization `json:"organization"`
}

UpdateOrganizationOutput is the table row representing the modified customer account.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL