resource_org_nacrule

package
v0.1.36 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OrgNacruleResourceSchema

func OrgNacruleResourceSchema(ctx context.Context) schema.Schema

func TerraformToSdk

func TerraformToSdk(ctx context.Context, plan *OrgNacruleModel) (models.NacRule, diag.Diagnostics)

Types

type MatchingType

type MatchingType struct {
	basetypes.ObjectType
}

func (MatchingType) Equal

func (t MatchingType) Equal(o attr.Type) bool

func (MatchingType) String

func (t MatchingType) String() string

func (MatchingType) ValueFromObject

func (MatchingType) ValueFromTerraform

func (t MatchingType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)

func (MatchingType) ValueType

func (t MatchingType) ValueType(ctx context.Context) attr.Value

type MatchingValue

type MatchingValue struct {
	AuthType     basetypes.StringValue `tfsdk:"auth_type"`
	Nactags      basetypes.ListValue   `tfsdk:"nactags"`
	PortTypes    basetypes.ListValue   `tfsdk:"port_types"`
	SiteIds      basetypes.ListValue   `tfsdk:"site_ids"`
	SitegroupIds basetypes.ListValue   `tfsdk:"sitegroup_ids"`
	Vendor       basetypes.ListValue   `tfsdk:"vendor"`
	// contains filtered or unexported fields
}

func NewMatchingValue

func NewMatchingValue(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) (MatchingValue, diag.Diagnostics)

func NewMatchingValueMust

func NewMatchingValueMust(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) MatchingValue

func NewMatchingValueNull

func NewMatchingValueNull() MatchingValue

func NewMatchingValueUnknown

func NewMatchingValueUnknown() MatchingValue

func (MatchingValue) AttributeTypes

func (v MatchingValue) AttributeTypes(ctx context.Context) map[string]attr.Type

func (MatchingValue) Equal

func (v MatchingValue) Equal(o attr.Value) bool

func (MatchingValue) IsNull

func (v MatchingValue) IsNull() bool

func (MatchingValue) IsUnknown

func (v MatchingValue) IsUnknown() bool

func (MatchingValue) String

func (v MatchingValue) String() string

func (MatchingValue) ToObjectValue

func (MatchingValue) ToTerraformValue

func (v MatchingValue) ToTerraformValue(ctx context.Context) (tftypes.Value, error)

func (MatchingValue) Type

func (v MatchingValue) Type(ctx context.Context) attr.Type

type NotMatchingType

type NotMatchingType struct {
	basetypes.ObjectType
}

func (NotMatchingType) Equal

func (t NotMatchingType) Equal(o attr.Type) bool

func (NotMatchingType) String

func (t NotMatchingType) String() string

func (NotMatchingType) ValueFromObject

func (NotMatchingType) ValueFromTerraform

func (t NotMatchingType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)

func (NotMatchingType) ValueType

func (t NotMatchingType) ValueType(ctx context.Context) attr.Value

type NotMatchingValue

type NotMatchingValue struct {
	AuthType     basetypes.StringValue `tfsdk:"auth_type"`
	Nactags      basetypes.ListValue   `tfsdk:"nactags"`
	PortTypes    basetypes.ListValue   `tfsdk:"port_types"`
	SiteIds      basetypes.ListValue   `tfsdk:"site_ids"`
	SitegroupIds basetypes.ListValue   `tfsdk:"sitegroup_ids"`
	Vendor       basetypes.ListValue   `tfsdk:"vendor"`
	// contains filtered or unexported fields
}

func NewNotMatchingValue

func NewNotMatchingValue(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) (NotMatchingValue, diag.Diagnostics)

func NewNotMatchingValueMust

func NewNotMatchingValueMust(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) NotMatchingValue

func NewNotMatchingValueNull

func NewNotMatchingValueNull() NotMatchingValue

func NewNotMatchingValueUnknown

func NewNotMatchingValueUnknown() NotMatchingValue

func (NotMatchingValue) AttributeTypes

func (v NotMatchingValue) AttributeTypes(ctx context.Context) map[string]attr.Type

func (NotMatchingValue) Equal

func (v NotMatchingValue) Equal(o attr.Value) bool

func (NotMatchingValue) IsNull

func (v NotMatchingValue) IsNull() bool

func (NotMatchingValue) IsUnknown

func (v NotMatchingValue) IsUnknown() bool

func (NotMatchingValue) String

func (v NotMatchingValue) String() string

func (NotMatchingValue) ToObjectValue

func (NotMatchingValue) ToTerraformValue

func (v NotMatchingValue) ToTerraformValue(ctx context.Context) (tftypes.Value, error)

func (NotMatchingValue) Type

type OrgNacruleModel

type OrgNacruleModel struct {
	Action      types.String     `tfsdk:"action"`
	ApplyTags   types.List       `tfsdk:"apply_tags"`
	Enabled     types.Bool       `tfsdk:"enabled"`
	Id          types.String     `tfsdk:"id"`
	Matching    MatchingValue    `tfsdk:"matching"`
	Name        types.String     `tfsdk:"name"`
	NotMatching NotMatchingValue `tfsdk:"not_matching"`
	Order       types.Int64      `tfsdk:"order"`
	OrgId       types.String     `tfsdk:"org_id"`
}

func SdkToTerraform

func SdkToTerraform(ctx context.Context, data models.NacRule) (OrgNacruleModel, diag.Diagnostics)

Jump to

Keyboard shortcuts

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