aws_amplify_app

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 {
	// AccessToken: string, optional
	AccessToken terra.StringValue `hcl:"access_token,attr"`
	// AutoBranchCreationPatterns: set of string, optional
	AutoBranchCreationPatterns terra.SetValue[terra.StringValue] `hcl:"auto_branch_creation_patterns,attr"`
	// BasicAuthCredentials: string, optional
	BasicAuthCredentials terra.StringValue `hcl:"basic_auth_credentials,attr"`
	// BuildSpec: string, optional
	BuildSpec terra.StringValue `hcl:"build_spec,attr"`
	// CustomHeaders: string, optional
	CustomHeaders terra.StringValue `hcl:"custom_headers,attr"`
	// Description: string, optional
	Description terra.StringValue `hcl:"description,attr"`
	// EnableAutoBranchCreation: bool, optional
	EnableAutoBranchCreation terra.BoolValue `hcl:"enable_auto_branch_creation,attr"`
	// EnableBasicAuth: bool, optional
	EnableBasicAuth terra.BoolValue `hcl:"enable_basic_auth,attr"`
	// EnableBranchAutoBuild: bool, optional
	EnableBranchAutoBuild terra.BoolValue `hcl:"enable_branch_auto_build,attr"`
	// EnableBranchAutoDeletion: bool, optional
	EnableBranchAutoDeletion terra.BoolValue `hcl:"enable_branch_auto_deletion,attr"`
	// EnvironmentVariables: map of string, optional
	EnvironmentVariables terra.MapValue[terra.StringValue] `hcl:"environment_variables,attr"`
	// IamServiceRoleArn: string, optional
	IamServiceRoleArn terra.StringValue `hcl:"iam_service_role_arn,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// OauthToken: string, optional
	OauthToken terra.StringValue `hcl:"oauth_token,attr"`
	// Platform: string, optional
	Platform terra.StringValue `hcl:"platform,attr"`
	// Repository: string, optional
	Repository terra.StringValue `hcl:"repository,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"`
	// AutoBranchCreationConfig: optional
	AutoBranchCreationConfig *AutoBranchCreationConfig `hcl:"auto_branch_creation_config,block"`
	// CustomRule: min=0
	CustomRule []CustomRule `hcl:"custom_rule,block" validate:"min=0"`
}

Args contains the configurations for aws_amplify_app.

type AutoBranchCreationConfig

type AutoBranchCreationConfig struct {
	// BasicAuthCredentials: string, optional
	BasicAuthCredentials terra.StringValue `hcl:"basic_auth_credentials,attr"`
	// BuildSpec: string, optional
	BuildSpec terra.StringValue `hcl:"build_spec,attr"`
	// EnableAutoBuild: bool, optional
	EnableAutoBuild terra.BoolValue `hcl:"enable_auto_build,attr"`
	// EnableBasicAuth: bool, optional
	EnableBasicAuth terra.BoolValue `hcl:"enable_basic_auth,attr"`
	// EnablePerformanceMode: bool, optional
	EnablePerformanceMode terra.BoolValue `hcl:"enable_performance_mode,attr"`
	// EnablePullRequestPreview: bool, optional
	EnablePullRequestPreview terra.BoolValue `hcl:"enable_pull_request_preview,attr"`
	// EnvironmentVariables: map of string, optional
	EnvironmentVariables terra.MapValue[terra.StringValue] `hcl:"environment_variables,attr"`
	// Framework: string, optional
	Framework terra.StringValue `hcl:"framework,attr"`
	// PullRequestEnvironmentName: string, optional
	PullRequestEnvironmentName terra.StringValue `hcl:"pull_request_environment_name,attr"`
	// Stage: string, optional
	Stage terra.StringValue `hcl:"stage,attr"`
}

type AutoBranchCreationConfigAttributes

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

func (AutoBranchCreationConfigAttributes) BasicAuthCredentials

func (abcc AutoBranchCreationConfigAttributes) BasicAuthCredentials() terra.StringValue

func (AutoBranchCreationConfigAttributes) BuildSpec

func (AutoBranchCreationConfigAttributes) EnableAutoBuild

func (abcc AutoBranchCreationConfigAttributes) EnableAutoBuild() terra.BoolValue

func (AutoBranchCreationConfigAttributes) EnableBasicAuth

func (abcc AutoBranchCreationConfigAttributes) EnableBasicAuth() terra.BoolValue

func (AutoBranchCreationConfigAttributes) EnablePerformanceMode

func (abcc AutoBranchCreationConfigAttributes) EnablePerformanceMode() terra.BoolValue

func (AutoBranchCreationConfigAttributes) EnablePullRequestPreview

func (abcc AutoBranchCreationConfigAttributes) EnablePullRequestPreview() terra.BoolValue

func (AutoBranchCreationConfigAttributes) EnvironmentVariables

func (abcc AutoBranchCreationConfigAttributes) EnvironmentVariables() terra.MapValue[terra.StringValue]

func (AutoBranchCreationConfigAttributes) Framework

func (AutoBranchCreationConfigAttributes) InternalRef

func (AutoBranchCreationConfigAttributes) InternalTokens

func (abcc AutoBranchCreationConfigAttributes) InternalTokens() (hclwrite.Tokens, error)

func (AutoBranchCreationConfigAttributes) InternalWithRef

func (AutoBranchCreationConfigAttributes) PullRequestEnvironmentName

func (abcc AutoBranchCreationConfigAttributes) PullRequestEnvironmentName() terra.StringValue

func (AutoBranchCreationConfigAttributes) Stage

type AutoBranchCreationConfigState

type AutoBranchCreationConfigState struct {
	BasicAuthCredentials       string            `json:"basic_auth_credentials"`
	BuildSpec                  string            `json:"build_spec"`
	EnableAutoBuild            bool              `json:"enable_auto_build"`
	EnableBasicAuth            bool              `json:"enable_basic_auth"`
	EnablePerformanceMode      bool              `json:"enable_performance_mode"`
	EnablePullRequestPreview   bool              `json:"enable_pull_request_preview"`
	EnvironmentVariables       map[string]string `json:"environment_variables"`
	Framework                  string            `json:"framework"`
	PullRequestEnvironmentName string            `json:"pull_request_environment_name"`
	Stage                      string            `json:"stage"`
}

type CustomRule

type CustomRule struct {
	// Condition: string, optional
	Condition terra.StringValue `hcl:"condition,attr"`
	// Source: string, required
	Source terra.StringValue `hcl:"source,attr" validate:"required"`
	// Status: string, optional
	Status terra.StringValue `hcl:"status,attr"`
	// Target: string, required
	Target terra.StringValue `hcl:"target,attr" validate:"required"`
}

type CustomRuleAttributes

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

func (CustomRuleAttributes) Condition

func (cr CustomRuleAttributes) Condition() terra.StringValue

func (CustomRuleAttributes) InternalRef

func (cr CustomRuleAttributes) InternalRef() (terra.Reference, error)

func (CustomRuleAttributes) InternalTokens

func (cr CustomRuleAttributes) InternalTokens() (hclwrite.Tokens, error)

func (CustomRuleAttributes) InternalWithRef

func (cr CustomRuleAttributes) InternalWithRef(ref terra.Reference) CustomRuleAttributes

func (CustomRuleAttributes) Source

func (CustomRuleAttributes) Status

func (CustomRuleAttributes) Target

type CustomRuleState

type CustomRuleState struct {
	Condition string `json:"condition"`
	Source    string `json:"source"`
	Status    string `json:"status"`
	Target    string `json:"target"`
}

type ProductionBranchAttributes

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

func (ProductionBranchAttributes) BranchName

func (ProductionBranchAttributes) InternalRef

func (pb ProductionBranchAttributes) InternalRef() (terra.Reference, error)

func (ProductionBranchAttributes) InternalTokens

func (pb ProductionBranchAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ProductionBranchAttributes) InternalWithRef

func (ProductionBranchAttributes) LastDeployTime

func (pb ProductionBranchAttributes) LastDeployTime() terra.StringValue

func (ProductionBranchAttributes) Status

func (ProductionBranchAttributes) ThumbnailUrl

func (pb ProductionBranchAttributes) ThumbnailUrl() terra.StringValue

type ProductionBranchState

type ProductionBranchState struct {
	BranchName     string `json:"branch_name"`
	LastDeployTime string `json:"last_deploy_time"`
	Status         string `json:"status"`
	ThumbnailUrl   string `json:"thumbnail_url"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (aaa *Resource) Attributes() awsAmplifyAppAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (aaa *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (aaa *Resource) State() (*awsAmplifyAppState, bool)

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

func (*Resource) StateMust

func (aaa *Resource) StateMust() *awsAmplifyAppState

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

func (*Resource) Type

func (aaa *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