conditionalaccesspolicy

package
v0.0.0-...-c2cc54e Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Applications

type Applications struct {
	// ExcludedApplications: list of string, optional
	ExcludedApplications terra.ListValue[terra.StringValue] `hcl:"excluded_applications,attr"`
	// IncludedApplications: list of string, optional
	IncludedApplications terra.ListValue[terra.StringValue] `hcl:"included_applications,attr"`
	// IncludedUserActions: list of string, optional
	IncludedUserActions terra.ListValue[terra.StringValue] `hcl:"included_user_actions,attr"`
}

type ApplicationsAttributes

type ApplicationsAttributes struct {
	// contains filtered or unexported fields
}

func (ApplicationsAttributes) ExcludedApplications

func (a ApplicationsAttributes) ExcludedApplications() terra.ListValue[terra.StringValue]

func (ApplicationsAttributes) IncludedApplications

func (a ApplicationsAttributes) IncludedApplications() terra.ListValue[terra.StringValue]

func (ApplicationsAttributes) IncludedUserActions

func (a ApplicationsAttributes) IncludedUserActions() terra.ListValue[terra.StringValue]

func (ApplicationsAttributes) InternalRef

func (a ApplicationsAttributes) InternalRef() (terra.Reference, error)

func (ApplicationsAttributes) InternalTokens

func (a ApplicationsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ApplicationsAttributes) InternalWithRef

type ApplicationsState

type ApplicationsState struct {
	ExcludedApplications []string `json:"excluded_applications"`
	IncludedApplications []string `json:"included_applications"`
	IncludedUserActions  []string `json:"included_user_actions"`
}

type ClientApplications

type ClientApplications struct {
	// ExcludedServicePrincipals: list of string, optional
	ExcludedServicePrincipals terra.ListValue[terra.StringValue] `hcl:"excluded_service_principals,attr"`
	// IncludedServicePrincipals: list of string, optional
	IncludedServicePrincipals terra.ListValue[terra.StringValue] `hcl:"included_service_principals,attr"`
}

type ClientApplicationsAttributes

type ClientApplicationsAttributes struct {
	// contains filtered or unexported fields
}

func (ClientApplicationsAttributes) ExcludedServicePrincipals

func (ca ClientApplicationsAttributes) ExcludedServicePrincipals() terra.ListValue[terra.StringValue]

func (ClientApplicationsAttributes) IncludedServicePrincipals

func (ca ClientApplicationsAttributes) IncludedServicePrincipals() terra.ListValue[terra.StringValue]

func (ClientApplicationsAttributes) InternalRef

func (ca ClientApplicationsAttributes) InternalRef() (terra.Reference, error)

func (ClientApplicationsAttributes) InternalTokens

func (ca ClientApplicationsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ClientApplicationsAttributes) InternalWithRef

type ClientApplicationsState

type ClientApplicationsState struct {
	ExcludedServicePrincipals []string `json:"excluded_service_principals"`
	IncludedServicePrincipals []string `json:"included_service_principals"`
}

type Conditions

type Conditions struct {
	// ClientAppTypes: list of string, required
	ClientAppTypes terra.ListValue[terra.StringValue] `hcl:"client_app_types,attr" validate:"required"`
	// ServicePrincipalRiskLevels: list of string, optional
	ServicePrincipalRiskLevels terra.ListValue[terra.StringValue] `hcl:"service_principal_risk_levels,attr"`
	// SignInRiskLevels: list of string, optional
	SignInRiskLevels terra.ListValue[terra.StringValue] `hcl:"sign_in_risk_levels,attr"`
	// UserRiskLevels: list of string, optional
	UserRiskLevels terra.ListValue[terra.StringValue] `hcl:"user_risk_levels,attr"`
	// Applications: required
	Applications *Applications `hcl:"applications,block" validate:"required"`
	// ClientApplications: optional
	ClientApplications *ClientApplications `hcl:"client_applications,block"`
	// Devices: optional
	Devices *Devices `hcl:"devices,block"`
	// Locations: optional
	Locations *Locations `hcl:"locations,block"`
	// Platforms: optional
	Platforms *Platforms `hcl:"platforms,block"`
	// Users: required
	Users *Users `hcl:"users,block" validate:"required"`
}

type ConditionsAttributes

type ConditionsAttributes struct {
	// contains filtered or unexported fields
}

func (ConditionsAttributes) Applications

func (ConditionsAttributes) ClientAppTypes

func (ConditionsAttributes) ClientApplications

func (ConditionsAttributes) Devices

func (ConditionsAttributes) InternalRef

func (c ConditionsAttributes) InternalRef() (terra.Reference, error)

