ec2

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: May 25, 2026 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Source                   = "aws.ec2"
	DetailTypeAMIStateChange = "EC2 AMI State Change"
)
View Source
const (
	ImageStatePending      = "pending"
	ImageStateAvailable    = "available"
	ImageStateFailed       = "failed"
	ImageStateDeregistered = "deregistered"
	ImageStateDisabled     = "disabled"
)
View Source
const (
	InstanceStatePending      = "pending"
	InstanceStateRunning      = "running"
	InstanceStateShuttingDown = "shutting-down"
	InstanceStateTerminated   = "terminated"
	InstanceStateStopping     = "stopping"
	InstanceStateStopped      = "stopped"
)
View Source
const (
	CreateInstancePayloadType = "aws.ec2.instance"
	DeleteInstancePayloadType = "aws.ec2.instance.deleted"
)
View Source
const (
	ResourceTypeImageOS = "ec2.imageOS"
)

Variables

This section is empty.

Functions

func IsInstanceNotFound added in v0.22.0

func IsInstanceNotFound(err error) bool

func IsSecurityGroupDuplicate added in v0.22.0

func IsSecurityGroupDuplicate(err error) bool

func IsSecurityGroupRuleDuplicate added in v0.22.0

func IsSecurityGroupRuleDuplicate(err error) bool

func ListImageOperatingSystems added in v0.22.0

func ListImageOperatingSystems(_ core.ListResourcesContext, resourceType string) ([]core.IntegrationResource, error)

func ListImages

func ListImages(ctx core.ListResourcesContext, resourceType string) ([]core.IntegrationResource, error)

func ListInstanceTypes added in v0.22.0

func ListInstanceTypes(ctx core.ListResourcesContext, resourceType string) ([]core.IntegrationResource, error)

func ListInstances

func ListInstances(ctx core.ListResourcesContext, resourceType string) ([]core.IntegrationResource, error)

func ListKeyPairs added in v0.22.0

func ListKeyPairs(ctx core.ListResourcesContext, resourceType string) ([]core.IntegrationResource, error)

func ListSecurityGroups added in v0.22.0

func ListSecurityGroups(ctx core.ListResourcesContext, resourceType string) ([]core.IntegrationResource, error)

func ListSubnets added in v0.22.0

func ListSubnets(ctx core.ListResourcesContext, resourceType string) ([]core.IntegrationResource, error)

Types

type AMIStateChangeDetail

type AMIStateChangeDetail struct {
	ImageID      string `json:"ImageId" mapstructure:"ImageId"`
	State        string `json:"State" mapstructure:"State"`
	ErrorMessage string `json:"ErrorMessage" mapstructure:"ErrorMessage"`
}

type Client

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

func NewClient

func NewClient(httpCtx core.HTTPContext, credentials *aws.Credentials, region string) *Client

func (*Client) CopyImage

func (c *Client) CopyImage(input CopyImageInput) (*CopyImageOutput, error)

func (*Client) CreateImage

func (c *Client) CreateImage(input CreateImageInput) (*CreateImageOutput, error)

func (*Client) CreateSecurityGroup added in v0.22.0

func (c *Client) CreateSecurityGroup(groupName, description, vpcID string) (string, error)

func (*Client) DeleteSnapshot

func (c *Client) DeleteSnapshot(snapshotID string) (string, error)

func (*Client) DeregisterImage

func (c *Client) DeregisterImage(imageID string) (string, error)

func (*Client) DescribeImage

func (c *Client) DescribeImage(imageID string) (*Image, error)

func (*Client) DescribeInstance added in v0.22.0

func (c *Client) DescribeInstance(instanceID string) (*InstanceDetails, error)

func (*Client) DescribeSubnet added in v0.22.0

func (c *Client) DescribeSubnet(subnetID string) (*Subnet, error)

func (*Client) DisableImage

func (c *Client) DisableImage(imageID string) (string, error)

func (*Client) DisableImageDeprecation

func (c *Client) DisableImageDeprecation(imageID string) (string, error)

func (*Client) EnableImage

func (c *Client) EnableImage(imageID string) (string, error)

func (*Client) EnableImageDeprecation

func (c *Client) EnableImageDeprecation(imageID, deprecateAt string) (*EnableImageDeprecationOutput, error)

func (*Client) EnsureSecurityGroupIngressRules added in v0.22.0

func (c *Client) EnsureSecurityGroupIngressRules(groupID string, rules []SecurityGroupIngressRule) error

func (*Client) ListImages

func (c *Client) ListImages(ownerID string, includeDisabled bool) ([]Image, error)

func (*Client) ListInstanceTypes added in v0.22.0

func (c *Client) ListInstanceTypes() ([]InstanceTypeInfo, error)

func (*Client) ListInstances

func (c *Client) ListInstances() ([]Instance, error)

func (*Client) ListKeyPairs added in v0.22.0

func (c *Client) ListKeyPairs() ([]KeyPair, error)

func (*Client) ListPublicImages added in v0.22.0

func (c *Client) ListPublicImages(imageOS string) ([]Image, error)

func (*Client) ListSecurityGroups added in v0.22.0

func (c *Client) ListSecurityGroups() ([]SecurityGroup, error)

