aws_ssm_patch_baseline

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 ApprovalRule

type ApprovalRule struct {
	// ApproveAfterDays: number, optional
	ApproveAfterDays terra.NumberValue `hcl:"approve_after_days,attr"`
	// ApproveUntilDate: string, optional
	ApproveUntilDate terra.StringValue `hcl:"approve_until_date,attr"`
	// ComplianceLevel: string, optional
	ComplianceLevel terra.StringValue `hcl:"compliance_level,attr"`
	// EnableNonSecurity: bool, optional
	EnableNonSecurity terra.BoolValue `hcl:"enable_non_security,attr"`
	// ApprovalRulePatchFilter: min=1,max=10
	PatchFilter []ApprovalRulePatchFilter `hcl:"patch_filter,block" validate:"min=1,max=10"`
}

type ApprovalRuleAttributes

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

func (ApprovalRuleAttributes) ApproveAfterDays

func (ar ApprovalRuleAttributes) ApproveAfterDays() terra.NumberValue

func (ApprovalRuleAttributes) ApproveUntilDate

func (ar ApprovalRuleAttributes) ApproveUntilDate() terra.StringValue

func (ApprovalRuleAttributes) ComplianceLevel

func (ar ApprovalRuleAttributes) ComplianceLevel() terra.StringValue

func (ApprovalRuleAttributes) EnableNonSecurity

func (ar ApprovalRuleAttributes) EnableNonSecurity() terra.BoolValue

func (ApprovalRuleAttributes) InternalRef

func (ar ApprovalRuleAttributes) InternalRef() (terra.Reference, error)

func (ApprovalRuleAttributes) InternalTokens

func (ar ApprovalRuleAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ApprovalRuleAttributes) InternalWithRef

func (ApprovalRuleAttributes) PatchFilter

type ApprovalRulePatchFilter

type ApprovalRulePatchFilter struct {
	// Key: string, required
	Key terra.StringValue `hcl:"key,attr" validate:"required"`
	// Values: list of string, required
	Values terra.ListValue[terra.StringValue] `hcl:"values,attr" validate:"required"`
}

type ApprovalRulePatchFilterAttributes

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

func (ApprovalRulePatchFilterAttributes) InternalRef

func (ApprovalRulePatchFilterAttributes) InternalTokens

func (pf ApprovalRulePatchFilterAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ApprovalRulePatchFilterAttributes) InternalWithRef

func (ApprovalRulePatchFilterAttributes) Key

func (ApprovalRulePatchFilterAttributes) Values

type ApprovalRulePatchFilterState

type ApprovalRulePatchFilterState struct {
	Key    string   `json:"key"`
	Values []string `json:"values"`
}

type ApprovalRuleState

type ApprovalRuleState struct {
	ApproveAfterDays  float64                        `json:"approve_after_days"`
	ApproveUntilDate  string                         `json:"approve_until_date"`
	ComplianceLevel   string                         `json:"compliance_level"`
	EnableNonSecurity bool                           `json:"enable_non_security"`
	PatchFilter       []ApprovalRulePatchFilterState `json:"patch_filter"`
}

type Args