func (ConditionsAttributes) InternalTokens

func (c ConditionsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ConditionsAttributes) InternalWithRef

func (ConditionsAttributes) Locations

func (ConditionsAttributes) Platforms

func (ConditionsAttributes) ServicePrincipalRiskLevels

func (c ConditionsAttributes) ServicePrincipalRiskLevels() terra.ListValue[terra.StringValue]

func (ConditionsAttributes) SignInRiskLevels

func (c ConditionsAttributes) SignInRiskLevels() terra.ListValue[terra.StringValue]

func (ConditionsAttributes) UserRiskLevels

func (ConditionsAttributes) Users

type ConditionsState

type ConditionsState struct {
	ClientAppTypes             []string                  `json:"client_app_types"`
	ServicePrincipalRiskLevels []string                  `json:"service_principal_risk_levels"`
	SignInRiskLevels           []string                  `json:"sign_in_risk_levels"`
	UserRiskLevels             []string                  `json:"user_risk_levels"`
	Applications               []ApplicationsState       `json:"applications"`
	ClientApplications         []ClientApplicationsState `json:"client_applications"`
	Devices                    []DevicesState            `json:"devices"`
	Locations                  []LocationsState          `json:"locations"`
	Platforms                  []PlatformsState          `json:"platforms"`
	Users                      []UsersState              `json:"users"`
}

type Devices

type Devices struct {
	// Filter: optional
	Filter *Filter `hcl:"filter,block"`
}

type DevicesAttributes

type DevicesAttributes struct {
	// contains filtered or unexported fields
}

func (DevicesAttributes) Filter

func (DevicesAttributes) InternalRef

func (d DevicesAttributes) InternalRef() (terra.Reference, error)

func (DevicesAttributes) InternalTokens

func (d DevicesAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DevicesAttributes) InternalWithRef

func (d DevicesAttributes) InternalWithRef(ref terra.Reference) DevicesAttributes

type DevicesState

type DevicesState struct {
	Filter []FilterState `json:"filter"`
}

type Filter

type Filter struct {
	// Mode: string, required
	Mode terra.StringValue `hcl:"mode,attr" validate:"required"`
	// Rule: string, required
	Rule terra.StringValue `hcl:"rule,attr" validate:"required"`
}

type FilterAttributes

type FilterAttributes struct {
	// contains filtered or unexported fields
}

func (FilterAttributes) InternalRef

func (f FilterAttributes) InternalRef() (terra.Reference, error)

func (FilterAttributes) InternalTokens

func (f FilterAttributes) InternalTokens() (hclwrite.Tokens, error)

func (FilterAttributes) InternalWithRef

func (f FilterAttributes) InternalWithRef(ref terra.Reference) FilterAttributes

func (FilterAttributes) Mode

func (FilterAttributes) Rule

type FilterState

type FilterState struct {
	Mode string `json:"mode"`
	Rule string `json:"rule"`
}

type GrantControls

type GrantControls struct {
	// BuiltInControls: list of string, optional
	BuiltInControls terra.ListValue[terra.StringValue] `hcl:"built_in_controls,attr"`
	// CustomAuthenticationFactors: list of string, optional
	CustomAuthenticationFactors terra.ListValue[terra.StringValue] `hcl:"custom_authentication_factors,attr"`
	// Operator: string, required
	Operator terra.StringValue `hcl:"operator,attr" validate:"required"`
	// TermsOfUse: list of string, optional
	TermsOfUse terra.ListValue[terra.StringValue] `hcl:"terms_of_use,attr"`
}

type GrantControlsAttributes

type GrantControlsAttributes struct {
	// contains filtered or unexported fields
}

func (GrantControlsAttributes) BuiltInControls

func (GrantControlsAttributes) CustomAuthenticationFactors

func (gc GrantControlsAttributes) CustomAuthenticationFactors() terra.ListValue[terra.StringValue]

func (GrantControlsAttributes) InternalRef

func (gc GrantControlsAttributes) InternalRef() (terra.Reference, error)

func (GrantControlsAttributes) InternalTokens

