azurerm_app_service_source_control

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 {
	// AppId: string, required
	AppId terra.StringValue `hcl:"app_id,attr" validate:"required"`
	// Branch: string, optional
	Branch terra.StringValue `hcl:"branch,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// RepoUrl: string, optional
	RepoUrl terra.StringValue `hcl:"repo_url,attr"`
	// RollbackEnabled: bool, optional
	RollbackEnabled terra.BoolValue `hcl:"rollback_enabled,attr"`
	// UseLocalGit: bool, optional
	UseLocalGit terra.BoolValue `hcl:"use_local_git,attr"`
	// UseManualIntegration: bool, optional
	UseManualIntegration terra.BoolValue `hcl:"use_manual_integration,attr"`
	// UseMercurial: bool, optional
	UseMercurial terra.BoolValue `hcl:"use_mercurial,attr"`
	// GithubActionConfiguration: optional
	GithubActionConfiguration *GithubActionConfiguration `hcl:"github_action_configuration,block"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
}

Args contains the configurations for azurerm_app_service_source_control.

type GithubActionConfiguration

type GithubActionConfiguration struct {
	// GenerateWorkflowFile: bool, optional
	GenerateWorkflowFile terra.BoolValue `hcl:"generate_workflow_file,attr"`
	// GithubActionConfigurationCodeConfiguration: optional
	CodeConfiguration *GithubActionConfigurationCodeConfiguration `hcl:"code_configuration,block"`
	// GithubActionConfigurationContainerConfiguration: optional
	ContainerConfiguration *GithubActionConfigurationContainerConfiguration `hcl:"container_configuration,block"`
}

type GithubActionConfigurationAttributes

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

func (GithubActionConfigurationAttributes) CodeConfiguration

func (GithubActionConfigurationAttributes) ContainerConfiguration

func (GithubActionConfigurationAttributes) GenerateWorkflowFile

func (gac GithubActionConfigurationAttributes) GenerateWorkflowFile() terra.BoolValue

func (GithubActionConfigurationAttributes) InternalRef

func (GithubActionConfigurationAttributes) InternalTokens

func (gac GithubActionConfigurationAttributes) InternalTokens() (hclwrite.Tokens, error)

func (GithubActionConfigurationAttributes) InternalWithRef

func (GithubActionConfigurationAttributes) LinuxAction

type GithubActionConfigurationCodeConfiguration

type GithubActionConfigurationCodeConfiguration struct {
	// RuntimeStack: string, required
	RuntimeStack terra.StringValue `hcl:"runtime_stack,attr" validate:"required"`
	// RuntimeVersion: string, required
	RuntimeVersion terra.StringValue `hcl:"runtime_version,attr" validate:"required"`
}

type GithubActionConfigurationCodeConfigurationAttributes

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

func (GithubActionConfigurationCodeConfigurationAttributes) InternalRef

func (GithubActionConfigurationCodeConfigurationAttributes) InternalTokens

func (GithubActionConfigurationCodeConfigurationAttributes) InternalWithRef

func (GithubActionConfigurationCodeConfigurationAttributes) RuntimeStack

func (GithubActionConfigurationCodeConfigurationAttributes) RuntimeVersion

type GithubActionConfigurationCodeConfigurationState

type GithubActionConfigurationCodeConfigurationState struct {
	RuntimeStack   string `json:"runtime_stack"`
	RuntimeVersion string `json:"runtime_version"`
}

type GithubActionConfigurationContainerConfiguration

type GithubActionConfigurationContainerConfiguration struct {
	// ImageName: string, required
	ImageName terra.StringValue `hcl:"image_name,attr" validate:"required"`
	// RegistryPassword: string, optional
	RegistryPassword terra.StringValue `hcl:"registry_password,attr"`
	// RegistryUrl: string, required
	RegistryUrl terra.StringValue `hcl:"registry_url,attr" validate:"required"`
	// RegistryUsername: string, optional
	RegistryUsername terra.StringValue `hcl:"registry_username,attr"`
}

type GithubActionConfigurationContainerConfigurationAttributes

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

func (GithubActionConfigurationContainerConfigurationAttributes) ImageName

func (GithubActionConfigurationContainerConfigurationAttributes) InternalRef

func (GithubActionConfigurationContainerConfigurationAttributes) InternalTokens

func (GithubActionConfigurationContainerConfigurationAttributes) InternalWithRef

func (GithubActionConfigurationContainerConfigurationAttributes) RegistryPassword

func (GithubActionConfigurationContainerConfigurationAttributes) RegistryUrl

func (GithubActionConfigurationContainerConfigurationAttributes) RegistryUsername

type GithubActionConfigurationContainerConfigurationState

type GithubActionConfigurationContainerConfigurationState struct {
	ImageName        string `json:"image_name"`
	RegistryPassword string `json:"registry_password"`
	RegistryUrl      string `json:"registry_url"`
	RegistryUsername string `json:"registry_username"`
}

type GithubActionConfigurationState

type GithubActionConfigurationState struct {
	GenerateWorkflowFile   bool                                                   `json:"generate_workflow_file"`
	LinuxAction            bool                                                   `json:"linux_action"`
	CodeConfiguration      []GithubActionConfigurationCodeConfigurationState      `json:"code_configuration"`
	ContainerConfiguration []GithubActionConfigurationContainerConfigurationState `json:"container_configuration"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (aassc *Resource) Attributes() azurermAppServiceSourceControlAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (aassc *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (aassc *Resource) State() (*azurermAppServiceSourceControlState, bool)

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

func (*Resource) StateMust

func (aassc *Resource) StateMust() *azurermAppServiceSourceControlState

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

func (*Resource) Type

func (aassc *Resource) Type() string

Type returns the Terraform object type for Resource.

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"`
}

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

type TimeoutsState

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

Jump to

Keyboard shortcuts

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