func (*Client) ListSecurityGroupsByVPC added in v0.22.0

func (c *Client) ListSecurityGroupsByVPC(vpcID string) ([]SecurityGroup, error)

func (*Client) ListSubnets added in v0.22.0

func (c *Client) ListSubnets() ([]Subnet, error)

func (*Client) RunInstances added in v0.22.0

func (c *Client) RunInstances(input RunInstancesInput) (*RunInstancesOutput, error)

func (*Client) TerminateInstances added in v0.22.0

func (c *Client) TerminateInstances(instanceIDs ...string) (*TerminateInstancesOutput, error)

type CopyImage

type CopyImage struct{}

func (*CopyImage) Cancel

func (c *CopyImage) Cancel(ctx core.ExecutionContext) error

func (*CopyImage) Cleanup

func (c *CopyImage) Cleanup(ctx core.SetupContext) error

func (*CopyImage) Color

func (c *CopyImage) Color() string

func (*CopyImage) Configuration

func (c *CopyImage) Configuration() []configuration.Field

func (*CopyImage) Description

func (c *CopyImage) Description() string

func (*CopyImage) Documentation

func (c *CopyImage) Documentation() string

func (*CopyImage) ExampleOutput

func (c *CopyImage) ExampleOutput() map[string]any

func (*CopyImage) Execute

func (c *CopyImage) Execute(ctx core.ExecutionContext) error

func (*CopyImage) HandleHook added in v0.18.0

func (c *CopyImage) HandleHook(ctx core.ActionHookContext) error

func (*CopyImage) HandleWebhook

func (*CopyImage) Hooks added in v0.18.0

func (c *CopyImage) Hooks() []core.Hook

func (*CopyImage) Icon

func (c *CopyImage) Icon() string

func (*CopyImage) Label

func (c *CopyImage) Label() string

func (*CopyImage) Name

func (c *CopyImage) Name() string

func (*CopyImage) OnIntegrationMessage

func (c *CopyImage) OnIntegrationMessage(ctx core.IntegrationMessageContext) error

func (*CopyImage) OutputChannels

func (c *CopyImage) OutputChannels(configuration any) []core.OutputChannel

func (*CopyImage) ProcessQueueItem

func (c *CopyImage) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)

func (*CopyImage) Setup

func (c *CopyImage) Setup(ctx core.SetupContext) error

type CopyImageConfiguration

type CopyImageConfiguration struct {
	SourceRegion  string  `json:"sourceRegion" mapstructure:"sourceRegion"`
	SourceImageID string  `json:"sourceImageId" mapstructure:"sourceImageId"`
	Region        string  `json:"region" mapstructure:"region"`
	Name          *string `json:"name,omitempty" mapstructure:"name,omitempty"`
	Description   *string `json:"description,omitempty" mapstructure:"description,omitempty"`
}

func (*CopyImageConfiguration) IsDescriptionSet

func (c *CopyImageConfiguration) IsDescriptionSet() bool

func (*CopyImageConfiguration) IsNameSet

func (c *CopyImageConfiguration) IsNameSet() bool

type CopyImageExecutionMetadata

type CopyImageExecutionMetadata struct {
	ImageID       string `json:"imageId" mapstructure:"imageId"`
	SourceImageID string `json:"sourceImageId" mapstructure:"sourceImageId"`
	SourceRegion  string `json:"sourceRegion" mapstructure:"sourceRegion"`
	State         string `json:"state" mapstructure:"state"`
	RequestID     string `json:"requestId" mapstructure:"requestId"`
}

type CopyImageInput

type CopyImageInput struct {
	SourceImageID string
	SourceRegion  string
	Name          string
	Description   string
}

type CopyImageNodeMetadata

type CopyImageNodeMetadata struct {
	Region         string `json:"region" mapstructure:"region"`
	SubscriptionID string `json:"subscriptionId" mapstructure:"subscriptionId"`
}

type CopyImageOutput

type CopyImageOutput struct {
	RequestID     string `json:"requestId" mapstructure:"requestId"`
	ImageID       string `json:"imageId" mapstructure:"imageId"`
	SourceImageID string `json:"sourceImageId" mapstructure:"sourceImageId"`
	SourceRegion  string `json:"sourceRegion" mapstructure:"sourceRegion"`
	Name          string `json:"name" mapstructure:"name"`
	Description   string `json:"description" mapstructure:"description"`
	Region        string `json:"region" mapstructure:"region"`
	State         string `json:"state" mapstructure:"state"`
}

type CreateImage

type CreateImage struct{}

func (*CreateImage) Cancel

func (c *CreateImage) Cancel(ctx core.ExecutionContext) error

func (*CreateImage) Cleanup

func (c *CreateImage) Cleanup(ctx core.SetupContext) error

func (*CreateImage) Color

func (c *CreateImage) Color() string

func (*CreateImage) Configuration

func (c *CreateImage) Configuration() []configuration.Field

func (*CreateImage) Description

func (c *CreateImage) Description() string

func (*CreateImage) Documentation

func (c *CreateImage) Documentation() string

func (*CreateImage) ExampleOutput

func (c *CreateImage) ExampleOutput() map[string]any

func (*CreateImage) Execute

