alicloud

package
v1.38.0 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2019 License: MPL-2.0 Imports: 70 Imported by: 0

Documentation

Overview

common functions used by datahub

Index

Constants

View Source
const (
	ClassicNet = InstanceNetWork("classic")
	VpcNet     = InstanceNetWork("vpc")
)
View Source
const (
	PrePaid  = PayType("PrePaid")
	PostPaid = PayType("PostPaid")
	Prepaid  = PayType("Prepaid")
	Postpaid = PayType("Postpaid")
)
View Source
const (
	Internet = NetType("Internet")
	Intranet = NetType("Intranet")
)
View Source
const (
	Classic = NetworkType("Classic")
	Vpc     = NetworkType("Vpc")
)
View Source
const (
	Hour  = TimeType("Hour")
	Day   = TimeType("Day")
	Week  = TimeType("Week")
	Month = TimeType("Month")
	Year  = TimeType("Year")
)
View Source
const (
	Pending     = Status("Pending")
	Creating    = Status("Creating")
	Running     = Status("Running")
	Available   = Status("Available")
	Unavailable = Status("Unavailable")
	Modifying   = Status("Modifying")
	Deleting    = Status("Deleting")
	Starting    = Status("Starting")
	Stopping    = Status("Stopping")
	Stopped     = Status("Stopped")
	Normal      = Status("Normal")
	Changing    = Status("Changing")
	Online      = Status("online")
	Configuring = Status("configuring")

	Associating   = Status("Associating")
	Unassociating = Status("Unassociating")
	InUse         = Status("InUse")
	DiskInUse     = Status("In_use")

	Active   = Status("Active")
	Inactive = Status("Inactive")
	Idle     = Status("Idle")

	SoldOut = Status("SoldOut")

	InService      = Status("InService")
	Removing       = Status("Removing")
	DisabledStatus = Status("Disabled")

	Init            = Status("Init")
	Provisioning    = Status("Provisioning")
	Updating        = Status("Updating")
	FinancialLocked = Status("FinancialLocked")

	PUBLISHED   = Status("Published")
	NOPUBLISHED = Status("NonPublished")

	Deleted = Status("Deleted")
)
View Source
const (
	Inner   = IPType("Inner")
	Private = IPType("Private")
	Public  = IPType("Public")
)
View Source
const (
	ResourceTypeInstance      = ResourceType("Instance")
	ResourceTypeDisk          = ResourceType("Disk")
	ResourceTypeVSwitch       = ResourceType("VSwitch")
	ResourceTypeRds           = ResourceType("Rds")
	IoOptimized               = ResourceType("IoOptimized")
	ResourceTypeRkv           = ResourceType("KVStore")
	ResourceTypeFC            = ResourceType("FunctionCompute")
	ResourceTypeElasticsearch = ResourceType("Elasticsearch")
	ResourceTypeSlb           = ResourceType("Slb")
	ResourceTypeMongoDB       = ResourceType("MongoDB")
)
View Source
const (
	PayByBandwidth = InternetChargeType("PayByBandwidth")
	PayByTraffic   = InternetChargeType("PayByTraffic")
	PayBy95        = InternetChargeType("PayBy95")
)
View Source
const (
	DomesticSite = AccountSite("Domestic")
	IntlSite     = AccountSite("International")
)
View Source
const (
	PageSizeSmall  = 10
	PageSizeMedium = 20
	PageSizeLarge  = 50
	PageSizeXLarge = 100
)
View Source
const (
	Http  = Protocol("http")
	Https = Protocol("https")
	Tcp   = Protocol("tcp")
	Udp   = Protocol("udp")
	All   = Protocol("all")
	Icmp  = Protocol("icmp")
	Gre   = Protocol("gre")
)

Constants of protocol definition

