apprunner

package
v1.33.3 Latest Latest
Warning

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

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

Documentation

Overview

Package apprunner provides a client to make API requests to AppRunner Service.

Package apprunner provides a client to make API requests to AppRunner Service.

Index

Constants

View Source
const (

	// EndpointsID is the ID to look up the App Runner service endpoint.
	EndpointsID = apprunner.EndpointsID
)

Variables

This section is empty.

Functions

func DetermineImageRepositoryType

func DetermineImageRepositoryType(imageIdentifier string) (string, error)

DetermineImageRepositoryType returns the App Runner ImageRepositoryType enum value for the provided image identifier, or returns an error if the imageIdentifier is not supported by App Runner or the ImageRepositoryType cannot be determined.

func ImageIsSupported

func ImageIsSupported(imageIdentifier string) bool

ImageIsSupported returns true if the image identifier is supported by App Runner.

func LogGroupName

func LogGroupName(svcARN string) (string, error)

LogGroupName returns the log group name given the app runner service's name. An application log group is formatted as "/aws/apprunner/<svcName>/<svcID>/application".

func ParseServiceID

func ParseServiceID(svcARN string) (string, error)

ParseServiceID returns the service id. For example: arn:aws:apprunner:us-west-2:1234567890:service/my-service/fc1098ac269245959ba78fd58bdd4bf will return fc1098ac269245959ba78fd58bdd4bf

func ParseServiceName

func ParseServiceName(svcARN string) (string, error)

ParseServiceName returns the service name. For example: arn:aws:apprunner:us-west-2:1234567890:service/my-service/fc1098ac269245959ba78fd58bdd4bf will return my-service

func SystemLogGroupName

func SystemLogGroupName(svcARN string) (string, error)

SystemLogGroupName returns the service log group name given the app runner service's name. A service log group is formatted as "/aws/apprunner/<svcName>/<svcID>/service".

Types

type AppRunner

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

AppRunner wraps an AWS AppRunner client.

func New

func New(s *session.Session) *AppRunner

New returns a Service configured against the input session.

func (*AppRunner) DescribeOperation

func (a *AppRunner) DescribeOperation(operationId, svcARN string) (*apprunner.OperationSummary, error)

DescribeOperation return OperationSummary for given OperationId and ServiceARN.

func (*AppRunner) DescribeService

func (a *AppRunner) DescribeService(svcARN string) (*Service, error)

DescribeService returns a description of an AppRunner service given its ARN.

func (*AppRunner) PauseService

func (a *AppRunner) PauseService(svcARN string) error

PauseService pause the running App Runner service.

func (*AppRunner) PrivateURL added in v1.23.0

func (a *AppRunner) PrivateURL(vicARN string) (string, error)

PrivateURL returns the url associated with a VPC Ingress Connection.

func (*AppRunner) ResumeService

func (a *AppRunner) ResumeService(svcARN string) error

ResumeService resumes a paused App Runner service.

func (*AppRunner) ServiceARN

func (a *AppRunner) ServiceARN(svc string) (string, error)

ServiceARN returns the ARN of an AppRunner service given its service name.

func (*AppRunner) StartDeployment added in v1.10.0

func (a *AppRunner) StartDeployment(svcARN string) (string, error)

StartDeployment initiates a manual deployment to an AWS App Runner service.

func (*AppRunner) WaitForOperation added in v1.10.0

func (a *AppRunner) WaitForOperation(operationId, svcARN string) error

WaitForOperation waits for a service operation.

type EnvironmentSecret added in v1.26.0

type EnvironmentSecret struct {
	Name  string
	Value string
}

EnvironmentSecret contains the name and value of a Secret from SSM Parameter Store or Secrets Manager.

type EnvironmentVariable

type EnvironmentVariable struct {
	Name  string
	Value string
}

EnvironmentVariable contains the name and value of an environment variable.

type ErrWaitServiceOperationFailed added in v1.10.0

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

ErrWaitServiceOperationFailed occurs when the service operation failed.

func (*ErrWaitServiceOperationFailed) Error added in v1.10.0

func (*ErrWaitServiceOperationFailed) Timeout added in v1.10.0

func (e *ErrWaitServiceOperationFailed) Timeout() bool

Timeout allows ErrWaitServiceOperationFailed to implement a timeout error interface.

type ObservabilityConfiguration added in v1.18.0

type ObservabilityConfiguration struct {
	TraceConfiguration *TraceConfiguration
}

ObservabilityConfiguration contains observability related configuration. Currently only tracing configuration is available.

type Service

type Service struct {
	ServiceARN           string
	Name                 string
	ID                   string
	Status               string
	ServiceURL           string
	DateCreated          time.Time
	DateUpdated          time.Time
	CPU                  string
	Memory               string
	ImageID              string
	Port                 string
	EnvironmentVariables []*EnvironmentVariable
	Observability        ObservabilityConfiguration
	EnvironmentSecrets   []*EnvironmentSecret
}

Service wraps up AppRunner Service struct.

type TraceConfiguration added in v1.18.0

type TraceConfiguration apprunner.TraceConfiguration

TraceConfiguration wraps AppRunner TraceConfiguration.

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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