func (c *CreateImage) Execute(ctx core.ExecutionContext) error

func (*CreateImage) HandleHook added in v0.18.0

func (c *CreateImage) HandleHook(ctx core.ActionHookContext) error

func (*CreateImage) HandleWebhook

func (*CreateImage) Hooks added in v0.18.0

func (c *CreateImage) Hooks() []core.Hook

func (*CreateImage) Icon

func (c *CreateImage) Icon() string

func (*CreateImage) Label

func (c *CreateImage) Label() string

func (*CreateImage) Name

func (c *CreateImage) Name() string

func (*CreateImage) OnIntegrationMessage

func (c *CreateImage) OnIntegrationMessage(ctx core.IntegrationMessageContext) error

func (*CreateImage) OutputChannels

func (c *CreateImage) OutputChannels(configuration any) []core.OutputChannel

func (*CreateImage) ProcessQueueItem

func (c *CreateImage) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)

func (*CreateImage) Setup

func (c *CreateImage) Setup(ctx core.SetupContext) error

type CreateImageConfiguration

type CreateImageConfiguration struct {
	Region      string `json:"region" mapstructure:"region"`
	InstanceID  string `json:"instanceId" mapstructure:"instanceId"`
	Name        string `json:"name" mapstructure:"name"`
	Description string `json:"description" mapstructure:"description"`
	NoReboot    bool   `json:"noReboot" mapstructure:"noReboot"`
}

type CreateImageExecutionMetadata

type CreateImageExecutionMetadata struct {
	ImageID string `json:"imageId" mapstructure:"imageId"`
	State   string `json:"state" mapstructure:"state"`
}

type CreateImageInput

type CreateImageInput struct {
	InstanceID  string
	Name        string
	Description string
	NoReboot    bool
}

type CreateImageNodeMetadata

type CreateImageNodeMetadata struct {
	Region         string `json:"region" mapstructure:"region"`
	SubscriptionID string `json:"subscriptionId" mapstructure:"subscriptionId"`
}

type CreateImageOutput

type CreateImageOutput struct {
	RequestID  string `json:"requestId" mapstructure:"requestId"`
	ImageID    string `json:"imageId" mapstructure:"imageId"`
	InstanceID string `json:"instanceId" mapstructure:"instanceId"`
	Name       string `json:"name" mapstructure:"name"`
	Region     string `json:"region" mapstructure:"region"`
	State      string `json:"state" mapstructure:"state"`
}

type CreateInstance added in v0.22.0

type CreateInstance struct{}

func (*CreateInstance) Cancel added in v0.22.0

func (c *CreateInstance) Cancel(ctx core.ExecutionContext) error

func (*CreateInstance) Cleanup added in v0.22.0

func (c *CreateInstance) Cleanup(ctx core.SetupContext) error

func (*CreateInstance) Color added in v0.22.0

func (c *CreateInstance) Color() string

func (*CreateInstance) Configuration added in v0.22.0

func (c *CreateInstance) Configuration() []configuration.Field

func (*CreateInstance) Description added in v0.22.0

func (c *CreateInstance) Description() string

func (*CreateInstance) Documentation added in v0.22.0

func (c *CreateInstance) Documentation() string

func (*CreateInstance) ExampleOutput added in v0.22.0

func (c *CreateInstance) ExampleOutput() map[string]any

func (*CreateInstance) Execute added in v0.22.0

func (c *CreateInstance) Execute(ctx core.ExecutionContext) error

func (*CreateInstance) HandleHook added in v0.22.0

func (c *CreateInstance) HandleHook(ctx core.ActionHookContext) error

func (*CreateInstance) HandleWebhook added in v0.22.0

func (*CreateInstance) Hooks added in v0.22.0

func (c *CreateInstance) Hooks() []core.Hook

func (*CreateInstance) Icon added in v0.22.0

func (c *CreateInstance) Icon() string

func (*CreateInstance) Label added in v0.22.0

func (c *CreateInstance) Label() string

func (*CreateInstance) Name added in v0.22.0

func (c *CreateInstance) Name() string

func (*CreateInstance) OutputChannels added in v0.22.0

func (c *CreateInstance) OutputChannels(configuration any) []core.OutputChannel

func (*CreateInstance) ProcessQueueItem added in v0.22.0

func (c *CreateInstance) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)

func (*CreateInstance) Setup added in v0.22.0

func (c *CreateInstance) Setup(ctx core.SetupContext) error

type CreateInstanceConfiguration added in v0.22.0