type Args struct {
	// ApprovedPatches: set of string, optional
	ApprovedPatches terra.SetValue[terra.StringValue] `hcl:"approved_patches,attr"`
	// ApprovedPatchesComplianceLevel: string, optional
	ApprovedPatchesComplianceLevel terra.StringValue `hcl:"approved_patches_compliance_level,attr"`
	// ApprovedPatchesEnableNonSecurity: bool, optional
	ApprovedPatchesEnableNonSecurity terra.BoolValue `hcl:"approved_patches_enable_non_security,attr"`
	// Description: string, optional
	Description terra.StringValue `hcl:"description,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// OperatingSystem: string, optional
	OperatingSystem terra.StringValue `hcl:"operating_system,attr"`
	// RejectedPatches: set of string, optional
	RejectedPatches terra.SetValue[terra.StringValue] `hcl:"rejected_patches,attr"`
	// RejectedPatchesAction: string, optional
	RejectedPatchesAction terra.StringValue `hcl:"rejected_patches_action,attr"`
	// Tags: map of string, optional
	Tags terra.MapValue[terra.StringValue] `hcl:"tags,attr"`
	// TagsAll: map of string, optional
	TagsAll terra.MapValue[terra.StringValue] `hcl:"tags_all,attr"`
	// ApprovalRule: min=0
	ApprovalRule []ApprovalRule `hcl:"approval_rule,block" validate:"min=0"`
	// GlobalFilter: min=0,max=4
	GlobalFilter []GlobalFilter `hcl:"global_filter,block" validate:"min=0,max=4"`
	// Source: min=0,max=20
	Source []Source `hcl:"source,block" validate:"min=0,max=20"`
}

Args contains the configurations for aws_ssm_patch_baseline.

type DataApprovalRuleAttributes

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

func (DataApprovalRuleAttributes) ApproveAfterDays

func (ar DataApprovalRuleAttributes) ApproveAfterDays() terra.NumberValue

func (DataApprovalRuleAttributes) ApproveUntilDate

func (ar DataApprovalRuleAttributes) ApproveUntilDate() terra.StringValue

func (DataApprovalRuleAttributes) ComplianceLevel

func (ar DataApprovalRuleAttributes) ComplianceLevel() terra.StringValue

func (DataApprovalRuleAttributes) EnableNonSecurity

func (ar DataApprovalRuleAttributes) EnableNonSecurity() terra.BoolValue

func (DataApprovalRuleAttributes) InternalRef

func (ar DataApprovalRuleAttributes) InternalRef() (terra.Reference, error)

func (DataApprovalRuleAttributes) InternalTokens

func (ar DataApprovalRuleAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataApprovalRuleAttributes) InternalWithRef

func (DataApprovalRuleAttributes) PatchFilter

type DataApprovalRulePatchFilterAttributes

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

func (DataApprovalRulePatchFilterAttributes) InternalRef

func (DataApprovalRulePatchFilterAttributes) InternalTokens

func (DataApprovalRulePatchFilterAttributes) InternalWithRef

func (DataApprovalRulePatchFilterAttributes) Key

func (DataApprovalRulePatchFilterAttributes) Values

type DataApprovalRulePatchFilterState

type DataApprovalRulePatchFilterState struct {
	Key    string   `json:"key"`
	Values []string `json:"values"`
}

type DataApprovalRuleState

type DataApprovalRuleState struct {
	ApproveAfterDays  float64                            `json:"approve_after_days"`
	ApproveUntilDate  string                             `json:"approve_until_date"`
	ComplianceLevel   string                             `json:"compliance_level"`
	EnableNonSecurity bool                               `json:"enable_non_security"`
	PatchFilter       []DataApprovalRulePatchFilterState `json:"patch_filter"`
}

type DataArgs

type DataArgs struct {
	// DefaultBaseline: bool, optional
	DefaultBaseline terra.BoolValue `hcl:"default_baseline,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// NamePrefix: string, optional
	NamePrefix terra.StringValue `hcl:"name_prefix,attr"`
	// OperatingSystem: string, optional
	OperatingSystem terra.StringValue `hcl:"operating_system,attr"`
	// Owner: string, required
	Owner terra.StringValue `hcl:"owner,attr" validate:"required"`
}

DataArgs contains the configurations for aws_ssm_patch_baseline.

type DataGlobalFilterAttributes

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

func (DataGlobalFilterAttributes) InternalRef

func (gf DataGlobalFilterAttributes) InternalRef() (terra.Reference, error)

func (DataGlobalFilterAttributes) InternalTokens

func (gf DataGlobalFilterAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataGlobalFilterAttributes) InternalWithRef

func (DataGlobalFilterAttributes) Key