func (gc GrantControlsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (GrantControlsAttributes) InternalWithRef

func (GrantControlsAttributes) Operator

func (GrantControlsAttributes) TermsOfUse

type GrantControlsState

type GrantControlsState struct {
	BuiltInControls             []string `json:"built_in_controls"`
	CustomAuthenticationFactors []string `json:"custom_authentication_factors"`
	Operator                    string   `json:"operator"`
	TermsOfUse                  []string `json:"terms_of_use"`
}

type Locations

type Locations struct {
	// ExcludedLocations: list of string, optional
	ExcludedLocations terra.ListValue[terra.StringValue] `hcl:"excluded_locations,attr"`
	// IncludedLocations: list of string, required
	IncludedLocations terra.ListValue[terra.StringValue] `hcl:"included_locations,attr" validate:"required"`
}

type LocationsAttributes

type LocationsAttributes struct {
	// contains filtered or unexported fields
}

func (LocationsAttributes) ExcludedLocations

func (l LocationsAttributes) ExcludedLocations() terra.ListValue[terra.StringValue]

func (LocationsAttributes) IncludedLocations

func (l LocationsAttributes) IncludedLocations() terra.ListValue[terra.StringValue]

func (LocationsAttributes) InternalRef

func (l LocationsAttributes) InternalRef() (terra.Reference, error)

func (LocationsAttributes) InternalTokens

func (l LocationsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (LocationsAttributes) InternalWithRef

func (l LocationsAttributes) InternalWithRef(ref terra.Reference) LocationsAttributes

type LocationsState

type LocationsState struct {
	ExcludedLocations []string `json:"excluded_locations"`
	IncludedLocations []string `json:"included_locations"`
}

type Platforms

type Platforms struct {
	// ExcludedPlatforms: list of string, optional
	ExcludedPlatforms terra.ListValue[terra.StringValue] `hcl:"excluded_platforms,attr"`
	// IncludedPlatforms: list of string, required
	IncludedPlatforms terra.ListValue[terra.StringValue] `hcl:"included_platforms,attr" validate:"required"`
}

type PlatformsAttributes

type PlatformsAttributes struct {
	// contains filtered or unexported fields
}

func (PlatformsAttributes) ExcludedPlatforms

func (p PlatformsAttributes) ExcludedPlatforms() terra.ListValue[terra.StringValue]

func (PlatformsAttributes) IncludedPlatforms

func (p PlatformsAttributes) IncludedPlatforms() terra.ListValue[terra.StringValue]

func (PlatformsAttributes) InternalRef

func (p PlatformsAttributes) InternalRef() (terra.Reference, error)

func (PlatformsAttributes) InternalTokens

func (p PlatformsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (PlatformsAttributes) InternalWithRef

func (p PlatformsAttributes) InternalWithRef(ref terra.Reference) PlatformsAttributes

type PlatformsState

type PlatformsState struct {
	ExcludedPlatforms []string `json:"excluded_platforms"`
	IncludedPlatforms []string `json:"included_platforms"`
}

type SessionControls

type SessionControls struct {
	// ApplicationEnforcedRestrictionsEnabled: bool, optional
	ApplicationEnforcedRestrictionsEnabled terra.BoolValue `hcl:"application_enforced_restrictions_enabled,attr"`
	// CloudAppSecurityPolicy: string, optional
	CloudAppSecurityPolicy terra.StringValue `hcl:"cloud_app_security_policy,attr"`
	// DisableResilienceDefaults: bool, optional
	DisableResilienceDefaults terra.BoolValue `hcl:"disable_resilience_defaults,attr"`
	// PersistentBrowserMode: string, optional
	PersistentBrowserMode terra.StringValue `hcl:"persistent_browser_mode,attr"`
	// SignInFrequency: number, optional
	SignInFrequency terra.NumberValue `hcl:"sign_in_frequency,attr"`
	// SignInFrequencyPeriod: string, optional
	SignInFrequencyPeriod terra.StringValue `hcl:"sign_in_frequency_period,attr"`
}

type SessionControlsAttributes

type SessionControlsAttributes struct {
	// contains filtered or unexported fields
}

func (SessionControlsAttributes) ApplicationEnforcedRestrictionsEnabled

func (sc SessionControlsAttributes) ApplicationEnforcedRestrictionsEnabled() terra.BoolValue

func (SessionControlsAttributes) CloudAppSecurityPolicy

func (sc SessionControlsAttributes) CloudAppSecurityPolicy() terra.StringValue

func (SessionControlsAttributes) DisableResilienceDefaults

func (sc SessionControlsAttributes) DisableResilienceDefaults() terra.BoolValue

func (SessionControlsAttributes) InternalRef

func (sc SessionControlsAttributes) InternalRef() (terra.Reference, error)

func (SessionControlsAttributes) InternalTokens

func (sc SessionControlsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (SessionControlsAttributes) InternalWithRef

func (SessionControlsAttributes) PersistentBrowserMode

func (sc SessionControlsAttributes) PersistentBrowserMode() terra.StringValue

func (SessionControlsAttributes) SignInFrequency

func (sc SessionControlsAttributes) SignInFrequency() terra.NumberValue

func (SessionControlsAttributes) SignInFrequencyPeriod

func (sc SessionControlsAttributes) SignInFrequencyPeriod() terra.StringValue

type SessionControlsState

type SessionControlsState struct {
	ApplicationEnforcedRestrictionsEnabled bool    `json:"application_enforced_restrictions_enabled"`
	CloudAppSecurityPolicy                 string  `json:"cloud_app_security_policy"`
	DisableResilienceDefaults              bool    `json:"disable_resilience_defaults"`
	PersistentBrowserMode                  string  `json:"persistent_browser_mode"`
	SignInFrequency                        float64 `json:"sign_in_frequency"`
	SignInFrequencyPeriod                  string  `json:"sign_in_frequency_period"`
}

type Timeouts

type Timeouts struct {
	// Create: string, optional
	Create terra.StringValue `hcl:"create,attr"`
	// Delete: string, optional
	Delete terra.StringValue `hcl:"delete,attr"`
	// Read: string, optional
	Read terra.StringValue `hcl:"read,attr"`
	// Update: string, optional
	Update terra.StringValue `hcl:"update,attr"`
}

type TimeoutsAttributes

type TimeoutsAttributes struct {
	// contains filtered or unexported fields
}

func (TimeoutsAttributes) Create

func (TimeoutsAttributes) Delete

func (TimeoutsAttributes) InternalRef

func (t TimeoutsAttributes) InternalRef() (terra.Reference, error)

func (TimeoutsAttributes) InternalTokens

func (t TimeoutsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (TimeoutsAttributes) InternalWithRef

func (t TimeoutsAttributes) InternalWithRef(ref terra.Reference) TimeoutsAttributes

func (TimeoutsAttributes) Read

func (TimeoutsAttributes) Update

type TimeoutsState

type TimeoutsState struct {
	Create string `json:"create"`
	Delete string `json:"delete"`
	Read   string `json:"read"`
	Update string `json:"update"`
}

type Users

type Users struct {
	// ExcludedGroups: list of string, optional
	ExcludedGroups terra.ListValue[terra.StringValue] `hcl:"excluded_groups,attr"`
	// ExcludedRoles: list of string, optional
	ExcludedRoles terra.ListValue[terra.StringValue] `hcl:"excluded_roles,attr"`
	// ExcludedUsers: list of string, optional
	ExcludedUsers terra.ListValue[terra.StringValue] `hcl:"excluded_users,attr"`
	// IncludedGroups: list of string, optional
	IncludedGroups terra.ListValue[terra.StringValue] `hcl:"included_groups,attr"`
	// IncludedRoles: list of string, optional
	IncludedRoles terra.ListValue[terra.StringValue] `hcl:"included_roles,attr"`
	// IncludedUsers: list of string, optional
	IncludedUsers terra.ListValue[terra.StringValue] `hcl:"included_users,attr"`
}

type UsersAttributes

type UsersAttributes struct {
	// contains filtered or unexported fields
}

func (UsersAttributes) ExcludedGroups

func (u UsersAttributes) ExcludedGroups() terra.ListValue[terra.StringValue]

func (UsersAttributes) ExcludedRoles

func (u UsersAttributes) ExcludedRoles() terra.ListValue[terra.StringValue]

func (UsersAttributes) ExcludedUsers

func (u UsersAttributes) ExcludedUsers() terra.ListValue[terra.StringValue]

func (UsersAttributes) IncludedGroups

func (u UsersAttributes) IncludedGroups() terra.ListValue[terra.StringValue]

func (UsersAttributes) IncludedRoles

func (u UsersAttributes) IncludedRoles() terra.ListValue[terra.StringValue]

func (UsersAttributes) IncludedUsers

func (u UsersAttributes) IncludedUsers() terra.ListValue[terra.StringValue]

func (UsersAttributes) InternalRef

func (u UsersAttributes) InternalRef() (terra.Reference, error)

func (UsersAttributes) InternalTokens

func (u UsersAttributes) InternalTokens() (hclwrite.Tokens, error)

func (UsersAttributes) InternalWithRef

func (u UsersAttributes) InternalWithRef(ref terra.Reference) UsersAttributes

type UsersState

type UsersState struct {
	ExcludedGroups []string `json:"excluded_groups"`
	ExcludedRoles  []string `json:"excluded_roles"`
	ExcludedUsers  []string `json:"excluded_users"`
	IncludedGroups []string `json:"included_groups"`
	IncludedRoles  []string `json:"included_roles"`
	IncludedUsers  []string `json:"included_users"`
}

Jump to

Keyboard shortcuts

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