type CreateInstanceConfiguration struct {
	Name                     string `json:"name" mapstructure:"name"`
	Region                   string `json:"region" mapstructure:"region"`
	ImageOS                  string `json:"imageOs" mapstructure:"imageOs"`
	ImageID                  string `json:"image" mapstructure:"image"`
	InstanceType             string `json:"instanceType" mapstructure:"instanceType"`
	SubnetID                 string `json:"subnet" mapstructure:"subnet"`
	SecurityGroupMode        string `json:"securityGroupMode" mapstructure:"securityGroupMode"`
	SecurityGroupID          string `json:"securityGroup" mapstructure:"securityGroup"`
	AllowSSHFromInternet     bool   `json:"allowSshFromInternet" mapstructure:"allowSshFromInternet"`
	AllowHTTPFromInternet    bool   `json:"allowHttpFromInternet" mapstructure:"allowHttpFromInternet"`
	AllowHTTPSFromInternet   bool   `json:"allowHttpsFromInternet" mapstructure:"allowHttpsFromInternet"`
	KeyName                  string `json:"keyName" mapstructure:"keyName"`
	UserData                 string `json:"userData" mapstructure:"userData"`
	AssociatePublicIPAddress bool   `json:"associatePublicIpAddress" mapstructure:"associatePublicIpAddress"`
	ConfigureRootVolume      bool   `json:"configureRootVolume" mapstructure:"configureRootVolume"`
	VolumeSizeGiB            int    `json:"volumeSizeGiB" mapstructure:"volumeSizeGiB"`
	VolumeType               string `json:"volumeType" mapstructure:"volumeType"`
	VolumeIops               int    `json:"volumeIops" mapstructure:"volumeIops"`
}

type CreateInstanceExecutionMetadata added in v0.22.0

type CreateInstanceExecutionMetadata struct {
	InstanceID   string `json:"instanceId" mapstructure:"instanceId"`
	PollErrors   int    `json:"pollErrors" mapstructure:"pollErrors"`
	PollAttempts int    `json:"pollAttempts" mapstructure:"pollAttempts"`
}

type CreateInstanceNodeMetadata added in v0.22.0

type CreateInstanceNodeMetadata struct {
	Region            string `json:"region" mapstructure:"region"`
	Name              string `json:"name,omitempty" mapstructure:"name"`
	ImageOS           string `json:"imageOs,omitempty" mapstructure:"imageOs"`
	ImageOSLabel      string `json:"imageOsLabel,omitempty" mapstructure:"imageOsLabel"`
	InstanceType      string `json:"instanceType,omitempty" mapstructure:"instanceType"`
	ImageID           string `json:"image,omitempty" mapstructure:"image"`
	SubnetID          string `json:"subnet,omitempty" mapstructure:"subnet"`
	SecurityGroupID   string `json:"securityGroup,omitempty" mapstructure:"securityGroup"`
	SecurityGroupMode string `json:"securityGroupMode,omitempty" mapstructure:"securityGroupMode"`
	SubnetName        string `json:"subnetName,omitempty" mapstructure:"subnetName"`
	SecurityGroupName string `json:"securityGroupName,omitempty" mapstructure:"securityGroupName"`
	ImageName         string `json:"imageName,omitempty" mapstructure:"imageName"`
}

type DeleteInstance added in v0.22.0

type DeleteInstance struct{}

func (*DeleteInstance) Cancel added in v0.22.0

func (c *DeleteInstance) Cancel(ctx core.ExecutionContext) error

func (*DeleteInstance) Cleanup added in v0.22.0

func (c *DeleteInstance) Cleanup(ctx core.SetupContext) error

func (*DeleteInstance) Color added in v0.22.0

func (c *DeleteInstance) Color() string

func (*DeleteInstance) Configuration added in v0.22.0

func (c *DeleteInstance) Configuration() []configuration.Field

func (*DeleteInstance) Description added in v0.22.0

func (c *DeleteInstance) Description() string

func (*DeleteInstance) Documentation added in v0.22.0

func (c *DeleteInstance) Documentation() string

func (*DeleteInstance) ExampleOutput added in v0.22.0

func (c *DeleteInstance) ExampleOutput() map[string]any

func (*DeleteInstance) Execute added in v0.22.0

func (c *DeleteInstance) Execute(ctx core.ExecutionContext) error

func (*DeleteInstance) HandleHook added in v0.22.0

func (c *DeleteInstance) HandleHook(ctx core.ActionHookContext) error

func (*DeleteInstance) HandleWebhook added in v0.22.0

func (*DeleteInstance) Hooks added in v0.22.0

func (c *DeleteInstance) Hooks() []core.Hook

func (*DeleteInstance) Icon added in v0.22.0

func (c *DeleteInstance) Icon() string

func (*DeleteInstance) Label added in v0.22.0

func (c *DeleteInstance) Label() string

func (*DeleteInstance) Name added in v0.22.0

func (c *DeleteInstance) Name() string

func (*DeleteInstance) OutputChannels added in v0.22.0

func (c *DeleteInstance) OutputChannels(configuration any) []core.OutputChannel

func (*DeleteInstance) ProcessQueueItem added in v0.22.0

func (c *DeleteInstance) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)

func (*DeleteInstance) Setup added in v0.22.0

func (c *DeleteInstance) Setup(ctx core.SetupContext) error

type DeleteInstanceConfiguration added in v0.22.0

type DeleteInstanceConfiguration struct {
	Region     string `json:"region" mapstructure:"region"`
	InstanceID string `json:"instance" mapstructure:"instance"`
}

type DeleteInstanceExecutionMetadata added in v0.22.0

type DeleteInstanceExecutionMetadata struct {
	InstanceID   string `json:"instanceId" mapstructure:"instanceId"`
	PollErrors   int    `json:"pollErrors" mapstructure:"pollErrors"`
	PollAttempts int    `json:"pollAttempts" mapstructure:"pollAttempts"`
}