func (DataGlobalFilterAttributes) Values

type DataGlobalFilterState

type DataGlobalFilterState struct {
	Key    string   `json:"key"`
	Values []string `json:"values"`
}

type DataSource

type DataSource struct {
	Name string
	Args DataArgs
}

DataSource represents the Terraform data resource aws_ssm_patch_baseline.

func Data

func Data(name string, args DataArgs) *DataSource

Data creates a new instance of DataSource.

func (*DataSource) Attributes

func (aspb *DataSource) Attributes() dataAwsSsmPatchBaselineAttributes

Attributes returns the attributes for DataSource.

func (*DataSource) Configuration

func (aspb *DataSource) Configuration() interface{}

Configuration returns the configuration (args) for DataSource.

func (*DataSource) DataSource

func (aspb *DataSource) DataSource() string

DataSource returns the Terraform object type for DataSource.

func (*DataSource) LocalName

func (aspb *DataSource) LocalName() string

LocalName returns the local name for DataSource.

type DataSourceAttributes

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

func (DataSourceAttributes) Configuration

func (s DataSourceAttributes) Configuration() terra.StringValue

func (DataSourceAttributes) InternalRef

func (s DataSourceAttributes) InternalRef() (terra.Reference, error)

func (DataSourceAttributes) InternalTokens

func (s DataSourceAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataSourceAttributes) InternalWithRef

func (DataSourceAttributes) Name

func (DataSourceAttributes) Products

type DataSourceState

type DataSourceState struct {
	Configuration string   `json:"configuration"`
	Name          string   `json:"name"`
	Products      []string `json:"products"`
}

type GlobalFilter

type GlobalFilter struct {
	// Key: string, required
	Key terra.StringValue `hcl:"key,attr" validate:"required"`
	// Values: list of string, required
	Values terra.ListValue[terra.StringValue] `hcl:"values,attr" validate:"required"`
}

type GlobalFilterAttributes

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

func (GlobalFilterAttributes) InternalRef

func (gf GlobalFilterAttributes) InternalRef() (terra.Reference, error)

func (GlobalFilterAttributes) InternalTokens

func (gf GlobalFilterAttributes) InternalTokens() (hclwrite.Tokens, error)

func (GlobalFilterAttributes) InternalWithRef

func (GlobalFilterAttributes) Key

func (GlobalFilterAttributes) Values

type GlobalFilterState

type GlobalFilterState struct {
	Key    string   `json:"key"`
	Values []string `json:"values"`
}

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 aws_ssm_patch_baseline.

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (aspb *Resource) Attributes() awsSsmPatchBaselineAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (aspb *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (aspb *Resource) State() (*awsSsmPatchBaselineState, bool)

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

func (*Resource) StateMust

func (aspb *Resource) StateMust() *awsSsmPatchBaselineState

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

func (*Resource) Type

func (aspb *Resource) Type() string

Type returns the Terraform object type for Resource.

type Source

type Source struct {
	// Configuration: string, required
	Configuration terra.StringValue `hcl:"configuration,attr" validate:"required"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// Products: list of string, required
	Products terra.ListValue[terra.StringValue] `hcl:"products,attr" validate:"required"`
}

type SourceAttributes

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

func (SourceAttributes) Configuration

func (s SourceAttributes) Configuration() terra.StringValue

func (SourceAttributes) InternalRef

func (s SourceAttributes) InternalRef() (terra.Reference, error)

func (SourceAttributes) InternalTokens

func (s SourceAttributes) InternalTokens() (hclwrite.Tokens, error)

func (SourceAttributes) InternalWithRef

func (s SourceAttributes) InternalWithRef(ref terra.Reference) SourceAttributes

func (SourceAttributes) Name

func (SourceAttributes) Products

type SourceState

type SourceState struct {
	Configuration string   `json:"configuration"`
	Name          string   `json:"name"`
	Products      []string `json:"products"`
}

Jump to

Keyboard shortcuts

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