google_assured_workloads_workload

package
v0.0.0-...-4deecce Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Args

type Args struct {
	// BillingAccount: string, optional
	BillingAccount terra.StringValue `hcl:"billing_account,attr"`
	// ComplianceRegime: string, required
	ComplianceRegime terra.StringValue `hcl:"compliance_regime,attr" validate:"required"`
	// DisplayName: string, required
	DisplayName terra.StringValue `hcl:"display_name,attr" validate:"required"`
	// EnableSovereignControls: bool, optional
	EnableSovereignControls terra.BoolValue `hcl:"enable_sovereign_controls,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Labels: map of string, optional
	Labels terra.MapValue[terra.StringValue] `hcl:"labels,attr"`
	// Location: string, required
	Location terra.StringValue `hcl:"location,attr" validate:"required"`
	// Organization: string, required
	Organization terra.StringValue `hcl:"organization,attr" validate:"required"`
	// Partner: string, optional
	Partner terra.StringValue `hcl:"partner,attr"`
	// ProvisionedResourcesParent: string, optional
	ProvisionedResourcesParent terra.StringValue `hcl:"provisioned_resources_parent,attr"`
	// ViolationNotificationsEnabled: bool, optional
	ViolationNotificationsEnabled terra.BoolValue `hcl:"violation_notifications_enabled,attr"`
	// KmsSettings: optional
	KmsSettings *KmsSettings `hcl:"kms_settings,block"`
	// PartnerPermissions: optional
	PartnerPermissions *PartnerPermissions `hcl:"partner_permissions,block"`
	// ResourceSettings: min=0
	ResourceSettings []ResourceSettings `hcl:"resource_settings,block" validate:"min=0"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
}

Args contains the configurations for google_assured_workloads_workload.

type ComplianceStatusAttributes

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

func (ComplianceStatusAttributes) AcknowledgedViolationCount

func (cs ComplianceStatusAttributes) AcknowledgedViolationCount() terra.ListValue[terra.NumberValue]

func (ComplianceStatusAttributes) ActiveViolationCount

func (cs ComplianceStatusAttributes) ActiveViolationCount() terra.ListValue[terra.NumberValue]

func (ComplianceStatusAttributes) InternalRef

func (cs ComplianceStatusAttributes) InternalRef() (terra.Reference, error)

func (ComplianceStatusAttributes) InternalTokens

func (cs ComplianceStatusAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ComplianceStatusAttributes) InternalWithRef

type ComplianceStatusState

type ComplianceStatusState struct {
	AcknowledgedViolationCount []float64 `json:"acknowledged_violation_count"`
	ActiveViolationCount       []float64 `json:"active_violation_count"`
}

type EkmProvisioningResponseAttributes

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

func (EkmProvisioningResponseAttributes) EkmProvisioningErrorDomain

func (epr EkmProvisioningResponseAttributes) EkmProvisioningErrorDomain() terra.StringValue

func (EkmProvisioningResponseAttributes) EkmProvisioningErrorMapping

func (epr EkmProvisioningResponseAttributes) EkmProvisioningErrorMapping() terra.StringValue

func (EkmProvisioningResponseAttributes) EkmProvisioningState

func (epr EkmProvisioningResponseAttributes) EkmProvisioningState() terra.StringValue

func (EkmProvisioningResponseAttributes) InternalRef

func (EkmProvisioningResponseAttributes) InternalTokens

func (epr EkmProvisioningResponseAttributes) InternalTokens() (hclwrite.Tokens, error)

func (EkmProvisioningResponseAttributes) InternalWithRef

type EkmProvisioningResponseState

type EkmProvisioningResponseState struct {
	EkmProvisioningErrorDomain  string `json:"ekm_provisioning_error_domain"`
	EkmProvisioningErrorMapping string `json:"ekm_provisioning_error_mapping"`
	EkmProvisioningState        string `json:"ekm_provisioning_state"`
}

type KmsSettings

type KmsSettings struct {
	// NextRotationTime: string, required
	NextRotationTime terra.StringValue `hcl:"next_rotation_time,attr" validate:"required"`
	// RotationPeriod: string, required
	RotationPeriod terra.StringValue `hcl:"rotation_period,attr" validate:"required"`
}

type KmsSettingsAttributes

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

func (KmsSettingsAttributes) InternalRef

func (ks KmsSettingsAttributes) InternalRef() (terra.Reference, error)

func (KmsSettingsAttributes) InternalTokens