type DeleteInstanceNodeMetadata added in v0.22.0

type DeleteInstanceNodeMetadata struct {
	Region       string `json:"region" mapstructure:"region"`
	InstanceName string `json:"instanceName" mapstructure:"instanceName"`
}

type DeregisterImage

type DeregisterImage struct{}

func (*DeregisterImage) Cancel

func (c *DeregisterImage) Cancel(ctx core.ExecutionContext) error

func (*DeregisterImage) Cleanup

func (c *DeregisterImage) Cleanup(ctx core.SetupContext) error

func (*DeregisterImage) Color

func (c *DeregisterImage) Color() string

func (*DeregisterImage) Configuration

func (c *DeregisterImage) Configuration() []configuration.Field

func (*DeregisterImage) Description

func (c *DeregisterImage) Description() string

func (*DeregisterImage) Documentation

func (c *DeregisterImage) Documentation() string

func (*DeregisterImage) ExampleOutput

func (c *DeregisterImage) ExampleOutput() map[string]any

func (*DeregisterImage) Execute

func (c *DeregisterImage) Execute(ctx core.ExecutionContext) error

func (*DeregisterImage) HandleHook added in v0.18.0

func (c *DeregisterImage) HandleHook(ctx core.ActionHookContext) error

func (*DeregisterImage) HandleWebhook

func (*DeregisterImage) Hooks added in v0.18.0

func (c *DeregisterImage) Hooks() []core.Hook

func (*DeregisterImage) Icon

func (c *DeregisterImage) Icon() string

func (*DeregisterImage) Label

func (c *DeregisterImage) Label() string

func (*DeregisterImage) Name

func (c *DeregisterImage) Name() string

func (*DeregisterImage) OutputChannels

func (c *DeregisterImage) OutputChannels(configuration any) []core.OutputChannel

func (*DeregisterImage) ProcessQueueItem

func (c *DeregisterImage) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)

func (*DeregisterImage) Setup

func (c *DeregisterImage) Setup(ctx core.SetupContext) error

type DeregisterImageConfiguration

type DeregisterImageConfiguration struct {
	Region          string `json:"region" mapstructure:"region"`
	ImageID         string `json:"imageId" mapstructure:"imageId"`
	DeleteSnapshots bool   `json:"deleteSnapshots" mapstructure:"deleteSnapshots"`
}

type DisableImage

type DisableImage struct{}

func (*DisableImage) Cancel

func (c *DisableImage) Cancel(ctx core.ExecutionContext) error

func (*DisableImage) Cleanup

func (c *DisableImage) Cleanup(ctx core.SetupContext) error

func (*DisableImage) Color

func (c *DisableImage) Color() string

func (*DisableImage) Configuration

func (c *DisableImage) Configuration() []configuration.Field

func (*DisableImage) Description

func (c *DisableImage) Description() string

func (*DisableImage) Documentation

func (c *DisableImage) Documentation() string

func (*DisableImage) ExampleOutput

func (c *DisableImage) ExampleOutput() map[string]any

func (*DisableImage) Execute

func (c *DisableImage) Execute(ctx core.ExecutionContext) error

func (*DisableImage) HandleHook added in v0.18.0

func (c *DisableImage) HandleHook(ctx core.ActionHookContext) error

func (*DisableImage) HandleWebhook

func (*DisableImage) Hooks added in v0.18.0

func (c *DisableImage) Hooks() []core.Hook

func (*DisableImage) Icon

func (c *DisableImage) Icon() string

func (*DisableImage) Label

func (c *DisableImage) Label() string

func (*DisableImage) Name

func (c *DisableImage) Name() string

func (*DisableImage) OutputChannels

func (c *DisableImage) OutputChannels(configuration any) []core.OutputChannel

func (*DisableImage) ProcessQueueItem

func (c *DisableImage) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)

func (*DisableImage) Setup

func (c *DisableImage) Setup(ctx core.SetupContext) error

type DisableImageConfiguration

type DisableImageConfiguration struct {
	Region  string `json:"region" mapstructure:"region"`
	ImageID string `json:"imageId" mapstructure:"imageId"`
}

type DisableImageDeprecation

type DisableImageDeprecation struct{}

func (*DisableImageDeprecation) Cancel

func (*DisableImageDeprecation) Cleanup

func (*DisableImageDeprecation) Color

func (c *DisableImageDeprecation) Color() string

func (*DisableImageDeprecation) Configuration

func (c *DisableImageDeprecation) Configuration() []configuration.Field

func (*DisableImageDeprecation) Description

func (c *DisableImageDeprecation) Description() string

func (*DisableImageDeprecation) Documentation

func (c *DisableImageDeprecation) Documentation() string

func (*DisableImageDeprecation) ExampleOutput

func (c *DisableImageDeprecation) ExampleOutput() map[string]any

func (*DisableImageDeprecation) Execute

func (*DisableImageDeprecation) HandleHook added in v0.18.0

func (*DisableImageDeprecation) HandleWebhook

func (*DisableImageDeprecation) Hooks added in v0.18.0

func (c *DisableImageDeprecation) Hooks() []core.Hook

func (*DisableImageDeprecation) Icon