View Source
const (
	IOOptimized   = OptimizedType("optimized")
	NoneOptimized = OptimizedType("none")
)
View Source
const (
	TagResourceImage         = TagResourceType("image")
	TagResourceInstance      = TagResourceType("instance")
	TagResourceSnapshot      = TagResourceType("snapshot")
	TagResourceDisk          = TagResourceType("disk")
	TagResourceSecurityGroup = TagResourceType("securitygroup")
	TagResourceEni           = TagResourceType("eni")
)
View Source
const (
	KubernetesNodeMaster = ResourceType("Master")
	KubernetesNodeWorker = ResourceType("Worker")
)
View Source
const (
	// common
	NotFound         = "NotFound"
	WaitForTimeout   = "WaitForTimeout"
	ResourceNotFound = "ResourceNotfound"
	// ecs
	InstanceNotFound        = "Instance.Notfound"
	MessageInstanceNotFound = "instance is not found"
	EcsThrottling           = "Throttling"
	EcsInternalError        = "InternalError"
	// disk
	InternalError       = "InternalError"
	DependencyViolation = "DependencyViolation"
	// eip
	EipIncorrectStatus         = "IncorrectEipStatus"
	InstanceIncorrectStatus    = "IncorrectInstanceStatus"
	HaVipIncorrectStatus       = "IncorrectHaVipStatus"
	COMMODITYINVALID_COMPONENT = "COMMODITY.INVALID_COMPONENT"
	// slb
	LoadBalancerNotFound        = "InvalidLoadBalancerId.NotFound"
	UnsupportedProtocalPort     = "UnsupportedOperationonfixedprotocalport"
	ListenerNotFound            = "The specified resource does not exist"
	ListenerAlreadyExists       = "ListenerAlreadyExists"
	SlbOrderFailed              = "OrderFailed"
	VServerGroupNotFoundMessage = "The specified VServerGroupId does not exist"
	RspoolVipExist              = "RspoolVipExist"
	InvalidParameter            = "InvalidParameter"
	InvalidRuleIdNotFound       = "InvalidRuleId.NotFound"
	RuleDomainExist             = "DomainExist"
	BackendServerConfiguring    = "BackendServer.configuring"

	// slb acl
	SlbAclNumberOverLimit               = "AclNumberOverLimit"
	SlbAclInvalidActionRegionNotSupport = "InvalidAction.RegionNotSupport"
	SlbAclNotExists                     = "AclNotExist"
	SlbAclEntryEmpty                    = "AclEntryEmpty"
	SlbAclNameExist                     = "AclNameExist"
	SlbTokenIsProcessing                = "OperationFailed.TokenIsProcessing"

	SlbCACertificateIdNotFound = "CACertificateId.NotFound"
	// slb server certificate
	SlbServerCertificateIdNotFound = "ServerCertificateId.NotFound"

	// security_group
	InvalidInstanceIdAlreadyExists = "InvalidInstanceId.AlreadyExists"
	InvalidSecurityGroupIdNotFound = "InvalidSecurityGroupId.NotFound"
	SgDependencyViolation          = "DependencyViolation"

	//Nat gateway
	NatGatewayInvalidRegionId            = "Invalid.RegionId"
	DependencyViolationBandwidthPackages = "DependencyViolation.BandwidthPackages"
	VswitchStatusError                   = "VswitchStatusError"
	EIP_NOT_IN_GATEWAY                   = "EIP_NOT_IN_GATEWAY"
	InvalidNatGatewayIdNotFound          = "InvalidNatGatewayId.NotFound"
	// vpc
	VpcQuotaExceeded     = "QuotaExceeded.Vpc"
	InvalidVpcIDNotFound = "InvalidVpcID.NotFound"
	ForbiddenVpcNotFound = "Forbidden.VpcNotFound"
	Throttling           = "Throttling"
	IncorrectVpcStatus   = "IncorrectVpcStatus"
	IncorrectStatus      = "IncorrectStatus"

	// NAS
	InvalidFileSystemIDNotFound = "InvalidFileSystem.NotFound"
	InvalidAccessGroupNotFound  = "InvalidAccessGroup.NotFound"
	ForbiddenNasNotFound        = "Forbidden.NasNotFound"
	InvalidMountTargetNotFound  = "InvalidMountTarget.NotFound"
	InvalidLBidNotFound         = "InvalidLBid.NotFound"
	NasInternalError            = "InternalError"

	//apigatway
	ApiGroupNotFound      = "NotFoundApiGroup"
	RepeatedCommit        = "RepeatedCommit"
	ApiNotFound           = "NotFoundApi"
	NotFoundApp           = "NotFoundApp"
	NotFoundAuthorization = "NotFoundAuthorization"
	NotFoundStage         = "NotFoundStage"
	NotFoundVpc           = "NotFoundVpc"

	// vswitch
	VswitcInvalidRegionId    = "InvalidRegionId.NotFound"
	InvalidVswitchIDNotFound = "InvalidVswitchID.NotFound"
	//route entry
	IncorrectRouteEntryStatus            = "IncorrectRouteEntryStatus"
	InvalidStatusRouteEntry              = "InvalidStatus.RouteEntry"
	TaskConflict                         = "TaskConflict"
	RouterEntryForbbiden                 = "Forbbiden"
	RouterEntryConflictDuplicated        = "RouterEntryConflict.Duplicated"
	InvalidCidrBlockOverlapped           = "InvalidCidrBlock.Overlapped"
	IncorrectOppositeInterfaceInfoNotSet = "IncorrectOppositeInterfaceInfo.NotSet"
	InvalidSnatTableIdNotFound           = "InvalidSnatTableId.NotFound"
	InvalidSnatEntryIdNotFound           = "InvalidSnatEntryId.NotFound"
	IncorretSnatEntryStatus              = "IncorretSnatEntryStatus"
	InvalidRouteEntryNotFound            = "InvalidRouteEntry.NotFound"
	// Forward
	InvalidIpNotInNatgw           = "InvalidIp.NotInNatgw"
	InvalidForwardTableIdNotFound = "InvalidForwardTableId.NotFound"
	InvalidForwardEntryIdNotFound = "InvalidForwardEntryId.NotFound"

	// ess
	InvalidScalingGroupIdNotFound               = "InvalidScalingGroupId.NotFound"
	IncorrectScalingConfigurationLifecycleState = "IncorrectScalingConfigurationLifecycleState"
	IncorrectScalingGroupStatus                 = "IncorrectScalingGroupStatus"
	IncorrectCapacityMaxSize                    = "IncorrectCapacity.MaxSize"
	IncorrectCapacityMinSize                    = "IncorrectCapacity.MinSize"
	ScalingActivityInProgress                   = "ScalingActivityInProgress"
	EssThrottling                               = "Throttling"
	InvalidScalingRuleIdNotFound                = "InvalidScalingRuleId.NotFound"
	InvalidLifecycleHookIdNotFound              = "InvalidLifecycleHookId.NotExist"
	InvalidEssAlarmTaskNotFound                 = "404"
	//drds
	InvalidDRDSInstanceIdNotFound = "InvalidDRDSInstanceId.NotFound"

	//mongodb
	InvalidMongoDBInstanceIdNotFound = "InvalidDBInstanceId.NotFound"
	InvalidMongoDBNameNotFound       = "InvalidDBName.NotFound"

	// rds
	InvalidDBInstanceIdNotFound            = "InvalidDBInstanceId.NotFound"
	InvalidDBNameNotFound                  = "InvalidDBName.NotFound"
	InvalidDBInstanceNameNotFound          = "InvalidDBInstanceName.NotFound"
	InvalidCurrentConnectionStringNotFound = "InvalidCurrentConnectionString.NotFound"
	InvalidRwSplitNetTypeNotFound          = "InvalidRwSplitNetType.NotFound"
	NetTypeExists                          = "NetTypeExists"
	InvalidAccountNameDuplicate            = "InvalidAccountName.Duplicate"
	InvalidAccountNameNotFound             = "InvalidAccountName.NotFound"
	InvalidConnectionStringDuplicate       = "InvalidConnectionString.Duplicate"
	AtLeastOneNetTypeExists                = "AtLeastOneNetTypeExists"
	ConnectionOperationDenied              = "OperationDenied"
	ConnectionConflictMessage              = "The requested resource is sold out in the specified zone; try other types of resources or other regions and zones"
	DBInternalError                        = "InternalError"
	OperationDeniedDBInstanceStatus        = "OperationDenied.DBInstanceStatus"
	DBOperationDeniedOutofUsage            = "OperationDenied.OutofUsage"

	// oss
	OssBucketNotFound                 = "NoSuchBucket"
	OssBodyNotFound                   = "404 Not Found"
	NoSuchCORSConfiguration           = "NoSuchCORSConfiguration"
	NoSuchWebsiteConfiguration        = "NoSuchWebsiteConfiguration"
	InsufficientBucketPolicyException = "InsufficientBucketPolicyException"

	// RAM Instance Not Found
	RamInstanceNotFound   = "Forbidden.InstanceNotFound"
	AliyunGoClientFailure = "AliyunGoClientFailure"

	// dns
	RecordForbiddenDNSChange    = "RecordForbidden.DNSChange"
	FobiddenNotEmptyGroup       = "Fobidden.NotEmptyGroup"
	DomainRecordNotBelongToUser = "DomainRecordNotBelongToUser"
	InvalidDomainNotFound       = "InvalidDomain.NotFound"
	InvalidDomainNameNoExist    = "InvalidDomainName.NoExist"
	DnsInternalError            = "InternalError"

	// ram user
	DeleteConflictUserGroup        = "DeleteConflict.User.Group"
	DeleteConflictUserAccessKey    = "DeleteConflict.User.AccessKey"
	DeleteConflictUserLoginProfile = "DeleteConflict.User.LoginProfile"
	DeleteConflictUserMFADevice    = "DeleteConflict.User.MFADevice"
	DeleteConflictUserPolicy       = "DeleteConflict.User.Policy"

	// ram mfa
	DeleteConflictVirtualMFADeviceUser = "DeleteConflict.VirtualMFADevice.User"

	// ram group
	DeleteConflictGroupUser   = "DeleteConflict.Group.User"
	DeleteConflictGroupPolicy = "DeleteConflict.Group.Policy"

	// ram role
	DeleteConflictRolePolicy = "DeleteConflict.Role.Policy"
	EntityNotExistRole       = "EntityNotExist.Role"

	// ram policy
	DeleteConflictPolicyUser    = "DeleteConflict.Policy.User"
	DeleteConflictPolicyGroup   = "DeleteConflict.Policy.Group"
	DeleteConflictPolicyVersion = "DeleteConflict.Policy.Version"

	//unknown Error
	UnknownError = "UnknownError"

	// Keypair error
	KeyPairNotFound           = "InvalidKeyPair.NotFound"
	KeyPairServiceUnavailable = "ServiceUnavailable"

	// Container
	ErrorClusterNotFound = "ErrorClusterNotFound"

	// cr
	ErrorNamespaceNotExist = "NAMESPACE_NOT_EXIST"
	ErrorRepoNotExist      = "REPO_NOT_EXIST"

	// cdn
	ServiceBusy = "ServiceBusy"

	// KMS
	ForbiddenKeyNotFound = "Forbidden.KeyNotFound"
	// RAM
	InvalidRamRoleNotFound       = "InvalidRamRole.NotFound"
	RoleAttachmentUnExpectedJson = "unexpected end of JSON input"
	InvalidInstanceIdNotFound    = "InvalidInstanceId.NotFound"

	RouterInterfaceIncorrectStatus                        = "IncorrectStatus"
	DependencyViolationRouterInterfaceReferedByRouteEntry = "DependencyViolation.RouterInterfaceReferedByRouteEntry"

	// CS
	ErrorClusterNameAlreadyExist = "ErrorClusterNameAlreadyExist"
	ApplicationNotFound          = "Not Found"
	ApplicationErrorIgnore       = "Unable to reach primary cluster manager"
	ApplicationConfirmConflict   = "Conflicts with unconfirmed updates for operation"

	// privatezone
	ZoneNotExists         = "Zone.NotExists"
	ZoneVpcNotExists      = "ZoneVpc.NotExists.VpcId"
	ZoneVpcExists         = "Zone.VpcExists"
	RecordInvalidConflict = "Record.Invalid.Conflict"
	PvtzInternalError     = "InternalError"
	PvtzThrottlingUser    = "Throttling.User"
	PvtzSystemBusy        = "System.Busy"

	// log
	ProjectNotExist      = "ProjectNotExist"
	IndexConfigNotExist  = "IndexConfigNotExist"
	IndexAlreadyExist    = "IndexAlreadyExist"
	LogStoreNotExist     = "LogStoreNotExist"
	InternalServerError  = "InternalServerError"
	GroupNotExist        = "GroupNotExist"
	MachineGroupNotExist = "MachineGroupNotExist"
	LogClientTimeout     = "Client.Timeout exceeded while awaiting headers"
	LogRequestTimeout    = "RequestTimeout"
	LogConfigNotExist    = "ConfigNotExist"
	// OTS
	OTSObjectNotExist        = "OTSObjectNotExist"
	SuffixNoSuchHost         = "no such host"
	OTSStorageServerBusy     = "OTSStorageServerBusy"
	OTSQuotaExhausted        = "OTSQuotaExhausted"
	OTSQuotaFrequentMsg      = "Too frequent table operations."
	OTSInternalServerError   = "OTSInternalServerError"
	OTSServerBusy            = "OTSServerBusy"
	OTSPartitionUnavailable  = "OTSPartitionUnavailable"
	OTSTimeout               = "OTSTimeout"
	OTSServerUnavailable     = "OTSServerUnavailable"
	OTSRowOperationConflict  = "OTSRowOperationConflict"
	OTSTableNotReady         = "OTSTableNotReady"
	OTSNotEnoughCapacityUnit = "OTSNotEnoughCapacityUnit"

	// FC
	ServiceNotFound  = "ServiceNotFound"
	FunctionNotFound = "FunctionNotFound"
	TriggerNotFound  = "TriggerNotFound"
	AccessDenied     = "AccessDenied"

	// Vpn
	VpnNotFound              = "InvalidVpnGatewayInstanceId.NotFound"
	VpnForbidden             = "Forbidden"
	VpnForbiddenRelease      = "ForbiddenRelease"
	VpnForbiddenSubUser      = "Forbbiden.SubUser"
	CgwNotFound              = "InvalidCustomerGatewayInstanceId.NotFound"
	ResQuotaFull             = "Resource.QuotaFull"
	VpnConnNotFound          = "InvalidVpnConnectionInstanceId.NotFound"
	InvalidIpAddress         = "InvalidIpAddress.AlreadyExist"
	SslVpnServerNotFound     = "InvalidSslVpnServerId.NotFound"
	SslVpnClientCertNotFound = "InvalidSslVpnClientCertId.NotFound"
	VpnConfiguring           = "VpnGateway.Configuring"
	VpnInvalidSpec           = "InvalidSpec.NotFound"
	VpnEnable                = "enable"
	// CEN
	OperationBlocking                = "Operation.Blocking"
	ParameterCenInstanceIdNotExist   = "ParameterCenInstanceId"
	CenQuotaExceeded                 = "QuotaExceeded.CenCountExceeded"
	InvalidCenInstanceStatus         = "InvalidOperation.CenInstanceStatus"
	InvalidChildInstanceStatus       = "InvalidOperation.ChildInstanceStatus"
	ParameterInstanceIdNotExist      = "ParameterInstanceId"
	ForbiddenRelease                 = "Forbidden.Release"
	InvalidCenBandwidthLimitsNotZero = "InvalidOperation.CenBandwidthLimitsNotZero"
	ParameterBwpInstanceId           = "ParameterBwpInstanceId"
	InvalidBwpInstanceStatus         = "InvalidOperation.BwpInstanceStatus"
	InvalidBwpBusinessStatus         = "InvalidOperation.BwpBusinessStatus"
	ParameterIllegal                 = "ParameterIllegal"
	ParameterIllegalCenInstanceId    = "ParameterIllegal.CenInstanceId"
	InstanceNotExist                 = "Instance.NotExist"
	NotFoundRoute                    = "InvalidOperation.NotFoundRoute"
	InvalidStateForOperationMsg      = "not in a valid state for the operation"
	InstanceNotExistMsg              = "The instance is not exist"

	// kv-store
	InvalidKVStoreInstanceIdNotFound = "InvalidInstanceId.NotFound"
	// MNS
	QueueNotExist        = "QueueNotExist"
	TopicNotExist        = "TopicNotExist"
	SubscriptionNotExist = "SubscriptionNotExist"
	//HaVip
	InvalidHaVipIdNotFound = "InvalidHaVipId.NotFound"
	InvalidVipStatus       = "InvalidVip.Status"
	IncorrectHaVipStatus   = "IncorrectHaVipStatus"

	//Cas
	CertNotExist = "CertNotExist"

	InvalidPrivateIpAddressDuplicated = "InvalidPrivateIpAddress.Duplicated"

	// Elasticsearch
	InstanceActivating      = "InstanceActivating"
	ESInstanceNotFound      = "InstanceNotFound"
	ESMustChangeOneResource = "MustChangeOneResource"

	// Ddoscoo
	DdoscooInstanceNotFound = "InstanceNotFound"
	InvalidDdoscooInstance  = "ddos_coop3301"
)
View Source
const (
	AlibabaCloudSdkGoERROR = ErrorSource("[SDK alibaba-cloud-sdk-go ERROR]")
	AliyunLogGoSdkERROR    = ErrorSource("[SDK aliyun-log-go-sdk ERROR]")
	AliyunDatahubSdkGo     = ErrorSource("[SDK aliyun-datahub-sdk-go ERROR]")
	AliyunOssGoSdk         = ErrorSource("[SDK aliyun-oss-go-sdk ERROR]")
	FcGoSdk                = ErrorSource("[SDK fc-go-sdk ERROR]")
	DenverdinoAliyungo     = ErrorSource("[SDK denverdino/aliyungo ERROR]")
	AliyunTablestoreGoSdk  = ErrorSource("[SDK aliyun-tablestore-go-sdk ERROR]")
	ProviderERROR          = ErrorSource("[Provider ERROR]")
)
View Source
const (
	CatalogRequest           = "REQUEST"
	CatalogConstant          = "CONSTANT"
	CatalogSystem            = "SYSTEM"
	ResultType               = "JSON"
	ResultSample             = "Result Sample"
	Visibility               = "PRIVATE"
	AllowSignatureMethod     = "HmacSHA256"
	WebSocketApiType         = "COMMON"
	DeployCommonDescription  = "Terraform Deploy"
	StageNamePre             = "PRE"
	StageNameRelease         = "RELEASE"
	StageNameTest            = "TEST"
	AuthorizationDone        = "DONE"
	ApigatewayDefaultAddress = "http://www.aliyun.com"
	ApigatewayDefaultTimeout = 30
)
View Source
const (
	Average = "Average"
	Minimum = "Minimum"
	Maximum = "Maximum"
)
View Source
const (
	MoreThan        = ">"
	MoreThanOrEqual = ">="
	LessThan        = "<"
	LessThanOrEqual = "<="
	Equal           = "=="
	NotEqual        = "!="
)
View Source
const (
	GroupRuleInternet = GroupRuleNicType("internet")
	GroupRuleIntranet = GroupRuleNicType("intranet")
)
View Source
const (
	DirectionIngress = Direction("ingress")
	DirectionEgress  = Direction("egress")
)
View Source
const (
	GroupRulePolicyAccept = GroupRulePolicy("accept")
	GroupRulePolicyDrop   = GroupRulePolicy("drop")
)
View Source
const (
	GroupInnerAccept = GroupInnerAccessPolicy("Accept")
	GroupInnerDrop   = GroupInnerAccessPolicy("Drop")
)
View Source
const (
	NoSpot             = SpotStrategyType("NoSpot")
	SpotWithPriceLimit = SpotStrategyType("SpotWithPriceLimit")
	SpotAsPriceGo      = SpotStrategyType("SpotAsPriceGo")
)

Constants of SpotStrategyType