func (ks KmsSettingsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (KmsSettingsAttributes) InternalWithRef

func (KmsSettingsAttributes) NextRotationTime

func (ks KmsSettingsAttributes) NextRotationTime() terra.StringValue

func (KmsSettingsAttributes) RotationPeriod

func (ks KmsSettingsAttributes) RotationPeriod() terra.StringValue

type KmsSettingsState

type KmsSettingsState struct {
	NextRotationTime string `json:"next_rotation_time"`
	RotationPeriod   string `json:"rotation_period"`
}

type PartnerPermissions

type PartnerPermissions struct {
	// AssuredWorkloadsMonitoring: bool, optional
	AssuredWorkloadsMonitoring terra.BoolValue `hcl:"assured_workloads_monitoring,attr"`
	// DataLogsViewer: bool, optional
	DataLogsViewer terra.BoolValue `hcl:"data_logs_viewer,attr"`
	// ServiceAccessApprover: bool, optional
	ServiceAccessApprover terra.BoolValue `hcl:"service_access_approver,attr"`
}

type PartnerPermissionsAttributes

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

func (PartnerPermissionsAttributes) AssuredWorkloadsMonitoring

func (pp PartnerPermissionsAttributes) AssuredWorkloadsMonitoring() terra.BoolValue

func (PartnerPermissionsAttributes) DataLogsViewer

func (pp PartnerPermissionsAttributes) DataLogsViewer() terra.BoolValue

func (PartnerPermissionsAttributes) InternalRef

func (pp PartnerPermissionsAttributes) InternalRef() (terra.Reference, error)

func (PartnerPermissionsAttributes) InternalTokens

func (pp PartnerPermissionsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (PartnerPermissionsAttributes) InternalWithRef

func (PartnerPermissionsAttributes) ServiceAccessApprover

func (pp PartnerPermissionsAttributes) ServiceAccessApprover() terra.BoolValue

type PartnerPermissionsState

type PartnerPermissionsState struct {
	AssuredWorkloadsMonitoring bool `json:"assured_workloads_monitoring"`
	DataLogsViewer             bool `json:"data_logs_viewer"`
	ServiceAccessApprover      bool `json:"service_access_approver"`
}

type Resource

type Resource struct {
	Name string
	Args Args

	DependsOn terra.Dependencies
	Lifecycle *terra.Lifecycle
	// contains filtered or unexported fields
}

Resource represents the Terraform resource google_assured_workloads_workload.

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (gaww *Resource) Attributes() googleAssuredWorkloadsWorkloadAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

func (gaww *Resource) Configuration() interface{}

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

func (gaww *Resource) DependOn() terra.Reference

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

func (gaww *Resource) Dependencies() terra.Dependencies

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

func (gaww *Resource) ImportState(state io.Reader) error

ImportState imports the given attribute values into Resource's state.

func (*Resource) LifecycleManagement

func (gaww *Resource) LifecycleManagement() *terra.Lifecycle

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (gaww *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (gaww *Resource) State() (*googleAssuredWorkloadsWorkloadState, bool)

State returns the state and a bool indicating if Resource has state.

func (*Resource) StateMust

func (gaww *Resource) StateMust() *googleAssuredWorkloadsWorkloadState

StateMust returns the state for Resource. Panics if the state is nil.

func (*Resource) Type

func (gaww *Resource) Type() string

Type returns the Terraform object type for Resource.

type ResourceSettings

type ResourceSettings struct {
	// DisplayName: string, optional
	DisplayName terra.StringValue `hcl:"display_name,attr"`
	// ResourceId: string, optional
	ResourceId terra.StringValue `hcl:"resource_id,attr"`
	// ResourceType: string, optional
	ResourceType terra.StringValue `hcl:"resource_type,attr"`
}

type ResourceSettingsAttributes

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

func (ResourceSettingsAttributes) DisplayName

func (rs ResourceSettingsAttributes) DisplayName() terra.StringValue

func (ResourceSettingsAttributes) InternalRef

func (rs ResourceSettingsAttributes) InternalRef() (terra.Reference, error)

func (ResourceSettingsAttributes) InternalTokens

func (rs ResourceSettingsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ResourceSettingsAttributes) InternalWithRef

func (ResourceSettingsAttributes) ResourceId

func (ResourceSettingsAttributes) ResourceType

func (rs ResourceSettingsAttributes) ResourceType() terra.StringValue

type ResourceSettingsState

type ResourceSettingsState struct {
	DisplayName  string `json:"display_name"`
	ResourceId   string `json:"resource_id"`
	ResourceType string `json:"resource_type"`
}

type ResourcesAttributes

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

func (ResourcesAttributes) InternalRef

func (r ResourcesAttributes) InternalRef() (terra.Reference, error)

func (ResourcesAttributes) InternalTokens

func (r ResourcesAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ResourcesAttributes) InternalWithRef

func (r ResourcesAttributes) InternalWithRef(ref terra.Reference) ResourcesAttributes

func (ResourcesAttributes) ResourceId

func (r ResourcesAttributes) ResourceId() terra.NumberValue

func (ResourcesAttributes) ResourceType

func (r ResourcesAttributes) ResourceType() terra.StringValue

type ResourcesState

type ResourcesState struct {
	ResourceId   float64 `json:"resource_id"`
	ResourceType string  `json:"resource_type"`
}

type SaaEnrollmentResponseAttributes

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

func (SaaEnrollmentResponseAttributes) InternalRef

func (SaaEnrollmentResponseAttributes) InternalTokens

func (ser SaaEnrollmentResponseAttributes) InternalTokens() (hclwrite.Tokens, error)

func (SaaEnrollmentResponseAttributes) InternalWithRef

func (SaaEnrollmentResponseAttributes) SetupErrors

func (SaaEnrollmentResponseAttributes) SetupStatus

type SaaEnrollmentResponseState

type SaaEnrollmentResponseState struct {
	SetupErrors []string `json:"setup_errors"`
	SetupStatus string   `json:"setup_status"`
}

type Timeouts

type Timeouts struct {
	// Create: string, optional
	Create terra.StringValue `hcl:"create,attr"`
	// Delete: string, optional
	Delete terra.StringValue `hcl:"delete,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) Update

type TimeoutsState

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

Jump to

Keyboard shortcuts

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