func (c *DisableImageDeprecation) Icon() string

func (*DisableImageDeprecation) Label

func (c *DisableImageDeprecation) Label() string

func (*DisableImageDeprecation) Name

func (c *DisableImageDeprecation) Name() string

func (*DisableImageDeprecation) OutputChannels

func (c *DisableImageDeprecation) OutputChannels(configuration any) []core.OutputChannel

func (*DisableImageDeprecation) ProcessQueueItem

func (c *DisableImageDeprecation) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)

func (*DisableImageDeprecation) Setup

type DisableImageDeprecationConfiguration

type DisableImageDeprecationConfiguration struct {
	Region  string `json:"region" mapstructure:"region"`
	ImageID string `json:"imageId" mapstructure:"imageId"`
}

type EnableImage

type EnableImage struct{}

func (*EnableImage) Cancel

func (c *EnableImage) Cancel(ctx core.ExecutionContext) error

func (*EnableImage) Cleanup

func (c *EnableImage) Cleanup(ctx core.SetupContext) error

func (*EnableImage) Color

func (c *EnableImage) Color() string

func (*EnableImage) Configuration

func (c *EnableImage) Configuration() []configuration.Field

func (*EnableImage) Description

func (c *EnableImage) Description() string

func (*EnableImage) Documentation

func (c *EnableImage) Documentation() string

func (*EnableImage) ExampleOutput

func (c *EnableImage) ExampleOutput() map[string]any

func (*EnableImage) Execute

func (c *EnableImage) Execute(ctx core.ExecutionContext) error

func (*EnableImage) HandleHook added in v0.18.0

func (c *EnableImage) HandleHook(ctx core.ActionHookContext) error

func (*EnableImage) HandleWebhook

func (*EnableImage) Hooks added in v0.18.0

func (c *EnableImage) Hooks() []core.Hook

func (*EnableImage) Icon

func (c *EnableImage) Icon() string

func (*EnableImage) Label

func (c *EnableImage) Label() string

func (*EnableImage) Name

func (c *EnableImage) Name() string

func (*EnableImage) OutputChannels

func (c *EnableImage) OutputChannels(configuration any) []core.OutputChannel

func (*EnableImage) ProcessQueueItem

func (c *EnableImage) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)

func (*EnableImage) Setup

func (c *EnableImage) Setup(ctx core.SetupContext) error

type EnableImageConfiguration

type EnableImageConfiguration struct {
	Region  string `json:"region" mapstructure:"region"`
	ImageID string `json:"imageId" mapstructure:"imageId"`
}

type EnableImageDeprecation

type EnableImageDeprecation struct{}

func (*EnableImageDeprecation) Cancel

func (*EnableImageDeprecation) Cleanup

func (*EnableImageDeprecation) Color

func (c *EnableImageDeprecation) Color() string

func (*EnableImageDeprecation) Configuration

func (c *EnableImageDeprecation) Configuration() []configuration.Field

func (*EnableImageDeprecation) Description

func (c *EnableImageDeprecation) Description() string

func (*EnableImageDeprecation) Documentation

func (c *EnableImageDeprecation) Documentation() string

func (*EnableImageDeprecation) ExampleOutput

func (c *EnableImageDeprecation) ExampleOutput() map[string]any

func (*EnableImageDeprecation) Execute

func (*EnableImageDeprecation) HandleHook added in v0.18.0

func (*EnableImageDeprecation) HandleWebhook

func (*EnableImageDeprecation) Hooks added in v0.18.0

func (c *EnableImageDeprecation) Hooks() []core.Hook

func (*EnableImageDeprecation) Icon

func (c *EnableImageDeprecation) Icon() string

func (*EnableImageDeprecation) Label

func (c *EnableImageDeprecation) Label() string

func (*EnableImageDeprecation) Name

func (c *EnableImageDeprecation) Name() string

func (*EnableImageDeprecation) OutputChannels

func (c *EnableImageDeprecation) OutputChannels(configuration any) []core.OutputChannel

func (*EnableImageDeprecation) ProcessQueueItem

func (c *EnableImageDeprecation) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)

func (*EnableImageDeprecation) Setup

type EnableImageDeprecationConfiguration

type EnableImageDeprecationConfiguration struct {
	Region      string `json:"region" mapstructure:"region"`
	ImageID     string `json:"imageId" mapstructure:"imageId"`
	DeprecateAt string `json:"deprecateAt" mapstructure:"deprecateAt"`
}

type EnableImageDeprecationOutput

type EnableImageDeprecationOutput struct {
	RequestID   string `json:"requestId" mapstructure:"requestId"`
	ImageID     string `json:"imageId" mapstructure:"imageId"`
	Region      string `json:"region" mapstructure:"region"`
	DeprecateAt string `json:"deprecateAt" mapstructure:"deprecateAt"`
}

type GetImage

type GetImage struct{}

func (*GetImage) Cancel

func (c *GetImage) Cancel(ctx core.ExecutionContext) error

func (*GetImage) Cleanup

func (c *GetImage) Cleanup(ctx core.SetupContext) error

func (*GetImage) Color

func (c *GetImage) Color() string

func (*GetImage) Configuration