View Source
const (
	ZoneResource         = DestinationResource("Zone")
	IoOptimizedResource  = DestinationResource("IoOptimized")
	InstanceTypeResource = DestinationResource("InstanceType")
	SystemDiskResource   = DestinationResource("SystemDisk")
	DataDiskResource     = DestinationResource("DataDisk")
	NetworkResource      = DestinationResource("Network")
)
View Source
const (
	RenewAutoRenewal = RenewalStatus("AutoRenewal")
	RenewNormal      = RenewalStatus("Normal")
	RenewNotRenewal  = RenewalStatus("NotRenewal")
)
View Source
const (
	DiskTypeAll    = DiskType("all")
	DiskTypeSystem = DiskType("system")
	DiskTypeData   = DiskType("data")
)
View Source
const (
	DiskAll             = DiskCategory("all") //Default
	DiskCloud           = DiskCategory("cloud")
	DiskEphemeralSSD    = DiskCategory("ephemeral_ssd")
	DiskCloudEfficiency = DiskCategory("cloud_efficiency")
	DiskCloudSSD        = DiskCategory("cloud_ssd")
)
View Source
const (
	ImageOwnerSystem      = ImageOwnerAlias("system")
	ImageOwnerSelf        = ImageOwnerAlias("self")
	ImageOwnerOthers      = ImageOwnerAlias("others")
	ImageOwnerMarketplace = ImageOwnerAlias("marketplace")
	ImageOwnerDefault     = ImageOwnerAlias("") //Return the values for system, self, and others
)
View Source
const (
	ActiveSecurityEnhancementStrategy   = SecurityEnhancementStrategy("Active")
	DeactiveSecurityEnhancementStrategy = SecurityEnhancementStrategy("Deactive")
)
View Source
const (
	ESVersion553WithXPack = ESVersion("5.5.3_with_X-Pack")
	ESVersion632WithXPck  = ESVersion("6.3.2_with_X-Pack")
)
View Source
const (
	ElasticsearchStatusActive     = ElasticsearchStatus("active")
	ElasticsearchStatusActivating = ElasticsearchStatus("activating")
)
View Source
const (
	Gt  = ComparisonOperator(">")
	Gte = ComparisonOperator(">=")
	Lt  = ComparisonOperator("<")
	Lte = ComparisonOperator("<=")
)
View Source
const (
	Avg = Statistics("Average")
	Min = Statistics("Minimum")
	Max = Statistics("Maximum")
)
View Source
const (
	OneMinite     = Period(60)
	TwoMinite     = Period(120)
	FiveMinite    = Period(300)
	FifteenMinite = Period(900)
)
View Source
const (
	System = MetricType("system")
	Custom = MetricType("custom")
)
View Source
const (
	Continue = ActionResult("CONTINUE")
	Abandon  = ActionResult("ABANDON")
)
View Source
const (
	ScaleOut = LifecycleTransition("SCALE_OUT")
	ScaleIn  = LifecycleTransition("SCALE_IN")
)
View Source
const (
	QuantityChangeInCapacity = AdjustmentType("QuantityChangeInCapacity")
	PercentChangeInCapacity  = AdjustmentType("PercentChangeInCapacity")
	TotalCapacity            = AdjustmentType("TotalCapacity")
)
View Source
const (
	Daily   = RecurrenceType("Daily")
	Weekly  = RecurrenceType("Weekly")
	Monthly = RecurrenceType("Monthly")
)
View Source
const (
	AutoCreated = InstanceCreationType("AutoCreated")
	Attached    = InstanceCreationType("Attached")
)
View Source
const (
	Priority = MultiAzPolicy("PRIORITY")
	Balance  = MultiAzPolicy("BALANCE")
)
View Source
const (
	Enabled         = KeyState("Enabled")
	Disabled        = KeyState("Disabled")
	PendingDeletion = KeyState("PendingDeletion")
)
View Source
const (
	TextType   = IndexFiledType("text")
	LongType   = IndexFiledType("long")
	DoubleType = IndexFiledType("double")
	JsonType   = IndexFiledType("json")
)
View Source
const (
	WiredTiger = MongoDBStorageEngine("WiredTiger")
	RocksDB    = MongoDBStorageEngine("RocksDB")
)
View Source
const (
	ExpirationStatusEnabled  = LifecycleRuleStatus("Enabled")
	ExpirationStatusDisabled = LifecycleRuleStatus("Disabled")
)
View Source
const (
	IntegerType = PrimaryKeyTypeString("Integer")
	StringType  = PrimaryKeyTypeString("String")
	BinaryType  = PrimaryKeyTypeString("Binary")
)
View Source
const (
	AnyNetwork   = InstanceAccessedByType("Any")
	VpcOnly      = InstanceAccessedByType("Vpc")
	VpcOrConsole = InstanceAccessedByType("ConsoleOrVpc")
)
View Source
const (
	OtsCapacity        = OtsInstanceType("Capacity")
	OtsHighPerformance = OtsInstanceType("HighPerformance")
)
View Source
const (
	RecordA     = RecordType("A")
	RecordCNAME = RecordType("CNAME")
	RecordTXT   = RecordType("TXT")
	RecordMX    = RecordType("MX")
	RecordPTR   = RecordType("PTR")
)
View Source
const (
	ARecord           = "A"
	NSRecord          = "NS"
	MXRecord          = "MX"
	TXTRecord         = "TXT"
	CNAMERecord       = "CNAME"
	SRVRecord         = "SRV"
	AAAARecord        = "AAAA"
	CAARecord         = "CAA"
	RedirectURLRecord = "REDIRECT_URL"
	ForwordURLRecord  = "FORWORD_URL"
)
View Source
const (
	MySQL      = Engine("MySQL")
	SQLServer  = Engine("SQLServer")
	PPAS       = Engine("PPAS")
	PostgreSQL = Engine("PostgreSQL")
)
View Source
const (
	ReadOnly  = DBAccountPrivilege("ReadOnly")
	ReadWrite = DBAccountPrivilege("ReadWrite")
)
View Source
const (
	DBAccountNormal = DBAccountType("Normal")
	DBAccountSuper  = DBAccountType("Super")
)
View Source
const (
	KVStoreRedis    = KVStoreInstanceType("Redis")
	KVStoreMemcache = KVStoreInstanceType("Memcache")
)
View Source
const (
	KVStore2Dot8 = KVStoreEngineVersion("2.8")
	KVStore4Dot0 = KVStoreEngineVersion("4.0")
)
View Source
const (
	WRRScheduler = SchedulerType("wrr")
	WLCScheduler = SchedulerType("wlc")
	RRScheduler  = SchedulerType("rr")
)
View Source
const (
	OnFlag  = FlagType("on")
	OffFlag = FlagType("off")
)
View Source
const (
	TlsCipherPolicy_1_0        = TlsCipherPolicy("tls_cipher_policy_1_0")
	TlsCipherPolicy_1_1        = TlsCipherPolicy("tls_cipher_policy_1_1")
	TlsCipherPolicy_1_2        = TlsCipherPolicy("tls_cipher_policy_1_2")
	TlsCipherPolicy_1_2_STRICT = TlsCipherPolicy("tls_cipher_policy_1_2_strict")
)
View Source
const (
	AclTypeBlack = AclType("black")
	AclTypeWhite = AclType("white")
)
View Source
const (
	IPVersion4 = IPVersion("ipv4")
	IPVersion6 = IPVersion("ipv6")
)
View Source
const (
	InsertStickySessionType = StickySessionType("insert")
	ServerStickySessionType = StickySessionType("server")
)
View Source
const (
	HTTP_2XX = HealthCheckHttpCodeType("http_2xx")
	HTTP_3XX = HealthCheckHttpCodeType("http_3xx")
	HTTP_4XX = HealthCheckHttpCodeType("http_4xx")
	HTTP_5XX = HealthCheckHttpCodeType("http_5xx")
)
View Source
const (
	TCPHealthCheckType  = HealthCheckType("tcp")
	HTTPHealthCheckType = HealthCheckType("http")
)
View Source
const (
	S1Small  = "slb.s1.small"
	S2Small  = "slb.s2.small"
	S2Medium = "slb.s2.medium"
	S3Small  = "slb.s3.small"
	S3Medium = "slb.s3.medium"
	S3Large  = "slb.s3.large"
)
View Source
const (
	NatGatewaySmallSpec  = NatGatewaySpec("Small")
	NatGatewayMiddleSpec = NatGatewaySpec("Middle")
	NatGatewayLargeSpec  = NatGatewaySpec("Large")
)
View Source
const (
	EcsInstance = "EcsInstance"
	SlbInstance = "SlbInstance"
	Nat         = "Nat"
	HaVip       = "HaVip"
)
View Source
const (
	VRouter = RouterType("VRouter")
	VBR     = RouterType("VBR")

	InitiatingSide = Role("InitiatingSide")
	AcceptingSide  = Role("AcceptingSide")

	Mini2   = Spec("Mini.2")
	Mini5   = Spec("Mini.5")
	Small1  = Spec("Small.1")
	Small2  = Spec("Small.2")
	Small5  = Spec("Small.5")
	Middle1 = Spec("Middle.1")
	Middle2 = Spec("Middle.2")
	Middle5 = Spec("Middle.5")
	Large1  = Spec("Large.1")
	Large2  = Spec("Large.2")
	Large5  = Spec("Large.5")
	Xlarge1 = Spec("Xlarge.1")

	Negative = Spec(("Negative"))
)
View Source
const (
	NextHopIntance          = NextHopType("Instance") //Default
	NextHopTunnel           = NextHopType("Tunnel")
	NextHopRouterInterface  = NextHopType("RouterInterface")
	NextHopHaVip            = NextHopType("HaVip")
	NextHopVpnGateway       = NextHopType("VpnGateway")
	NextHopNetworkInterface = NextHopType("NetworkInterface")
)
View Source
const (
	Ssl_Cert_Expiring = Status("expiring-soon")
	Ssl_Cert_Normal   = Status("normal")
	Ssl_Cert_Expired  = Status("expired")
)
View Source
const (
	IKE_VERSION_1       = string("ikev1")
	IKE_VERSION_2       = string("ikev2")
	IKE_MODE_MAIN       = string("main")
	IKE_MODE_AGGRESSIVE = string("aggressive")
	VPN_ENC_AES         = string("aes")
	VPN_ENC_AES_192     = string("aes192")
	VPN_ENC_AES_256     = string("aes256")
	VPN_ENC_AES_DES     = string("des")
	VPN_ENC_AES_3DES    = string("3des")
	VPN_AUTH_MD5        = string("md5")
	VPN_AUTH_SHA        = string("sha1")
	VPN_PFS_G1          = string("group1")
	VPN_PFS_G2          = string("group2")
	VPN_PFS_G5          = string("group5")
	VPN_PFS_G14         = string("group14")
	VPN_PFS_G24         = string("group24")
	VPN_UDP_PROTO       = string("UDP")
	VPN_TCP_PROTO       = string("TCP")
	SSL_VPN_ENC_AES_128 = string("AES-128-CBC")
	SSL_VPN_ENC_AES_192 = string("AES-192-CBC")
	SSL_VPN_ENC_AES_256 = string("AES-256-CBC")
	SSL_VPN_ENC_NONE    = string("none")
)
View Source
const (
	KubernetesClusterNetworkTypeFlannel = "flannel"
	KubernetesClusterNetworkTypeTerway  = "terway"

	KubernetesClusterLoggingTypeSLS = "SLS"
)
View Source
const (
	ManagedKubernetesClusterNetworkTypeFlannel      = "flannel"
	ManagedKubernetesClusterNetworkTypeTerway       = "terway"
	ManagedKubernetesCreationDefaultTimeoutInMinute = 60
)
View Source
const (
	RepoTypePublic  = "PUBLIC"
	RepoTypePrivate = "PRIVATE"
)
View Source
const AllPortRange = "-1/-1"
View Source
const BackendServerPort = -520
View Source
const COLON_SEPARATED = ":"
View Source
const COMMA_SEPARATED = ","
View Source
const CharityPageUrl = "http://promotion.alicdn.com/help/oss/error.html"
View Source
const ChildInstanceTypeVbr = "VBR"
View Source
const ChildInstanceTypeVpc = "VPC"
View Source
const DB_DEFAULT_CONNECT_PORT = "3306"

default connect port of db

View Source
const DEFAULT_REGION = "cn-beijing"

default region for all resource

View Source
const DataDefaultErrorMsg = "Datasource %s %s Failed!!! %s"
View Source
const DefaultCenTimeout = 60
View Source
const DefaultCenTimeoutLong = 180
View Source
const DefaultDebugMsg = "\n*************** %s Response *************** \n%s\n%s******************************\n\n"
View Source
const DefaultErrorMsg = "Resource %s %s Failed!!! %s"

