standard

package
v0.0.0-...-ba7e8e4 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ROSDefaultEndpoint is the default API endpoint of ESS services
	ROSDefaultEndpoint = "https://ros.aliyuncs.com"
	ROSAPIVersion      = "2019-09-10"
	ROSServiceCode     = "ros"
)
View Source
const (
	DeletionProtectionEnabled  = DeletionProtection("Enabled")
	DeletionProtectionDisabled = DeletionProtection("Disabled")
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	common.Client
}

func NewClient

func NewClient(accessKeyId, accessKeySecret string) *Client

NewClient creates a new instance of RDS client

func NewClientWithEndpoint

func NewClientWithEndpoint(endpoint string, accessKeyId, accessKeySecret string) *Client

func NewClientWithRegion

func NewClientWithRegion(endpoint string, accessKeyId, accessKeySecret string, regionID common.Region) *Client

func NewROSClient

func NewROSClient(accessKeyId, accessKeySecret string, regionID common.Region) *Client

func (*Client) CreateStack

func (client *Client) CreateStack(args *CreateStackRequest) (*CreateStackResponse, error)

func (*Client) DeleteStack

func (client *Client) DeleteStack(req *DeleteStackRequest) (*DeleteStackResponse, error)

func (*Client) GetStack

func (client *Client) GetStack(req *GetStackRequest) (*GetStackResponse, error)

func (*Client) GetStackResource

func (client *Client) GetStackResource(req *GetStackResourceRequest) (*GetStackResourceResponse, error)

func (*Client) ListStackEvents

func (client *Client) ListStackEvents(args *ListStackEventsRequest) (*ListStackEventsResponse, error)

func (*Client) ListStackResources

func (client *Client) ListStackResources(req *ListStackResourcesRequest) (*ListStackResourcesResponse, error)

func (*Client) ListStacks

func (client *Client) ListStacks(req *ListStacksRequest) (*ListStacksResponse, error)

func (*Client) UpdateStack

func (client *Client) UpdateStack(req *UpdateStackRequest) (*UpdateStackResponse, error)

type CreateStackRequest

type CreateStackRequest struct {
	RegionId           common.Region
	StackName          string
	DisableRollback    bool
	TemplateBody       string
	TemplateURL        string
	Parameters         []Parameter
	StackPolicyURL     string
	TimeoutInMinutes   int
	StackPolicyBody    string
	ClientToken        string
	NotificationURLs   []string
	DeletionProtection DeletionProtection
	RamRoleName        string
}

https://help.aliyun.com/document_detail/28910.html?spm=5176.doc50083.6.580.b5wkQr

type CreateStackResponse

type CreateStackResponse struct {
	StackId string
	common.Response
}

type DeleteStackRequest

type DeleteStackRequest struct {
	RegionId           common.Region
	StackId            string
	RetainAllResources bool
	RetainResources    []string
	RamRoleName        string
}

https://help.aliyun.com/document_detail/28911.html?spm=5176.doc28910.6.581.etoi2Z

type DeleteStackResponse

type DeleteStackResponse struct {
	common.Response
}

type DeletionProtection

type DeletionProtection string

type Event

type Event struct {
	StackId            string
	Status             string
	StackName          string
	StatusReason       string
	EventId            string
	LogicalResourceId  string
	ResourceType       string
	PhysicalResourceId string
	CreateTime         string
}

type GetStackRequest

type GetStackRequest struct {
	RegionId    common.Region
	StackId     string
	ClientToken string
}

type GetStackResourceRequest

type GetStackResourceRequest struct {
	StackId                string
	LogicalResourceId      string
	ClientToken            string
	ShowResourceAttributes bool
	RegionId               common.Region
}

type GetStackResourceResponse

type GetStackResourceResponse struct {
	Status            string
	Description       string
	LogicalResourceId string
	StackId           string

	StackName           string
	StatusReason        string
	PhysicalResourceId  string
	ResourceType        string
	CreateTime          string
	Metadata            map[string]string
	UpdateTime          string
	ResourceAttributes  []ResourceAttribute
	RequestId           string
	DriftDetectionTime  string
	ResourceDriftStatus string
}

type GetStackResponse

type GetStackResponse struct {
	CreateTime          string
	Description         string
	DisableRollback     bool
	NotificationURLs    []string
	Outputs             []Output
	ParentStackId       string
	RegionId            common.Region
	Status              string
	StackId             string
	StackName           string
	Parameters          []Parameter
	UpdateTime          string
	StatusReason        string
	TemplateDescription string
	TimeoutInMinutes    int

	RequestId          string
	DeletionProtection DeletionProtection
	DriftDetectionTime string
	RamRoleName        string
	RootStackId        string
	StackDriftStatus   string
	StackType          string
}

type ListStackEventsRequest

type ListStackEventsRequest struct {
	common.Pagination
	RegionId          common.Region
	StackId           string
	Status            []string
	ResourceType      []string
	LogicalResourceId []string
}

type ListStackEventsResponse

type ListStackEventsResponse struct {
	common.Response
	common.PaginationResult
	RegionId common.Region
	Events   []Event
}

type ListStackResourcesRequest

type ListStackResourcesRequest struct {
	RegionId common.Region
	StackId  string
}

type ListStackResourcesResponse

type ListStackResourcesResponse struct {
	common.Response
	Resources []Resource
}

type ListStacksRequest

type ListStacksRequest struct {
	RegionId        common.Region
	StackId         string
	Status          []string
	ParentStackId   string
	StackName       []string
	ShowNestedStack bool
	Tag             []Tag
	common.Pagination
}

type ListStacksResponse

type ListStacksResponse struct {
	common.PaginationResult
	common.Response
	Stacks []Stack
}

type Output

type Output struct {
	Description string
	OutputKey   string
	OutputValue interface{}
}

type Parameter

type Parameter struct {
	ParameterKey   string
	ParameterValue string
}

type Resource

type Resource struct {
	CreateTime         string
	DriftDetectionTime string
	LogicalResourceId  string
	PhysicalResourceId string

	ResourceDriftStatus string
	ResourceType        string
	StackId             string
	StackName           string
	Status              string
	StatusReason        string
	UpdateTime          string
}

type ResourceAttribute

type ResourceAttribute struct {
	ResourceAttributeValue string
	ResourceAttributeKey   string
}

type Stack

type Stack struct {
	CreateTime string

	DisableRollback    bool
	DriftDetectionTime string
	ParentStackId      string
	RegionId           common.Region
	StackDriftStatus   string
	StackId            string
	StackName          string
	Status             string
	StatusReason       string

	TimeoutInMinutes int
	UpdateTime       string
}

type Tag

type Tag struct {
	Key   string
	Value string
}

type UpdateStackRequest

type UpdateStackRequest struct {
	Parameters                  []Parameter
	RegionId                    string
	StackId                     string
	ClientToken                 string
	StackPolicyDuringUpdateBody string
	TimeoutInMinutes            int
	TemplateBody                string
	StackPolicyURL              string
	StackPolicyDuringUpdateURL  string
	StackPolicyBody             string
	UsePreviousParameters       bool
	DisableRollback             bool
	TemplateURL                 string
	RamRoleName                 string
	ReplacementOption           string
}

type UpdateStackResponse

type UpdateStackResponse struct {
	StackId string
	common.Response
}

Jump to

Keyboard shortcuts

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