func (c *GetImage) Configuration() []configuration.Field

func (*GetImage) Description

func (c *GetImage) Description() string

func (*GetImage) Documentation

func (c *GetImage) Documentation() string

func (*GetImage) ExampleOutput

func (c *GetImage) ExampleOutput() map[string]any

func (*GetImage) Execute

func (c *GetImage) Execute(ctx core.ExecutionContext) error

func (*GetImage) HandleHook added in v0.18.0

func (c *GetImage) HandleHook(ctx core.ActionHookContext) error

func (*GetImage) HandleWebhook

func (*GetImage) Hooks added in v0.18.0

func (c *GetImage) Hooks() []core.Hook

func (*GetImage) Icon

func (c *GetImage) Icon() string

func (*GetImage) Label

func (c *GetImage) Label() string

func (*GetImage) Name

func (c *GetImage) Name() string

func (*GetImage) OutputChannels

func (c *GetImage) OutputChannels(configuration any) []core.OutputChannel

func (*GetImage) ProcessQueueItem

func (c *GetImage) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)

func (*GetImage) Setup

func (c *GetImage) Setup(ctx core.SetupContext) error

type GetImageConfiguration

type GetImageConfiguration struct {
	Region  string `json:"region" mapstructure:"region"`
	ImageID string `json:"imageId" mapstructure:"imageId"`
}

type Image

type Image struct {
	RequestID           string                    `json:"requestId" mapstructure:"requestId"`
	ImageID             string                    `json:"imageId" mapstructure:"imageId"`
	ImageLocation       string                    `json:"imageLocation" mapstructure:"imageLocation"`
	Public              bool                      `json:"public" mapstructure:"public"`
	Name                string                    `json:"name" mapstructure:"name"`
	Description         string                    `json:"description" mapstructure:"description"`
	State               string                    `json:"state" mapstructure:"state"`
	CreationDate        string                    `json:"creationDate" mapstructure:"creationDate"`
	OwnerID             string                    `json:"ownerId" mapstructure:"ownerId"`
	PlatformDetails     string                    `json:"platformDetails" mapstructure:"platformDetails"`
	UsageOperation      string                    `json:"usageOperation" mapstructure:"usageOperation"`
	BlockDeviceMappings []ImageBlockDeviceMapping `json:"blockDeviceMappings" mapstructure:"blockDeviceMappings"`
	EnaSupport          bool                      `json:"enaSupport" mapstructure:"enaSupport"`
	SriovNetSupport     string                    `json:"sriovNetSupport" mapstructure:"sriovNetSupport"`
	BootMode            string                    `json:"bootMode" mapstructure:"bootMode"`
	ImdsSupport         string                    `json:"imdsSupport" mapstructure:"imdsSupport"`
	Architecture        string                    `json:"architecture" mapstructure:"architecture"`
	ImageType           string                    `json:"imageType" mapstructure:"imageType"`
	RootDeviceType      string                    `json:"rootDeviceType" mapstructure:"rootDeviceType"`
	RootDeviceName      string                    `json:"rootDeviceName" mapstructure:"rootDeviceName"`
	VirtualizationType  string                    `json:"virtualizationType" mapstructure:"virtualizationType"`
	Hypervisor          string                    `json:"hypervisor" mapstructure:"hypervisor"`
	Region              string                    `json:"region" mapstructure:"region"`
}

type ImageBlockDeviceMapping

type ImageBlockDeviceMapping struct {
	DeviceName string          `json:"deviceName" mapstructure:"deviceName"`
	Ebs        ImageEbsDetails `json:"ebs" mapstructure:"ebs"`
}

type ImageEbsDetails

type ImageEbsDetails struct {
	DeleteOnTermination bool   `json:"deleteOnTermination" mapstructure:"deleteOnTermination"`
	Iops                int    `json:"iops" mapstructure:"iops"`
	SnapshotID          string `json:"snapshotId" mapstructure:"snapshotId"`
	VolumeSize          int    `json:"volumeSize" mapstructure:"volumeSize"`
	VolumeType          string `json:"volumeType" mapstructure:"volumeType"`
	Throughput          int    `json:"throughput" mapstructure:"throughput"`
	Encrypted           bool   `json:"encrypted" mapstructure:"encrypted"`
}

type Instance

type Instance struct {
	InstanceID   string `json:"instanceId" mapstructure:"instanceId"`
	InstanceType string `json:"instanceType" mapstructure:"instanceType"`
	State        string `json:"state" mapstructure:"state"`
	Name         string `json:"name" mapstructure:"name"`
}

type InstanceDetails added in v0.22.0