A default message of ComplexError's Err. It is format to Resource <resource-id> <operation> Failed!!! <error source>

View Source
const DefaultIntervalLong = 20
View Source
const DefaultIntervalMedium = 10
View Source
const DefaultIntervalMini = 2
View Source
const DefaultIntervalShort = 5
View Source
const DefaultLongTimeout = 1000

timeout for long time progerss product, rds e.g.

View Source
const (
	DefaultStopInstanceTimeout = 300
)
View Source
const DefaultTimeout = 120

timeout for common product, ecs e.g.

View Source
const DefaultTimeoutMedium = 500
View Source
const DefaultTimeoutMsg = "Resource %s %s Timeout!!! %s"
View Source
const DeleteTimeoutMsg = "Resource %s Still Exists. %s Timeout!!! %s"
View Source
const (
	DoesNotExist = "does not exist"
)

It is proactive defense to the case that SDK extends new datahub objects.

View Source
const GenerationFour = "ecs-4"
View Source
const GenerationOne = "ecs-1"
View Source
const GenerationThree = "ecs-3"
View Source
const GenerationTwo = "ecs-2"
View Source
const INT_MAX = 2147483647
View Source
const (
	KubernetesMasterNumber = 3
)
View Source
const LOCAL_HOST_IP = "127.0.0.1"
View Source
const MULTI_IZ_SYMBOL = "MAZ"

symbol of multiIZ

View Source
const MasterNodeAmount = "3"
View Source
const MasterNodeDisk = "20"
View Source
const MasterNodeDiskType = "cloud_ssd"
View Source
const NotFoundMsg = ResourceNotFound + "!!! %s"
View Source
const SLASH_SEPARATED = "/"
View Source
const ScalingGroup = "scaling_group"
View Source
const ServerSideEncryptionAes256 = "AES256"
View Source
const UserId = "userId"
View Source
const WaitInstanceActiveTimeout = 7200
View Source
const WaitTimeoutMsg = "Resource %s %s Timeout In %d Seconds. Got: %s Expected: %s !!! %s"

Variables

View Source
var BACKUP_TIME = []string{
	"00:00Z-01:00Z", "01:00Z-02:00Z", "02:00Z-03:00Z", "03:00Z-04:00Z", "04:00Z-05:00Z",
	"05:00Z-06:00Z", "06:00Z-07:00Z", "07:00Z-08:00Z", "08:00Z-09:00Z", "09:00Z-10:00Z",
	"10:00Z-11:00Z", "11:00Z-12:00Z", "12:00Z-13:00Z", "13:00Z-14:00Z", "14:00Z-15:00Z",
	"15:00Z-16:00Z", "16:00Z-17:00Z", "17:00Z-18:00Z", "18:00Z-19:00Z", "19:00Z-20:00Z",
	"20:00Z-21:00Z", "21:00Z-22:00Z", "22:00Z-23:00Z", "23:00Z-24:00Z",
}
View Source
var CHARACTER_SET_NAME = []string{
	"utf8", "gbk", "latin1", "utf8mb4",
	"Chinese_PRC_CI_AS", "Chinese_PRC_CS_AS", "SQL_Latin1_General_CP1_CI_AS", "SQL_Latin1_General_CP1_CS_AS", "Chinese_PRC_BIN",
}
View Source
var ClientErrorCatcher = Catcher{AliyunGoClientFailure, 10, 5}
View Source
var DBInstanceStatusCatcher = Catcher{OperationDeniedDBInstanceStatus, 60, 5}
_______________                      _______________                       _______________
|              | ______param______\  |              |  _____request_____\  |              |
|   Business   |                     |    Service   |                      |    SDK/API   |
|              | __________________  |              |  __________________  |              |
|______________| \    (obj, err)     |______________|  \ (status, cont)    |______________|
                    |                                    |
                    |A. {instance, nil}                  |a. {200, content}
                    |B. {nil, error}                     |b. {200, nil}
               					  |c. {4xx, nil}

The API return 200 for resource not found. When getInstance is empty, then throw InstanceNotfound error. That the business layer only need to check error.

View Source
var DBReadInstanceNotReadyStatus = []string{"OperationDenied.ReadDBInstanceStatus", "OperationDenied.MasterDBInstanceState", "ReadDBInstance.Mismatch"}
View Source
var DiskInvalidOperation = []string{"IncorrectDiskStatus", "IncorrectInstanceStatus", "OperationConflict", InternalError, "InvalidOperation.Conflict", "IncorrectDiskStatus.Initializing"}
View Source
var EcsNotFound = []string{"InvalidInstanceId.NotFound", "Forbidden.InstanceNotFound"}
View Source
var HalfIoOptimizedFamily = map[string]string{"ecs.s2": "", "ecs.s3": "", "ecs.m1": "", "ecs.m2": "", "ecs.c1": "", "ecs.c2": ""}
View Source
var (
	KubernetesClusterNodeCIDRMasksByDefault = 24
)
View Source
var NetworkInterfaceInvalidOperations = []string{"InvalidOperation.InvalidEniState", "InvalidOperation.InvalidEcsState", "OperationConflict", "ServiceUnavailable", "InternalError"}
View Source
var NoneIoOptimizedFamily = map[string]string{"ecs.t1": "", "ecs.t2": "", "ecs.s1": ""}
View Source
var NoneIoOptimizedInstanceType = map[string]string{"ecs.s2.small": ""}
View Source
var OperationDeniedDBStatus = []string{"OperationDenied.DBStatus", OperationDeniedDBInstanceStatus, DBInternalError, DBOperationDeniedOutofUsage}

details at: https://help.aliyun.com/document_detail/27300.html

View Source
var OutdatedDiskCategory = map[DiskCategory]DiskCategory{
	DiskCloud: DiskCloud}
View Source
var PvtzSystemBusyCatcher = Catcher{PvtzSystemBusy, 30, 5}
View Source
var PvtzThrottlingUserCatcher = Catcher{PvtzThrottlingUser, 30, 2}
View Source
var ServiceBusyCatcher = Catcher{"ServiceUnavailable", 10, 5}
View Source
var SlbIsBusy = []string{"SystemBusy", "OperationBusy", "ServiceIsStopping", "BackendServer.configuring", "ServiceIsConfiguring"}
View Source
var SlsClientTimeoutCatcher = Catcher{LogClientTimeout, 15, 5}
View Source
var SupportedDiskCategory = map[DiskCategory]DiskCategory{
	DiskCloudSSD:        DiskCloudSSD,
	DiskCloudEfficiency: DiskCloudEfficiency,
	DiskEphemeralSSD:    DiskEphemeralSSD,
	DiskCloud:           DiskCloud,
}
View Source
var ThrottlingCatcher = Catcher{Throttling, 10, 10}
View Source
var ValidProtocols = []Protocol{Http, Https, Tcp, Udp}

ValidProtocols network protocol list

View Source
var WEEK_ENUM = []string{"Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"}

Functions

func AccessGroupsDecriptionAttributes

func AccessGroupsDecriptionAttributes(d *schema.ResourceData, nasSetTypes []nas.AccessGroup, meta interface{}) error

func AddTags

func AddTags(client *ecs.Client, args *AddTagsArgs) error

func BoolPointer

func BoolPointer(b bool) *bool

func BuildWrapError

func BuildWrapError(action, id string, source ErrorSource, err error, suggestion string) error

BuildWrapError returns a new error that format the origin error and add some message action: the operation of the origin error is from, like a API or method id: the resource ID of the origin error is from source: the origin error is caused by, it should be one of the ErrorSource err: the origin error suggestion: the advice of how to resolve the origin error

func CommonBandwidthPackagesDecriptionAttributes

func CommonBandwidthPackagesDecriptionAttributes(d *schema.ResourceData, cbwps []vpc.CommonBandwidthPackage, meta interface{}) error

func ConvertIntegerToInt

func ConvertIntegerToInt(value requests.Integer) (v int, err error)

func DescribeDomainDetail

func DescribeDomainDetail(Id string, meta interface{}) (domain cdn.DomainDetail, err error)

func Error

func Error(msg string) error

func ForwardEntriesDecriptionAttributes

func ForwardEntriesDecriptionAttributes(d *schema.ResourceData, entries []vpc.ForwardTableEntry, meta interface{}) error

func GetAllRouterInterfaceSpec

func GetAllRouterInterfaceSpec() (specifications []string)

func GetBandwidthPackageIdAndIpInstanceId

func GetBandwidthPackageIdAndIpInstanceId(d *schema.ResourceData, meta interface{}) (string, string, error)

func GetCenChildInstanceType

func GetCenChildInstanceType(id string) (c string, e error)

func GetFunc

func GetFunc(level int) string

Return a ComplexError which including extra error message, error occurred file and path

func GetNotFoundErrorFromString

func GetNotFoundErrorFromString(str string) error

func GetNotFoundMessage

func GetNotFoundMessage(product, id string) string

func GetTimeErrorFromString

func GetTimeErrorFromString(str string) error

func GetTimeoutMessage

func GetTimeoutMessage(product, status string) string

func GetUserHomeDir

func GetUserHomeDir() (string, error)

func Int32Pointer

func Int32Pointer(i int32) *int32

func IsExceptedError

func IsExceptedError(err error, expectCode string) bool

func IsExceptedErrors

func IsExceptedErrors(err error, expectCodes []string) bool

func MountTargetDescriptionAttributes

func MountTargetDescriptionAttributes(d *schema.ResourceData, nasSetTypes []nas.MountTarget, meta interface{}) error

func NatGatewaysDecriptionAttributes

func NatGatewaysDecriptionAttributes(d *schema.ResourceData, gateways []vpc.NatGateway, meta interface{}) error

func NotFoundError

func NotFoundError(err error) bool

func ParseResourceId

func ParseResourceId(id string, length int) (parts []string, err error)

func Provider

func Provider() terraform.ResourceProvider

Provider returns a schema.Provider for alicloud

func RamEntityNotExist

func RamEntityNotExist(err error) bool

func RemoveTags

func RemoveTags(client *ecs.Client, args *RemoveTagsArgs) error

func RouteEntriesDecriptionAttributes

func RouteEntriesDecriptionAttributes(d *schema.ResourceData, entries []vpc.RouteEntry, meta interface{}) error

func RouteTablesDecriptionAttributes

func RouteTablesDecriptionAttributes(d *schema.ResourceData, tables []vpc.RouterTableListType, meta interface{}) error

func SnatEntriesDecriptionAttributes

func SnatEntriesDecriptionAttributes(d *schema.ResourceData, entries []vpc.SnatTableEntry, meta interface{}) error

func String

func String(v string) *string

func StringPointer

func StringPointer(s string) *string

func Trim

func Trim(v string) string

Remove useless blank in the string.

func VSwitchesDecriptionAttributes

func VSwitchesDecriptionAttributes(d *schema.ResourceData, vsws []vpc.VSwitch, meta interface{}) error

func WaitForDomainStatus

func WaitForDomainStatus(Id string, status Status, timeout int, meta interface{}) error

func WaitForServerCertificate

func WaitForServerCertificate(client *connectivity.AliyunClient, Id string, serverCertificate string, timeout int) error

func WrapComplexError

func WrapComplexError(cause, err error, filepath string, fileline int) error

func WrapError

func WrapError(cause error) error

Return a ComplexError which including error occurred file and path

func WrapErrorf

func WrapErrorf(cause error, msg string, args ...interface{}) error

Return a ComplexError which including extra error message, error occurred file and path

Types

type AccountSite

type AccountSite string

type AclType

type AclType string

type ActionResult

type ActionResult string

type ActionTrailService

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

func (*ActionTrailService) DescribeActionTrail

func (s *ActionTrailService) DescribeActionTrail(id string) (trail actiontrail.TrailListItem, err error)

func (*ActionTrailService) WaitForActionTrail

func (s *ActionTrailService) WaitForActionTrail(id string, timeout int) error

type AddTagsArgs

type AddTagsArgs struct {
	ResourceId   string
	ResourceType ecs.TagResourceType //image, instance, snapshot or disk
	RegionId     common.Region
	Tag          []Tag
}

