aws_codebuild_webhook

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 {
	// BranchFilter: string, optional
	BranchFilter terra.StringValue `hcl:"branch_filter,attr"`
	// BuildType: string, optional
	BuildType terra.StringValue `hcl:"build_type,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// ProjectName: string, required
	ProjectName terra.StringValue `hcl:"project_name,attr" validate:"required"`
	// FilterGroup: min=0
	FilterGroup []FilterGroup `hcl:"filter_group,block" validate:"min=0"`
}

Args contains the configurations for aws_codebuild_webhook.

type FilterGroup

type FilterGroup struct {
	// FilterGroupFilter: min=0
	Filter []FilterGroupFilter `hcl:"filter,block" validate:"min=0"`
}

type FilterGroupAttributes

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

func (FilterGroupAttributes) Filter

func (FilterGroupAttributes) InternalRef

func (fg FilterGroupAttributes) InternalRef() (terra.Reference, error)

func (FilterGroupAttributes) InternalTokens

func (fg FilterGroupAttributes) InternalTokens() (hclwrite.Tokens, error)

func (FilterGroupAttributes) InternalWithRef

type FilterGroupFilter

type FilterGroupFilter struct {
	// ExcludeMatchedPattern: bool, optional
	ExcludeMatchedPattern terra.BoolValue `hcl:"exclude_matched_pattern,attr"`
	// Pattern: string, required
	Pattern terra.StringValue `hcl:"pattern,attr" validate:"required"`
	// Type: string, required
	Type terra.StringValue `hcl:"type,attr" validate:"required"`
}

type FilterGroupFilterAttributes

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

func (FilterGroupFilterAttributes) ExcludeMatchedPattern

func (f FilterGroupFilterAttributes) ExcludeMatchedPattern() terra.BoolValue

func (FilterGroupFilterAttributes) InternalRef

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

func (FilterGroupFilterAttributes) InternalTokens

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

func (FilterGroupFilterAttributes) InternalWithRef

func (FilterGroupFilterAttributes) Pattern

func (FilterGroupFilterAttributes) Type

type FilterGroupFilterState

type FilterGroupFilterState struct {
	ExcludeMatchedPattern bool   `json:"exclude_matched_pattern"`
	Pattern               string `json:"pattern"`
	Type                  string `json:"type"`
}

type FilterGroupState

type FilterGroupState struct {
	Filter []FilterGroupFilterState `json:"filter"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (acw *Resource) Attributes() awsCodebuildWebhookAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (acw *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (acw *Resource) State() (*awsCodebuildWebhookState, bool)

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

func (*Resource) StateMust

func (acw *Resource) StateMust() *awsCodebuildWebhookState

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

func (*Resource) Type

func (acw *Resource) Type() string

Type returns the Terraform object type for Resource.

Jump to

Keyboard shortcuts

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