type InstanceDetails struct {
	RequestID        string `json:"requestId,omitempty" mapstructure:"requestId"`
	InstanceID       string `json:"instanceId" mapstructure:"instanceId"`
	InstanceType     string `json:"instanceType" mapstructure:"instanceType"`
	ImageID          string `json:"imageId" mapstructure:"imageId"`
	State            string `json:"state" mapstructure:"state"`
	Name             string `json:"name" mapstructure:"name"`
	KeyName          string `json:"keyName,omitempty" mapstructure:"keyName"`
	LaunchTime       string `json:"launchTime,omitempty" mapstructure:"launchTime"`
	PrivateIPAddress string `json:"privateIpAddress,omitempty" mapstructure:"privateIpAddress"`
	PublicIPAddress  string `json:"publicIpAddress,omitempty" mapstructure:"publicIpAddress"`
	PrivateDNSName   string `json:"privateDnsName,omitempty" mapstructure:"privateDnsName"`
	PublicDNSName    string `json:"publicDnsName,omitempty" mapstructure:"publicDnsName"`
	SubnetID         string `json:"subnetId,omitempty" mapstructure:"subnetId"`
	VpcID            string `json:"vpcId,omitempty" mapstructure:"vpcId"`
	Region           string `json:"region" mapstructure:"region"`
}

type InstanceTypeInfo added in v0.22.0

type InstanceTypeInfo struct {
	InstanceType string `json:"instanceType" mapstructure:"instanceType"`
	VCPUs        int    `json:"vcpus" mapstructure:"vcpus"`
	MemoryMiB    int    `json:"memoryMiB" mapstructure:"memoryMiB"`
}

type KeyPair added in v0.22.0

type KeyPair struct {
	KeyName   string `json:"keyName" mapstructure:"keyName"`
	KeyPairID string `json:"keyPairId" mapstructure:"keyPairId"`
}

type OnImage

type OnImage struct{}

func (*OnImage) Cleanup

func (p *OnImage) Cleanup(ctx core.TriggerContext) error

func (*OnImage) Color

func (p *OnImage) Color() string

func (*OnImage) Configuration

func (p *OnImage) Configuration() []configuration.Field

func (*OnImage) Description

func (p *OnImage) Description() string

func (*OnImage) Documentation

func (p *OnImage) Documentation() string

func (*OnImage) ExampleData

func (t *OnImage) ExampleData() map[string]any

func (*OnImage) HandleHook added in v0.18.0

func (p *OnImage) HandleHook(ctx core.TriggerHookContext) (map[string]any, error)

func (*OnImage) HandleWebhook

func (p *OnImage) HandleWebhook(ctx core.WebhookRequestContext) (int, *core.WebhookResponseBody, error)

func (*OnImage) Hooks added in v0.18.0

func (p *OnImage) Hooks() []core.Hook

func (*OnImage) Icon

func (p *OnImage) Icon() string

func (*OnImage) Label

func (p *OnImage) Label() string

func (*OnImage) Name

func (p *OnImage) Name() string

func (*OnImage) OnIntegrationMessage

func (p *OnImage) OnIntegrationMessage(ctx core.IntegrationMessageContext) error

func (*OnImage) Setup

func (p *OnImage) Setup(ctx core.TriggerContext) error

type OnImageConfiguration

type OnImageConfiguration struct {
	Region string   `json:"region" mapstructure:"region"`
	States []string `json:"states" mapstructure:"states"`
}

type OnImageMetadata

type OnImageMetadata struct {
	Region         string `json:"region" mapstructure:"region"`
	SubscriptionID string `json:"subscriptionId" mapstructure:"subscriptionId"`
}

type RootVolumeConfig added in v0.22.0

type RootVolumeConfig struct {
	DeviceName string
	VolumeSize int
	VolumeType string
	Iops       int
}

type RunInstancesInput added in v0.22.0

type RunInstancesInput struct {
	ImageID                  string
	InstanceType             string
	SubnetID                 string
	SecurityGroupIDs         []string
	KeyName                  string
	UserData                 string
	Name                     string
	AssociatePublicIPAddress bool
	RootVolume               *RootVolumeConfig
}

type RunInstancesOutput added in v0.22.0

type RunInstancesOutput struct {
	RequestID  string `json:"requestId" mapstructure:"requestId"`
	InstanceID string `json:"instanceId" mapstructure:"instanceId"`
	Region     string `json:"region" mapstructure:"region"`
	State      string `json:"state" mapstructure:"state"`
}

type SecurityGroup added in v0.22.0

type SecurityGroup struct {
	GroupID     string `json:"groupId" mapstructure:"groupId"`
	GroupName   string `json:"groupName" mapstructure:"groupName"`
	Description string `json:"description" mapstructure:"description"`
	VpcID       string `json:"vpcId" mapstructure:"vpcId"`
}

type SecurityGroupIngressRule added in v0.22.0

type SecurityGroupIngressRule struct {
	Protocol string
	FromPort int
	ToPort   int
	CidrIPv4 string
}

type Subnet added in v0.22.0

type Subnet struct {
	SubnetID         string `json:"subnetId" mapstructure:"subnetId"`
	VpcID            string `json:"vpcId" mapstructure:"vpcId"`
	CidrBlock        string `json:"cidrBlock" mapstructure:"cidrBlock"`
	AvailabilityZone string `json:"availabilityZone" mapstructure:"availabilityZone"`
	Name             string `json:"name" mapstructure:"name"`
}

type TerminateInstancesOutput added in v0.22.0

type TerminateInstancesOutput struct {
	RequestID  string `json:"requestId" mapstructure:"requestId"`
	InstanceID string `json:"instanceId" mapstructure:"instanceId"`
	State      string `json:"state" mapstructure:"state"`
}

Jump to

Keyboard shortcuts

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