type AdjustmentType

type AdjustmentType string

type ApiGatewayFunctionComputeConfig

type ApiGatewayFunctionComputeConfig struct {
	Region       string `json:"fcRegionId"`
	ServiceName  string `json:"serviceName"`
	FunctionName string `json:"functionName"`
	Arn          string `json:"roleArn"`
}

type ApiGatewayParameterMap

type ApiGatewayParameterMap struct {
	RequestParamName string `json:"requestParameterName"`
	ServiceParamName string `json:"serviceParameterName"`
}

type ApiGatewayRequestConfig

type ApiGatewayRequestConfig struct {
	Protocol   string `json:"requestProtocol"`
	Method     string `json:"requestHttpMethod"`
	Path       string `json:"requestPath"`
	Mode       string `json:"requestMode"`
	BodyFormat string `json:"bodyFormat"`
}

type ApiGatewayRequestParam

type ApiGatewayRequestParam struct {
	Type             string `json:"parameterType"`
	Name             string `json:"name"`
	ApiParameterName string `json:"apiParameterName"`
	Description      string `json:"description"`
	In               string `json:"location"`
	Required         string `json:"required"`
	DefualtValue     string `json:"defaultValue"`
}

type ApiGatewayServiceConfig

type ApiGatewayServiceConfig struct {
	Protocol            string                          `json:"serviceProtocol"`
	Address             string                          `json:"serviceAddress"`
	Method              string                          `json:"serviceHttpMethod"`
	Path                string                          `json:"servicePath"`
	Timeout             int                             `json:"serviceTimeout"`
	ContentTypeCategory string                          `json:"contentTypeCatagory"`
	ContentTypeValue    string                          `json:"contentTypeValue"`
	MockEnable          string                          `json:"mock"`
	MockResult          string                          `json:"mockResult"`
	VpcEnable           string                          `json:"serviceVpcEnable"`
	FcConfig            ApiGatewayFunctionComputeConfig `json:"functionComputeConfig"`
	VpcConfig           ApiGatewayVpcConfig             `json:"vpcConfig"`
	AoneName            string                          `json:"aoneAppName"`
}

type ApiGatewayServiceParam

type ApiGatewayServiceParam struct {
	Name    string `json:"serviceParameterName"`
	In      string `json:"location"`
	Type    string `json:"parameterType"`
	Catalog string `json:"parameterCatalog"`
}

type ApiGatewayVpcConfig

type ApiGatewayVpcConfig struct {
	Name string `json:"name"`
}

type CasService

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

func (*CasService) DescribeCas

func (s *CasService) DescribeCas(id string) (*cas.Certificate, error)

type Catcher

type Catcher struct {
	Reason           string
	RetryCount       int
	RetryWaitSeconds int
}

type CdnService

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

func (*CdnService) DescribeCdnDomain

func (c *CdnService) DescribeCdnDomain(id string) (*cdn.GetDomainDetailModel, error)

func (*CdnService) DescribeDomainConfig

func (c *CdnService) DescribeDomainConfig(id string) (*cdn.DomainConfig, error)

func (*CdnService) WaitForCdnDomain

func (c *CdnService) WaitForCdnDomain(id string, status Status, timeout int) error

type CenService

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

func (*CenService) CreateCenRouteEntryParas

func (s *CenService) CreateCenRouteEntryParas(vtbId string) (childInstanceId string, instanceType string, err error)

func (*CenService) DescribeCenAttachedChildInstanceById

func (s *CenService) DescribeCenAttachedChildInstanceById(instanceId, cenId string) (c cbn.ChildInstance, err error)

func (*CenService) DescribeCenBandwidthLimit

func (s *CenService) DescribeCenBandwidthLimit(cenId, localRegionId, oppositeRegionId string) (c cbn.CenInterRegionBandwidthLimit, err error)

func (*CenService) DescribeCenBandwidthPackage

func (s *CenService) DescribeCenBandwidthPackage(cenBwpId string) (c cbn.CenBandwidthPackage, err error)

func (*CenService) DescribeCenBandwidthPackageById

func (s *CenService) DescribeCenBandwidthPackageById(cenBwpId string) (c cbn.CenBandwidthPackage, err error)

func (*CenService) DescribeCenInstance

func (s *CenService) DescribeCenInstance(cenId string) (c cbn.Cen, err error)

func (*CenService) DescribePublishedRouteEntriesById

func (s *CenService) DescribePublishedRouteEntriesById(id string) (c cbn.PublishedRouteEntry, err error)

func (*CenService) GetCenAndRegionIds

func (s *CenService) GetCenAndRegionIds(id string) (retString []string, err error)

func (*CenService) GetCenIdAndAnotherId

func (s *CenService) GetCenIdAndAnotherId(id string) (string, string, error)

func (*CenService) SetCenInterRegionBandwidthLimit

func (s *CenService) SetCenInterRegionBandwidthLimit(cenId, localRegionId, oppositeRegionId string, bandwidthLimit int) (err error)

func (*CenService) WaitForCenBandwidthPackage

func (s *CenService) WaitForCenBandwidthPackage(cenBwpId string, status Status, timeout int) error

func (*CenService) WaitForCenBandwidthPackageAttachment

func (s *CenService) WaitForCenBandwidthPackageAttachment(cenBwpId string, status Status, timeout int) error

func (*CenService) WaitForCenBandwidthPackageUpdate

func (s *CenService) WaitForCenBandwidthPackageUpdate(cenBwpId string, bandwidth int, timeout int) error

func (*CenService) WaitForCenChildInstanceAttached

func (s *CenService) WaitForCenChildInstanceAttached(instanceId string, cenId string, status Status, timeout int) error

func (*CenService) WaitForCenChildInstanceDetached

func (s *CenService) WaitForCenChildInstanceDetached(instanceId string, cenId string, timeout int) error

func (*CenService) WaitForCenInstance

func (s *CenService) WaitForCenInstance(id string, status Status, timeout int) error

func (*CenService) WaitForCenInterRegionBandwidthLimitActive

func (s *CenService) WaitForCenInterRegionBandwidthLimitActive(cenId string, localRegionId string, oppositeRegionId string, timeout int) error

func (*CenService) WaitForCenInterRegionBandwidthLimitDestroy

func (s *CenService) WaitForCenInterRegionBandwidthLimitDestroy(cenId string, localRegionId string, oppositeRegionId string, timeout int) error

func (*CenService) WaitForRouterEntryPublished

func (s *CenService) WaitForRouterEntryPublished(id string, status Status, timeout int) error

type CloudApiService

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

func (*CloudApiService) AbolishApi

func (s *CloudApiService) AbolishApi(groupId string, apiId string, stageName string) (err error)

func (*CloudApiService) DeployedApi

func (s *CloudApiService) DeployedApi(groupId string, apiId string, stageName string) (err error)

func (*CloudApiService) DescribeApi

func (s *CloudApiService) DescribeApi(apiId string, groupId string) (api *cloudapi.DescribeApiResponse, err error)

func (*CloudApiService) DescribeApiGroup

func (s *CloudApiService) DescribeApiGroup(groupId string) (apiGroup *cloudapi.DescribeApiGroupResponse, err error)

func (*CloudApiService) DescribeApp

func (s *CloudApiService) DescribeApp(appId string) (app *cloudapi.DescribeAppResponse, err error)

func (*CloudApiService) DescribeAuthorization

func (s *CloudApiService) DescribeAuthorization(id string) (*cloudapi.AuthorizedApp, error)

func (*CloudApiService) DescribeDeployedApi

func (s *CloudApiService) DescribeDeployedApi(groupId string, apiId string, stageName string) (api *cloudapi.DescribeDeployedApiResponse, err error)

func (*CloudApiService) DescribeVpcAccess

func (s *CloudApiService) DescribeVpcAccess(id string) (vpc *cloudapi.VpcAccessAttribute, e error)

func (*CloudApiService) WaitForAppAttachmentAuthorization

func (s *CloudApiService) WaitForAppAttachmentAuthorization(id string, timeout int) (err error)

type CmsService

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

func (*CmsService) BuildCmsAlarmRequest

func (s *CmsService) BuildCmsAlarmRequest(id string) *requests.CommonRequest

func (*CmsService) BuildCmsCommonRequest

func (s *CmsService) BuildCmsCommonRequest(region string) *requests.CommonRequest

func (*CmsService) DescribeAlarm

func (s *CmsService) DescribeAlarm(id string) (alarm cms.AlarmInListAlarm, err error)

func (*CmsService) WaitForCmsAlarm

func (s *CmsService) WaitForCmsAlarm(id string, enabled bool, timeout int) error

type CommonBandwidthPackageService

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

func (*CommonBandwidthPackageService) DescribeCommonBandwidthPackage

func (s *CommonBandwidthPackageService) DescribeCommonBandwidthPackage(commonBandwidthPackageId string) (v vpc.CommonBandwidthPackage, err error)

func (*CommonBandwidthPackageService) DescribeCommonBandwidthPackageAttachment

func (s *CommonBandwidthPackageService) DescribeCommonBandwidthPackageAttachment(bandwidthPackageId string, ipInstanceId string) (err error)

func (*CommonBandwidthPackageService) WaitForCommonBandwidthPackage

func (s *CommonBandwidthPackageService) WaitForCommonBandwidthPackage(commonBandwidthPackageId string, timeout int) error

func (*CommonBandwidthPackageService) WaitForCommonBandwidthPackageAttachment

func (s *CommonBandwidthPackageService) WaitForCommonBandwidthPackageAttachment(bandwidthPackageId string, ipInstanceId string, timeout int) error

type ComparisonOperator

type ComparisonOperator string

type ComplexError

type ComplexError struct {
	Cause error
	Err   error
	Path  string
	Line  int
}

ComplexError is a format error which inclouding origin error, extra error message, error occurred file and line Cause: a error is a origin error that comes from SDK, some expections and so on Err: a new error is built from extra message Path: the file path of error occurred Line: the file line of error occurred

func (ComplexError) Error

func (e ComplexError) Error() string

type CrService

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

func (*CrService) DescribeNamespace

func (c *CrService) DescribeNamespace(namespaceName string) (*cr.GetNamespaceResponse, error)

func (*CrService) DescribeRepo

func (c *CrService) DescribeRepo(repoPath string) (*cr.GetRepoResponse, error)

type CsService

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

func (*CsService) DescribeContainerApplication

func (s *CsService) DescribeContainerApplication(clusterName, appName string) (app cs.GetProjectResponse, err error)

func (*CsService) GetContainerClusterAndCertsByName

func (s *CsService) GetContainerClusterAndCertsByName(name string) (*cs.ClusterType, *cs.ClusterCerts, error)

func (*CsService) GetContainerClusterByName

func (s *CsService) GetContainerClusterByName(name string) (cluster cs.ClusterType, err error)

func (*CsService) WaitForContainerApplication

func (s *CsService) WaitForContainerApplication(clusterName, appName string, status Status, timeout int) error

type DBAccountPrivilege

type DBAccountPrivilege string

type DBAccountType

type DBAccountType string

type DdoscooService

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

func (*DdoscooService) DescribeDdoscooInstance

func (s *DdoscooService) DescribeDdoscooInstance(id string) (v ddoscoo.Instance, err error)

func (*DdoscooService) DescribeDdoscooInstanceSpec

func (s *DdoscooService) DescribeDdoscooInstanceSpec(id string) (v ddoscoo.InstanceSpec, err error)

func (*DdoscooService) UpdateDdoscooInstanceName

func (s *DdoscooService) UpdateDdoscooInstanceName(instanceId string, name string) error

func (*DdoscooService) UpdateInstanceSpec

func (s *DdoscooService) UpdateInstanceSpec(schemaName string, specName string, d *schema.ResourceData, meta interface{}) error

type DestinationResource

type DestinationResource string

type Direction

type Direction string

type DiskCategory

type DiskCategory string

type DiskType

type DiskType string

type DnsService

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

func (*DnsService) DescribeDns

func (s *DnsService) DescribeDns(id string) (*alidns.DescribeDomainInfoResponse, error)

func (*DnsService) DescribeDnsGroup

func (dns *DnsService) DescribeDnsGroup(id string) (alidns.DomainGroup, error)

func (*DnsService) DescribeDnsRecord

func (dns *DnsService) DescribeDnsRecord(id string) (*alidns.DescribeDomainRecordInfoResponse, error)

type DrdsService

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

func (*DrdsService) CreateDrdsInstance

func (s *DrdsService) CreateDrdsInstance(req *drds.CreateDrdsInstanceRequest) (response *drds.CreateDrdsInstanceResponse, err error)

crate Drdsinstance

func (*DrdsService) DescribeDrdsInstance

func (s *DrdsService) DescribeDrdsInstance(drdsInstanceId string) (response *drds.DescribeDrdsInstanceResponse, err error)

func (*DrdsService) DescribeDrdsInstances

func (s *DrdsService) DescribeDrdsInstances(regionId string) (response *drds.DescribeDrdsInstancesResponse, err error)

func (*DrdsService) ModifyDrdsInstanceDescription

func (s *DrdsService) ModifyDrdsInstanceDescription(request *drds.ModifyDrdsInstanceDescriptionRequest) (response *drds.ModifyDrdsInstanceDescriptionResponse, err error)

func (*DrdsService) RemoveDrdsInstance

func (s *DrdsService) RemoveDrdsInstance(drdsInstanceId string) (response *drds.RemoveDrdsInstanceResponse, err error)

func (*DrdsService) WaitForDrdsInstance

func (s *DrdsService) WaitForDrdsInstance(instanceId string, status string, timeout int) error

type ESVersion

type ESVersion string

type EcsService

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

func (*EcsService) AttachKeyPair

func (s *EcsService) AttachKeyPair(keyname string, instanceIds []interface{}) error

func (*EcsService) DescribeAvailableResources

func (s *EcsService) DescribeAvailableResources(d *schema.ResourceData, meta interface{}, destination DestinationResource) (zoneId string, validZones []ecs.AvailableZone, err error)

func (*EcsService) DescribeDisk

func (s *EcsService) DescribeDisk(id string) (disk ecs.Disk, err error)

func (*EcsService) DescribeDiskAttachment

func (s *EcsService) DescribeDiskAttachment(id string) (disk ecs.Disk, err error)

func (*EcsService) DescribeDisksByType

func (s *EcsService) DescribeDisksByType(instanceId string, diskType DiskType) (disk []ecs.Disk, err error)

func (*EcsService) DescribeImageById

func (s *EcsService) DescribeImageById(id string) (image ecs.Image, err error)

func (*EcsService) DescribeInstanceAttribute

func (s *EcsService) DescribeInstanceAttribute(id string) (instance ecs.DescribeInstanceAttributeResponse, err error)

func (*EcsService) DescribeInstanceById

func (s *EcsService) DescribeInstanceById(id string) (instance ecs.Instance, err error)

func (*EcsService) DescribeKeyPair

func (s *EcsService) DescribeKeyPair(keyName string) (keypair ecs.KeyPair, err error)

func (*EcsService) DescribeNetworkInterfaceById

func (s *EcsService) DescribeNetworkInterfaceById(instanceId string, eniId string) (networkInterface ecs.NetworkInterfaceSet, err error)

func (*EcsService) DescribeSecurityGroupAttribute

func (s *EcsService) DescribeSecurityGroupAttribute(securityGroupId string) (group ecs.DescribeSecurityGroupAttributeResponse, err error)

func (*EcsService) DescribeSecurityGroupRule

func (s *EcsService) DescribeSecurityGroupRule(groupId, direction, ipProtocol, portRange, nicType, cidr_ip, policy string, priority int) (rule ecs.Permission, err error)

func (*EcsService) DescribeTags

func (s *EcsService) DescribeTags(resourceId string, resourceType TagResourceType) (tags []ecs.Tag, err error)

func (*EcsService) DescribeZone

func (s *EcsService) DescribeZone(zoneID string) (zone ecs.Zone, err error)

DescribeZone validate zoneId is valid in region

func (*EcsService) DiskAvailable

func (s *EcsService) DiskAvailable(zone ecs.Zone, diskCategory DiskCategory) error

func (*EcsService) InstanceTypeValidation

func (s *EcsService) InstanceTypeValidation(targetType, zoneId string, validZones []ecs.AvailableZone) error

func (*EcsService) JoinSecurityGroups

func (s *EcsService) JoinSecurityGroups(instanceId string, securityGroupIds []string) error

func (*EcsService) JudgeRegionValidation

func (s *EcsService) JudgeRegionValidation(key, region string) error

func (*EcsService) LeaveSecurityGroups

func (s *EcsService) LeaveSecurityGroups(instanceId string, securityGroupIds []string) error

func (*EcsService) QueryInstanceAllDisks

func (s *EcsService) QueryInstanceAllDisks(id string) ([]string, error)

func (*EcsService) QueryInstanceSystemDisk

func (s *EcsService) QueryInstanceSystemDisk(id string) (disk ecs.Disk, err error)

func (*EcsService) QueryInstancesWithKeyPair

func (s *EcsService) QueryInstancesWithKeyPair(instanceIdsStr, keypair string) (instanceIds []string, instances []ecs.Instance, err error)

func (*EcsService) QueryPrivateIps

func (s *EcsService) QueryPrivateIps(eniId string) ([]string, error)

func (*EcsService) ResourceAvailable

func (s *EcsService) ResourceAvailable(zone ecs.Zone, resourceType ResourceType) error

ResourceAvailable check resource available for zone

func (*EcsService) WaitForDisk

func (s *EcsService) WaitForDisk(id string, status Status, timeout int) error

func (*EcsService) WaitForDiskAttachment

func (s *EcsService) WaitForDiskAttachment(id string, status Status, timeout int) error

func (*EcsService) WaitForEcsInstance

func (s *EcsService) WaitForEcsInstance(instanceId string, status Status, timeout int) error

WaitForInstance waits for instance to given status

func (*EcsService) WaitForEcsNetworkInterface

func (s *EcsService) WaitForEcsNetworkInterface(eniId string, status Status, timeout int) error

func (*EcsService) WaitForModifySecurityGroupPolicy

func (s *EcsService) WaitForModifySecurityGroupPolicy(id, target string, timeout int) error

func (*EcsService) WaitForPrivateIpsCountChanged

func (s *EcsService) WaitForPrivateIpsCountChanged(eniId string, count int) error

func (*EcsService) WaitForPrivateIpsListChanged

func (s *EcsService) WaitForPrivateIpsListChanged(eniId string, ipList []string) error

func (*EcsService) WaitForVpcAttributesChanged

func (s *EcsService) WaitForVpcAttributesChanged(instanceId, vswitchId, privateIp string) error

type Effect

type Effect string
const (
	Allow Effect = "Allow"
	Deny  Effect = "Deny"
)

type ElasticsearchService

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

func (*ElasticsearchService) DescribeElasticsearchInstance

func (s *ElasticsearchService) DescribeElasticsearchInstance(instanceId string) (v elasticsearch.DescribeInstanceResponse, err error)

func (*ElasticsearchService) WaitForElasticsearchInstance

func (s *ElasticsearchService) WaitForElasticsearchInstance(instanceId string, status []ElasticsearchStatus, timeout int) error

type ElasticsearchStatus

type ElasticsearchStatus string

type Engine

type Engine string

type ErrorSource

type ErrorSource string

type EssService

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

func (*EssService) ActiveScalingConfigurationById

func (s *EssService) ActiveScalingConfigurationById(sgId, configId string) error

func (*EssService) DeleteScalingGroupById

func (s *EssService) DeleteScalingGroupById(sgId string) error

func (*EssService) DeleteScalingRuleById

func (s *EssService) DeleteScalingRuleById(ruleId string) error

func (*EssService) DeleteScheduleById

func (s *EssService) DeleteScheduleById(scheduleId string) error

func (*EssService) DescribeEssAlarmById

func (s *EssService) DescribeEssAlarmById(alarmTaskId string) (alarm ess.Alarm, err error)

func (*EssService) DescribeLifecycleHookById

func (s *EssService) DescribeLifecycleHookById(hookId string) (hook ess.LifecycleHook, err error)

func (*EssService) DescribeScalingConfifurations

func (s *EssService) DescribeScalingConfifurations(groupId string) (configs []ess.ScalingConfiguration, err error)

func (*EssService) DescribeScalingConfigurationById

func (s *EssService) DescribeScalingConfigurationById(configId string) (config ess.ScalingConfiguration, err error)

func (*EssService) DescribeScalingGroup

func (s *EssService) DescribeScalingGroup(sgId string) (group ess.ScalingGroup, err error)

func (*EssService) DescribeScalingInstances

func (srv *EssService) DescribeScalingInstances(groupId, configurationId string, instanceIds []string, creationType string) (instances []ess.ScalingInstance, err error)

func (*EssService) DescribeScalingRuleById

func (s *EssService) DescribeScalingRuleById(sgId, ruleId string) (rule ess.ScalingRule, err error)

func (*EssService) DescribeScheduleById

func (s *EssService) DescribeScheduleById(scheduleId string) (task ess.ScheduledTask, err error)

func (*EssService) EssRemoveInstances

func (srv *EssService) EssRemoveInstances(groupId string, instanceIds []string) error

func (*EssService) WaitForScalingGroup

func (s *EssService) WaitForScalingGroup(groupId string, status Status, timeout int) error

WaitForScalingGroup waits for group to given status

type FcService

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

func (*FcService) DescribeFcFunction

func (s *FcService) DescribeFcFunction(service, name string) (function *fc.GetFunctionOutput, err error)

func (*FcService) DescribeFcService

func (s *FcService) DescribeFcService(name string) (service *fc.GetServiceOutput, err error)

func (*FcService) DescribeFcTrigger

func (s *FcService) DescribeFcTrigger(service, function, name string) (trigger *fc.GetTriggerOutput, err error)

type FlagType

type FlagType string

type GroupInnerAccessPolicy

type GroupInnerAccessPolicy string

type GroupRuleNicType

type GroupRuleNicType string

type GroupRulePolicy

type GroupRulePolicy string

type HaVipService

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

func (*HaVipService) DescribeHaVip

func (s *HaVipService) DescribeHaVip(haVipId string) (v vpc.HaVip, err error)

func (*HaVipService) DescribeHaVipAttachment

func (s *HaVipService) DescribeHaVipAttachment(haVipId string, instanceId string) (err error)

func (*HaVipService) WaitForHaVip

func (s *HaVipService) WaitForHaVip(haVipId string, status Status, timeout int) error

func (*HaVipService) WaitForHaVipAttachment

func (s *HaVipService) WaitForHaVipAttachment(haVipId string, instanceId string, timeout int) error

type HealthCheckHttpCodeType

type HealthCheckHttpCodeType string

type HealthCheckType

type HealthCheckType string

type IPType

type IPType string

type IPVersion

type IPVersion string

type IkeConfig

type IkeConfig struct {
	IkeAuthAlg  string
	IkeEncAlg   string
	IkeLifetime int
	IkeMode     string
	IkePfs      string
	IkeVersion  string
	LocalId     string
	RemoteId    string
	Psk         string
}

type ImageOwnerAlias

type ImageOwnerAlias string

type IndexFiledType

type IndexFiledType string

type InstanceAccessedByType

type InstanceAccessedByType string

type InstanceCreationType

type InstanceCreationType string

type InstanceNetWork

type InstanceNetWork string

type InstanceSeries

type InstanceSeries string

type InternetChargeType

type InternetChargeType string

type Invoker

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

func NewInvoker

func NewInvoker() Invoker

func PvtzInvoker

func PvtzInvoker() Invoker

func (*Invoker) AddCatcher

func (a *Invoker) AddCatcher(catcher Catcher)

func (*Invoker) Run

func (a *Invoker) Run(f func() error) error

type IpsecConfig

type IpsecConfig struct {
	IpsecAuthAlg  string
	IpsecEncAlg   string
	IpsecLifetime int
	IpsecPfs      string
}

type KVStoreEngineVersion

type KVStoreEngineVersion string

type KVStoreInstanceType

type KVStoreInstanceType string

type KeyState

type KeyState string

type KmsService

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

func (*KmsService) DescribeKmsKey

func (k *KmsService) DescribeKmsKey(id string) (*kms.DescribeKeyResponse, error)

type KubernetesNodeType

type KubernetesNodeType string

type KvstoreService

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

func (*KvstoreService) DescribeParameters

func (s *KvstoreService) DescribeParameters(instanceId string) (ds *r_kvstore.DescribeParametersResponse, err error)

func (*KvstoreService) DescribeRKVInstanceById

func (s *KvstoreService) DescribeRKVInstanceById(id string) (instance *r_kvstore.DBInstanceAttribute, err error)

func (*KvstoreService) DescribeRKVInstancebackupPolicy

func (s *KvstoreService) DescribeRKVInstancebackupPolicy(id string) (policy *r_kvstore.DescribeBackupPolicyResponse, err error)

func (*KvstoreService) ModifyInstanceConfig

func (s *KvstoreService) ModifyInstanceConfig(instanceId string, config string) error

func (*KvstoreService) WaitForRKVInstance

func (s *KvstoreService) WaitForRKVInstance(instanceId string, status Status, timeout int) error

func (*KvstoreService) WaitForRKVInstanceVpcAuthMode

func (s *KvstoreService) WaitForRKVInstanceVpcAuthMode(instanceId string, status string, timeout int) error

type LifecycleRuleStatus

type LifecycleRuleStatus string

type LifecycleTransition

type LifecycleTransition string

type ListenerErr

type ListenerErr struct {
	ErrType string
	Err     error
}

func (*ListenerErr) Error

func (e *ListenerErr) Error() string

type LoadBalancerSpecType

type LoadBalancerSpecType string

type LogService

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

func (*LogService) DescribeLogLogtailConfig

func (s *LogService) DescribeLogLogtailConfig(projectName, configName string) (logconfig *sls.LogConfig, err error)

func (*LogService) DescribeLogMachineGroup

func (s *LogService) DescribeLogMachineGroup(projectName, groupName string) (group *sls.MachineGroup, err error)

func (*LogService) DescribeLogProject

func (s *LogService) DescribeLogProject(name string) (project *sls.LogProject, err error)

func (*LogService) DescribeLogStore

func (s *LogService) DescribeLogStore(projectName, name string) (store *sls.LogStore, err error)

func (*LogService) DescribeLogStoreIndex

func (s *LogService) DescribeLogStoreIndex(projectName, name string) (index *sls.Index, err error)

func (*LogService) DescribeLogtailAttachment

func (s *LogService) DescribeLogtailAttachment(id string) (groupNames []string, err error)

type MetricType

type MetricType string

type MnsService

type MnsService struct {
}

func (*MnsService) GetTopicNameAndSubscriptionName

func (s *MnsService) GetTopicNameAndSubscriptionName(subscriptionId string) (string, string)

func (*MnsService) QueueNotExistFunc

func (s *MnsService) QueueNotExistFunc(err error) bool

func (*MnsService) SubscriptionNotExistFunc

func (s *MnsService) SubscriptionNotExistFunc(err error) bool

func (*MnsService) TopicNotExistFunc

func (s *MnsService) TopicNotExistFunc(err error) bool

type MongoDBService

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

func (*MongoDBService) DescribeMongoDBInstance

func (s *MongoDBService) DescribeMongoDBInstance(id string) (instance *dds.DBInstance, err error)

func (*MongoDBService) DescribeMongoDBSecurityIps

func (s *MongoDBService) DescribeMongoDBSecurityIps(instanceId string) (ips []dds.SecurityIpGroup, err error)

func (*MongoDBService) GetSecurityIps

func (s *MongoDBService) GetSecurityIps(instanceId string) ([]string, error)

func (*MongoDBService) ModifyMongoDBSecurityIps

func (s *MongoDBService) ModifyMongoDBSecurityIps(instanceId, ips string) error

func (*MongoDBService) NotFoundMongoDBInstance

func (s *MongoDBService) NotFoundMongoDBInstance(err error) bool

func (*MongoDBService) WaitForMongoDBInstance

func (s *MongoDBService) WaitForMongoDBInstance(instanceId string, status Status, timeout int) error

WaitForInstance waits for instance to given statusid

type MongoDBStorageEngine

type MongoDBStorageEngine string

type MultiAzPolicy

type MultiAzPolicy string

type NasService

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

func (*NasService) DescribeNasAccessGroup

func (s *NasService) DescribeNasAccessGroup(id string) (ag nas.AccessGroup, err error)

func (*NasService) DescribeNasAccessRule

func (s *NasService) DescribeNasAccessRule(id string) (fs nas.AccessRule, err error)

func (*NasService) DescribeNasFileSystem

func (s *NasService) DescribeNasFileSystem(id string) (fs nas.FileSystem, err error)

func (*NasService) DescribeNasMountTarget

func (s *NasService) DescribeNasMountTarget(id string) (fs nas.MountTarget, err error)

func (*NasService) WaitForMountTarget

func (s *NasService) WaitForMountTarget(id string, status Status, timeout int) error

type NatGatewaySpec

type NatGatewaySpec string

type NetType

type NetType string

type NetworkType

type NetworkType string

type NextHopType

type NextHopType string

type OptimizedType

type OptimizedType string

type OssService

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

func (*OssService) QueryOssBucketById

func (s *OssService) QueryOssBucketById(id string) (info *oss.BucketInfo, err error)

type OtsInstanceType

type OtsInstanceType string

type OtsService

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

func (*OtsService) DeleteOtsTable

func (s *OtsService) DeleteOtsTable(instanceName, tableName string) (bool, error)

func (*OtsService) DescribeOtsInstance

func (s *OtsService) DescribeOtsInstance(name string) (inst ots.InstanceInfo, err error)

func (*OtsService) DescribeOtsInstanceTypes

func (s *OtsService) DescribeOtsInstanceTypes() (types []string, err error)

func (*OtsService) DescribeOtsInstanceVpc

func (s *OtsService) DescribeOtsInstanceVpc(name string) (inst ots.VpcInfo, err error)

func (*OtsService) DescribeOtsTable

func (s *OtsService) DescribeOtsTable(instanceName, tableName string) (table *tablestore.DescribeTableResponse, err error)

func (*OtsService) WaitForOtsInstance

func (s *OtsService) WaitForOtsInstance(name string, status Status, timeout int) error

type PayType

type PayType string

type Period

type Period int

type Policy

type Policy struct {
	Statement []PolicyStatement
	Version   string
}

type PolicyStatement

type PolicyStatement struct {
	Effect   Effect
	Action   interface{}
	Resource interface{}
}

type PrimaryKeyTypeString

type PrimaryKeyTypeString string

type Principal

type Principal struct {
	Service []string
	RAM     []string
}

type Protocol

type Protocol string

Protocol represents network protocol

type ProviderError

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

An Error represents a custom error for Terraform failure response

func (*ProviderError) Error

func (e *ProviderError) Error() string

func (*ProviderError) ErrorCode

func (err *ProviderError) ErrorCode() string

func (*ProviderError) Message

func (err *ProviderError) Message() string

type PvtzService

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

func (*PvtzService) DescribePvtzZone

func (s *PvtzService) DescribePvtzZone(id string) (zone pvtz.DescribeZoneInfoResponse, err error)

func (*PvtzService) DescribePvtzZoneAttachment

func (s *PvtzService) DescribePvtzZoneAttachment(id string) (object pvtz.DescribeZoneInfoResponse, err error)

func (*PvtzService) DescribeZoneRecord

func (s *PvtzService) DescribeZoneRecord(id string) (record pvtz.Record, err error)

func (*PvtzService) WaitForPvtzZone

func (s *PvtzService) WaitForPvtzZone(id string, status Status, timeout int) error

func (*PvtzService) WaitForPvtzZoneAttachment

func (s *PvtzService) WaitForPvtzZoneAttachment(id string, status Status, timeout int) error

func (*PvtzService) WaitForPvtzZoneRecord

func (s *PvtzService) WaitForPvtzZoneRecord(id string, status Status, timeout int) error

func (*PvtzService) WaitForZoneAttachment

func (s *PvtzService) WaitForZoneAttachment(id string, vpcIdMap map[string]string, timeout int) error

type RamService

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

func (*RamService) AssemblePolicyDocument

func (s *RamService) AssemblePolicyDocument(document []interface{}, version string) (string, error)

func (*RamService) AssembleRolePolicyDocument

func (s *RamService) AssembleRolePolicyDocument(ramUser, service []interface{}, version string) (string, error)

func (*RamService) GetIntersection

func (s *RamService) GetIntersection(dataMap []map[string]interface{}, allDataMap map[string]interface{}) (allData []interface{})

func (*RamService) GetSpecifiedUser

func (s *RamService) GetSpecifiedUser(id string) (*ram.User, error)

func (*RamService) JudgeRolePolicyPrincipal

func (s *RamService) JudgeRolePolicyPrincipal(roleName string) error

Judge whether the role policy contains service "ecs.aliyuncs.com"

func (*RamService) ParsePolicyDocument

func (s *RamService) ParsePolicyDocument(policyDocument string) (statement []map[string]interface{}, version string, err error)

func (*RamService) ParseRolePolicyDocument

func (s *RamService) ParseRolePolicyDocument(policyDocument string) (RolePolicy, error)

type RdsService

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

func (*RdsService) DescribeBackupPolicy

func (s *RdsService) DescribeBackupPolicy(instanceId string) (policy *rds.DescribeBackupPolicyResponse, err error)

func (*RdsService) DescribeDBConnection

func (s *RdsService) DescribeDBConnection(id string) (*rds.DBInstanceNetInfo, error)

func (*RdsService) DescribeDBInstanceById

func (s *RdsService) DescribeDBInstanceById(id string) (instance *rds.DBInstanceAttribute, err error)

func (*RdsService) DescribeDBInstanceMonitor

func (s *RdsService) DescribeDBInstanceMonitor(instanceId string) (monitoringPeriod int, err error)

func (*RdsService) DescribeDBInstanceNetInfo

func (s *RdsService) DescribeDBInstanceNetInfo(instanceId string) ([]rds.DBInstanceNetInfo, error)

func (*RdsService) DescribeDBSecurityIps

func (s *RdsService) DescribeDBSecurityIps(instanceId string) (ips []rds.DBInstanceIPArray, err error)

func (*RdsService) DescribeDatabaseAccount

func (s *RdsService) DescribeDatabaseAccount(instanceId, accountName string) (ds *rds.DBInstanceAccount, err error)

func (*RdsService) DescribeDatabaseByName

func (s *RdsService) DescribeDatabaseByName(instanceId, dbName string) (ds *rds.Database, err error)

func (*RdsService) DescribeMultiIZByRegion

func (s *RdsService) DescribeMultiIZByRegion() (izs []string, err error)

return multiIZ list of current region

func (*RdsService) DescribeParameters

func (s *RdsService) DescribeParameters(instanceId string) (ds *rds.DescribeParametersResponse, err error)

func (*RdsService) DescribeReadWriteSplittingConnection

func (s *RdsService) DescribeReadWriteSplittingConnection(instanceId string) (*rds.DBInstanceNetInfo, error)

func (*RdsService) DescribeSecurityGroupConfiguration

func (s *RdsService) DescribeSecurityGroupConfiguration(instanceid string) (string, error)

func (*RdsService) GetSecurityIps

func (s *RdsService) GetSecurityIps(instanceId string) ([]string, error)

func (*RdsService) GrantAccountPrivilege

func (s *RdsService) GrantAccountPrivilege(instanceId, account, dbName, privilege string) error

func (*RdsService) ModifyDBBackupPolicy

func (s *RdsService) ModifyDBBackupPolicy(instanceId, backupTime, backupPeriod, retentionPeriod, backupLog, LogBackupRetentionPeriod string) error

func (*RdsService) ModifyDBSecurityIps

func (s *RdsService) ModifyDBSecurityIps(instanceId, ips string) error

func (*RdsService) ModifyParameters

func (s *RdsService) ModifyParameters(d *schema.ResourceData, attribute string) error

func (*RdsService) ModifySecurityGroupConfiguration

func (s *RdsService) ModifySecurityGroupConfiguration(instanceid string, groupid string) error

func (*RdsService) NotFoundDBInstance

func (s *RdsService) NotFoundDBInstance(err error) bool

func (*RdsService) RefreshParameters

func (s *RdsService) RefreshParameters(d *schema.ResourceData, attribute string) error

func (*RdsService) ReleaseDBPublicConnection

func (s *RdsService) ReleaseDBPublicConnection(instanceId, connection string) error

func (*RdsService) RevokeAccountPrivilege

func (s *RdsService) RevokeAccountPrivilege(instanceId, account, dbName string) error

func (*RdsService) TransformPeriod2Time

func (s *RdsService) TransformPeriod2Time(period int, chargeType string) (ut int, tt common.TimeType)

turn period to TimeType

func (*RdsService) TransformTime2Period

func (s *RdsService) TransformTime2Period(ut int, tt common.TimeType) (period int)

turn TimeType to Period

func (*RdsService) WaitForAccount

func (s *RdsService) WaitForAccount(instanceId string, accountName string, status Status, timeout int) error

func (*RdsService) WaitForAccountPrivilege

func (s *RdsService) WaitForAccountPrivilege(instanceId, accountName, dbName, privilege string, timeout int) error

func (*RdsService) WaitForAccountPrivilegeRevoked

func (s *RdsService) WaitForAccountPrivilegeRevoked(instanceId, accountName, dbName string, timeout int) error

func (*RdsService) WaitForDBConnection

func (s *RdsService) WaitForDBConnection(id string, timeout int) error

func (*RdsService) WaitForDBInstance

func (s *RdsService) WaitForDBInstance(instanceId string, status Status, timeout int) error

WaitForInstance waits for instance to given status

func (*RdsService) WaitForDBParameter

func (s *RdsService) WaitForDBParameter(instanceId string, timeout int, expects map[string]string) error

WaitForDBParameter waits for instance parameter to given value. Status of DB instance is Running after ModifyParameters API was call, so we can not just wait for instance status become Running, we should wait until parameters have expected values.

func (*RdsService) WaitForDBReadWriteSplitting

func (s *RdsService) WaitForDBReadWriteSplitting(instanceId string, timeout int) error

type RecordType

type RecordType string

type RecurrenceType

type RecurrenceType string

type RemoveTagsArgs

type RemoveTagsArgs struct {
	ResourceId   string
	ResourceType ecs.TagResourceType //image, instance, snapshot or disk
	RegionId     common.Region
	Tag          []Tag
}

type RenewalStatus

type RenewalStatus string

type ResourceType

type ResourceType string

type Role

type Role string

type RolePolicy

type RolePolicy struct {
	Statement []RolePolicyStatement
	Version   string
}

type RolePolicyStatement

type RolePolicyStatement struct {
	Effect    Effect
	Action    string
	Principal Principal
}

type RouteTableService

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

func (*RouteTableService) DescribeRouteTable

func (s *RouteTableService) DescribeRouteTable(routeTableId string) (v vpc.RouterTableListType, err error)

func (*RouteTableService) DescribeRouteTableAttachment

func (s *RouteTableService) DescribeRouteTableAttachment(routeTableId string, vSwitchId string) (err error)

func (*RouteTableService) GetRouteTableIdAndVSwitchId

func (s *RouteTableService) GetRouteTableIdAndVSwitchId(d *schema.ResourceData, meta interface{}) (string, string, error)

func (*RouteTableService) WaitForRouteTable

func (s *RouteTableService) WaitForRouteTable(routeTableId string, timeout int) error

func (*RouteTableService) WaitForRouteTableAttachment

func (s *RouteTableService) WaitForRouteTableAttachment(routeTableId string, vSwitchId string, timeout int) error

type RouterType

type RouterType string

type SchedulerType

type SchedulerType string

type SecurityEnhancementStrategy

type SecurityEnhancementStrategy string

type SecurityGroup

type SecurityGroup struct {
	Attributes   ecs.DescribeSecurityGroupAttributeResponse
	CreationTime string
	Tags         ecs.TagsInDescribeSecurityGroups
}

type SlbService

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

func (*SlbService) BuildSlbCommonRequest

func (s *SlbService) BuildSlbCommonRequest() (*requests.CommonRequest, error)

func (*SlbService) DescribeLoadBalancerAttribute

func (s *SlbService) DescribeLoadBalancerAttribute(slbId string) (loadBalancer *slb.DescribeLoadBalancerAttributeResponse, err error)

func (*SlbService) DescribeLoadBalancerListenerAttribute

func (s *SlbService) DescribeLoadBalancerListenerAttribute(loadBalancerId string, port int, protocol Protocol) (listener map[string]interface{}, err error)

func (*SlbService) DescribeLoadBalancerRuleAttribute

func (s *SlbService) DescribeLoadBalancerRuleAttribute(ruleId string) (*slb.DescribeRuleAttributeResponse, error)

func (*SlbService) DescribeLoadBalancerRuleId

func (s *SlbService) DescribeLoadBalancerRuleId(slbId string, port int, domain, url string) (string, error)

func (*SlbService) DescribeSlbVServerGroupAttribute

func (s *SlbService) DescribeSlbVServerGroupAttribute(groupId string) (*slb.DescribeVServerGroupAttributeResponse, error)

func (*SlbService) FlattenSlbAclEntryMappings

func (s *SlbService) FlattenSlbAclEntryMappings(list []slb.AclEntry) []map[string]interface{}

Flattens an array of slb.AclEntry into a []map[string]string

func (*SlbService) SlbAddAccessControlListEntry

func (s *SlbService) SlbAddAccessControlListEntry(list []interface{}, aclId string) error

func (*SlbService) SlbRemoveAccessControlListEntry

func (s *SlbService) SlbRemoveAccessControlListEntry(list []interface{}, aclId string) error

func (*SlbService) WaitForListener

func (s *SlbService) WaitForListener(loadBalancerId string, port int, protocol Protocol, status Status, timeout int) error

func (*SlbService) WaitForLoadBalancer

func (s *SlbService) WaitForLoadBalancer(loadBalancerId string, status Status, timeout int) error

type SlbTag

type SlbTag struct {
	TagKey   string
	TagValue string
}

type Spec

type Spec string

type SpotStrategyType

type SpotStrategyType string

type Statistics

type Statistics string

type Status

type Status string

type StickySessionType

type StickySessionType string

type Tag

type Tag struct {
	Key   string
	Value string
}

type TagResourceType

type TagResourceType string

type TimeType

type TimeType string

type TlsCipherPolicy

type TlsCipherPolicy string

type VpcService

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

func (*VpcService) ActivateRouterInterface

func (s *VpcService) ActivateRouterInterface(interfaceId string) error

func (*VpcService) DeactivateRouterInterface

func (s *VpcService) DeactivateRouterInterface(interfaceId string) error

func (*VpcService) DescribeEipAddress

func (s *VpcService) DescribeEipAddress(allocationId string) (eip vpc.EipAddress, err error)

func (*VpcService) DescribeEipAttachment

func (s *VpcService) DescribeEipAttachment(attachmentId string) (eip vpc.EipAddress, err error)

func (*VpcService) DescribeForwardEntry

func (s *VpcService) DescribeForwardEntry(forwardTableId string, forwardEntryId string) (entry vpc.ForwardTableEntry, err error)

func (*VpcService) DescribeGrantRulesToCen

func (s *VpcService) DescribeGrantRulesToCen(id string) (rule vpc.CbnGrantRule, err error)

func (*VpcService) DescribeNatGateway

func (s *VpcService) DescribeNatGateway(natGatewayId string) (nat vpc.NatGateway, err error)

func (*VpcService) DescribeRouterInterface

func (s *VpcService) DescribeRouterInterface(regionId, interfaceId string) (ri vpc.RouterInterfaceType, err error)

func (*VpcService) DescribeSnatEntry

func (s *VpcService) DescribeSnatEntry(id string) (snat vpc.SnatTableEntry, err error)

func (*VpcService) DescribeVpc

func (s *VpcService) DescribeVpc(vpcId string) (v vpc.DescribeVpcAttributeResponse, err error)

func (*VpcService) DescribeVswitch

func (s *VpcService) DescribeVswitch(vswitchId string) (v vpc.DescribeVSwitchAttributesResponse, err error)

func (*VpcService) FlattenPublicIpAddressesMappings

func (s *VpcService) FlattenPublicIpAddressesMappings(list []vpc.PublicIpAddresse) []map[string]interface{}

Flattens an array of vpc.public_ip_addresses into a []map[string]string

func (*VpcService) QueryRouteEntry

func (s *VpcService) QueryRouteEntry(routeTableId, cidrBlock, nextHopType, nextHopId string) (rn vpc.RouteEntry, err error)

func (*VpcService) QueryRouteTableById

func (s *VpcService) QueryRouteTableById(routeTableId string) (rt vpc.RouteTable, err error)

func (*VpcService) WaitForAllRouteEntries

func (s *VpcService) WaitForAllRouteEntries(routeTableId string, status Status, timeout int) error

func (*VpcService) WaitForEip

func (s *VpcService) WaitForEip(allocationId string, status Status, timeout int) error

func (*VpcService) WaitForForwardEntry

func (s *VpcService) WaitForForwardEntry(tableId, id string, status Status, timeout int) error

func (*VpcService) WaitForRouterInterface

func (s *VpcService) WaitForRouterInterface(regionId, interfaceId string, status Status, timeout int) error

func (*VpcService) WaitForSnatEntry

func (s *VpcService) WaitForSnatEntry(id string, status Status, timeout int) error

func (*VpcService) WaitForVSwitch

func (s *VpcService) WaitForVSwitch(vswitchId string, status Status, timeout int) error

func (*VpcService) WaitForVpc

func (s *VpcService) WaitForVpc(vpcId string, status Status, timeout int) error

type VpnGatewayService

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

func (*VpnGatewayService) AssembleIkeConfig

func (s *VpnGatewayService) AssembleIkeConfig(ikeCfgParam []interface{}) (string, error)

func (*VpnGatewayService) AssembleIpsecConfig

func (s *VpnGatewayService) AssembleIpsecConfig(ipsecCfgParam []interface{}) (string, error)

func (*VpnGatewayService) AssembleNetworkSubnetToString

func (s *VpnGatewayService) AssembleNetworkSubnetToString(list []interface{}) string

func (*VpnGatewayService) DescribeCustomerGateway

func (s *VpnGatewayService) DescribeCustomerGateway(cgwId string) (v vpc.DescribeCustomerGatewayResponse, err error)

func (*VpnGatewayService) DescribeSslVpnClientCert

func (s *VpnGatewayService) DescribeSslVpnClientCert(id string) (v vpc.DescribeSslVpnClientCertResponse, err error)

func (*VpnGatewayService) DescribeSslVpnServer

func (s *VpnGatewayService) DescribeSslVpnServer(sslId string) (v vpc.SslVpnServer, err error)

func (*VpnGatewayService) DescribeVpnConnection

func (s *VpnGatewayService) DescribeVpnConnection(id string) (v vpc.DescribeVpnConnectionResponse, err error)

func (*VpnGatewayService) DescribeVpnGateway

func (s *VpnGatewayService) DescribeVpnGateway(vpnId string) (v vpc.DescribeVpnGatewayResponse, err error)

func (*VpnGatewayService) ParseIkeConfig

func (s *VpnGatewayService) ParseIkeConfig(ike vpc.IkeConfig) (ikeConfigs []map[string]interface{})

func (*VpnGatewayService) ParseIpsecConfig

func (s *VpnGatewayService) ParseIpsecConfig(ipsec vpc.IpsecConfig) (ipsecConfigs []map[string]interface{})

func (*VpnGatewayService) WaitForCustomerGateway

func (s *VpnGatewayService) WaitForCustomerGateway(id string, status Status, timeout int) error

func (*VpnGatewayService) WaitForSslVpnClientCert

func (s *VpnGatewayService) WaitForSslVpnClientCert(id string, status Status, timeout int) error

func (*VpnGatewayService) WaitForVpn

func (s *VpnGatewayService) WaitForVpn(vpnId string, status Status, timeout int) error

type WrapErrorOld

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

An Error to wrap the different erros

func (*WrapErrorOld) Error

func (e *WrapErrorOld) Error() string

Source Files

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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