Documentation ¶
Index ¶
- func PkgVersion() (semver.Version, error)
- type Certificate
- type CertificateArgs
- type CertificateArray
- type CertificateArrayInput
- type CertificateArrayOutput
- func (CertificateArrayOutput) ElementType() reflect.Type
- func (o CertificateArrayOutput) Index(i pulumi.IntInput) CertificateOutput
- func (o CertificateArrayOutput) ToCertificateArrayOutput() CertificateArrayOutput
- func (o CertificateArrayOutput) ToCertificateArrayOutputWithContext(ctx context.Context) CertificateArrayOutput
- type CertificateInput
- type CertificateMap
- type CertificateMapInput
- type CertificateMapOutput
- func (CertificateMapOutput) ElementType() reflect.Type
- func (o CertificateMapOutput) MapIndex(k pulumi.StringInput) CertificateOutput
- func (o CertificateMapOutput) ToCertificateMapOutput() CertificateMapOutput
- func (o CertificateMapOutput) ToCertificateMapOutputWithContext(ctx context.Context) CertificateMapOutput
- type CertificateOutput
- func (o CertificateOutput) Certificate() pulumi.StringOutput
- func (o CertificateOutput) CreateTime() pulumi.StringOutput
- func (o CertificateOutput) Description() pulumi.StringPtrOutput
- func (o CertificateOutput) Domain() pulumi.StringPtrOutput
- func (CertificateOutput) ElementType() reflect.Type
- func (o CertificateOutput) EnterpriseProjectId() pulumi.StringOutput
- func (o CertificateOutput) ExpireTime() pulumi.StringOutput
- func (o CertificateOutput) Name() pulumi.StringOutput
- func (o CertificateOutput) PrivateKey() pulumi.StringPtrOutput
- func (o CertificateOutput) Region() pulumi.StringOutput
- func (o CertificateOutput) ToCertificateOutput() CertificateOutput
- func (o CertificateOutput) ToCertificateOutputWithContext(ctx context.Context) CertificateOutput
- func (o CertificateOutput) Type() pulumi.StringPtrOutput
- func (o CertificateOutput) UpdateTime() pulumi.StringOutput
- type CertificateState
- type GetFlavorsArgs
- type GetFlavorsFlavor
- type GetFlavorsFlavorArgs
- type GetFlavorsFlavorArray
- type GetFlavorsFlavorArrayInput
- type GetFlavorsFlavorArrayOutput
- func (GetFlavorsFlavorArrayOutput) ElementType() reflect.Type
- func (o GetFlavorsFlavorArrayOutput) Index(i pulumi.IntInput) GetFlavorsFlavorOutput
- func (o GetFlavorsFlavorArrayOutput) ToGetFlavorsFlavorArrayOutput() GetFlavorsFlavorArrayOutput
- func (o GetFlavorsFlavorArrayOutput) ToGetFlavorsFlavorArrayOutputWithContext(ctx context.Context) GetFlavorsFlavorArrayOutput
- type GetFlavorsFlavorInput
- type GetFlavorsFlavorOutput
- func (o GetFlavorsFlavorOutput) Bandwidth() pulumi.IntOutput
- func (o GetFlavorsFlavorOutput) Cps() pulumi.IntOutput
- func (GetFlavorsFlavorOutput) ElementType() reflect.Type
- func (o GetFlavorsFlavorOutput) Id() pulumi.StringOutput
- func (o GetFlavorsFlavorOutput) MaxConnections() pulumi.IntOutput
- func (o GetFlavorsFlavorOutput) Name() pulumi.StringOutput
- func (o GetFlavorsFlavorOutput) Qps() pulumi.IntOutput
- func (o GetFlavorsFlavorOutput) ToGetFlavorsFlavorOutput() GetFlavorsFlavorOutput
- func (o GetFlavorsFlavorOutput) ToGetFlavorsFlavorOutputWithContext(ctx context.Context) GetFlavorsFlavorOutput
- func (o GetFlavorsFlavorOutput) Type() pulumi.StringOutput
- type GetFlavorsOutputArgs
- type GetFlavorsResult
- type GetFlavorsResultOutput
- func (o GetFlavorsResultOutput) Bandwidth() pulumi.IntPtrOutput
- func (o GetFlavorsResultOutput) Cps() pulumi.IntPtrOutput
- func (GetFlavorsResultOutput) ElementType() reflect.Type
- func (o GetFlavorsResultOutput) Flavors() GetFlavorsFlavorArrayOutput
- func (o GetFlavorsResultOutput) Id() pulumi.StringOutput
- func (o GetFlavorsResultOutput) Ids() pulumi.StringArrayOutput
- func (o GetFlavorsResultOutput) MaxConnections() pulumi.IntPtrOutput
- func (o GetFlavorsResultOutput) Qps() pulumi.IntPtrOutput
- func (o GetFlavorsResultOutput) Region() pulumi.StringOutput
- func (o GetFlavorsResultOutput) ToGetFlavorsResultOutput() GetFlavorsResultOutput
- func (o GetFlavorsResultOutput) ToGetFlavorsResultOutputWithContext(ctx context.Context) GetFlavorsResultOutput
- func (o GetFlavorsResultOutput) Type() pulumi.StringPtrOutput
- type GetPoolsArgs
- type GetPoolsOutputArgs
- type GetPoolsPool
- type GetPoolsPoolArgs
- type GetPoolsPoolArray
- type GetPoolsPoolArrayInput
- type GetPoolsPoolArrayOutput
- func (GetPoolsPoolArrayOutput) ElementType() reflect.Type
- func (o GetPoolsPoolArrayOutput) Index(i pulumi.IntInput) GetPoolsPoolOutput
- func (o GetPoolsPoolArrayOutput) ToGetPoolsPoolArrayOutput() GetPoolsPoolArrayOutput
- func (o GetPoolsPoolArrayOutput) ToGetPoolsPoolArrayOutputWithContext(ctx context.Context) GetPoolsPoolArrayOutput
- type GetPoolsPoolInput
- type GetPoolsPoolListener
- type GetPoolsPoolListenerArgs
- type GetPoolsPoolListenerArray
- type GetPoolsPoolListenerArrayInput
- type GetPoolsPoolListenerArrayOutput
- func (GetPoolsPoolListenerArrayOutput) ElementType() reflect.Type
- func (o GetPoolsPoolListenerArrayOutput) Index(i pulumi.IntInput) GetPoolsPoolListenerOutput
- func (o GetPoolsPoolListenerArrayOutput) ToGetPoolsPoolListenerArrayOutput() GetPoolsPoolListenerArrayOutput
- func (o GetPoolsPoolListenerArrayOutput) ToGetPoolsPoolListenerArrayOutputWithContext(ctx context.Context) GetPoolsPoolListenerArrayOutput
- type GetPoolsPoolListenerInput
- type GetPoolsPoolListenerOutput
- func (GetPoolsPoolListenerOutput) ElementType() reflect.Type
- func (o GetPoolsPoolListenerOutput) Id() pulumi.StringOutput
- func (o GetPoolsPoolListenerOutput) ToGetPoolsPoolListenerOutput() GetPoolsPoolListenerOutput
- func (o GetPoolsPoolListenerOutput) ToGetPoolsPoolListenerOutputWithContext(ctx context.Context) GetPoolsPoolListenerOutput
- type GetPoolsPoolLoadbalancer
- type GetPoolsPoolLoadbalancerArgs
- func (GetPoolsPoolLoadbalancerArgs) ElementType() reflect.Type
- func (i GetPoolsPoolLoadbalancerArgs) ToGetPoolsPoolLoadbalancerOutput() GetPoolsPoolLoadbalancerOutput
- func (i GetPoolsPoolLoadbalancerArgs) ToGetPoolsPoolLoadbalancerOutputWithContext(ctx context.Context) GetPoolsPoolLoadbalancerOutput
- type GetPoolsPoolLoadbalancerArray
- func (GetPoolsPoolLoadbalancerArray) ElementType() reflect.Type
- func (i GetPoolsPoolLoadbalancerArray) ToGetPoolsPoolLoadbalancerArrayOutput() GetPoolsPoolLoadbalancerArrayOutput
- func (i GetPoolsPoolLoadbalancerArray) ToGetPoolsPoolLoadbalancerArrayOutputWithContext(ctx context.Context) GetPoolsPoolLoadbalancerArrayOutput
- type GetPoolsPoolLoadbalancerArrayInput
- type GetPoolsPoolLoadbalancerArrayOutput
- func (GetPoolsPoolLoadbalancerArrayOutput) ElementType() reflect.Type
- func (o GetPoolsPoolLoadbalancerArrayOutput) Index(i pulumi.IntInput) GetPoolsPoolLoadbalancerOutput
- func (o GetPoolsPoolLoadbalancerArrayOutput) ToGetPoolsPoolLoadbalancerArrayOutput() GetPoolsPoolLoadbalancerArrayOutput
- func (o GetPoolsPoolLoadbalancerArrayOutput) ToGetPoolsPoolLoadbalancerArrayOutputWithContext(ctx context.Context) GetPoolsPoolLoadbalancerArrayOutput
- type GetPoolsPoolLoadbalancerInput
- type GetPoolsPoolLoadbalancerOutput
- func (GetPoolsPoolLoadbalancerOutput) ElementType() reflect.Type
- func (o GetPoolsPoolLoadbalancerOutput) Id() pulumi.StringOutput
- func (o GetPoolsPoolLoadbalancerOutput) ToGetPoolsPoolLoadbalancerOutput() GetPoolsPoolLoadbalancerOutput
- func (o GetPoolsPoolLoadbalancerOutput) ToGetPoolsPoolLoadbalancerOutputWithContext(ctx context.Context) GetPoolsPoolLoadbalancerOutput
- type GetPoolsPoolMember
- type GetPoolsPoolMemberArgs
- type GetPoolsPoolMemberArray
- type GetPoolsPoolMemberArrayInput
- type GetPoolsPoolMemberArrayOutput
- func (GetPoolsPoolMemberArrayOutput) ElementType() reflect.Type
- func (o GetPoolsPoolMemberArrayOutput) Index(i pulumi.IntInput) GetPoolsPoolMemberOutput
- func (o GetPoolsPoolMemberArrayOutput) ToGetPoolsPoolMemberArrayOutput() GetPoolsPoolMemberArrayOutput
- func (o GetPoolsPoolMemberArrayOutput) ToGetPoolsPoolMemberArrayOutputWithContext(ctx context.Context) GetPoolsPoolMemberArrayOutput
- type GetPoolsPoolMemberInput
- type GetPoolsPoolMemberOutput
- func (GetPoolsPoolMemberOutput) ElementType() reflect.Type
- func (o GetPoolsPoolMemberOutput) Id() pulumi.StringOutput
- func (o GetPoolsPoolMemberOutput) ToGetPoolsPoolMemberOutput() GetPoolsPoolMemberOutput
- func (o GetPoolsPoolMemberOutput) ToGetPoolsPoolMemberOutputWithContext(ctx context.Context) GetPoolsPoolMemberOutput
- type GetPoolsPoolOutput
- func (o GetPoolsPoolOutput) Description() pulumi.StringOutput
- func (GetPoolsPoolOutput) ElementType() reflect.Type
- func (o GetPoolsPoolOutput) HealthmonitorId() pulumi.StringOutput
- func (o GetPoolsPoolOutput) Id() pulumi.StringOutput
- func (o GetPoolsPoolOutput) IpVersion() pulumi.StringOutput
- func (o GetPoolsPoolOutput) LbMethod() pulumi.StringOutput
- func (o GetPoolsPoolOutput) Listeners() GetPoolsPoolListenerArrayOutput
- func (o GetPoolsPoolOutput) Loadbalancers() GetPoolsPoolLoadbalancerArrayOutput
- func (o GetPoolsPoolOutput) Members() GetPoolsPoolMemberArrayOutput
- func (o GetPoolsPoolOutput) Name() pulumi.StringOutput
- func (o GetPoolsPoolOutput) Persistences() GetPoolsPoolPersistenceArrayOutput
- func (o GetPoolsPoolOutput) Protocol() pulumi.StringOutput
- func (o GetPoolsPoolOutput) ToGetPoolsPoolOutput() GetPoolsPoolOutput
- func (o GetPoolsPoolOutput) ToGetPoolsPoolOutputWithContext(ctx context.Context) GetPoolsPoolOutput
- type GetPoolsPoolPersistence
- type GetPoolsPoolPersistenceArgs
- type GetPoolsPoolPersistenceArray
- func (GetPoolsPoolPersistenceArray) ElementType() reflect.Type
- func (i GetPoolsPoolPersistenceArray) ToGetPoolsPoolPersistenceArrayOutput() GetPoolsPoolPersistenceArrayOutput
- func (i GetPoolsPoolPersistenceArray) ToGetPoolsPoolPersistenceArrayOutputWithContext(ctx context.Context) GetPoolsPoolPersistenceArrayOutput
- type GetPoolsPoolPersistenceArrayInput
- type GetPoolsPoolPersistenceArrayOutput
- func (GetPoolsPoolPersistenceArrayOutput) ElementType() reflect.Type
- func (o GetPoolsPoolPersistenceArrayOutput) Index(i pulumi.IntInput) GetPoolsPoolPersistenceOutput
- func (o GetPoolsPoolPersistenceArrayOutput) ToGetPoolsPoolPersistenceArrayOutput() GetPoolsPoolPersistenceArrayOutput
- func (o GetPoolsPoolPersistenceArrayOutput) ToGetPoolsPoolPersistenceArrayOutputWithContext(ctx context.Context) GetPoolsPoolPersistenceArrayOutput
- type GetPoolsPoolPersistenceInput
- type GetPoolsPoolPersistenceOutput
- func (o GetPoolsPoolPersistenceOutput) CookieName() pulumi.StringOutput
- func (GetPoolsPoolPersistenceOutput) ElementType() reflect.Type
- func (o GetPoolsPoolPersistenceOutput) ToGetPoolsPoolPersistenceOutput() GetPoolsPoolPersistenceOutput
- func (o GetPoolsPoolPersistenceOutput) ToGetPoolsPoolPersistenceOutputWithContext(ctx context.Context) GetPoolsPoolPersistenceOutput
- func (o GetPoolsPoolPersistenceOutput) Type() pulumi.StringOutput
- type GetPoolsResult
- type GetPoolsResultOutput
- func (o GetPoolsResultOutput) Description() pulumi.StringPtrOutput
- func (GetPoolsResultOutput) ElementType() reflect.Type
- func (o GetPoolsResultOutput) HealthmonitorId() pulumi.StringPtrOutput
- func (o GetPoolsResultOutput) Id() pulumi.StringOutput
- func (o GetPoolsResultOutput) LbMethod() pulumi.StringPtrOutput
- func (o GetPoolsResultOutput) ListenerId() pulumi.StringPtrOutput
- func (o GetPoolsResultOutput) LoadbalancerId() pulumi.StringPtrOutput
- func (o GetPoolsResultOutput) Name() pulumi.StringPtrOutput
- func (o GetPoolsResultOutput) PoolId() pulumi.StringPtrOutput
- func (o GetPoolsResultOutput) Pools() GetPoolsPoolArrayOutput
- func (o GetPoolsResultOutput) Protocol() pulumi.StringPtrOutput
- func (o GetPoolsResultOutput) Region() pulumi.StringOutput
- func (o GetPoolsResultOutput) ToGetPoolsResultOutput() GetPoolsResultOutput
- func (o GetPoolsResultOutput) ToGetPoolsResultOutputWithContext(ctx context.Context) GetPoolsResultOutput
- type Ipgroup
- type IpgroupArgs
- type IpgroupArray
- type IpgroupArrayInput
- type IpgroupArrayOutput
- type IpgroupInput
- type IpgroupIpList
- type IpgroupIpListArgs
- type IpgroupIpListArray
- type IpgroupIpListArrayInput
- type IpgroupIpListArrayOutput
- func (IpgroupIpListArrayOutput) ElementType() reflect.Type
- func (o IpgroupIpListArrayOutput) Index(i pulumi.IntInput) IpgroupIpListOutput
- func (o IpgroupIpListArrayOutput) ToIpgroupIpListArrayOutput() IpgroupIpListArrayOutput
- func (o IpgroupIpListArrayOutput) ToIpgroupIpListArrayOutputWithContext(ctx context.Context) IpgroupIpListArrayOutput
- type IpgroupIpListInput
- type IpgroupIpListOutput
- func (o IpgroupIpListOutput) Description() pulumi.StringPtrOutput
- func (IpgroupIpListOutput) ElementType() reflect.Type
- func (o IpgroupIpListOutput) Ip() pulumi.StringOutput
- func (o IpgroupIpListOutput) ToIpgroupIpListOutput() IpgroupIpListOutput
- func (o IpgroupIpListOutput) ToIpgroupIpListOutputWithContext(ctx context.Context) IpgroupIpListOutput
- type IpgroupMap
- type IpgroupMapInput
- type IpgroupMapOutput
- type IpgroupOutput
- func (o IpgroupOutput) Description() pulumi.StringPtrOutput
- func (IpgroupOutput) ElementType() reflect.Type
- func (o IpgroupOutput) EnterpriseProjectId() pulumi.StringOutput
- func (o IpgroupOutput) IpLists() IpgroupIpListArrayOutput
- func (o IpgroupOutput) Name() pulumi.StringOutput
- func (o IpgroupOutput) Region() pulumi.StringOutput
- func (o IpgroupOutput) ToIpgroupOutput() IpgroupOutput
- func (o IpgroupOutput) ToIpgroupOutputWithContext(ctx context.Context) IpgroupOutput
- type IpgroupState
- type L7policy
- type L7policyArgs
- type L7policyArray
- type L7policyArrayInput
- type L7policyArrayOutput
- type L7policyInput
- type L7policyMap
- type L7policyMapInput
- type L7policyMapOutput
- type L7policyOutput
- func (o L7policyOutput) Action() pulumi.StringPtrOutput
- func (o L7policyOutput) Description() pulumi.StringPtrOutput
- func (L7policyOutput) ElementType() reflect.Type
- func (o L7policyOutput) ListenerId() pulumi.StringOutput
- func (o L7policyOutput) Name() pulumi.StringOutput
- func (o L7policyOutput) RedirectListenerId() pulumi.StringOutput
- func (o L7policyOutput) RedirectPoolId() pulumi.StringOutput
- func (o L7policyOutput) Region() pulumi.StringOutput
- func (o L7policyOutput) ToL7policyOutput() L7policyOutput
- func (o L7policyOutput) ToL7policyOutputWithContext(ctx context.Context) L7policyOutput
- type L7policyState
- type L7rule
- type L7ruleArgs
- type L7ruleArray
- type L7ruleArrayInput
- type L7ruleArrayOutput
- type L7ruleInput
- type L7ruleMap
- type L7ruleMapInput
- type L7ruleMapOutput
- type L7ruleOutput
- func (o L7ruleOutput) CompareType() pulumi.StringOutput
- func (L7ruleOutput) ElementType() reflect.Type
- func (o L7ruleOutput) L7policyId() pulumi.StringOutput
- func (o L7ruleOutput) Region() pulumi.StringOutput
- func (o L7ruleOutput) ToL7ruleOutput() L7ruleOutput
- func (o L7ruleOutput) ToL7ruleOutputWithContext(ctx context.Context) L7ruleOutput
- func (o L7ruleOutput) Type() pulumi.StringOutput
- func (o L7ruleOutput) Value() pulumi.StringOutput
- type L7ruleState
- type Listener
- type ListenerArgs
- type ListenerArray
- type ListenerArrayInput
- type ListenerArrayOutput
- type ListenerInput
- type ListenerMap
- type ListenerMapInput
- type ListenerMapOutput
- type ListenerOutput
- func (o ListenerOutput) AccessPolicy() pulumi.StringPtrOutput
- func (o ListenerOutput) AdvancedForwardingEnabled() pulumi.BoolOutput
- func (o ListenerOutput) CaCertificate() pulumi.StringPtrOutput
- func (o ListenerOutput) DefaultPoolId() pulumi.StringOutput
- func (o ListenerOutput) Description() pulumi.StringPtrOutput
- func (ListenerOutput) ElementType() reflect.Type
- func (o ListenerOutput) ForwardEip() pulumi.BoolPtrOutput
- func (o ListenerOutput) Http2Enable() pulumi.BoolPtrOutput
- func (o ListenerOutput) IdleTimeout() pulumi.IntOutput
- func (o ListenerOutput) IpGroup() pulumi.StringPtrOutput
- func (o ListenerOutput) LoadbalancerId() pulumi.StringOutput
- func (o ListenerOutput) Name() pulumi.StringOutput
- func (o ListenerOutput) Protocol() pulumi.StringOutput
- func (o ListenerOutput) ProtocolPort() pulumi.IntOutput
- func (o ListenerOutput) Region() pulumi.StringOutput
- func (o ListenerOutput) RequestTimeout() pulumi.IntOutput
- func (o ListenerOutput) ResponseTimeout() pulumi.IntOutput
- func (o ListenerOutput) ServerCertificate() pulumi.StringPtrOutput
- func (o ListenerOutput) SniCertificates() pulumi.StringArrayOutput
- func (o ListenerOutput) Tags() pulumi.StringMapOutput
- func (o ListenerOutput) TlsCiphersPolicy() pulumi.StringOutput
- func (o ListenerOutput) ToListenerOutput() ListenerOutput
- func (o ListenerOutput) ToListenerOutputWithContext(ctx context.Context) ListenerOutput
- type ListenerState
- type Loadbalancer
- type LoadbalancerArgs
- type LoadbalancerArray
- type LoadbalancerArrayInput
- type LoadbalancerArrayOutput
- func (LoadbalancerArrayOutput) ElementType() reflect.Type
- func (o LoadbalancerArrayOutput) Index(i pulumi.IntInput) LoadbalancerOutput
- func (o LoadbalancerArrayOutput) ToLoadbalancerArrayOutput() LoadbalancerArrayOutput
- func (o LoadbalancerArrayOutput) ToLoadbalancerArrayOutputWithContext(ctx context.Context) LoadbalancerArrayOutput
- type LoadbalancerInput
- type LoadbalancerMap
- type LoadbalancerMapInput
- type LoadbalancerMapOutput
- func (LoadbalancerMapOutput) ElementType() reflect.Type
- func (o LoadbalancerMapOutput) MapIndex(k pulumi.StringInput) LoadbalancerOutput
- func (o LoadbalancerMapOutput) ToLoadbalancerMapOutput() LoadbalancerMapOutput
- func (o LoadbalancerMapOutput) ToLoadbalancerMapOutputWithContext(ctx context.Context) LoadbalancerMapOutput
- type LoadbalancerOutput
- func (o LoadbalancerOutput) AutoPay() pulumi.StringPtrOutputdeprecated
- func (o LoadbalancerOutput) AutoRenew() pulumi.StringPtrOutput
- func (o LoadbalancerOutput) AutoscalingEnabled() pulumi.BoolOutput
- func (o LoadbalancerOutput) AvailabilityZones() pulumi.StringArrayOutput
- func (o LoadbalancerOutput) BandwidthChargeMode() pulumi.StringOutput
- func (o LoadbalancerOutput) BandwidthSize() pulumi.IntOutput
- func (o LoadbalancerOutput) ChargingMode() pulumi.StringOutput
- func (o LoadbalancerOutput) CrossVpcBackend() pulumi.BoolOutput
- func (o LoadbalancerOutput) Description() pulumi.StringPtrOutput
- func (LoadbalancerOutput) ElementType() reflect.Type
- func (o LoadbalancerOutput) EnterpriseProjectId() pulumi.StringOutput
- func (o LoadbalancerOutput) Iptype() pulumi.StringOutput
- func (o LoadbalancerOutput) Ipv4Address() pulumi.StringOutput
- func (o LoadbalancerOutput) Ipv4Eip() pulumi.StringOutput
- func (o LoadbalancerOutput) Ipv4EipId() pulumi.StringOutput
- func (o LoadbalancerOutput) Ipv4SubnetId() pulumi.StringPtrOutput
- func (o LoadbalancerOutput) Ipv6Address() pulumi.StringOutput
- func (o LoadbalancerOutput) Ipv6BandwidthId() pulumi.StringPtrOutput
- func (o LoadbalancerOutput) Ipv6Eip() pulumi.StringOutput
- func (o LoadbalancerOutput) Ipv6EipId() pulumi.StringOutput
- func (o LoadbalancerOutput) Ipv6NetworkId() pulumi.StringPtrOutput
- func (o LoadbalancerOutput) L4FlavorId() pulumi.StringOutput
- func (o LoadbalancerOutput) L7FlavorId() pulumi.StringOutput
- func (o LoadbalancerOutput) MinL7FlavorId() pulumi.StringOutput
- func (o LoadbalancerOutput) Name() pulumi.StringOutput
- func (o LoadbalancerOutput) Period() pulumi.IntPtrOutput
- func (o LoadbalancerOutput) PeriodUnit() pulumi.StringPtrOutput
- func (o LoadbalancerOutput) Region() pulumi.StringOutput
- func (o LoadbalancerOutput) Sharetype() pulumi.StringOutput
- func (o LoadbalancerOutput) Tags() pulumi.StringMapOutput
- func (o LoadbalancerOutput) ToLoadbalancerOutput() LoadbalancerOutput
- func (o LoadbalancerOutput) ToLoadbalancerOutputWithContext(ctx context.Context) LoadbalancerOutput
- func (o LoadbalancerOutput) VpcId() pulumi.StringOutput
- type LoadbalancerState
- type LookupCertificateArgs
- type LookupCertificateOutputArgs
- type LookupCertificateResult
- type LookupCertificateResultOutput
- func (o LookupCertificateResultOutput) Description() pulumi.StringOutput
- func (o LookupCertificateResultOutput) Domain() pulumi.StringOutput
- func (LookupCertificateResultOutput) ElementType() reflect.Type
- func (o LookupCertificateResultOutput) Expiration() pulumi.StringOutput
- func (o LookupCertificateResultOutput) Id() pulumi.StringOutput
- func (o LookupCertificateResultOutput) Name() pulumi.StringOutput
- func (o LookupCertificateResultOutput) Region() pulumi.StringOutput
- func (o LookupCertificateResultOutput) ToLookupCertificateResultOutput() LookupCertificateResultOutput
- func (o LookupCertificateResultOutput) ToLookupCertificateResultOutputWithContext(ctx context.Context) LookupCertificateResultOutput
- func (o LookupCertificateResultOutput) Type() pulumi.StringOutput
- type Member
- type MemberArgs
- type MemberArray
- type MemberArrayInput
- type MemberArrayOutput
- type MemberInput
- type MemberMap
- type MemberMapInput
- type MemberMapOutput
- type MemberOutput
- func (o MemberOutput) Address() pulumi.StringOutput
- func (MemberOutput) ElementType() reflect.Type
- func (o MemberOutput) Name() pulumi.StringOutput
- func (o MemberOutput) PoolId() pulumi.StringOutput
- func (o MemberOutput) ProtocolPort() pulumi.IntOutput
- func (o MemberOutput) Region() pulumi.StringOutput
- func (o MemberOutput) SubnetId() pulumi.StringPtrOutput
- func (o MemberOutput) ToMemberOutput() MemberOutput
- func (o MemberOutput) ToMemberOutputWithContext(ctx context.Context) MemberOutput
- func (o MemberOutput) Weight() pulumi.IntOutput
- type MemberState
- type Monitor
- type MonitorArgs
- type MonitorArray
- type MonitorArrayInput
- type MonitorArrayOutput
- type MonitorInput
- type MonitorMap
- type MonitorMapInput
- type MonitorMapOutput
- type MonitorOutput
- func (o MonitorOutput) DomainName() pulumi.StringPtrOutput
- func (MonitorOutput) ElementType() reflect.Type
- func (o MonitorOutput) Interval() pulumi.IntOutput
- func (o MonitorOutput) MaxRetries() pulumi.IntOutput
- func (o MonitorOutput) PoolId() pulumi.StringOutput
- func (o MonitorOutput) Port() pulumi.IntPtrOutput
- func (o MonitorOutput) Protocol() pulumi.StringOutput
- func (o MonitorOutput) Region() pulumi.StringOutput
- func (o MonitorOutput) Timeout() pulumi.IntOutput
- func (o MonitorOutput) ToMonitorOutput() MonitorOutput
- func (o MonitorOutput) ToMonitorOutputWithContext(ctx context.Context) MonitorOutput
- func (o MonitorOutput) UrlPath() pulumi.StringOutput
- type MonitorState
- type Pool
- type PoolArgs
- type PoolArray
- type PoolArrayInput
- type PoolArrayOutput
- type PoolInput
- type PoolMap
- type PoolMapInput
- type PoolMapOutput
- type PoolOutput
- func (o PoolOutput) Description() pulumi.StringPtrOutput
- func (PoolOutput) ElementType() reflect.Type
- func (o PoolOutput) LbMethod() pulumi.StringOutput
- func (o PoolOutput) ListenerId() pulumi.StringOutput
- func (o PoolOutput) LoadbalancerId() pulumi.StringOutput
- func (o PoolOutput) Name() pulumi.StringOutput
- func (o PoolOutput) Persistences() PoolPersistenceArrayOutput
- func (o PoolOutput) Protocol() pulumi.StringOutput
- func (o PoolOutput) Region() pulumi.StringOutput
- func (o PoolOutput) ToPoolOutput() PoolOutput
- func (o PoolOutput) ToPoolOutputWithContext(ctx context.Context) PoolOutput
- type PoolPersistence
- type PoolPersistenceArgs
- type PoolPersistenceArray
- type PoolPersistenceArrayInput
- type PoolPersistenceArrayOutput
- func (PoolPersistenceArrayOutput) ElementType() reflect.Type
- func (o PoolPersistenceArrayOutput) Index(i pulumi.IntInput) PoolPersistenceOutput
- func (o PoolPersistenceArrayOutput) ToPoolPersistenceArrayOutput() PoolPersistenceArrayOutput
- func (o PoolPersistenceArrayOutput) ToPoolPersistenceArrayOutputWithContext(ctx context.Context) PoolPersistenceArrayOutput
- type PoolPersistenceInput
- type PoolPersistenceOutput
- func (o PoolPersistenceOutput) CookieName() pulumi.StringPtrOutput
- func (PoolPersistenceOutput) ElementType() reflect.Type
- func (o PoolPersistenceOutput) Timeout() pulumi.IntPtrOutput
- func (o PoolPersistenceOutput) ToPoolPersistenceOutput() PoolPersistenceOutput
- func (o PoolPersistenceOutput) ToPoolPersistenceOutputWithContext(ctx context.Context) PoolPersistenceOutput
- func (o PoolPersistenceOutput) Type() pulumi.StringOutput
- type PoolState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PkgVersion ¶ added in v0.0.2
PkgVersion uses reflection to determine the version of the current package. If a version cannot be determined, v1 will be assumed. The second return value is always nil.
Types ¶
type Certificate ¶
type Certificate struct { pulumi.CustomResourceState // The public encrypted key of the Certificate, PEM format. Certificate pulumi.StringOutput `pulumi:"certificate"` // Indicates the creation time. CreateTime pulumi.StringOutput `pulumi:"createTime"` // Human-readable description for the Certificate. Description pulumi.StringPtrOutput `pulumi:"description"` // The domain of the Certificate. The value contains a maximum of 100 characters. This // parameter is valid only when `type` is set to "server". Domain pulumi.StringPtrOutput `pulumi:"domain"` // The enterprise project id of the certificate. EnterpriseProjectId pulumi.StringOutput `pulumi:"enterpriseProjectId"` // Indicates the expire time. ExpireTime pulumi.StringOutput `pulumi:"expireTime"` // Human-readable name for the Certificate. Does not have to be unique. Name pulumi.StringOutput `pulumi:"name"` // The private encrypted key of the Certificate, PEM format. This parameter is valid // and mandatory only when `type` is set to "server". PrivateKey pulumi.StringPtrOutput `pulumi:"privateKey"` // The region in which to create the ELB certificate resource. If omitted, the // provider-level region will be used. Changing this creates a new certificate. Region pulumi.StringOutput `pulumi:"region"` // Specifies the certificate type. The default value is "server". The value can be // one of the following: // + server: indicates the server certificate. // + client: indicates the CA certificate. Type pulumi.StringPtrOutput `pulumi:"type"` // Indicates the update time. UpdateTime pulumi.StringOutput `pulumi:"updateTime"` }
Manages an ELB certificate resource within HuaweiCloud.
## Example Usage
```go package main
import (
"fmt" "github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/DedicatedElb" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := DedicatedElb.NewCertificate(ctx, "certificate1", &DedicatedElb.CertificateArgs{ Certificate: pulumi.String(fmt.Sprintf(`-----BEGIN CERTIFICATE-----
MIIDpTCCAo2gAwIBAgIJAKdmmOBYnFvoMA0GCSqGSIb3DQEBCwUAMGkxCzAJBgNV BAYTAnh4MQswCQYDVQQIDAJ4eDELMAkGA1UEBwwCeHgxCzAJBgNVBAoMAnh4MQsw CQYDVQQLDAJ4eDELMAkGA1UEAwwCeHgxGTAXBgkqhkiG9w0BCQEWCnh4QDE2My5j b20wHhcNMTcxMjA0MDM0MjQ5WhcNMjAxMjAzMDM0MjQ5WjBpMQswCQYDVQQGEwJ4 eDELMAkGA1UECAwCeHgxCzAJBgNVBAcMAnh4MQswCQYDVQQKDAJ4eDELMAkGA1UE CwwCeHgxCzAJBgNVBAMMAnh4MRkwFwYJKoZIhvcNAQkBFgp4eEAxNjMuY29tMIIB IjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAwZ5UJULAjWr7p6FVwGRQRjFN 2s8tZ/6LC3X82fajpVsYqF1xqEuUDndDXVD09E4u83MS6HO6a3bIVQDp6/klnYld iE6Vp8HH5BSKaCWKVg8lGWg1UM9wZFnlryi14KgmpIFmcu9nA8yV/6MZAe6RSDmb 3iyNBmiZ8aZhGw2pI1YwR+15MVqFFGB+7ExkziROi7L8CFCyCezK2/oOOvQsH1dz Q8z1JXWdg8/9Zx7Ktvgwu5PQM3cJtSHX6iBPOkMU8Z8TugLlTqQXKZOEgwajwvQ5 mf2DPkVgM08XAgaLJcLigwD513koAdtJd5v+9irw+5LAuO3JclqwTvwy7u/YwwID AQABo1AwTjAdBgNVHQ4EFgQUo5A2tIu+bcUfvGTD7wmEkhXKFjcwHwYDVR0jBBgw FoAUo5A2tIu+bcUfvGTD7wmEkhXKFjcwDAYDVR0TBAUwAwEB/zANBgkqhkiG9w0B AQsFAAOCAQEAWJ2rS6Mvlqk3GfEpboezx2J3X7l1z8Sxoqg6ntwB+rezvK3mc9H0 83qcVeUcoH+0A0lSHyFN4FvRQL6X1hEheHarYwJK4agb231vb5erasuGO463eYEG r4SfTuOm7SyiV2xxbaBKrXJtpBp4WLL/s+LF+nklKjaOxkmxUX0sM4CTA7uFJypY c8Tdr8lDDNqoUtMD8BrUCJi+7lmMXRcC3Qi3oZJW76ja+kZA5mKVFPd1ATih8TbA i34R7EQDtFeiSvBdeKRsPp8c0KT8H1B4lXNkkCQs2WX5p4lm99+ZtLD4glw8x6Ic i1YhgnQbn5E0hz55OLu5jvOkKQjPCW+8Kg== -----END CERTIFICATE-----
`)),
Description: pulumi.String("terraform test certificate"), Domain: pulumi.String("www.elb.com"), PrivateKey: pulumi.String(fmt.Sprintf(`-----BEGIN RSA PRIVATE KEY-----
MIIEowIBAAKCAQEAwZ5UJULAjWr7p6FVwGRQRjFN2s8tZ/6LC3X82fajpVsYqF1x qEuUDndDXVD09E4u83MS6HO6a3bIVQDp6/klnYldiE6Vp8HH5BSKaCWKVg8lGWg1 UM9wZFnlryi14KgmpIFmcu9nA8yV/6MZAe6RSDmb3iyNBmiZ8aZhGw2pI1YwR+15 MVqFFGB+7ExkziROi7L8CFCyCezK2/oOOvQsH1dzQ8z1JXWdg8/9Zx7Ktvgwu5PQ M3cJtSHX6iBPOkMU8Z8TugLlTqQXKZOEgwajwvQ5mf2DPkVgM08XAgaLJcLigwD5 13koAdtJd5v+9irw+5LAuO3JclqwTvwy7u/YwwIDAQABAoIBACU9S5fjD9/jTMXA DRs08A+gGgZUxLn0xk+NAPX3LyB1tfdkCaFB8BccLzO6h3KZuwQOBPv6jkdvEDbx Nwyw3eA/9GJsIvKiHc0rejdvyPymaw9I8MA7NbXHaJrY7KpqDQyk6sx+aUTcy5jg iMXLWdwXYHhJ/1HVOo603oZyiS6HZeYU089NDUcX+1SJi3e5Ke0gPVXEqCq1O11/ rh24bMxnwZo4PKBWdcMBN5Zf/4ij9vrZE+fFzW7vGBO48A5lvZxWU2U5t/OZQRtN 1uLOHmMFa0FIF2aWbTVfwdUWAFsvAOkHj9VV8BXOUwKOUuEktdkfAlvrxmsFrO/H yDeYYPkCgYEA/S55CBbR0sMXpSZ56uRn8JHApZJhgkgvYr+FqDlJq/e92nAzf01P RoEBUajwrnf1ycevN/SDfbtWzq2XJGqhWdJmtpO16b7KBsC6BdRcH6dnOYh31jgA vABMIP3wzI4zSVTyxRE8LDuboytF1mSCeV5tHYPQTZNwrplDnLQhywcCgYEAw8Yc Uk/eiFr3hfH/ZohMfV5p82Qp7DNIGRzw8YtVG/3+vNXrAXW1VhugNhQY6L+zLtJC aKn84ooup0m3YCg0hvINqJuvzfsuzQgtjTXyaE0cEwsjUusOmiuj09vVx/3U7siK Hdjd2ICPCvQ6Q8tdi8jV320gMs05AtaBkZdsiWUCgYEAtLw4Kk4f+xTKDFsrLUNf 75wcqhWVBiwBp7yQ7UX4EYsJPKZcHMRTk0EEcAbpyaJZE3I44vjp5ReXIHNLMfPs uvI34J4Rfot0LN3n7cFrAi2+wpNo+MOBwrNzpRmijGP2uKKrq4JiMjFbKV/6utGF Up7VxfwS904JYpqGaZctiIECgYA1A6nZtF0riY6ry/uAdXpZHL8ONNqRZtWoT0kD 79otSVu5ISiRbaGcXsDExC52oKrSDAgFtbqQUiEOFg09UcXfoR6HwRkba2CiDwve yHQLQI5Qrdxz8Mk0gIrNrSM4FAmcW9vi9z4kCbQyoC5C+4gqeUlJRpDIkQBWP2Y4 2ct/bQKBgHv8qCsQTZphOxc31BJPa2xVhuv18cEU3XLUrVfUZ/1f43JhLp7gynS2 ep++LKUi9D0VGXY8bqvfJjbECoCeu85vl8NpCXwe/LoVoIn+7KaVIZMwqoGMfgNl nEqm7HWkNxHhf8A6En/IjleuddS1sf9e/x+TJN1Xhnt9W6pe7Fk1 -----END RSA PRIVATE KEY-----
`)),
}) if err != nil { return err } return nil }) }
```
## Import
ELB certificate can be imported using the certificate ID, e.g.
```sh
$ pulumi import huaweicloud:DedicatedElb/certificate:Certificate certificate_1 5c20fdad-7288-11eb-b817-0255ac10158b
```
Note that the imported state may not be identical to your resource definition, due to some attributes missing from the API response, security or some other reason. The missing attributes include`enterprise_project_id`. It is generally recommended running `terraform plan` after importing a certificate. You can then decide if changes should be applied to the certificate, or the resource definition should be updated to align with the certificate. Also you can ignore changes as below. resource "huaweicloud_elb_certificate" "certificate_1" { ... lifecycle { ignore_changes = [ enterprise_project_id, ] } }
func GetCertificate ¶
func GetCertificate(ctx *pulumi.Context, name string, id pulumi.IDInput, state *CertificateState, opts ...pulumi.ResourceOption) (*Certificate, error)
GetCertificate gets an existing Certificate resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewCertificate ¶
func NewCertificate(ctx *pulumi.Context, name string, args *CertificateArgs, opts ...pulumi.ResourceOption) (*Certificate, error)
NewCertificate registers a new resource with the given unique name, arguments, and options.
func (*Certificate) ElementType ¶
func (*Certificate) ElementType() reflect.Type
func (*Certificate) ToCertificateOutput ¶
func (i *Certificate) ToCertificateOutput() CertificateOutput
func (*Certificate) ToCertificateOutputWithContext ¶
func (i *Certificate) ToCertificateOutputWithContext(ctx context.Context) CertificateOutput
type CertificateArgs ¶
type CertificateArgs struct { // The public encrypted key of the Certificate, PEM format. Certificate pulumi.StringInput // Human-readable description for the Certificate. Description pulumi.StringPtrInput // The domain of the Certificate. The value contains a maximum of 100 characters. This // parameter is valid only when `type` is set to "server". Domain pulumi.StringPtrInput // The enterprise project id of the certificate. EnterpriseProjectId pulumi.StringPtrInput // Human-readable name for the Certificate. Does not have to be unique. Name pulumi.StringPtrInput // The private encrypted key of the Certificate, PEM format. This parameter is valid // and mandatory only when `type` is set to "server". PrivateKey pulumi.StringPtrInput // The region in which to create the ELB certificate resource. If omitted, the // provider-level region will be used. Changing this creates a new certificate. Region pulumi.StringPtrInput // Specifies the certificate type. The default value is "server". The value can be // one of the following: // + server: indicates the server certificate. // + client: indicates the CA certificate. Type pulumi.StringPtrInput }
The set of arguments for constructing a Certificate resource.
func (CertificateArgs) ElementType ¶
func (CertificateArgs) ElementType() reflect.Type
type CertificateArray ¶
type CertificateArray []CertificateInput
func (CertificateArray) ElementType ¶
func (CertificateArray) ElementType() reflect.Type
func (CertificateArray) ToCertificateArrayOutput ¶
func (i CertificateArray) ToCertificateArrayOutput() CertificateArrayOutput
func (CertificateArray) ToCertificateArrayOutputWithContext ¶
func (i CertificateArray) ToCertificateArrayOutputWithContext(ctx context.Context) CertificateArrayOutput
type CertificateArrayInput ¶
type CertificateArrayInput interface { pulumi.Input ToCertificateArrayOutput() CertificateArrayOutput ToCertificateArrayOutputWithContext(context.Context) CertificateArrayOutput }
CertificateArrayInput is an input type that accepts CertificateArray and CertificateArrayOutput values. You can construct a concrete instance of `CertificateArrayInput` via:
CertificateArray{ CertificateArgs{...} }
type CertificateArrayOutput ¶
type CertificateArrayOutput struct{ *pulumi.OutputState }
func (CertificateArrayOutput) ElementType ¶
func (CertificateArrayOutput) ElementType() reflect.Type
func (CertificateArrayOutput) Index ¶
func (o CertificateArrayOutput) Index(i pulumi.IntInput) CertificateOutput
func (CertificateArrayOutput) ToCertificateArrayOutput ¶
func (o CertificateArrayOutput) ToCertificateArrayOutput() CertificateArrayOutput
func (CertificateArrayOutput) ToCertificateArrayOutputWithContext ¶
func (o CertificateArrayOutput) ToCertificateArrayOutputWithContext(ctx context.Context) CertificateArrayOutput
type CertificateInput ¶
type CertificateInput interface { pulumi.Input ToCertificateOutput() CertificateOutput ToCertificateOutputWithContext(ctx context.Context) CertificateOutput }
type CertificateMap ¶
type CertificateMap map[string]CertificateInput
func (CertificateMap) ElementType ¶
func (CertificateMap) ElementType() reflect.Type
func (CertificateMap) ToCertificateMapOutput ¶
func (i CertificateMap) ToCertificateMapOutput() CertificateMapOutput
func (CertificateMap) ToCertificateMapOutputWithContext ¶
func (i CertificateMap) ToCertificateMapOutputWithContext(ctx context.Context) CertificateMapOutput
type CertificateMapInput ¶
type CertificateMapInput interface { pulumi.Input ToCertificateMapOutput() CertificateMapOutput ToCertificateMapOutputWithContext(context.Context) CertificateMapOutput }
CertificateMapInput is an input type that accepts CertificateMap and CertificateMapOutput values. You can construct a concrete instance of `CertificateMapInput` via:
CertificateMap{ "key": CertificateArgs{...} }
type CertificateMapOutput ¶
type CertificateMapOutput struct{ *pulumi.OutputState }
func (CertificateMapOutput) ElementType ¶
func (CertificateMapOutput) ElementType() reflect.Type
func (CertificateMapOutput) MapIndex ¶
func (o CertificateMapOutput) MapIndex(k pulumi.StringInput) CertificateOutput
func (CertificateMapOutput) ToCertificateMapOutput ¶
func (o CertificateMapOutput) ToCertificateMapOutput() CertificateMapOutput
func (CertificateMapOutput) ToCertificateMapOutputWithContext ¶
func (o CertificateMapOutput) ToCertificateMapOutputWithContext(ctx context.Context) CertificateMapOutput
type CertificateOutput ¶
type CertificateOutput struct{ *pulumi.OutputState }
func (CertificateOutput) Certificate ¶
func (o CertificateOutput) Certificate() pulumi.StringOutput
The public encrypted key of the Certificate, PEM format.
func (CertificateOutput) CreateTime ¶
func (o CertificateOutput) CreateTime() pulumi.StringOutput
Indicates the creation time.
func (CertificateOutput) Description ¶
func (o CertificateOutput) Description() pulumi.StringPtrOutput
Human-readable description for the Certificate.
func (CertificateOutput) Domain ¶
func (o CertificateOutput) Domain() pulumi.StringPtrOutput
The domain of the Certificate. The value contains a maximum of 100 characters. This parameter is valid only when `type` is set to "server".
func (CertificateOutput) ElementType ¶
func (CertificateOutput) ElementType() reflect.Type
func (CertificateOutput) EnterpriseProjectId ¶
func (o CertificateOutput) EnterpriseProjectId() pulumi.StringOutput
The enterprise project id of the certificate.
func (CertificateOutput) ExpireTime ¶
func (o CertificateOutput) ExpireTime() pulumi.StringOutput
Indicates the expire time.
func (CertificateOutput) Name ¶
func (o CertificateOutput) Name() pulumi.StringOutput
Human-readable name for the Certificate. Does not have to be unique.
func (CertificateOutput) PrivateKey ¶
func (o CertificateOutput) PrivateKey() pulumi.StringPtrOutput
The private encrypted key of the Certificate, PEM format. This parameter is valid and mandatory only when `type` is set to "server".
func (CertificateOutput) Region ¶
func (o CertificateOutput) Region() pulumi.StringOutput
The region in which to create the ELB certificate resource. If omitted, the provider-level region will be used. Changing this creates a new certificate.
func (CertificateOutput) ToCertificateOutput ¶
func (o CertificateOutput) ToCertificateOutput() CertificateOutput
func (CertificateOutput) ToCertificateOutputWithContext ¶
func (o CertificateOutput) ToCertificateOutputWithContext(ctx context.Context) CertificateOutput
func (CertificateOutput) Type ¶
func (o CertificateOutput) Type() pulumi.StringPtrOutput
Specifies the certificate type. The default value is "server". The value can be one of the following: + server: indicates the server certificate. + client: indicates the CA certificate.
func (CertificateOutput) UpdateTime ¶
func (o CertificateOutput) UpdateTime() pulumi.StringOutput
Indicates the update time.
type CertificateState ¶
type CertificateState struct { // The public encrypted key of the Certificate, PEM format. Certificate pulumi.StringPtrInput // Indicates the creation time. CreateTime pulumi.StringPtrInput // Human-readable description for the Certificate. Description pulumi.StringPtrInput // The domain of the Certificate. The value contains a maximum of 100 characters. This // parameter is valid only when `type` is set to "server". Domain pulumi.StringPtrInput // The enterprise project id of the certificate. EnterpriseProjectId pulumi.StringPtrInput // Indicates the expire time. ExpireTime pulumi.StringPtrInput // Human-readable name for the Certificate. Does not have to be unique. Name pulumi.StringPtrInput // The private encrypted key of the Certificate, PEM format. This parameter is valid // and mandatory only when `type` is set to "server". PrivateKey pulumi.StringPtrInput // The region in which to create the ELB certificate resource. If omitted, the // provider-level region will be used. Changing this creates a new certificate. Region pulumi.StringPtrInput // Specifies the certificate type. The default value is "server". The value can be // one of the following: // + server: indicates the server certificate. // + client: indicates the CA certificate. Type pulumi.StringPtrInput // Indicates the update time. UpdateTime pulumi.StringPtrInput }
func (CertificateState) ElementType ¶
func (CertificateState) ElementType() reflect.Type
type GetFlavorsArgs ¶
type GetFlavorsArgs struct { // Specifies the bandwidth size(Mbit/s) in the flavor. Bandwidth *int `pulumi:"bandwidth"` // Specifies the cps in the flavor. Cps *int `pulumi:"cps"` // Specifies the maximum connections in the flavor. MaxConnections *int `pulumi:"maxConnections"` // Specifies the qps in the L7 flavor. Qps *int `pulumi:"qps"` // The region in which to obtain the flavors. If omitted, the provider-level region will be // used. Region *string `pulumi:"region"` // Specifies the flavor type. Valid values are L4 and L7. Type *string `pulumi:"type"` }
A collection of arguments for invoking getFlavors.
type GetFlavorsFlavor ¶
type GetFlavorsFlavor struct { // Specifies the bandwidth size(Mbit/s) in the flavor. Bandwidth int `pulumi:"bandwidth"` // Specifies the cps in the flavor. Cps int `pulumi:"cps"` // ID of the flavor. Id string `pulumi:"id"` // Specifies the maximum connections in the flavor. MaxConnections int `pulumi:"maxConnections"` // Name of the flavor. Name string `pulumi:"name"` // Specifies the qps in the L7 flavor. Qps int `pulumi:"qps"` // Specifies the flavor type. Valid values are L4 and L7. Type string `pulumi:"type"` }
type GetFlavorsFlavorArgs ¶
type GetFlavorsFlavorArgs struct { // Specifies the bandwidth size(Mbit/s) in the flavor. Bandwidth pulumi.IntInput `pulumi:"bandwidth"` // Specifies the cps in the flavor. Cps pulumi.IntInput `pulumi:"cps"` // ID of the flavor. Id pulumi.StringInput `pulumi:"id"` // Specifies the maximum connections in the flavor. MaxConnections pulumi.IntInput `pulumi:"maxConnections"` // Name of the flavor. Name pulumi.StringInput `pulumi:"name"` // Specifies the qps in the L7 flavor. Qps pulumi.IntInput `pulumi:"qps"` // Specifies the flavor type. Valid values are L4 and L7. Type pulumi.StringInput `pulumi:"type"` }
func (GetFlavorsFlavorArgs) ElementType ¶
func (GetFlavorsFlavorArgs) ElementType() reflect.Type
func (GetFlavorsFlavorArgs) ToGetFlavorsFlavorOutput ¶
func (i GetFlavorsFlavorArgs) ToGetFlavorsFlavorOutput() GetFlavorsFlavorOutput
func (GetFlavorsFlavorArgs) ToGetFlavorsFlavorOutputWithContext ¶
func (i GetFlavorsFlavorArgs) ToGetFlavorsFlavorOutputWithContext(ctx context.Context) GetFlavorsFlavorOutput
type GetFlavorsFlavorArray ¶
type GetFlavorsFlavorArray []GetFlavorsFlavorInput
func (GetFlavorsFlavorArray) ElementType ¶
func (GetFlavorsFlavorArray) ElementType() reflect.Type
func (GetFlavorsFlavorArray) ToGetFlavorsFlavorArrayOutput ¶
func (i GetFlavorsFlavorArray) ToGetFlavorsFlavorArrayOutput() GetFlavorsFlavorArrayOutput
func (GetFlavorsFlavorArray) ToGetFlavorsFlavorArrayOutputWithContext ¶
func (i GetFlavorsFlavorArray) ToGetFlavorsFlavorArrayOutputWithContext(ctx context.Context) GetFlavorsFlavorArrayOutput
type GetFlavorsFlavorArrayInput ¶
type GetFlavorsFlavorArrayInput interface { pulumi.Input ToGetFlavorsFlavorArrayOutput() GetFlavorsFlavorArrayOutput ToGetFlavorsFlavorArrayOutputWithContext(context.Context) GetFlavorsFlavorArrayOutput }
GetFlavorsFlavorArrayInput is an input type that accepts GetFlavorsFlavorArray and GetFlavorsFlavorArrayOutput values. You can construct a concrete instance of `GetFlavorsFlavorArrayInput` via:
GetFlavorsFlavorArray{ GetFlavorsFlavorArgs{...} }
type GetFlavorsFlavorArrayOutput ¶
type GetFlavorsFlavorArrayOutput struct{ *pulumi.OutputState }
func (GetFlavorsFlavorArrayOutput) ElementType ¶
func (GetFlavorsFlavorArrayOutput) ElementType() reflect.Type
func (GetFlavorsFlavorArrayOutput) Index ¶
func (o GetFlavorsFlavorArrayOutput) Index(i pulumi.IntInput) GetFlavorsFlavorOutput
func (GetFlavorsFlavorArrayOutput) ToGetFlavorsFlavorArrayOutput ¶
func (o GetFlavorsFlavorArrayOutput) ToGetFlavorsFlavorArrayOutput() GetFlavorsFlavorArrayOutput
func (GetFlavorsFlavorArrayOutput) ToGetFlavorsFlavorArrayOutputWithContext ¶
func (o GetFlavorsFlavorArrayOutput) ToGetFlavorsFlavorArrayOutputWithContext(ctx context.Context) GetFlavorsFlavorArrayOutput
type GetFlavorsFlavorInput ¶
type GetFlavorsFlavorInput interface { pulumi.Input ToGetFlavorsFlavorOutput() GetFlavorsFlavorOutput ToGetFlavorsFlavorOutputWithContext(context.Context) GetFlavorsFlavorOutput }
GetFlavorsFlavorInput is an input type that accepts GetFlavorsFlavorArgs and GetFlavorsFlavorOutput values. You can construct a concrete instance of `GetFlavorsFlavorInput` via:
GetFlavorsFlavorArgs{...}
type GetFlavorsFlavorOutput ¶
type GetFlavorsFlavorOutput struct{ *pulumi.OutputState }
func (GetFlavorsFlavorOutput) Bandwidth ¶
func (o GetFlavorsFlavorOutput) Bandwidth() pulumi.IntOutput
Specifies the bandwidth size(Mbit/s) in the flavor.
func (GetFlavorsFlavorOutput) Cps ¶
func (o GetFlavorsFlavorOutput) Cps() pulumi.IntOutput
Specifies the cps in the flavor.
func (GetFlavorsFlavorOutput) ElementType ¶
func (GetFlavorsFlavorOutput) ElementType() reflect.Type
func (GetFlavorsFlavorOutput) Id ¶
func (o GetFlavorsFlavorOutput) Id() pulumi.StringOutput
ID of the flavor.
func (GetFlavorsFlavorOutput) MaxConnections ¶
func (o GetFlavorsFlavorOutput) MaxConnections() pulumi.IntOutput
Specifies the maximum connections in the flavor.
func (GetFlavorsFlavorOutput) Name ¶
func (o GetFlavorsFlavorOutput) Name() pulumi.StringOutput
Name of the flavor.
func (GetFlavorsFlavorOutput) Qps ¶
func (o GetFlavorsFlavorOutput) Qps() pulumi.IntOutput
Specifies the qps in the L7 flavor.
func (GetFlavorsFlavorOutput) ToGetFlavorsFlavorOutput ¶
func (o GetFlavorsFlavorOutput) ToGetFlavorsFlavorOutput() GetFlavorsFlavorOutput
func (GetFlavorsFlavorOutput) ToGetFlavorsFlavorOutputWithContext ¶
func (o GetFlavorsFlavorOutput) ToGetFlavorsFlavorOutputWithContext(ctx context.Context) GetFlavorsFlavorOutput
func (GetFlavorsFlavorOutput) Type ¶
func (o GetFlavorsFlavorOutput) Type() pulumi.StringOutput
Specifies the flavor type. Valid values are L4 and L7.
type GetFlavorsOutputArgs ¶
type GetFlavorsOutputArgs struct { // Specifies the bandwidth size(Mbit/s) in the flavor. Bandwidth pulumi.IntPtrInput `pulumi:"bandwidth"` // Specifies the cps in the flavor. Cps pulumi.IntPtrInput `pulumi:"cps"` // Specifies the maximum connections in the flavor. MaxConnections pulumi.IntPtrInput `pulumi:"maxConnections"` // Specifies the qps in the L7 flavor. Qps pulumi.IntPtrInput `pulumi:"qps"` // The region in which to obtain the flavors. If omitted, the provider-level region will be // used. Region pulumi.StringPtrInput `pulumi:"region"` // Specifies the flavor type. Valid values are L4 and L7. Type pulumi.StringPtrInput `pulumi:"type"` }
A collection of arguments for invoking getFlavors.
func (GetFlavorsOutputArgs) ElementType ¶
func (GetFlavorsOutputArgs) ElementType() reflect.Type
type GetFlavorsResult ¶
type GetFlavorsResult struct { // Bandwidth size(Mbit/s) of the flavor. Bandwidth *int `pulumi:"bandwidth"` // Cps of the flavor. Cps *int `pulumi:"cps"` // A list of flavors. Each element contains the following attributes: Flavors []GetFlavorsFlavor `pulumi:"flavors"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` // A list of flavor IDs. Ids []string `pulumi:"ids"` // Maximum connections of the flavor. MaxConnections *int `pulumi:"maxConnections"` // Qps of the L7 flavor. Qps *int `pulumi:"qps"` Region string `pulumi:"region"` // Type of the flavor. Type *string `pulumi:"type"` }
A collection of values returned by getFlavors.
func GetFlavors ¶
func GetFlavors(ctx *pulumi.Context, args *GetFlavorsArgs, opts ...pulumi.InvokeOption) (*GetFlavorsResult, error)
Use this data source to get the available ELB Flavors.
## Example Usage
```go package main
import (
"github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/DedicatedElb" "github.com/pulumi/pulumi-huaweicloud/sdk/go/huaweicloud/DedicatedElb" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { flavors, err := DedicatedElb.GetFlavors(ctx, &dedicatedelb.GetFlavorsArgs{ Type: pulumi.StringRef("L7"), MaxConnections: pulumi.IntRef(200000), Cps: pulumi.IntRef(2000), Bandwidth: pulumi.IntRef(50), }, nil) if err != nil { return err } _, err = DedicatedElb.NewLoadbalancer(ctx, "lb", &DedicatedElb.LoadbalancerArgs{ L7FlavorId: pulumi.String(flavors.Ids[0]), }) if err != nil { return err } return nil }) }
```
type GetFlavorsResultOutput ¶
type GetFlavorsResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getFlavors.
func GetFlavorsOutput ¶
func GetFlavorsOutput(ctx *pulumi.Context, args GetFlavorsOutputArgs, opts ...pulumi.InvokeOption) GetFlavorsResultOutput
func (GetFlavorsResultOutput) Bandwidth ¶
func (o GetFlavorsResultOutput) Bandwidth() pulumi.IntPtrOutput
Bandwidth size(Mbit/s) of the flavor.
func (GetFlavorsResultOutput) Cps ¶
func (o GetFlavorsResultOutput) Cps() pulumi.IntPtrOutput
Cps of the flavor.
func (GetFlavorsResultOutput) ElementType ¶
func (GetFlavorsResultOutput) ElementType() reflect.Type
func (GetFlavorsResultOutput) Flavors ¶
func (o GetFlavorsResultOutput) Flavors() GetFlavorsFlavorArrayOutput
A list of flavors. Each element contains the following attributes:
func (GetFlavorsResultOutput) Id ¶
func (o GetFlavorsResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (GetFlavorsResultOutput) Ids ¶
func (o GetFlavorsResultOutput) Ids() pulumi.StringArrayOutput
A list of flavor IDs.
func (GetFlavorsResultOutput) MaxConnections ¶
func (o GetFlavorsResultOutput) MaxConnections() pulumi.IntPtrOutput
Maximum connections of the flavor.
func (GetFlavorsResultOutput) Qps ¶
func (o GetFlavorsResultOutput) Qps() pulumi.IntPtrOutput
Qps of the L7 flavor.
func (GetFlavorsResultOutput) Region ¶
func (o GetFlavorsResultOutput) Region() pulumi.StringOutput
func (GetFlavorsResultOutput) ToGetFlavorsResultOutput ¶
func (o GetFlavorsResultOutput) ToGetFlavorsResultOutput() GetFlavorsResultOutput
func (GetFlavorsResultOutput) ToGetFlavorsResultOutputWithContext ¶
func (o GetFlavorsResultOutput) ToGetFlavorsResultOutputWithContext(ctx context.Context) GetFlavorsResultOutput
func (GetFlavorsResultOutput) Type ¶
func (o GetFlavorsResultOutput) Type() pulumi.StringPtrOutput
Type of the flavor.
type GetPoolsArgs ¶
type GetPoolsArgs struct { // Specifies the description of the ELB pool. Description *string `pulumi:"description"` // Specifies the health monitor ID of the ELB pool. HealthmonitorId *string `pulumi:"healthmonitorId"` // Specifies the method of the ELB pool. Must be one of ROUND_ROBIN, LEAST_CONNECTIONS, // or SOURCE_IP. LbMethod *string `pulumi:"lbMethod"` // Specifies the listener ID of the ELB pool. ListenerId *string `pulumi:"listenerId"` // Specifies the loadbalancer ID of the ELB pool. LoadbalancerId *string `pulumi:"loadbalancerId"` // Specifies the name of the ELB pool. Name *string `pulumi:"name"` // Specifies the ID of the ELB pool. PoolId *string `pulumi:"poolId"` // Specifies the protocol of the ELB pool. This can either be TCP, UDP or HTTP. Protocol *string `pulumi:"protocol"` // Specifies the region in which to query the data source. // If omitted, the provider-level region will be used. Region *string `pulumi:"region"` }
A collection of arguments for invoking getPools.
type GetPoolsOutputArgs ¶
type GetPoolsOutputArgs struct { // Specifies the description of the ELB pool. Description pulumi.StringPtrInput `pulumi:"description"` // Specifies the health monitor ID of the ELB pool. HealthmonitorId pulumi.StringPtrInput `pulumi:"healthmonitorId"` // Specifies the method of the ELB pool. Must be one of ROUND_ROBIN, LEAST_CONNECTIONS, // or SOURCE_IP. LbMethod pulumi.StringPtrInput `pulumi:"lbMethod"` // Specifies the listener ID of the ELB pool. ListenerId pulumi.StringPtrInput `pulumi:"listenerId"` // Specifies the loadbalancer ID of the ELB pool. LoadbalancerId pulumi.StringPtrInput `pulumi:"loadbalancerId"` // Specifies the name of the ELB pool. Name pulumi.StringPtrInput `pulumi:"name"` // Specifies the ID of the ELB pool. PoolId pulumi.StringPtrInput `pulumi:"poolId"` // Specifies the protocol of the ELB pool. This can either be TCP, UDP or HTTP. Protocol pulumi.StringPtrInput `pulumi:"protocol"` // Specifies the region in which to query the data source. // If omitted, the provider-level region will be used. Region pulumi.StringPtrInput `pulumi:"region"` }
A collection of arguments for invoking getPools.
func (GetPoolsOutputArgs) ElementType ¶
func (GetPoolsOutputArgs) ElementType() reflect.Type
type GetPoolsPool ¶
type GetPoolsPool struct { // Specifies the description of the ELB pool. Description string `pulumi:"description"` // Specifies the health monitor ID of the ELB pool. HealthmonitorId string `pulumi:"healthmonitorId"` // The listener, loadbalancer or member ID. Id string `pulumi:"id"` // The IP version of the LB pool. IpVersion string `pulumi:"ipVersion"` // Specifies the method of the ELB pool. Must be one of ROUND_ROBIN, LEAST_CONNECTIONS, // or SOURCE_IP. LbMethod string `pulumi:"lbMethod"` // The listener list. The object structure is documented below. Listeners []GetPoolsPoolListener `pulumi:"listeners"` // The loadbalancer list. The object structure is documented below. Loadbalancers []GetPoolsPoolLoadbalancer `pulumi:"loadbalancers"` // The member list. The object structure is documented below. Members []GetPoolsPoolMember `pulumi:"members"` // Specifies the name of the ELB pool. Name string `pulumi:"name"` // Indicates whether connections in the same session will be processed by the same pool member or not. // The object structure is documented below. Persistences []GetPoolsPoolPersistence `pulumi:"persistences"` // Specifies the protocol of the ELB pool. This can either be TCP, UDP or HTTP. Protocol string `pulumi:"protocol"` }
type GetPoolsPoolArgs ¶
type GetPoolsPoolArgs struct { // Specifies the description of the ELB pool. Description pulumi.StringInput `pulumi:"description"` // Specifies the health monitor ID of the ELB pool. HealthmonitorId pulumi.StringInput `pulumi:"healthmonitorId"` // The listener, loadbalancer or member ID. Id pulumi.StringInput `pulumi:"id"` // The IP version of the LB pool. IpVersion pulumi.StringInput `pulumi:"ipVersion"` // Specifies the method of the ELB pool. Must be one of ROUND_ROBIN, LEAST_CONNECTIONS, // or SOURCE_IP. LbMethod pulumi.StringInput `pulumi:"lbMethod"` // The listener list. The object structure is documented below. Listeners GetPoolsPoolListenerArrayInput `pulumi:"listeners"` // The loadbalancer list. The object structure is documented below. Loadbalancers GetPoolsPoolLoadbalancerArrayInput `pulumi:"loadbalancers"` // The member list. The object structure is documented below. Members GetPoolsPoolMemberArrayInput `pulumi:"members"` // Specifies the name of the ELB pool. Name pulumi.StringInput `pulumi:"name"` // Indicates whether connections in the same session will be processed by the same pool member or not. // The object structure is documented below. Persistences GetPoolsPoolPersistenceArrayInput `pulumi:"persistences"` // Specifies the protocol of the ELB pool. This can either be TCP, UDP or HTTP. Protocol pulumi.StringInput `pulumi:"protocol"` }
func (GetPoolsPoolArgs) ElementType ¶
func (GetPoolsPoolArgs) ElementType() reflect.Type
func (GetPoolsPoolArgs) ToGetPoolsPoolOutput ¶
func (i GetPoolsPoolArgs) ToGetPoolsPoolOutput() GetPoolsPoolOutput
func (GetPoolsPoolArgs) ToGetPoolsPoolOutputWithContext ¶
func (i GetPoolsPoolArgs) ToGetPoolsPoolOutputWithContext(ctx context.Context) GetPoolsPoolOutput
type GetPoolsPoolArray ¶
type GetPoolsPoolArray []GetPoolsPoolInput
func (GetPoolsPoolArray) ElementType ¶
func (GetPoolsPoolArray) ElementType() reflect.Type
func (GetPoolsPoolArray) ToGetPoolsPoolArrayOutput ¶
func (i GetPoolsPoolArray) ToGetPoolsPoolArrayOutput() GetPoolsPoolArrayOutput
func (GetPoolsPoolArray) ToGetPoolsPoolArrayOutputWithContext ¶
func (i GetPoolsPoolArray) ToGetPoolsPoolArrayOutputWithContext(ctx context.Context) GetPoolsPoolArrayOutput
type GetPoolsPoolArrayInput ¶
type GetPoolsPoolArrayInput interface { pulumi.Input ToGetPoolsPoolArrayOutput() GetPoolsPoolArrayOutput ToGetPoolsPoolArrayOutputWithContext(context.Context) GetPoolsPoolArrayOutput }
GetPoolsPoolArrayInput is an input type that accepts GetPoolsPoolArray and GetPoolsPoolArrayOutput values. You can construct a concrete instance of `GetPoolsPoolArrayInput` via:
GetPoolsPoolArray{ GetPoolsPoolArgs{...} }
type GetPoolsPoolArrayOutput ¶
type GetPoolsPoolArrayOutput struct{ *pulumi.OutputState }
func (GetPoolsPoolArrayOutput) ElementType ¶
func (GetPoolsPoolArrayOutput) ElementType() reflect.Type
func (GetPoolsPoolArrayOutput) Index ¶
func (o GetPoolsPoolArrayOutput) Index(i pulumi.IntInput) GetPoolsPoolOutput
func (GetPoolsPoolArrayOutput) ToGetPoolsPoolArrayOutput ¶
func (o GetPoolsPoolArrayOutput) ToGetPoolsPoolArrayOutput() GetPoolsPoolArrayOutput
func (GetPoolsPoolArrayOutput) ToGetPoolsPoolArrayOutputWithContext ¶
func (o GetPoolsPoolArrayOutput) ToGetPoolsPoolArrayOutputWithContext(ctx context.Context) GetPoolsPoolArrayOutput
type GetPoolsPoolInput ¶
type GetPoolsPoolInput interface { pulumi.Input ToGetPoolsPoolOutput() GetPoolsPoolOutput ToGetPoolsPoolOutputWithContext(context.Context) GetPoolsPoolOutput }
GetPoolsPoolInput is an input type that accepts GetPoolsPoolArgs and GetPoolsPoolOutput values. You can construct a concrete instance of `GetPoolsPoolInput` via:
GetPoolsPoolArgs{...}
type GetPoolsPoolListener ¶
type GetPoolsPoolListener struct { // The listener, loadbalancer or member ID. Id string `pulumi:"id"` }
type GetPoolsPoolListenerArgs ¶
type GetPoolsPoolListenerArgs struct { // The listener, loadbalancer or member ID. Id pulumi.StringInput `pulumi:"id"` }
func (GetPoolsPoolListenerArgs) ElementType ¶
func (GetPoolsPoolListenerArgs) ElementType() reflect.Type
func (GetPoolsPoolListenerArgs) ToGetPoolsPoolListenerOutput ¶
func (i GetPoolsPoolListenerArgs) ToGetPoolsPoolListenerOutput() GetPoolsPoolListenerOutput
func (GetPoolsPoolListenerArgs) ToGetPoolsPoolListenerOutputWithContext ¶
func (i GetPoolsPoolListenerArgs) ToGetPoolsPoolListenerOutputWithContext(ctx context.Context) GetPoolsPoolListenerOutput
type GetPoolsPoolListenerArray ¶
type GetPoolsPoolListenerArray []GetPoolsPoolListenerInput
func (GetPoolsPoolListenerArray) ElementType ¶
func (GetPoolsPoolListenerArray) ElementType() reflect.Type
func (GetPoolsPoolListenerArray) ToGetPoolsPoolListenerArrayOutput ¶
func (i GetPoolsPoolListenerArray) ToGetPoolsPoolListenerArrayOutput() GetPoolsPoolListenerArrayOutput
func (GetPoolsPoolListenerArray) ToGetPoolsPoolListenerArrayOutputWithContext ¶
func (i GetPoolsPoolListenerArray) ToGetPoolsPoolListenerArrayOutputWithContext(ctx context.Context) GetPoolsPoolListenerArrayOutput
type GetPoolsPoolListenerArrayInput ¶
type GetPoolsPoolListenerArrayInput interface { pulumi.Input ToGetPoolsPoolListenerArrayOutput() GetPoolsPoolListenerArrayOutput ToGetPoolsPoolListenerArrayOutputWithContext(context.Context) GetPoolsPoolListenerArrayOutput }
GetPoolsPoolListenerArrayInput is an input type that accepts GetPoolsPoolListenerArray and GetPoolsPoolListenerArrayOutput values. You can construct a concrete instance of `GetPoolsPoolListenerArrayInput` via:
GetPoolsPoolListenerArray{ GetPoolsPoolListenerArgs{...} }
type GetPoolsPoolListenerArrayOutput ¶
type GetPoolsPoolListenerArrayOutput struct{ *pulumi.OutputState }
func (GetPoolsPoolListenerArrayOutput) ElementType ¶
func (GetPoolsPoolListenerArrayOutput) ElementType() reflect.Type
func (GetPoolsPoolListenerArrayOutput) Index ¶
func (o GetPoolsPoolListenerArrayOutput) Index(i pulumi.IntInput) GetPoolsPoolListenerOutput
func (GetPoolsPoolListenerArrayOutput) ToGetPoolsPoolListenerArrayOutput ¶
func (o GetPoolsPoolListenerArrayOutput) ToGetPoolsPoolListenerArrayOutput() GetPoolsPoolListenerArrayOutput
func (GetPoolsPoolListenerArrayOutput) ToGetPoolsPoolListenerArrayOutputWithContext ¶
func (o GetPoolsPoolListenerArrayOutput) ToGetPoolsPoolListenerArrayOutputWithContext(ctx context.Context) GetPoolsPoolListenerArrayOutput
type GetPoolsPoolListenerInput ¶
type GetPoolsPoolListenerInput interface { pulumi.Input ToGetPoolsPoolListenerOutput() GetPoolsPoolListenerOutput ToGetPoolsPoolListenerOutputWithContext(context.Context) GetPoolsPoolListenerOutput }
GetPoolsPoolListenerInput is an input type that accepts GetPoolsPoolListenerArgs and GetPoolsPoolListenerOutput values. You can construct a concrete instance of `GetPoolsPoolListenerInput` via:
GetPoolsPoolListenerArgs{...}
type GetPoolsPoolListenerOutput ¶
type GetPoolsPoolListenerOutput struct{ *pulumi.OutputState }
func (GetPoolsPoolListenerOutput) ElementType ¶
func (GetPoolsPoolListenerOutput) ElementType() reflect.Type
func (GetPoolsPoolListenerOutput) Id ¶
func (o GetPoolsPoolListenerOutput) Id() pulumi.StringOutput
The listener, loadbalancer or member ID.
func (GetPoolsPoolListenerOutput) ToGetPoolsPoolListenerOutput ¶
func (o GetPoolsPoolListenerOutput) ToGetPoolsPoolListenerOutput() GetPoolsPoolListenerOutput
func (GetPoolsPoolListenerOutput) ToGetPoolsPoolListenerOutputWithContext ¶
func (o GetPoolsPoolListenerOutput) ToGetPoolsPoolListenerOutputWithContext(ctx context.Context) GetPoolsPoolListenerOutput
type GetPoolsPoolLoadbalancer ¶
type GetPoolsPoolLoadbalancer struct { // The listener, loadbalancer or member ID. Id string `pulumi:"id"` }
type GetPoolsPoolLoadbalancerArgs ¶
type GetPoolsPoolLoadbalancerArgs struct { // The listener, loadbalancer or member ID. Id pulumi.StringInput `pulumi:"id"` }
func (GetPoolsPoolLoadbalancerArgs) ElementType ¶
func (GetPoolsPoolLoadbalancerArgs) ElementType() reflect.Type
func (GetPoolsPoolLoadbalancerArgs) ToGetPoolsPoolLoadbalancerOutput ¶
func (i GetPoolsPoolLoadbalancerArgs) ToGetPoolsPoolLoadbalancerOutput() GetPoolsPoolLoadbalancerOutput
func (GetPoolsPoolLoadbalancerArgs) ToGetPoolsPoolLoadbalancerOutputWithContext ¶
func (i GetPoolsPoolLoadbalancerArgs) ToGetPoolsPoolLoadbalancerOutputWithContext(ctx context.Context) GetPoolsPoolLoadbalancerOutput
type GetPoolsPoolLoadbalancerArray ¶
type GetPoolsPoolLoadbalancerArray []GetPoolsPoolLoadbalancerInput
func (GetPoolsPoolLoadbalancerArray) ElementType ¶
func (GetPoolsPoolLoadbalancerArray) ElementType() reflect.Type
func (GetPoolsPoolLoadbalancerArray) ToGetPoolsPoolLoadbalancerArrayOutput ¶
func (i GetPoolsPoolLoadbalancerArray) ToGetPoolsPoolLoadbalancerArrayOutput() GetPoolsPoolLoadbalancerArrayOutput
func (GetPoolsPoolLoadbalancerArray) ToGetPoolsPoolLoadbalancerArrayOutputWithContext ¶
func (i GetPoolsPoolLoadbalancerArray) ToGetPoolsPoolLoadbalancerArrayOutputWithContext(ctx context.Context) GetPoolsPoolLoadbalancerArrayOutput
type GetPoolsPoolLoadbalancerArrayInput ¶
type GetPoolsPoolLoadbalancerArrayInput interface { pulumi.Input ToGetPoolsPoolLoadbalancerArrayOutput() GetPoolsPoolLoadbalancerArrayOutput ToGetPoolsPoolLoadbalancerArrayOutputWithContext(context.Context) GetPoolsPoolLoadbalancerArrayOutput }
GetPoolsPoolLoadbalancerArrayInput is an input type that accepts GetPoolsPoolLoadbalancerArray and GetPoolsPoolLoadbalancerArrayOutput values. You can construct a concrete instance of `GetPoolsPoolLoadbalancerArrayInput` via:
GetPoolsPoolLoadbalancerArray{ GetPoolsPoolLoadbalancerArgs{...} }
type GetPoolsPoolLoadbalancerArrayOutput ¶
type GetPoolsPoolLoadbalancerArrayOutput struct{ *pulumi.OutputState }
func (GetPoolsPoolLoadbalancerArrayOutput) ElementType ¶
func (GetPoolsPoolLoadbalancerArrayOutput) ElementType() reflect.Type
func (GetPoolsPoolLoadbalancerArrayOutput) Index ¶
func (o GetPoolsPoolLoadbalancerArrayOutput) Index(i pulumi.IntInput) GetPoolsPoolLoadbalancerOutput
func (GetPoolsPoolLoadbalancerArrayOutput) ToGetPoolsPoolLoadbalancerArrayOutput ¶
func (o GetPoolsPoolLoadbalancerArrayOutput) ToGetPoolsPoolLoadbalancerArrayOutput() GetPoolsPoolLoadbalancerArrayOutput
func (GetPoolsPoolLoadbalancerArrayOutput) ToGetPoolsPoolLoadbalancerArrayOutputWithContext ¶
func (o GetPoolsPoolLoadbalancerArrayOutput) ToGetPoolsPoolLoadbalancerArrayOutputWithContext(ctx context.Context) GetPoolsPoolLoadbalancerArrayOutput
type GetPoolsPoolLoadbalancerInput ¶
type GetPoolsPoolLoadbalancerInput interface { pulumi.Input ToGetPoolsPoolLoadbalancerOutput() GetPoolsPoolLoadbalancerOutput ToGetPoolsPoolLoadbalancerOutputWithContext(context.Context) GetPoolsPoolLoadbalancerOutput }
GetPoolsPoolLoadbalancerInput is an input type that accepts GetPoolsPoolLoadbalancerArgs and GetPoolsPoolLoadbalancerOutput values. You can construct a concrete instance of `GetPoolsPoolLoadbalancerInput` via:
GetPoolsPoolLoadbalancerArgs{...}
type GetPoolsPoolLoadbalancerOutput ¶
type GetPoolsPoolLoadbalancerOutput struct{ *pulumi.OutputState }
func (GetPoolsPoolLoadbalancerOutput) ElementType ¶
func (GetPoolsPoolLoadbalancerOutput) ElementType() reflect.Type
func (GetPoolsPoolLoadbalancerOutput) Id ¶
func (o GetPoolsPoolLoadbalancerOutput) Id() pulumi.StringOutput
The listener, loadbalancer or member ID.
func (GetPoolsPoolLoadbalancerOutput) ToGetPoolsPoolLoadbalancerOutput ¶
func (o GetPoolsPoolLoadbalancerOutput) ToGetPoolsPoolLoadbalancerOutput() GetPoolsPoolLoadbalancerOutput
func (GetPoolsPoolLoadbalancerOutput) ToGetPoolsPoolLoadbalancerOutputWithContext ¶
func (o GetPoolsPoolLoadbalancerOutput) ToGetPoolsPoolLoadbalancerOutputWithContext(ctx context.Context) GetPoolsPoolLoadbalancerOutput
type GetPoolsPoolMember ¶
type GetPoolsPoolMember struct { // The listener, loadbalancer or member ID. Id string `pulumi:"id"` }
type GetPoolsPoolMemberArgs ¶
type GetPoolsPoolMemberArgs struct { // The listener, loadbalancer or member ID. Id pulumi.StringInput `pulumi:"id"` }
func (GetPoolsPoolMemberArgs) ElementType ¶
func (GetPoolsPoolMemberArgs) ElementType() reflect.Type
func (GetPoolsPoolMemberArgs) ToGetPoolsPoolMemberOutput ¶
func (i GetPoolsPoolMemberArgs) ToGetPoolsPoolMemberOutput() GetPoolsPoolMemberOutput
func (GetPoolsPoolMemberArgs) ToGetPoolsPoolMemberOutputWithContext ¶
func (i GetPoolsPoolMemberArgs) ToGetPoolsPoolMemberOutputWithContext(ctx context.Context) GetPoolsPoolMemberOutput
type GetPoolsPoolMemberArray ¶
type GetPoolsPoolMemberArray []GetPoolsPoolMemberInput
func (GetPoolsPoolMemberArray) ElementType ¶
func (GetPoolsPoolMemberArray) ElementType() reflect.Type
func (GetPoolsPoolMemberArray) ToGetPoolsPoolMemberArrayOutput ¶
func (i GetPoolsPoolMemberArray) ToGetPoolsPoolMemberArrayOutput() GetPoolsPoolMemberArrayOutput
func (GetPoolsPoolMemberArray) ToGetPoolsPoolMemberArrayOutputWithContext ¶
func (i GetPoolsPoolMemberArray) ToGetPoolsPoolMemberArrayOutputWithContext(ctx context.Context) GetPoolsPoolMemberArrayOutput
type GetPoolsPoolMemberArrayInput ¶
type GetPoolsPoolMemberArrayInput interface { pulumi.Input ToGetPoolsPoolMemberArrayOutput() GetPoolsPoolMemberArrayOutput ToGetPoolsPoolMemberArrayOutputWithContext(context.Context) GetPoolsPoolMemberArrayOutput }
GetPoolsPoolMemberArrayInput is an input type that accepts GetPoolsPoolMemberArray and GetPoolsPoolMemberArrayOutput values. You can construct a concrete instance of `GetPoolsPoolMemberArrayInput` via:
GetPoolsPoolMemberArray{ GetPoolsPoolMemberArgs{...} }
type GetPoolsPoolMemberArrayOutput ¶
type GetPoolsPoolMemberArrayOutput struct{ *pulumi.OutputState }
func (GetPoolsPoolMemberArrayOutput) ElementType ¶
func (GetPoolsPoolMemberArrayOutput) ElementType() reflect.Type
func (GetPoolsPoolMemberArrayOutput) Index ¶
func (o GetPoolsPoolMemberArrayOutput) Index(i pulumi.IntInput) GetPoolsPoolMemberOutput
func (GetPoolsPoolMemberArrayOutput) ToGetPoolsPoolMemberArrayOutput ¶
func (o GetPoolsPoolMemberArrayOutput) ToGetPoolsPoolMemberArrayOutput() GetPoolsPoolMemberArrayOutput
func (GetPoolsPoolMemberArrayOutput) ToGetPoolsPoolMemberArrayOutputWithContext ¶
func (o GetPoolsPoolMemberArrayOutput) ToGetPoolsPoolMemberArrayOutputWithContext(ctx context.Context) GetPoolsPoolMemberArrayOutput
type GetPoolsPoolMemberInput ¶
type GetPoolsPoolMemberInput interface { pulumi.Input ToGetPoolsPoolMemberOutput() GetPoolsPoolMemberOutput ToGetPoolsPoolMemberOutputWithContext(context.Context) GetPoolsPoolMemberOutput }
GetPoolsPoolMemberInput is an input type that accepts GetPoolsPoolMemberArgs and GetPoolsPoolMemberOutput values. You can construct a concrete instance of `GetPoolsPoolMemberInput` via:
GetPoolsPoolMemberArgs{...}
type GetPoolsPoolMemberOutput ¶
type GetPoolsPoolMemberOutput struct{ *pulumi.OutputState }
func (GetPoolsPoolMemberOutput) ElementType ¶
func (GetPoolsPoolMemberOutput) ElementType() reflect.Type
func (GetPoolsPoolMemberOutput) Id ¶
func (o GetPoolsPoolMemberOutput) Id() pulumi.StringOutput
The listener, loadbalancer or member ID.
func (GetPoolsPoolMemberOutput) ToGetPoolsPoolMemberOutput ¶
func (o GetPoolsPoolMemberOutput) ToGetPoolsPoolMemberOutput() GetPoolsPoolMemberOutput
func (GetPoolsPoolMemberOutput) ToGetPoolsPoolMemberOutputWithContext ¶
func (o GetPoolsPoolMemberOutput) ToGetPoolsPoolMemberOutputWithContext(ctx context.Context) GetPoolsPoolMemberOutput
type GetPoolsPoolOutput ¶
type GetPoolsPoolOutput struct{ *pulumi.OutputState }
func (GetPoolsPoolOutput) Description ¶
func (o GetPoolsPoolOutput) Description() pulumi.StringOutput
Specifies the description of the ELB pool.
func (GetPoolsPoolOutput) ElementType ¶
func (GetPoolsPoolOutput) ElementType() reflect.Type
func (GetPoolsPoolOutput) HealthmonitorId ¶
func (o GetPoolsPoolOutput) HealthmonitorId() pulumi.StringOutput
Specifies the health monitor ID of the ELB pool.
func (GetPoolsPoolOutput) Id ¶
func (o GetPoolsPoolOutput) Id() pulumi.StringOutput
The listener, loadbalancer or member ID.
func (GetPoolsPoolOutput) IpVersion ¶
func (o GetPoolsPoolOutput) IpVersion() pulumi.StringOutput
The IP version of the LB pool.
func (GetPoolsPoolOutput) LbMethod ¶
func (o GetPoolsPoolOutput) LbMethod() pulumi.StringOutput
Specifies the method of the ELB pool. Must be one of ROUND_ROBIN, LEAST_CONNECTIONS, or SOURCE_IP.
func (GetPoolsPoolOutput) Listeners ¶
func (o GetPoolsPoolOutput) Listeners() GetPoolsPoolListenerArrayOutput
The listener list. The object structure is documented below.
func (GetPoolsPoolOutput) Loadbalancers ¶
func (o GetPoolsPoolOutput) Loadbalancers() GetPoolsPoolLoadbalancerArrayOutput
The loadbalancer list. The object structure is documented below.
func (GetPoolsPoolOutput) Members ¶
func (o GetPoolsPoolOutput) Members() GetPoolsPoolMemberArrayOutput
The member list. The object structure is documented below.
func (GetPoolsPoolOutput) Name ¶
func (o GetPoolsPoolOutput) Name() pulumi.StringOutput
Specifies the name of the ELB pool.
func (GetPoolsPoolOutput) Persistences ¶
func (o GetPoolsPoolOutput) Persistences() GetPoolsPoolPersistenceArrayOutput
Indicates whether connections in the same session will be processed by the same pool member or not. The object structure is documented below.
func (GetPoolsPoolOutput) Protocol ¶
func (o GetPoolsPoolOutput) Protocol() pulumi.StringOutput
Specifies the protocol of the ELB pool. This can either be TCP, UDP or HTTP.
func (GetPoolsPoolOutput) ToGetPoolsPoolOutput ¶
func (o GetPoolsPoolOutput) ToGetPoolsPoolOutput() GetPoolsPoolOutput
func (GetPoolsPoolOutput) ToGetPoolsPoolOutputWithContext ¶
func (o GetPoolsPoolOutput) ToGetPoolsPoolOutputWithContext(ctx context.Context) GetPoolsPoolOutput
type GetPoolsPoolPersistence ¶
type GetPoolsPoolPersistenceArgs ¶
type GetPoolsPoolPersistenceArgs struct { // The name of the cookie if persistence mode is set appropriately. CookieName pulumi.StringInput `pulumi:"cookieName"` // The type of persistence mode. Type pulumi.StringInput `pulumi:"type"` }
func (GetPoolsPoolPersistenceArgs) ElementType ¶
func (GetPoolsPoolPersistenceArgs) ElementType() reflect.Type
func (GetPoolsPoolPersistenceArgs) ToGetPoolsPoolPersistenceOutput ¶
func (i GetPoolsPoolPersistenceArgs) ToGetPoolsPoolPersistenceOutput() GetPoolsPoolPersistenceOutput
func (GetPoolsPoolPersistenceArgs) ToGetPoolsPoolPersistenceOutputWithContext ¶
func (i GetPoolsPoolPersistenceArgs) ToGetPoolsPoolPersistenceOutputWithContext(ctx context.Context) GetPoolsPoolPersistenceOutput
type GetPoolsPoolPersistenceArray ¶
type GetPoolsPoolPersistenceArray []GetPoolsPoolPersistenceInput
func (GetPoolsPoolPersistenceArray) ElementType ¶
func (GetPoolsPoolPersistenceArray) ElementType() reflect.Type
func (GetPoolsPoolPersistenceArray) ToGetPoolsPoolPersistenceArrayOutput ¶
func (i GetPoolsPoolPersistenceArray) ToGetPoolsPoolPersistenceArrayOutput() GetPoolsPoolPersistenceArrayOutput
func (GetPoolsPoolPersistenceArray) ToGetPoolsPoolPersistenceArrayOutputWithContext ¶
func (i GetPoolsPoolPersistenceArray) ToGetPoolsPoolPersistenceArrayOutputWithContext(ctx context.Context) GetPoolsPoolPersistenceArrayOutput
type GetPoolsPoolPersistenceArrayInput ¶
type GetPoolsPoolPersistenceArrayInput interface { pulumi.Input ToGetPoolsPoolPersistenceArrayOutput() GetPoolsPoolPersistenceArrayOutput ToGetPoolsPoolPersistenceArrayOutputWithContext(context.Context) GetPoolsPoolPersistenceArrayOutput }
GetPoolsPoolPersistenceArrayInput is an input type that accepts GetPoolsPoolPersistenceArray and GetPoolsPoolPersistenceArrayOutput values. You can construct a concrete instance of `GetPoolsPoolPersistenceArrayInput` via:
GetPoolsPoolPersistenceArray{ GetPoolsPoolPersistenceArgs{...} }
type GetPoolsPoolPersistenceArrayOutput ¶
type GetPoolsPoolPersistenceArrayOutput struct{ *pulumi.OutputState }
func (GetPoolsPoolPersistenceArrayOutput) ElementType ¶
func (GetPoolsPoolPersistenceArrayOutput) ElementType() reflect.Type
func (GetPoolsPoolPersistenceArrayOutput) Index ¶
func (o GetPoolsPoolPersistenceArrayOutput) Index(i pulumi.IntInput) GetPoolsPoolPersistenceOutput
func (GetPoolsPoolPersistenceArrayOutput) ToGetPoolsPoolPersistenceArrayOutput ¶
func (o GetPoolsPoolPersistenceArrayOutput) ToGetPoolsPoolPersistenceArrayOutput() GetPoolsPoolPersistenceArrayOutput
func (GetPoolsPoolPersistenceArrayOutput) ToGetPoolsPoolPersistenceArrayOutputWithContext ¶
func (o GetPoolsPoolPersistenceArrayOutput) ToGetPoolsPoolPersistenceArrayOutputWithContext(ctx context.Context) GetPoolsPoolPersistenceArrayOutput
type GetPoolsPoolPersistenceInput ¶
type GetPoolsPoolPersistenceInput interface { pulumi.Input ToGetPoolsPoolPersistenceOutput() GetPoolsPoolPersistenceOutput ToGetPoolsPoolPersistenceOutputWithContext(context.Context) GetPoolsPoolPersistenceOutput }
GetPoolsPoolPersistenceInput is an input type that accepts GetPoolsPoolPersistenceArgs and GetPoolsPoolPersistenceOutput values. You can construct a concrete instance of `GetPoolsPoolPersistenceInput` via:
GetPoolsPoolPersistenceArgs{...}
type GetPoolsPoolPersistenceOutput ¶
type GetPoolsPoolPersistenceOutput struct{ *pulumi.OutputState }
func (GetPoolsPoolPersistenceOutput) CookieName ¶
func (o GetPoolsPoolPersistenceOutput) CookieName() pulumi.StringOutput
The name of the cookie if persistence mode is set appropriately.
func (GetPoolsPoolPersistenceOutput) ElementType ¶
func (GetPoolsPoolPersistenceOutput) ElementType() reflect.Type
func (GetPoolsPoolPersistenceOutput) ToGetPoolsPoolPersistenceOutput ¶
func (o GetPoolsPoolPersistenceOutput) ToGetPoolsPoolPersistenceOutput() GetPoolsPoolPersistenceOutput
func (GetPoolsPoolPersistenceOutput) ToGetPoolsPoolPersistenceOutputWithContext ¶
func (o GetPoolsPoolPersistenceOutput) ToGetPoolsPoolPersistenceOutputWithContext(ctx context.Context) GetPoolsPoolPersistenceOutput
func (GetPoolsPoolPersistenceOutput) Type ¶
func (o GetPoolsPoolPersistenceOutput) Type() pulumi.StringOutput
The type of persistence mode.
type GetPoolsResult ¶
type GetPoolsResult struct { // The description of pool. Description *string `pulumi:"description"` // The health monitor ID of the LB pool. HealthmonitorId *string `pulumi:"healthmonitorId"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` // The load balancing algorithm to distribute traffic to the pool's members. LbMethod *string `pulumi:"lbMethod"` ListenerId *string `pulumi:"listenerId"` LoadbalancerId *string `pulumi:"loadbalancerId"` // The pool name. Name *string `pulumi:"name"` PoolId *string `pulumi:"poolId"` // Pool list. For details, see data structure of the pool field. // The object structure is documented below. Pools []GetPoolsPool `pulumi:"pools"` // The protocol of pool. Protocol *string `pulumi:"protocol"` Region string `pulumi:"region"` }
A collection of values returned by getPools.
func GetPools ¶
func GetPools(ctx *pulumi.Context, args *GetPoolsArgs, opts ...pulumi.InvokeOption) (*GetPoolsResult, error)
Use this data source to get the list of ELB pools.
## Example Usage
```go package main
import (
"github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/DedicatedElb" "github.com/pulumi/pulumi-huaweicloud/sdk/go/huaweicloud/DedicatedElb" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" "github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { cfg := config.New(ctx, "") poolName := cfg.RequireObject("poolName") _, err := DedicatedElb.GetPools(ctx, &dedicatedelb.GetPoolsArgs{ Name: pulumi.StringRef(poolName), }, nil) if err != nil { return err } return nil }) }
```
type GetPoolsResultOutput ¶
type GetPoolsResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getPools.
func GetPoolsOutput ¶
func GetPoolsOutput(ctx *pulumi.Context, args GetPoolsOutputArgs, opts ...pulumi.InvokeOption) GetPoolsResultOutput
func (GetPoolsResultOutput) Description ¶
func (o GetPoolsResultOutput) Description() pulumi.StringPtrOutput
The description of pool.
func (GetPoolsResultOutput) ElementType ¶
func (GetPoolsResultOutput) ElementType() reflect.Type
func (GetPoolsResultOutput) HealthmonitorId ¶
func (o GetPoolsResultOutput) HealthmonitorId() pulumi.StringPtrOutput
The health monitor ID of the LB pool.
func (GetPoolsResultOutput) Id ¶
func (o GetPoolsResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (GetPoolsResultOutput) LbMethod ¶
func (o GetPoolsResultOutput) LbMethod() pulumi.StringPtrOutput
The load balancing algorithm to distribute traffic to the pool's members.
func (GetPoolsResultOutput) ListenerId ¶
func (o GetPoolsResultOutput) ListenerId() pulumi.StringPtrOutput
func (GetPoolsResultOutput) LoadbalancerId ¶
func (o GetPoolsResultOutput) LoadbalancerId() pulumi.StringPtrOutput
func (GetPoolsResultOutput) Name ¶
func (o GetPoolsResultOutput) Name() pulumi.StringPtrOutput
The pool name.
func (GetPoolsResultOutput) PoolId ¶
func (o GetPoolsResultOutput) PoolId() pulumi.StringPtrOutput
func (GetPoolsResultOutput) Pools ¶
func (o GetPoolsResultOutput) Pools() GetPoolsPoolArrayOutput
Pool list. For details, see data structure of the pool field. The object structure is documented below.
func (GetPoolsResultOutput) Protocol ¶
func (o GetPoolsResultOutput) Protocol() pulumi.StringPtrOutput
The protocol of pool.
func (GetPoolsResultOutput) Region ¶
func (o GetPoolsResultOutput) Region() pulumi.StringOutput
func (GetPoolsResultOutput) ToGetPoolsResultOutput ¶
func (o GetPoolsResultOutput) ToGetPoolsResultOutput() GetPoolsResultOutput
func (GetPoolsResultOutput) ToGetPoolsResultOutputWithContext ¶
func (o GetPoolsResultOutput) ToGetPoolsResultOutputWithContext(ctx context.Context) GetPoolsResultOutput
type Ipgroup ¶
type Ipgroup struct { pulumi.CustomResourceState // Human-readable description for the ip. Description pulumi.StringPtrOutput `pulumi:"description"` // The enterprise project id of the ip group. Changing this // creates a new ip group. EnterpriseProjectId pulumi.StringOutput `pulumi:"enterpriseProjectId"` // Specifies an array of one or more ip addresses. The ipList object structure is // documented below. IpLists IpgroupIpListArrayOutput `pulumi:"ipLists"` // Human-readable name for the ip group. Name pulumi.StringOutput `pulumi:"name"` // The region in which to create the ip group resource. If omitted, the // provider-level region will be used. Changing this creates a new ip group. Region pulumi.StringOutput `pulumi:"region"` }
Manages a Dedicated ELB Ip Group resource within HuaweiCloud.
## Example Usage
```go package main
import (
"github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/DedicatedElb" "github.com/pulumi/pulumi-huaweicloud/sdk/go/huaweicloud/DedicatedElb" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := DedicatedElb.NewIpgroup(ctx, "basic", &DedicatedElb.IpgroupArgs{ Description: pulumi.String("basic example"), IpLists: dedicatedelb.IpgroupIpListArray{ &dedicatedelb.IpgroupIpListArgs{ Description: pulumi.String("ECS01"), Ip: pulumi.String("192.168.10.10"), }, }, }) if err != nil { return err } return nil }) }
```
func GetIpgroup ¶
func GetIpgroup(ctx *pulumi.Context, name string, id pulumi.IDInput, state *IpgroupState, opts ...pulumi.ResourceOption) (*Ipgroup, error)
GetIpgroup gets an existing Ipgroup resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewIpgroup ¶
func NewIpgroup(ctx *pulumi.Context, name string, args *IpgroupArgs, opts ...pulumi.ResourceOption) (*Ipgroup, error)
NewIpgroup registers a new resource with the given unique name, arguments, and options.
func (*Ipgroup) ElementType ¶
func (*Ipgroup) ToIpgroupOutput ¶
func (i *Ipgroup) ToIpgroupOutput() IpgroupOutput
func (*Ipgroup) ToIpgroupOutputWithContext ¶
func (i *Ipgroup) ToIpgroupOutputWithContext(ctx context.Context) IpgroupOutput
type IpgroupArgs ¶
type IpgroupArgs struct { // Human-readable description for the ip. Description pulumi.StringPtrInput // The enterprise project id of the ip group. Changing this // creates a new ip group. EnterpriseProjectId pulumi.StringPtrInput // Specifies an array of one or more ip addresses. The ipList object structure is // documented below. IpLists IpgroupIpListArrayInput // Human-readable name for the ip group. Name pulumi.StringPtrInput // The region in which to create the ip group resource. If omitted, the // provider-level region will be used. Changing this creates a new ip group. Region pulumi.StringPtrInput }
The set of arguments for constructing a Ipgroup resource.
func (IpgroupArgs) ElementType ¶
func (IpgroupArgs) ElementType() reflect.Type
type IpgroupArray ¶
type IpgroupArray []IpgroupInput
func (IpgroupArray) ElementType ¶
func (IpgroupArray) ElementType() reflect.Type
func (IpgroupArray) ToIpgroupArrayOutput ¶
func (i IpgroupArray) ToIpgroupArrayOutput() IpgroupArrayOutput
func (IpgroupArray) ToIpgroupArrayOutputWithContext ¶
func (i IpgroupArray) ToIpgroupArrayOutputWithContext(ctx context.Context) IpgroupArrayOutput
type IpgroupArrayInput ¶
type IpgroupArrayInput interface { pulumi.Input ToIpgroupArrayOutput() IpgroupArrayOutput ToIpgroupArrayOutputWithContext(context.Context) IpgroupArrayOutput }
IpgroupArrayInput is an input type that accepts IpgroupArray and IpgroupArrayOutput values. You can construct a concrete instance of `IpgroupArrayInput` via:
IpgroupArray{ IpgroupArgs{...} }
type IpgroupArrayOutput ¶
type IpgroupArrayOutput struct{ *pulumi.OutputState }
func (IpgroupArrayOutput) ElementType ¶
func (IpgroupArrayOutput) ElementType() reflect.Type
func (IpgroupArrayOutput) Index ¶
func (o IpgroupArrayOutput) Index(i pulumi.IntInput) IpgroupOutput
func (IpgroupArrayOutput) ToIpgroupArrayOutput ¶
func (o IpgroupArrayOutput) ToIpgroupArrayOutput() IpgroupArrayOutput
func (IpgroupArrayOutput) ToIpgroupArrayOutputWithContext ¶
func (o IpgroupArrayOutput) ToIpgroupArrayOutputWithContext(ctx context.Context) IpgroupArrayOutput
type IpgroupInput ¶
type IpgroupInput interface { pulumi.Input ToIpgroupOutput() IpgroupOutput ToIpgroupOutputWithContext(ctx context.Context) IpgroupOutput }
type IpgroupIpList ¶
type IpgroupIpListArgs ¶
type IpgroupIpListArgs struct { // Human-readable description for the ip. Description pulumi.StringPtrInput `pulumi:"description"` // IP address or CIDR block. Ip pulumi.StringInput `pulumi:"ip"` }
func (IpgroupIpListArgs) ElementType ¶
func (IpgroupIpListArgs) ElementType() reflect.Type
func (IpgroupIpListArgs) ToIpgroupIpListOutput ¶
func (i IpgroupIpListArgs) ToIpgroupIpListOutput() IpgroupIpListOutput
func (IpgroupIpListArgs) ToIpgroupIpListOutputWithContext ¶
func (i IpgroupIpListArgs) ToIpgroupIpListOutputWithContext(ctx context.Context) IpgroupIpListOutput
type IpgroupIpListArray ¶
type IpgroupIpListArray []IpgroupIpListInput
func (IpgroupIpListArray) ElementType ¶
func (IpgroupIpListArray) ElementType() reflect.Type
func (IpgroupIpListArray) ToIpgroupIpListArrayOutput ¶
func (i IpgroupIpListArray) ToIpgroupIpListArrayOutput() IpgroupIpListArrayOutput
func (IpgroupIpListArray) ToIpgroupIpListArrayOutputWithContext ¶
func (i IpgroupIpListArray) ToIpgroupIpListArrayOutputWithContext(ctx context.Context) IpgroupIpListArrayOutput
type IpgroupIpListArrayInput ¶
type IpgroupIpListArrayInput interface { pulumi.Input ToIpgroupIpListArrayOutput() IpgroupIpListArrayOutput ToIpgroupIpListArrayOutputWithContext(context.Context) IpgroupIpListArrayOutput }
IpgroupIpListArrayInput is an input type that accepts IpgroupIpListArray and IpgroupIpListArrayOutput values. You can construct a concrete instance of `IpgroupIpListArrayInput` via:
IpgroupIpListArray{ IpgroupIpListArgs{...} }
type IpgroupIpListArrayOutput ¶
type IpgroupIpListArrayOutput struct{ *pulumi.OutputState }
func (IpgroupIpListArrayOutput) ElementType ¶
func (IpgroupIpListArrayOutput) ElementType() reflect.Type
func (IpgroupIpListArrayOutput) Index ¶
func (o IpgroupIpListArrayOutput) Index(i pulumi.IntInput) IpgroupIpListOutput
func (IpgroupIpListArrayOutput) ToIpgroupIpListArrayOutput ¶
func (o IpgroupIpListArrayOutput) ToIpgroupIpListArrayOutput() IpgroupIpListArrayOutput
func (IpgroupIpListArrayOutput) ToIpgroupIpListArrayOutputWithContext ¶
func (o IpgroupIpListArrayOutput) ToIpgroupIpListArrayOutputWithContext(ctx context.Context) IpgroupIpListArrayOutput
type IpgroupIpListInput ¶
type IpgroupIpListInput interface { pulumi.Input ToIpgroupIpListOutput() IpgroupIpListOutput ToIpgroupIpListOutputWithContext(context.Context) IpgroupIpListOutput }
IpgroupIpListInput is an input type that accepts IpgroupIpListArgs and IpgroupIpListOutput values. You can construct a concrete instance of `IpgroupIpListInput` via:
IpgroupIpListArgs{...}
type IpgroupIpListOutput ¶
type IpgroupIpListOutput struct{ *pulumi.OutputState }
func (IpgroupIpListOutput) Description ¶
func (o IpgroupIpListOutput) Description() pulumi.StringPtrOutput
Human-readable description for the ip.
func (IpgroupIpListOutput) ElementType ¶
func (IpgroupIpListOutput) ElementType() reflect.Type
func (IpgroupIpListOutput) Ip ¶
func (o IpgroupIpListOutput) Ip() pulumi.StringOutput
IP address or CIDR block.
func (IpgroupIpListOutput) ToIpgroupIpListOutput ¶
func (o IpgroupIpListOutput) ToIpgroupIpListOutput() IpgroupIpListOutput
func (IpgroupIpListOutput) ToIpgroupIpListOutputWithContext ¶
func (o IpgroupIpListOutput) ToIpgroupIpListOutputWithContext(ctx context.Context) IpgroupIpListOutput
type IpgroupMap ¶
type IpgroupMap map[string]IpgroupInput
func (IpgroupMap) ElementType ¶
func (IpgroupMap) ElementType() reflect.Type
func (IpgroupMap) ToIpgroupMapOutput ¶
func (i IpgroupMap) ToIpgroupMapOutput() IpgroupMapOutput
func (IpgroupMap) ToIpgroupMapOutputWithContext ¶
func (i IpgroupMap) ToIpgroupMapOutputWithContext(ctx context.Context) IpgroupMapOutput
type IpgroupMapInput ¶
type IpgroupMapInput interface { pulumi.Input ToIpgroupMapOutput() IpgroupMapOutput ToIpgroupMapOutputWithContext(context.Context) IpgroupMapOutput }
IpgroupMapInput is an input type that accepts IpgroupMap and IpgroupMapOutput values. You can construct a concrete instance of `IpgroupMapInput` via:
IpgroupMap{ "key": IpgroupArgs{...} }
type IpgroupMapOutput ¶
type IpgroupMapOutput struct{ *pulumi.OutputState }
func (IpgroupMapOutput) ElementType ¶
func (IpgroupMapOutput) ElementType() reflect.Type
func (IpgroupMapOutput) MapIndex ¶
func (o IpgroupMapOutput) MapIndex(k pulumi.StringInput) IpgroupOutput
func (IpgroupMapOutput) ToIpgroupMapOutput ¶
func (o IpgroupMapOutput) ToIpgroupMapOutput() IpgroupMapOutput
func (IpgroupMapOutput) ToIpgroupMapOutputWithContext ¶
func (o IpgroupMapOutput) ToIpgroupMapOutputWithContext(ctx context.Context) IpgroupMapOutput
type IpgroupOutput ¶
type IpgroupOutput struct{ *pulumi.OutputState }
func (IpgroupOutput) Description ¶
func (o IpgroupOutput) Description() pulumi.StringPtrOutput
Human-readable description for the ip.
func (IpgroupOutput) ElementType ¶
func (IpgroupOutput) ElementType() reflect.Type
func (IpgroupOutput) EnterpriseProjectId ¶
func (o IpgroupOutput) EnterpriseProjectId() pulumi.StringOutput
The enterprise project id of the ip group. Changing this creates a new ip group.
func (IpgroupOutput) IpLists ¶
func (o IpgroupOutput) IpLists() IpgroupIpListArrayOutput
Specifies an array of one or more ip addresses. The ipList object structure is documented below.
func (IpgroupOutput) Name ¶
func (o IpgroupOutput) Name() pulumi.StringOutput
Human-readable name for the ip group.
func (IpgroupOutput) Region ¶
func (o IpgroupOutput) Region() pulumi.StringOutput
The region in which to create the ip group resource. If omitted, the provider-level region will be used. Changing this creates a new ip group.
func (IpgroupOutput) ToIpgroupOutput ¶
func (o IpgroupOutput) ToIpgroupOutput() IpgroupOutput
func (IpgroupOutput) ToIpgroupOutputWithContext ¶
func (o IpgroupOutput) ToIpgroupOutputWithContext(ctx context.Context) IpgroupOutput
type IpgroupState ¶
type IpgroupState struct { // Human-readable description for the ip. Description pulumi.StringPtrInput // The enterprise project id of the ip group. Changing this // creates a new ip group. EnterpriseProjectId pulumi.StringPtrInput // Specifies an array of one or more ip addresses. The ipList object structure is // documented below. IpLists IpgroupIpListArrayInput // Human-readable name for the ip group. Name pulumi.StringPtrInput // The region in which to create the ip group resource. If omitted, the // provider-level region will be used. Changing this creates a new ip group. Region pulumi.StringPtrInput }
func (IpgroupState) ElementType ¶
func (IpgroupState) ElementType() reflect.Type
type L7policy ¶
type L7policy struct { pulumi.CustomResourceState // Specifies whether requests are forwarded to another backend server group // or redirected to an HTTPS listener. Changing this creates a new L7 Policy. The value ranges: // + **REDIRECT_TO_POOL**: Requests are forwarded to the backend server group specified by `redirectPoolId`. // + **REDIRECT_TO_LISTENER**: Requests are redirected from the HTTP listener specified by `listenerId` to the // HTTPS listener specified by `redirectListenerId`. // Defaults to **REDIRECT_TO_POOL**. Action pulumi.StringPtrOutput `pulumi:"action"` // Human-readable description for the L7 Policy. Description pulumi.StringPtrOutput `pulumi:"description"` // The Listener on which the L7 Policy will be associated with. Changing // this creates a new L7 Policy. ListenerId pulumi.StringOutput `pulumi:"listenerId"` // Human-readable name for the L7 Policy. Does not have to be unique. Name pulumi.StringOutput `pulumi:"name"` // Specifies the ID of the listener to which the traffic is redirected. // This parameter is mandatory when `action` is set to **REDIRECT_TO_LISTENER**. The listener must meet the // following requirements: // + Can only be an HTTPS listener. // + Can only be a listener of the same load balancer. RedirectListenerId pulumi.StringOutput `pulumi:"redirectListenerId"` // Specifies the ID of the backend server group to which traffic is forwarded. // This parameter is mandatory when `action` is set to **REDIRECT_TO_POOL**. The backend server group must meet the // following requirements: // + Cannot be the default backend server group of the listener. // + Cannot be the backend server group used by forwarding policies of other listeners. RedirectPoolId pulumi.StringOutput `pulumi:"redirectPoolId"` // The region in which to create the L7 Policy resource. If omitted, the // provider-level region will be used. Changing this creates a new L7 Policy. Region pulumi.StringOutput `pulumi:"region"` }
Manages an ELB L7 Policy resource within HuaweiCloud.
## Example Usage
```go package main
import (
"github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/DedicatedElb" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" "github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { cfg := config.New(ctx, "") listenerId := cfg.RequireObject("listenerId") poolId := cfg.RequireObject("poolId") _, err := DedicatedElb.NewL7policy(ctx, "policy1", &DedicatedElb.L7policyArgs{ Action: pulumi.String("REDIRECT_TO_POOL"), Description: pulumi.String("test description"), ListenerId: pulumi.Any(listenerId), RedirectPoolId: pulumi.Any(poolId), }) if err != nil { return err } return nil }) }
```
## Import
ELB policy can be imported using the `id`, e.g. bash
```sh
$ pulumi import huaweicloud:DedicatedElb/l7policy:L7policy policy_1 <id>
```
func GetL7policy ¶
func GetL7policy(ctx *pulumi.Context, name string, id pulumi.IDInput, state *L7policyState, opts ...pulumi.ResourceOption) (*L7policy, error)
GetL7policy gets an existing L7policy resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewL7policy ¶
func NewL7policy(ctx *pulumi.Context, name string, args *L7policyArgs, opts ...pulumi.ResourceOption) (*L7policy, error)
NewL7policy registers a new resource with the given unique name, arguments, and options.
func (*L7policy) ElementType ¶
func (*L7policy) ToL7policyOutput ¶
func (i *L7policy) ToL7policyOutput() L7policyOutput
func (*L7policy) ToL7policyOutputWithContext ¶
func (i *L7policy) ToL7policyOutputWithContext(ctx context.Context) L7policyOutput
type L7policyArgs ¶
type L7policyArgs struct { // Specifies whether requests are forwarded to another backend server group // or redirected to an HTTPS listener. Changing this creates a new L7 Policy. The value ranges: // + **REDIRECT_TO_POOL**: Requests are forwarded to the backend server group specified by `redirectPoolId`. // + **REDIRECT_TO_LISTENER**: Requests are redirected from the HTTP listener specified by `listenerId` to the // HTTPS listener specified by `redirectListenerId`. // Defaults to **REDIRECT_TO_POOL**. Action pulumi.StringPtrInput // Human-readable description for the L7 Policy. Description pulumi.StringPtrInput // The Listener on which the L7 Policy will be associated with. Changing // this creates a new L7 Policy. ListenerId pulumi.StringInput // Human-readable name for the L7 Policy. Does not have to be unique. Name pulumi.StringPtrInput // Specifies the ID of the listener to which the traffic is redirected. // This parameter is mandatory when `action` is set to **REDIRECT_TO_LISTENER**. The listener must meet the // following requirements: // + Can only be an HTTPS listener. // + Can only be a listener of the same load balancer. RedirectListenerId pulumi.StringPtrInput // Specifies the ID of the backend server group to which traffic is forwarded. // This parameter is mandatory when `action` is set to **REDIRECT_TO_POOL**. The backend server group must meet the // following requirements: // + Cannot be the default backend server group of the listener. // + Cannot be the backend server group used by forwarding policies of other listeners. RedirectPoolId pulumi.StringPtrInput // The region in which to create the L7 Policy resource. If omitted, the // provider-level region will be used. Changing this creates a new L7 Policy. Region pulumi.StringPtrInput }
The set of arguments for constructing a L7policy resource.
func (L7policyArgs) ElementType ¶
func (L7policyArgs) ElementType() reflect.Type
type L7policyArray ¶
type L7policyArray []L7policyInput
func (L7policyArray) ElementType ¶
func (L7policyArray) ElementType() reflect.Type
func (L7policyArray) ToL7policyArrayOutput ¶
func (i L7policyArray) ToL7policyArrayOutput() L7policyArrayOutput
func (L7policyArray) ToL7policyArrayOutputWithContext ¶
func (i L7policyArray) ToL7policyArrayOutputWithContext(ctx context.Context) L7policyArrayOutput
type L7policyArrayInput ¶
type L7policyArrayInput interface { pulumi.Input ToL7policyArrayOutput() L7policyArrayOutput ToL7policyArrayOutputWithContext(context.Context) L7policyArrayOutput }
L7policyArrayInput is an input type that accepts L7policyArray and L7policyArrayOutput values. You can construct a concrete instance of `L7policyArrayInput` via:
L7policyArray{ L7policyArgs{...} }
type L7policyArrayOutput ¶
type L7policyArrayOutput struct{ *pulumi.OutputState }
func (L7policyArrayOutput) ElementType ¶
func (L7policyArrayOutput) ElementType() reflect.Type
func (L7policyArrayOutput) Index ¶
func (o L7policyArrayOutput) Index(i pulumi.IntInput) L7policyOutput
func (L7policyArrayOutput) ToL7policyArrayOutput ¶
func (o L7policyArrayOutput) ToL7policyArrayOutput() L7policyArrayOutput
func (L7policyArrayOutput) ToL7policyArrayOutputWithContext ¶
func (o L7policyArrayOutput) ToL7policyArrayOutputWithContext(ctx context.Context) L7policyArrayOutput
type L7policyInput ¶
type L7policyInput interface { pulumi.Input ToL7policyOutput() L7policyOutput ToL7policyOutputWithContext(ctx context.Context) L7policyOutput }
type L7policyMap ¶
type L7policyMap map[string]L7policyInput
func (L7policyMap) ElementType ¶
func (L7policyMap) ElementType() reflect.Type
func (L7policyMap) ToL7policyMapOutput ¶
func (i L7policyMap) ToL7policyMapOutput() L7policyMapOutput
func (L7policyMap) ToL7policyMapOutputWithContext ¶
func (i L7policyMap) ToL7policyMapOutputWithContext(ctx context.Context) L7policyMapOutput
type L7policyMapInput ¶
type L7policyMapInput interface { pulumi.Input ToL7policyMapOutput() L7policyMapOutput ToL7policyMapOutputWithContext(context.Context) L7policyMapOutput }
L7policyMapInput is an input type that accepts L7policyMap and L7policyMapOutput values. You can construct a concrete instance of `L7policyMapInput` via:
L7policyMap{ "key": L7policyArgs{...} }
type L7policyMapOutput ¶
type L7policyMapOutput struct{ *pulumi.OutputState }
func (L7policyMapOutput) ElementType ¶
func (L7policyMapOutput) ElementType() reflect.Type
func (L7policyMapOutput) MapIndex ¶
func (o L7policyMapOutput) MapIndex(k pulumi.StringInput) L7policyOutput
func (L7policyMapOutput) ToL7policyMapOutput ¶
func (o L7policyMapOutput) ToL7policyMapOutput() L7policyMapOutput
func (L7policyMapOutput) ToL7policyMapOutputWithContext ¶
func (o L7policyMapOutput) ToL7policyMapOutputWithContext(ctx context.Context) L7policyMapOutput
type L7policyOutput ¶
type L7policyOutput struct{ *pulumi.OutputState }
func (L7policyOutput) Action ¶ added in v0.0.8
func (o L7policyOutput) Action() pulumi.StringPtrOutput
Specifies whether requests are forwarded to another backend server group or redirected to an HTTPS listener. Changing this creates a new L7 Policy. The value ranges:
- **REDIRECT_TO_POOL**: Requests are forwarded to the backend server group specified by `redirectPoolId`.
- **REDIRECT_TO_LISTENER**: Requests are redirected from the HTTP listener specified by `listenerId` to the HTTPS listener specified by `redirectListenerId`. Defaults to **REDIRECT_TO_POOL**.
func (L7policyOutput) Description ¶
func (o L7policyOutput) Description() pulumi.StringPtrOutput
Human-readable description for the L7 Policy.
func (L7policyOutput) ElementType ¶
func (L7policyOutput) ElementType() reflect.Type
func (L7policyOutput) ListenerId ¶
func (o L7policyOutput) ListenerId() pulumi.StringOutput
The Listener on which the L7 Policy will be associated with. Changing this creates a new L7 Policy.
func (L7policyOutput) Name ¶
func (o L7policyOutput) Name() pulumi.StringOutput
Human-readable name for the L7 Policy. Does not have to be unique.
func (L7policyOutput) RedirectListenerId ¶ added in v0.0.8
func (o L7policyOutput) RedirectListenerId() pulumi.StringOutput
Specifies the ID of the listener to which the traffic is redirected. This parameter is mandatory when `action` is set to **REDIRECT_TO_LISTENER**. The listener must meet the following requirements: + Can only be an HTTPS listener. + Can only be a listener of the same load balancer.
func (L7policyOutput) RedirectPoolId ¶
func (o L7policyOutput) RedirectPoolId() pulumi.StringOutput
Specifies the ID of the backend server group to which traffic is forwarded. This parameter is mandatory when `action` is set to **REDIRECT_TO_POOL**. The backend server group must meet the following requirements: + Cannot be the default backend server group of the listener. + Cannot be the backend server group used by forwarding policies of other listeners.
func (L7policyOutput) Region ¶
func (o L7policyOutput) Region() pulumi.StringOutput
The region in which to create the L7 Policy resource. If omitted, the provider-level region will be used. Changing this creates a new L7 Policy.
func (L7policyOutput) ToL7policyOutput ¶
func (o L7policyOutput) ToL7policyOutput() L7policyOutput
func (L7policyOutput) ToL7policyOutputWithContext ¶
func (o L7policyOutput) ToL7policyOutputWithContext(ctx context.Context) L7policyOutput
type L7policyState ¶
type L7policyState struct { // Specifies whether requests are forwarded to another backend server group // or redirected to an HTTPS listener. Changing this creates a new L7 Policy. The value ranges: // + **REDIRECT_TO_POOL**: Requests are forwarded to the backend server group specified by `redirectPoolId`. // + **REDIRECT_TO_LISTENER**: Requests are redirected from the HTTP listener specified by `listenerId` to the // HTTPS listener specified by `redirectListenerId`. // Defaults to **REDIRECT_TO_POOL**. Action pulumi.StringPtrInput // Human-readable description for the L7 Policy. Description pulumi.StringPtrInput // The Listener on which the L7 Policy will be associated with. Changing // this creates a new L7 Policy. ListenerId pulumi.StringPtrInput // Human-readable name for the L7 Policy. Does not have to be unique. Name pulumi.StringPtrInput // Specifies the ID of the listener to which the traffic is redirected. // This parameter is mandatory when `action` is set to **REDIRECT_TO_LISTENER**. The listener must meet the // following requirements: // + Can only be an HTTPS listener. // + Can only be a listener of the same load balancer. RedirectListenerId pulumi.StringPtrInput // Specifies the ID of the backend server group to which traffic is forwarded. // This parameter is mandatory when `action` is set to **REDIRECT_TO_POOL**. The backend server group must meet the // following requirements: // + Cannot be the default backend server group of the listener. // + Cannot be the backend server group used by forwarding policies of other listeners. RedirectPoolId pulumi.StringPtrInput // The region in which to create the L7 Policy resource. If omitted, the // provider-level region will be used. Changing this creates a new L7 Policy. Region pulumi.StringPtrInput }
func (L7policyState) ElementType ¶
func (L7policyState) ElementType() reflect.Type
type L7rule ¶
type L7rule struct { pulumi.CustomResourceState // The comparison type for the L7 rule - can either be STARTS_WITH, EQUAL_TO or REGEX CompareType pulumi.StringOutput `pulumi:"compareType"` // The ID of the L7 Policy. Changing this creates a new L7 Rule. L7policyId pulumi.StringOutput `pulumi:"l7policyId"` // The region in which to create the L7 Rule resource. If omitted, the // provider-level region will be used. Changing this creates a new L7 Rule. Region pulumi.StringOutput `pulumi:"region"` // The L7 Rule type - can either be HOST_NAME or PATH. Changing this creates a new // L7 Rule. Type pulumi.StringOutput `pulumi:"type"` // The value to use for the comparison. Value pulumi.StringOutput `pulumi:"value"` }
Manages an ELB L7 Rule resource within HuaweiCloud.
## Example Usage
```go package main
import (
"github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/DedicatedElb" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" "github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { cfg := config.New(ctx, "") l7policyId := cfg.RequireObject("l7policyId") _, err := DedicatedElb.NewL7rule(ctx, "l7rule1", &DedicatedElb.L7ruleArgs{ L7policyId: pulumi.Any(l7policyId), Type: pulumi.String("PATH"), CompareType: pulumi.String("EQUAL_TO"), Value: pulumi.String("/api"), }) if err != nil { return err } return nil }) }
```
## Import
ELB L7 rule can be imported using the L7 policy ID and L7 rule ID separated by a slash, e.g.
```sh
$ pulumi import huaweicloud:DedicatedElb/l7rule:L7rule rule_1 e0bd694a-abbe-450e-b329-0931fd1cc5eb/4086b0c9-b18c-4d1c-b6b8-4c56c3ad2a9e
```
func GetL7rule ¶
func GetL7rule(ctx *pulumi.Context, name string, id pulumi.IDInput, state *L7ruleState, opts ...pulumi.ResourceOption) (*L7rule, error)
GetL7rule gets an existing L7rule resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewL7rule ¶
func NewL7rule(ctx *pulumi.Context, name string, args *L7ruleArgs, opts ...pulumi.ResourceOption) (*L7rule, error)
NewL7rule registers a new resource with the given unique name, arguments, and options.
func (*L7rule) ElementType ¶
func (*L7rule) ToL7ruleOutput ¶
func (i *L7rule) ToL7ruleOutput() L7ruleOutput
func (*L7rule) ToL7ruleOutputWithContext ¶
func (i *L7rule) ToL7ruleOutputWithContext(ctx context.Context) L7ruleOutput
type L7ruleArgs ¶
type L7ruleArgs struct { // The comparison type for the L7 rule - can either be STARTS_WITH, EQUAL_TO or REGEX CompareType pulumi.StringInput // The ID of the L7 Policy. Changing this creates a new L7 Rule. L7policyId pulumi.StringInput // The region in which to create the L7 Rule resource. If omitted, the // provider-level region will be used. Changing this creates a new L7 Rule. Region pulumi.StringPtrInput // The L7 Rule type - can either be HOST_NAME or PATH. Changing this creates a new // L7 Rule. Type pulumi.StringInput // The value to use for the comparison. Value pulumi.StringInput }
The set of arguments for constructing a L7rule resource.
func (L7ruleArgs) ElementType ¶
func (L7ruleArgs) ElementType() reflect.Type
type L7ruleArray ¶
type L7ruleArray []L7ruleInput
func (L7ruleArray) ElementType ¶
func (L7ruleArray) ElementType() reflect.Type
func (L7ruleArray) ToL7ruleArrayOutput ¶
func (i L7ruleArray) ToL7ruleArrayOutput() L7ruleArrayOutput
func (L7ruleArray) ToL7ruleArrayOutputWithContext ¶
func (i L7ruleArray) ToL7ruleArrayOutputWithContext(ctx context.Context) L7ruleArrayOutput
type L7ruleArrayInput ¶
type L7ruleArrayInput interface { pulumi.Input ToL7ruleArrayOutput() L7ruleArrayOutput ToL7ruleArrayOutputWithContext(context.Context) L7ruleArrayOutput }
L7ruleArrayInput is an input type that accepts L7ruleArray and L7ruleArrayOutput values. You can construct a concrete instance of `L7ruleArrayInput` via:
L7ruleArray{ L7ruleArgs{...} }
type L7ruleArrayOutput ¶
type L7ruleArrayOutput struct{ *pulumi.OutputState }
func (L7ruleArrayOutput) ElementType ¶
func (L7ruleArrayOutput) ElementType() reflect.Type
func (L7ruleArrayOutput) Index ¶
func (o L7ruleArrayOutput) Index(i pulumi.IntInput) L7ruleOutput
func (L7ruleArrayOutput) ToL7ruleArrayOutput ¶
func (o L7ruleArrayOutput) ToL7ruleArrayOutput() L7ruleArrayOutput
func (L7ruleArrayOutput) ToL7ruleArrayOutputWithContext ¶
func (o L7ruleArrayOutput) ToL7ruleArrayOutputWithContext(ctx context.Context) L7ruleArrayOutput
type L7ruleInput ¶
type L7ruleInput interface { pulumi.Input ToL7ruleOutput() L7ruleOutput ToL7ruleOutputWithContext(ctx context.Context) L7ruleOutput }
type L7ruleMap ¶
type L7ruleMap map[string]L7ruleInput
func (L7ruleMap) ElementType ¶
func (L7ruleMap) ToL7ruleMapOutput ¶
func (i L7ruleMap) ToL7ruleMapOutput() L7ruleMapOutput
func (L7ruleMap) ToL7ruleMapOutputWithContext ¶
func (i L7ruleMap) ToL7ruleMapOutputWithContext(ctx context.Context) L7ruleMapOutput
type L7ruleMapInput ¶
type L7ruleMapInput interface { pulumi.Input ToL7ruleMapOutput() L7ruleMapOutput ToL7ruleMapOutputWithContext(context.Context) L7ruleMapOutput }
L7ruleMapInput is an input type that accepts L7ruleMap and L7ruleMapOutput values. You can construct a concrete instance of `L7ruleMapInput` via:
L7ruleMap{ "key": L7ruleArgs{...} }
type L7ruleMapOutput ¶
type L7ruleMapOutput struct{ *pulumi.OutputState }
func (L7ruleMapOutput) ElementType ¶
func (L7ruleMapOutput) ElementType() reflect.Type
func (L7ruleMapOutput) MapIndex ¶
func (o L7ruleMapOutput) MapIndex(k pulumi.StringInput) L7ruleOutput
func (L7ruleMapOutput) ToL7ruleMapOutput ¶
func (o L7ruleMapOutput) ToL7ruleMapOutput() L7ruleMapOutput
func (L7ruleMapOutput) ToL7ruleMapOutputWithContext ¶
func (o L7ruleMapOutput) ToL7ruleMapOutputWithContext(ctx context.Context) L7ruleMapOutput
type L7ruleOutput ¶
type L7ruleOutput struct{ *pulumi.OutputState }
func (L7ruleOutput) CompareType ¶
func (o L7ruleOutput) CompareType() pulumi.StringOutput
The comparison type for the L7 rule - can either be STARTS_WITH, EQUAL_TO or REGEX
func (L7ruleOutput) ElementType ¶
func (L7ruleOutput) ElementType() reflect.Type
func (L7ruleOutput) L7policyId ¶
func (o L7ruleOutput) L7policyId() pulumi.StringOutput
The ID of the L7 Policy. Changing this creates a new L7 Rule.
func (L7ruleOutput) Region ¶
func (o L7ruleOutput) Region() pulumi.StringOutput
The region in which to create the L7 Rule resource. If omitted, the provider-level region will be used. Changing this creates a new L7 Rule.
func (L7ruleOutput) ToL7ruleOutput ¶
func (o L7ruleOutput) ToL7ruleOutput() L7ruleOutput
func (L7ruleOutput) ToL7ruleOutputWithContext ¶
func (o L7ruleOutput) ToL7ruleOutputWithContext(ctx context.Context) L7ruleOutput
func (L7ruleOutput) Type ¶
func (o L7ruleOutput) Type() pulumi.StringOutput
The L7 Rule type - can either be HOST_NAME or PATH. Changing this creates a new L7 Rule.
func (L7ruleOutput) Value ¶
func (o L7ruleOutput) Value() pulumi.StringOutput
The value to use for the comparison.
type L7ruleState ¶
type L7ruleState struct { // The comparison type for the L7 rule - can either be STARTS_WITH, EQUAL_TO or REGEX CompareType pulumi.StringPtrInput // The ID of the L7 Policy. Changing this creates a new L7 Rule. L7policyId pulumi.StringPtrInput // The region in which to create the L7 Rule resource. If omitted, the // provider-level region will be used. Changing this creates a new L7 Rule. Region pulumi.StringPtrInput // The L7 Rule type - can either be HOST_NAME or PATH. Changing this creates a new // L7 Rule. Type pulumi.StringPtrInput // The value to use for the comparison. Value pulumi.StringPtrInput }
func (L7ruleState) ElementType ¶
func (L7ruleState) ElementType() reflect.Type
type Listener ¶
type Listener struct { pulumi.CustomResourceState // Specifies the access policy for the listener. Valid options are *white* and // *black*. AccessPolicy pulumi.StringPtrOutput `pulumi:"accessPolicy"` // Specifies whether to enable advanced forwarding. // If advanced forwarding is enabled, more flexible forwarding policies and rules are supported. AdvancedForwardingEnabled pulumi.BoolOutput `pulumi:"advancedForwardingEnabled"` // Specifies the ID of the CA certificate used by the listener. This parameter is // valid when protocol is set to *HTTPS*. CaCertificate pulumi.StringPtrOutput `pulumi:"caCertificate"` // The ID of the default pool with which the listener is associated. Changing this // creates a new listener. DefaultPoolId pulumi.StringOutput `pulumi:"defaultPoolId"` // Human-readable description for the listener. Description pulumi.StringPtrOutput `pulumi:"description"` // Specifies whether transfer the load balancer EIP in the X-Forward-EIP header to // backend servers. The default value is false. This parameter is valid only when the protocol is set to *HTTP* or // *HTTPS*. ForwardEip pulumi.BoolPtrOutput `pulumi:"forwardEip"` // Specifies whether to use HTTP/2. The default value is false. This parameter is valid // only when the protocol is set to *HTTPS*. Http2Enable pulumi.BoolPtrOutput `pulumi:"http2Enable"` // Specifies the idle timeout for the listener. Value range: 0 to 4000. IdleTimeout pulumi.IntOutput `pulumi:"idleTimeout"` // Specifies the ip group id for the listener. IpGroup pulumi.StringPtrOutput `pulumi:"ipGroup"` // The load balancer on which to provision this listener. Changing this // creates a new listener. LoadbalancerId pulumi.StringOutput `pulumi:"loadbalancerId"` // Human-readable name for the listener. Name pulumi.StringOutput `pulumi:"name"` // The protocol can either be TCP, UDP, HTTP or HTTPS. Changing this creates a // new listener. Protocol pulumi.StringOutput `pulumi:"protocol"` // The port on which to listen for client traffic. Changing this creates a // new listener. ProtocolPort pulumi.IntOutput `pulumi:"protocolPort"` // The region in which to create the listener resource. If omitted, the // provider-level region will be used. Changing this creates a new listener. Region pulumi.StringOutput `pulumi:"region"` // Specifies the request timeout for the listener. Value range: 1 to 300. This // parameter is valid when protocol is set to *HTTP* or *HTTPS*. RequestTimeout pulumi.IntOutput `pulumi:"requestTimeout"` // Specifies the response timeout for the listener. Value range: 1 to 300. This // parameter is valid when protocol is set to *HTTP* or *HTTPS*. ResponseTimeout pulumi.IntOutput `pulumi:"responseTimeout"` // Specifies the ID of the server certificate used by the listener. This // parameter is mandatory when protocol is set to *HTTPS*. ServerCertificate pulumi.StringPtrOutput `pulumi:"serverCertificate"` // Lists the IDs of SNI certificates (server certificates with a domain name) used // by the listener. This parameter is valid when protocol is set to *HTTPS*. SniCertificates pulumi.StringArrayOutput `pulumi:"sniCertificates"` // The key/value pairs to associate with the listener. Tags pulumi.StringMapOutput `pulumi:"tags"` // Specifies the TLS cipher policy for the listener. Valid options are: // tls-1-0-inherit, tls-1-0, tls-1-1, tls-1-2, tls-1-2-strict, tls-1-2-fs, tls-1-0-with-1-3, and tls-1-2-fs-with-1-3. // This parameter is valid when protocol is set to *HTTPS*. TlsCiphersPolicy pulumi.StringOutput `pulumi:"tlsCiphersPolicy"` }
Manages an ELB listener resource within HuaweiCloud.
## Import
ELB listener can be imported using the listener ID, e.g.
```sh
$ pulumi import huaweicloud:DedicatedElb/listener:Listener listener_1 5c20fdad-7288-11eb-b817-0255ac10158b
```
func GetListener ¶
func GetListener(ctx *pulumi.Context, name string, id pulumi.IDInput, state *ListenerState, opts ...pulumi.ResourceOption) (*Listener, error)
GetListener gets an existing Listener resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewListener ¶
func NewListener(ctx *pulumi.Context, name string, args *ListenerArgs, opts ...pulumi.ResourceOption) (*Listener, error)
NewListener registers a new resource with the given unique name, arguments, and options.
func (*Listener) ElementType ¶
func (*Listener) ToListenerOutput ¶
func (i *Listener) ToListenerOutput() ListenerOutput
func (*Listener) ToListenerOutputWithContext ¶
func (i *Listener) ToListenerOutputWithContext(ctx context.Context) ListenerOutput
type ListenerArgs ¶
type ListenerArgs struct { // Specifies the access policy for the listener. Valid options are *white* and // *black*. AccessPolicy pulumi.StringPtrInput // Specifies whether to enable advanced forwarding. // If advanced forwarding is enabled, more flexible forwarding policies and rules are supported. AdvancedForwardingEnabled pulumi.BoolPtrInput // Specifies the ID of the CA certificate used by the listener. This parameter is // valid when protocol is set to *HTTPS*. CaCertificate pulumi.StringPtrInput // The ID of the default pool with which the listener is associated. Changing this // creates a new listener. DefaultPoolId pulumi.StringPtrInput // Human-readable description for the listener. Description pulumi.StringPtrInput // Specifies whether transfer the load balancer EIP in the X-Forward-EIP header to // backend servers. The default value is false. This parameter is valid only when the protocol is set to *HTTP* or // *HTTPS*. ForwardEip pulumi.BoolPtrInput // Specifies whether to use HTTP/2. The default value is false. This parameter is valid // only when the protocol is set to *HTTPS*. Http2Enable pulumi.BoolPtrInput // Specifies the idle timeout for the listener. Value range: 0 to 4000. IdleTimeout pulumi.IntPtrInput // Specifies the ip group id for the listener. IpGroup pulumi.StringPtrInput // The load balancer on which to provision this listener. Changing this // creates a new listener. LoadbalancerId pulumi.StringInput // Human-readable name for the listener. Name pulumi.StringPtrInput // The protocol can either be TCP, UDP, HTTP or HTTPS. Changing this creates a // new listener. Protocol pulumi.StringInput // The port on which to listen for client traffic. Changing this creates a // new listener. ProtocolPort pulumi.IntInput // The region in which to create the listener resource. If omitted, the // provider-level region will be used. Changing this creates a new listener. Region pulumi.StringPtrInput // Specifies the request timeout for the listener. Value range: 1 to 300. This // parameter is valid when protocol is set to *HTTP* or *HTTPS*. RequestTimeout pulumi.IntPtrInput // Specifies the response timeout for the listener. Value range: 1 to 300. This // parameter is valid when protocol is set to *HTTP* or *HTTPS*. ResponseTimeout pulumi.IntPtrInput // Specifies the ID of the server certificate used by the listener. This // parameter is mandatory when protocol is set to *HTTPS*. ServerCertificate pulumi.StringPtrInput // Lists the IDs of SNI certificates (server certificates with a domain name) used // by the listener. This parameter is valid when protocol is set to *HTTPS*. SniCertificates pulumi.StringArrayInput // The key/value pairs to associate with the listener. Tags pulumi.StringMapInput // Specifies the TLS cipher policy for the listener. Valid options are: // tls-1-0-inherit, tls-1-0, tls-1-1, tls-1-2, tls-1-2-strict, tls-1-2-fs, tls-1-0-with-1-3, and tls-1-2-fs-with-1-3. // This parameter is valid when protocol is set to *HTTPS*. TlsCiphersPolicy pulumi.StringPtrInput }
The set of arguments for constructing a Listener resource.
func (ListenerArgs) ElementType ¶
func (ListenerArgs) ElementType() reflect.Type
type ListenerArray ¶
type ListenerArray []ListenerInput
func (ListenerArray) ElementType ¶
func (ListenerArray) ElementType() reflect.Type
func (ListenerArray) ToListenerArrayOutput ¶
func (i ListenerArray) ToListenerArrayOutput() ListenerArrayOutput
func (ListenerArray) ToListenerArrayOutputWithContext ¶
func (i ListenerArray) ToListenerArrayOutputWithContext(ctx context.Context) ListenerArrayOutput
type ListenerArrayInput ¶
type ListenerArrayInput interface { pulumi.Input ToListenerArrayOutput() ListenerArrayOutput ToListenerArrayOutputWithContext(context.Context) ListenerArrayOutput }
ListenerArrayInput is an input type that accepts ListenerArray and ListenerArrayOutput values. You can construct a concrete instance of `ListenerArrayInput` via:
ListenerArray{ ListenerArgs{...} }
type ListenerArrayOutput ¶
type ListenerArrayOutput struct{ *pulumi.OutputState }
func (ListenerArrayOutput) ElementType ¶
func (ListenerArrayOutput) ElementType() reflect.Type
func (ListenerArrayOutput) Index ¶
func (o ListenerArrayOutput) Index(i pulumi.IntInput) ListenerOutput
func (ListenerArrayOutput) ToListenerArrayOutput ¶
func (o ListenerArrayOutput) ToListenerArrayOutput() ListenerArrayOutput
func (ListenerArrayOutput) ToListenerArrayOutputWithContext ¶
func (o ListenerArrayOutput) ToListenerArrayOutputWithContext(ctx context.Context) ListenerArrayOutput
type ListenerInput ¶
type ListenerInput interface { pulumi.Input ToListenerOutput() ListenerOutput ToListenerOutputWithContext(ctx context.Context) ListenerOutput }
type ListenerMap ¶
type ListenerMap map[string]ListenerInput
func (ListenerMap) ElementType ¶
func (ListenerMap) ElementType() reflect.Type
func (ListenerMap) ToListenerMapOutput ¶
func (i ListenerMap) ToListenerMapOutput() ListenerMapOutput
func (ListenerMap) ToListenerMapOutputWithContext ¶
func (i ListenerMap) ToListenerMapOutputWithContext(ctx context.Context) ListenerMapOutput
type ListenerMapInput ¶
type ListenerMapInput interface { pulumi.Input ToListenerMapOutput() ListenerMapOutput ToListenerMapOutputWithContext(context.Context) ListenerMapOutput }
ListenerMapInput is an input type that accepts ListenerMap and ListenerMapOutput values. You can construct a concrete instance of `ListenerMapInput` via:
ListenerMap{ "key": ListenerArgs{...} }
type ListenerMapOutput ¶
type ListenerMapOutput struct{ *pulumi.OutputState }
func (ListenerMapOutput) ElementType ¶
func (ListenerMapOutput) ElementType() reflect.Type
func (ListenerMapOutput) MapIndex ¶
func (o ListenerMapOutput) MapIndex(k pulumi.StringInput) ListenerOutput
func (ListenerMapOutput) ToListenerMapOutput ¶
func (o ListenerMapOutput) ToListenerMapOutput() ListenerMapOutput
func (ListenerMapOutput) ToListenerMapOutputWithContext ¶
func (o ListenerMapOutput) ToListenerMapOutputWithContext(ctx context.Context) ListenerMapOutput
type ListenerOutput ¶
type ListenerOutput struct{ *pulumi.OutputState }
func (ListenerOutput) AccessPolicy ¶
func (o ListenerOutput) AccessPolicy() pulumi.StringPtrOutput
Specifies the access policy for the listener. Valid options are *white* and *black*.
func (ListenerOutput) AdvancedForwardingEnabled ¶ added in v0.0.8
func (o ListenerOutput) AdvancedForwardingEnabled() pulumi.BoolOutput
Specifies whether to enable advanced forwarding. If advanced forwarding is enabled, more flexible forwarding policies and rules are supported.
func (ListenerOutput) CaCertificate ¶
func (o ListenerOutput) CaCertificate() pulumi.StringPtrOutput
Specifies the ID of the CA certificate used by the listener. This parameter is valid when protocol is set to *HTTPS*.
func (ListenerOutput) DefaultPoolId ¶
func (o ListenerOutput) DefaultPoolId() pulumi.StringOutput
The ID of the default pool with which the listener is associated. Changing this creates a new listener.
func (ListenerOutput) Description ¶
func (o ListenerOutput) Description() pulumi.StringPtrOutput
Human-readable description for the listener.
func (ListenerOutput) ElementType ¶
func (ListenerOutput) ElementType() reflect.Type
func (ListenerOutput) ForwardEip ¶
func (o ListenerOutput) ForwardEip() pulumi.BoolPtrOutput
Specifies whether transfer the load balancer EIP in the X-Forward-EIP header to backend servers. The default value is false. This parameter is valid only when the protocol is set to *HTTP* or *HTTPS*.
func (ListenerOutput) Http2Enable ¶
func (o ListenerOutput) Http2Enable() pulumi.BoolPtrOutput
Specifies whether to use HTTP/2. The default value is false. This parameter is valid only when the protocol is set to *HTTPS*.
func (ListenerOutput) IdleTimeout ¶
func (o ListenerOutput) IdleTimeout() pulumi.IntOutput
Specifies the idle timeout for the listener. Value range: 0 to 4000.
func (ListenerOutput) IpGroup ¶
func (o ListenerOutput) IpGroup() pulumi.StringPtrOutput
Specifies the ip group id for the listener.
func (ListenerOutput) LoadbalancerId ¶
func (o ListenerOutput) LoadbalancerId() pulumi.StringOutput
The load balancer on which to provision this listener. Changing this creates a new listener.
func (ListenerOutput) Name ¶
func (o ListenerOutput) Name() pulumi.StringOutput
Human-readable name for the listener.
func (ListenerOutput) Protocol ¶
func (o ListenerOutput) Protocol() pulumi.StringOutput
The protocol can either be TCP, UDP, HTTP or HTTPS. Changing this creates a new listener.
func (ListenerOutput) ProtocolPort ¶
func (o ListenerOutput) ProtocolPort() pulumi.IntOutput
The port on which to listen for client traffic. Changing this creates a new listener.
func (ListenerOutput) Region ¶
func (o ListenerOutput) Region() pulumi.StringOutput
The region in which to create the listener resource. If omitted, the provider-level region will be used. Changing this creates a new listener.
func (ListenerOutput) RequestTimeout ¶
func (o ListenerOutput) RequestTimeout() pulumi.IntOutput
Specifies the request timeout for the listener. Value range: 1 to 300. This parameter is valid when protocol is set to *HTTP* or *HTTPS*.
func (ListenerOutput) ResponseTimeout ¶
func (o ListenerOutput) ResponseTimeout() pulumi.IntOutput
Specifies the response timeout for the listener. Value range: 1 to 300. This parameter is valid when protocol is set to *HTTP* or *HTTPS*.
func (ListenerOutput) ServerCertificate ¶
func (o ListenerOutput) ServerCertificate() pulumi.StringPtrOutput
Specifies the ID of the server certificate used by the listener. This parameter is mandatory when protocol is set to *HTTPS*.
func (ListenerOutput) SniCertificates ¶
func (o ListenerOutput) SniCertificates() pulumi.StringArrayOutput
Lists the IDs of SNI certificates (server certificates with a domain name) used by the listener. This parameter is valid when protocol is set to *HTTPS*.
func (ListenerOutput) Tags ¶
func (o ListenerOutput) Tags() pulumi.StringMapOutput
The key/value pairs to associate with the listener.
func (ListenerOutput) TlsCiphersPolicy ¶
func (o ListenerOutput) TlsCiphersPolicy() pulumi.StringOutput
Specifies the TLS cipher policy for the listener. Valid options are: tls-1-0-inherit, tls-1-0, tls-1-1, tls-1-2, tls-1-2-strict, tls-1-2-fs, tls-1-0-with-1-3, and tls-1-2-fs-with-1-3. This parameter is valid when protocol is set to *HTTPS*.
func (ListenerOutput) ToListenerOutput ¶
func (o ListenerOutput) ToListenerOutput() ListenerOutput
func (ListenerOutput) ToListenerOutputWithContext ¶
func (o ListenerOutput) ToListenerOutputWithContext(ctx context.Context) ListenerOutput
type ListenerState ¶
type ListenerState struct { // Specifies the access policy for the listener. Valid options are *white* and // *black*. AccessPolicy pulumi.StringPtrInput // Specifies whether to enable advanced forwarding. // If advanced forwarding is enabled, more flexible forwarding policies and rules are supported. AdvancedForwardingEnabled pulumi.BoolPtrInput // Specifies the ID of the CA certificate used by the listener. This parameter is // valid when protocol is set to *HTTPS*. CaCertificate pulumi.StringPtrInput // The ID of the default pool with which the listener is associated. Changing this // creates a new listener. DefaultPoolId pulumi.StringPtrInput // Human-readable description for the listener. Description pulumi.StringPtrInput // Specifies whether transfer the load balancer EIP in the X-Forward-EIP header to // backend servers. The default value is false. This parameter is valid only when the protocol is set to *HTTP* or // *HTTPS*. ForwardEip pulumi.BoolPtrInput // Specifies whether to use HTTP/2. The default value is false. This parameter is valid // only when the protocol is set to *HTTPS*. Http2Enable pulumi.BoolPtrInput // Specifies the idle timeout for the listener. Value range: 0 to 4000. IdleTimeout pulumi.IntPtrInput // Specifies the ip group id for the listener. IpGroup pulumi.StringPtrInput // The load balancer on which to provision this listener. Changing this // creates a new listener. LoadbalancerId pulumi.StringPtrInput // Human-readable name for the listener. Name pulumi.StringPtrInput // The protocol can either be TCP, UDP, HTTP or HTTPS. Changing this creates a // new listener. Protocol pulumi.StringPtrInput // The port on which to listen for client traffic. Changing this creates a // new listener. ProtocolPort pulumi.IntPtrInput // The region in which to create the listener resource. If omitted, the // provider-level region will be used. Changing this creates a new listener. Region pulumi.StringPtrInput // Specifies the request timeout for the listener. Value range: 1 to 300. This // parameter is valid when protocol is set to *HTTP* or *HTTPS*. RequestTimeout pulumi.IntPtrInput // Specifies the response timeout for the listener. Value range: 1 to 300. This // parameter is valid when protocol is set to *HTTP* or *HTTPS*. ResponseTimeout pulumi.IntPtrInput // Specifies the ID of the server certificate used by the listener. This // parameter is mandatory when protocol is set to *HTTPS*. ServerCertificate pulumi.StringPtrInput // Lists the IDs of SNI certificates (server certificates with a domain name) used // by the listener. This parameter is valid when protocol is set to *HTTPS*. SniCertificates pulumi.StringArrayInput // The key/value pairs to associate with the listener. Tags pulumi.StringMapInput // Specifies the TLS cipher policy for the listener. Valid options are: // tls-1-0-inherit, tls-1-0, tls-1-1, tls-1-2, tls-1-2-strict, tls-1-2-fs, tls-1-0-with-1-3, and tls-1-2-fs-with-1-3. // This parameter is valid when protocol is set to *HTTPS*. TlsCiphersPolicy pulumi.StringPtrInput }
func (ListenerState) ElementType ¶
func (ListenerState) ElementType() reflect.Type
type Loadbalancer ¶
type Loadbalancer struct { pulumi.CustomResourceState // Deprecated: Deprecated AutoPay pulumi.StringPtrOutput `pulumi:"autoPay"` // Specifies whether auto renew is enabled. Valid values are **true** and **false**. AutoRenew pulumi.StringPtrOutput `pulumi:"autoRenew"` // Specifies whether autoscaling is enabled. Valid values are **true** and // **false**. AutoscalingEnabled pulumi.BoolOutput `pulumi:"autoscalingEnabled"` // Specifies the list of AZ names. Changing this parameter will create a // new resource. AvailabilityZones pulumi.StringArrayOutput `pulumi:"availabilityZones"` // Bandwidth billing type. Changing this parameter will create a // new resource. BandwidthChargeMode pulumi.StringOutput `pulumi:"bandwidthChargeMode"` // Bandwidth size. Changing this parameter will create a new resource. BandwidthSize pulumi.IntOutput `pulumi:"bandwidthSize"` // Specifies the charging mode of the ELB loadbalancer. // Valid values are **prePaid** and **postPaid**, defaults to **postPaid**. // Changing this parameter will create a new resource. ChargingMode pulumi.StringOutput `pulumi:"chargingMode"` // Enable this if you want to associate the IP addresses of backend servers with // your load balancer. Can only be true when updating. CrossVpcBackend pulumi.BoolOutput `pulumi:"crossVpcBackend"` // Human-readable description for the loadbalancer. Description pulumi.StringPtrOutput `pulumi:"description"` // The enterprise project id of the loadbalancer. Changing this // creates a new loadbalancer. EnterpriseProjectId pulumi.StringOutput `pulumi:"enterpriseProjectId"` // Elastic IP type. Changing this parameter will create a new resource. Iptype pulumi.StringOutput `pulumi:"iptype"` // The ipv4 address of the load balancer. Ipv4Address pulumi.StringOutput `pulumi:"ipv4Address"` // The ipv4 eip address of the Load Balancer. Ipv4Eip pulumi.StringOutput `pulumi:"ipv4Eip"` // The ID of the EIP. Changing this parameter will create a new resource. Ipv4EipId pulumi.StringOutput `pulumi:"ipv4EipId"` // The **IPv4 subnet ID** of the subnet on which to allocate the loadbalancer's // ipv4 address. Ipv4SubnetId pulumi.StringPtrOutput `pulumi:"ipv4SubnetId"` // The ipv6 address of the Load Balancer. Ipv6Address pulumi.StringOutput `pulumi:"ipv6Address"` // The ipv6 bandwidth id. Only support shared bandwidth. Ipv6BandwidthId pulumi.StringPtrOutput `pulumi:"ipv6BandwidthId"` // The ipv6 eip address of the Load Balancer. Ipv6Eip pulumi.StringOutput `pulumi:"ipv6Eip"` // The ipv6 eip id of the Load Balancer. Ipv6EipId pulumi.StringOutput `pulumi:"ipv6EipId"` // The **ID** of the subnet on which to allocate the loadbalancer's ipv6 address. Ipv6NetworkId pulumi.StringPtrOutput `pulumi:"ipv6NetworkId"` // The L4 flavor id of the load balancer. L4FlavorId pulumi.StringOutput `pulumi:"l4FlavorId"` // The L7 flavor id of the load balancer. L7FlavorId pulumi.StringOutput `pulumi:"l7FlavorId"` // Specifies the ID of the minimum Layer-7 flavor for elastic scaling. // This parameter cannot be left blank if there are HTTP or HTTPS listeners. MinL7FlavorId pulumi.StringOutput `pulumi:"minL7FlavorId"` // Human-readable name for the loadbalancer. Name pulumi.StringOutput `pulumi:"name"` // Specifies the charging period of the ELB loadbalancer. // If `periodUnit` is set to **month**, the value ranges from 1 to 9. // If `periodUnit` is set to **year**, the value ranges from 1 to 3. // This parameter is mandatory if `chargingMode` is set to **prePaid**. // Changing this parameter will create a new resource. Period pulumi.IntPtrOutput `pulumi:"period"` // Specifies the charging period unit of the ELB loadbalancer. // Valid values are **month** and **year**. This parameter is mandatory if `chargingMode` is set to **prePaid**. // Changing this parameter will create a new resource. PeriodUnit pulumi.StringPtrOutput `pulumi:"periodUnit"` // The region in which to create the loadbalancer resource. If omitted, the // provider-level region will be used. Changing this creates a new loadbalancer. Region pulumi.StringOutput `pulumi:"region"` Sharetype pulumi.StringOutput `pulumi:"sharetype"` // The key/value pairs to associate with the loadbalancer. Tags pulumi.StringMapOutput `pulumi:"tags"` // The vpc on which to create the loadbalancer. Changing this creates a new // loadbalancer. VpcId pulumi.StringOutput `pulumi:"vpcId"` }
Manages a Dedicated Load Balancer resource within HuaweiCloud.
## Example Usage ### Basic Loadbalancer
```go package main
import (
"github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/DedicatedElb" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := DedicatedElb.NewLoadbalancer(ctx, "basic", &DedicatedElb.LoadbalancerArgs{ AvailabilityZones: pulumi.StringArray{ pulumi.String("cn-north-4a"), pulumi.String("cn-north-4b"), }, CrossVpcBackend: pulumi.Bool(true), Description: pulumi.String("basic example"), EnterpriseProjectId: pulumi.String("{{ eps_id }}"), Ipv4SubnetId: pulumi.String("{{ ipv4_subnet_id }}"), L4FlavorId: pulumi.String("{{ l4_flavor_id }}"), L7FlavorId: pulumi.String("{{ l7_flavor_id }}"), VpcId: pulumi.String("{{ vpc_id }}"), }) if err != nil { return err } return nil }) }
``` ### Loadbalancer With Existing EIP
```go package main
import (
"github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/DedicatedElb" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := DedicatedElb.NewLoadbalancer(ctx, "basic", &DedicatedElb.LoadbalancerArgs{ AvailabilityZones: pulumi.StringArray{ pulumi.String("cn-north-4a"), pulumi.String("cn-north-4b"), }, CrossVpcBackend: pulumi.Bool(true), Description: pulumi.String("basic example"), EnterpriseProjectId: pulumi.String("{{ eps_id }}"), Ipv4EipId: pulumi.String("{{ eip_id }}"), Ipv4SubnetId: pulumi.String("{{ ipv4_subnet_id }}"), Ipv6BandwidthId: pulumi.String("{{ ipv6_bandwidth_id }}"), Ipv6NetworkId: pulumi.String("{{ ipv6_network_id }}"), L4FlavorId: pulumi.String("{{ l4_flavor_id }}"), L7FlavorId: pulumi.String("{{ l7_flavor_id }}"), VpcId: pulumi.String("{{ vpc_id }}"), }) if err != nil { return err } return nil }) }
``` ### Loadbalancer With EIP
```go package main
import (
"github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/DedicatedElb" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := DedicatedElb.NewLoadbalancer(ctx, "basic", &DedicatedElb.LoadbalancerArgs{ AvailabilityZones: pulumi.StringArray{ pulumi.String("cn-north-4a"), pulumi.String("cn-north-4b"), }, BandwidthChargeMode: pulumi.String("traffic"), BandwidthSize: pulumi.Int(10), CrossVpcBackend: pulumi.Bool(true), Description: pulumi.String("basic example"), EnterpriseProjectId: pulumi.String("{{ eps_id }}"), Iptype: pulumi.String("5_bgp"), Ipv4SubnetId: pulumi.String("{{ ipv4_subnet_id }}"), Ipv6BandwidthId: pulumi.String("{{ ipv6_bandwidth_id }}"), Ipv6NetworkId: pulumi.String("{{ ipv6_network_id }}"), L4FlavorId: pulumi.String("{{ l4_flavor_id }}"), L7FlavorId: pulumi.String("{{ l7_flavor_id }}"), Sharetype: pulumi.String("PER"), VpcId: pulumi.String("{{ vpc_id }}"), }) if err != nil { return err } return nil }) }
```
## Import
ELB loadbalancer can be imported using the loadbalancer ID, e.g.
```sh
$ pulumi import huaweicloud:DedicatedElb/loadbalancer:Loadbalancer loadbalancer_1 5c20fdad-7288-11eb-b817-0255ac10158b
```
Note that the imported state may not be identical to your resource definition, due to some attributes missing from the API response, security or some other reason. The missing attributes include`ipv6_bandwidth_id`, `iptype`, `bandwidth_charge_mode`, `sharetype` and `bandwidth_size`. It is generally recommended running `terraform plan` after importing a loadbalancer. You can then decide if changes should be applied to the loadbalancer, or the resource definition should be updated to align with the loadbalancer. Also you can ignore changes as below. resource "huaweicloud_elb_loadbalancer" "loadbalancer_1" { ... lifecycle { ignore_changes = [ ipv6_bandwidth_id, iptype, bandwidth_charge_mode, sharetype, bandwidth_size, ] } }
func GetLoadbalancer ¶
func GetLoadbalancer(ctx *pulumi.Context, name string, id pulumi.IDInput, state *LoadbalancerState, opts ...pulumi.ResourceOption) (*Loadbalancer, error)
GetLoadbalancer gets an existing Loadbalancer resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewLoadbalancer ¶
func NewLoadbalancer(ctx *pulumi.Context, name string, args *LoadbalancerArgs, opts ...pulumi.ResourceOption) (*Loadbalancer, error)
NewLoadbalancer registers a new resource with the given unique name, arguments, and options.
func (*Loadbalancer) ElementType ¶
func (*Loadbalancer) ElementType() reflect.Type
func (*Loadbalancer) ToLoadbalancerOutput ¶
func (i *Loadbalancer) ToLoadbalancerOutput() LoadbalancerOutput
func (*Loadbalancer) ToLoadbalancerOutputWithContext ¶
func (i *Loadbalancer) ToLoadbalancerOutputWithContext(ctx context.Context) LoadbalancerOutput
type LoadbalancerArgs ¶
type LoadbalancerArgs struct { // Deprecated: Deprecated AutoPay pulumi.StringPtrInput // Specifies whether auto renew is enabled. Valid values are **true** and **false**. AutoRenew pulumi.StringPtrInput // Specifies whether autoscaling is enabled. Valid values are **true** and // **false**. AutoscalingEnabled pulumi.BoolPtrInput // Specifies the list of AZ names. Changing this parameter will create a // new resource. AvailabilityZones pulumi.StringArrayInput // Bandwidth billing type. Changing this parameter will create a // new resource. BandwidthChargeMode pulumi.StringPtrInput // Bandwidth size. Changing this parameter will create a new resource. BandwidthSize pulumi.IntPtrInput // Specifies the charging mode of the ELB loadbalancer. // Valid values are **prePaid** and **postPaid**, defaults to **postPaid**. // Changing this parameter will create a new resource. ChargingMode pulumi.StringPtrInput // Enable this if you want to associate the IP addresses of backend servers with // your load balancer. Can only be true when updating. CrossVpcBackend pulumi.BoolPtrInput // Human-readable description for the loadbalancer. Description pulumi.StringPtrInput // The enterprise project id of the loadbalancer. Changing this // creates a new loadbalancer. EnterpriseProjectId pulumi.StringPtrInput // Elastic IP type. Changing this parameter will create a new resource. Iptype pulumi.StringPtrInput // The ipv4 address of the load balancer. Ipv4Address pulumi.StringPtrInput // The ID of the EIP. Changing this parameter will create a new resource. Ipv4EipId pulumi.StringPtrInput // The **IPv4 subnet ID** of the subnet on which to allocate the loadbalancer's // ipv4 address. Ipv4SubnetId pulumi.StringPtrInput // The ipv6 bandwidth id. Only support shared bandwidth. Ipv6BandwidthId pulumi.StringPtrInput // The **ID** of the subnet on which to allocate the loadbalancer's ipv6 address. Ipv6NetworkId pulumi.StringPtrInput // The L4 flavor id of the load balancer. L4FlavorId pulumi.StringPtrInput // The L7 flavor id of the load balancer. L7FlavorId pulumi.StringPtrInput // Specifies the ID of the minimum Layer-7 flavor for elastic scaling. // This parameter cannot be left blank if there are HTTP or HTTPS listeners. MinL7FlavorId pulumi.StringPtrInput // Human-readable name for the loadbalancer. Name pulumi.StringPtrInput // Specifies the charging period of the ELB loadbalancer. // If `periodUnit` is set to **month**, the value ranges from 1 to 9. // If `periodUnit` is set to **year**, the value ranges from 1 to 3. // This parameter is mandatory if `chargingMode` is set to **prePaid**. // Changing this parameter will create a new resource. Period pulumi.IntPtrInput // Specifies the charging period unit of the ELB loadbalancer. // Valid values are **month** and **year**. This parameter is mandatory if `chargingMode` is set to **prePaid**. // Changing this parameter will create a new resource. PeriodUnit pulumi.StringPtrInput // The region in which to create the loadbalancer resource. If omitted, the // provider-level region will be used. Changing this creates a new loadbalancer. Region pulumi.StringPtrInput Sharetype pulumi.StringPtrInput // The key/value pairs to associate with the loadbalancer. Tags pulumi.StringMapInput // The vpc on which to create the loadbalancer. Changing this creates a new // loadbalancer. VpcId pulumi.StringPtrInput }
The set of arguments for constructing a Loadbalancer resource.
func (LoadbalancerArgs) ElementType ¶
func (LoadbalancerArgs) ElementType() reflect.Type
type LoadbalancerArray ¶
type LoadbalancerArray []LoadbalancerInput
func (LoadbalancerArray) ElementType ¶
func (LoadbalancerArray) ElementType() reflect.Type
func (LoadbalancerArray) ToLoadbalancerArrayOutput ¶
func (i LoadbalancerArray) ToLoadbalancerArrayOutput() LoadbalancerArrayOutput
func (LoadbalancerArray) ToLoadbalancerArrayOutputWithContext ¶
func (i LoadbalancerArray) ToLoadbalancerArrayOutputWithContext(ctx context.Context) LoadbalancerArrayOutput
type LoadbalancerArrayInput ¶
type LoadbalancerArrayInput interface { pulumi.Input ToLoadbalancerArrayOutput() LoadbalancerArrayOutput ToLoadbalancerArrayOutputWithContext(context.Context) LoadbalancerArrayOutput }
LoadbalancerArrayInput is an input type that accepts LoadbalancerArray and LoadbalancerArrayOutput values. You can construct a concrete instance of `LoadbalancerArrayInput` via:
LoadbalancerArray{ LoadbalancerArgs{...} }
type LoadbalancerArrayOutput ¶
type LoadbalancerArrayOutput struct{ *pulumi.OutputState }
func (LoadbalancerArrayOutput) ElementType ¶
func (LoadbalancerArrayOutput) ElementType() reflect.Type
func (LoadbalancerArrayOutput) Index ¶
func (o LoadbalancerArrayOutput) Index(i pulumi.IntInput) LoadbalancerOutput
func (LoadbalancerArrayOutput) ToLoadbalancerArrayOutput ¶
func (o LoadbalancerArrayOutput) ToLoadbalancerArrayOutput() LoadbalancerArrayOutput
func (LoadbalancerArrayOutput) ToLoadbalancerArrayOutputWithContext ¶
func (o LoadbalancerArrayOutput) ToLoadbalancerArrayOutputWithContext(ctx context.Context) LoadbalancerArrayOutput
type LoadbalancerInput ¶
type LoadbalancerInput interface { pulumi.Input ToLoadbalancerOutput() LoadbalancerOutput ToLoadbalancerOutputWithContext(ctx context.Context) LoadbalancerOutput }
type LoadbalancerMap ¶
type LoadbalancerMap map[string]LoadbalancerInput
func (LoadbalancerMap) ElementType ¶
func (LoadbalancerMap) ElementType() reflect.Type
func (LoadbalancerMap) ToLoadbalancerMapOutput ¶
func (i LoadbalancerMap) ToLoadbalancerMapOutput() LoadbalancerMapOutput
func (LoadbalancerMap) ToLoadbalancerMapOutputWithContext ¶
func (i LoadbalancerMap) ToLoadbalancerMapOutputWithContext(ctx context.Context) LoadbalancerMapOutput
type LoadbalancerMapInput ¶
type LoadbalancerMapInput interface { pulumi.Input ToLoadbalancerMapOutput() LoadbalancerMapOutput ToLoadbalancerMapOutputWithContext(context.Context) LoadbalancerMapOutput }
LoadbalancerMapInput is an input type that accepts LoadbalancerMap and LoadbalancerMapOutput values. You can construct a concrete instance of `LoadbalancerMapInput` via:
LoadbalancerMap{ "key": LoadbalancerArgs{...} }
type LoadbalancerMapOutput ¶
type LoadbalancerMapOutput struct{ *pulumi.OutputState }
func (LoadbalancerMapOutput) ElementType ¶
func (LoadbalancerMapOutput) ElementType() reflect.Type
func (LoadbalancerMapOutput) MapIndex ¶
func (o LoadbalancerMapOutput) MapIndex(k pulumi.StringInput) LoadbalancerOutput
func (LoadbalancerMapOutput) ToLoadbalancerMapOutput ¶
func (o LoadbalancerMapOutput) ToLoadbalancerMapOutput() LoadbalancerMapOutput
func (LoadbalancerMapOutput) ToLoadbalancerMapOutputWithContext ¶
func (o LoadbalancerMapOutput) ToLoadbalancerMapOutputWithContext(ctx context.Context) LoadbalancerMapOutput
type LoadbalancerOutput ¶
type LoadbalancerOutput struct{ *pulumi.OutputState }
func (LoadbalancerOutput) AutoPay
deprecated
func (o LoadbalancerOutput) AutoPay() pulumi.StringPtrOutput
Deprecated: Deprecated
func (LoadbalancerOutput) AutoRenew ¶
func (o LoadbalancerOutput) AutoRenew() pulumi.StringPtrOutput
Specifies whether auto renew is enabled. Valid values are **true** and **false**.
func (LoadbalancerOutput) AutoscalingEnabled ¶ added in v0.0.8
func (o LoadbalancerOutput) AutoscalingEnabled() pulumi.BoolOutput
Specifies whether autoscaling is enabled. Valid values are **true** and **false**.
func (LoadbalancerOutput) AvailabilityZones ¶
func (o LoadbalancerOutput) AvailabilityZones() pulumi.StringArrayOutput
Specifies the list of AZ names. Changing this parameter will create a new resource.
func (LoadbalancerOutput) BandwidthChargeMode ¶
func (o LoadbalancerOutput) BandwidthChargeMode() pulumi.StringOutput
Bandwidth billing type. Changing this parameter will create a new resource.
func (LoadbalancerOutput) BandwidthSize ¶
func (o LoadbalancerOutput) BandwidthSize() pulumi.IntOutput
Bandwidth size. Changing this parameter will create a new resource.
func (LoadbalancerOutput) ChargingMode ¶
func (o LoadbalancerOutput) ChargingMode() pulumi.StringOutput
Specifies the charging mode of the ELB loadbalancer. Valid values are **prePaid** and **postPaid**, defaults to **postPaid**. Changing this parameter will create a new resource.
func (LoadbalancerOutput) CrossVpcBackend ¶
func (o LoadbalancerOutput) CrossVpcBackend() pulumi.BoolOutput
Enable this if you want to associate the IP addresses of backend servers with your load balancer. Can only be true when updating.
func (LoadbalancerOutput) Description ¶
func (o LoadbalancerOutput) Description() pulumi.StringPtrOutput
Human-readable description for the loadbalancer.
func (LoadbalancerOutput) ElementType ¶
func (LoadbalancerOutput) ElementType() reflect.Type
func (LoadbalancerOutput) EnterpriseProjectId ¶
func (o LoadbalancerOutput) EnterpriseProjectId() pulumi.StringOutput
The enterprise project id of the loadbalancer. Changing this creates a new loadbalancer.
func (LoadbalancerOutput) Iptype ¶
func (o LoadbalancerOutput) Iptype() pulumi.StringOutput
Elastic IP type. Changing this parameter will create a new resource.
func (LoadbalancerOutput) Ipv4Address ¶
func (o LoadbalancerOutput) Ipv4Address() pulumi.StringOutput
The ipv4 address of the load balancer.
func (LoadbalancerOutput) Ipv4Eip ¶
func (o LoadbalancerOutput) Ipv4Eip() pulumi.StringOutput
The ipv4 eip address of the Load Balancer.
func (LoadbalancerOutput) Ipv4EipId ¶
func (o LoadbalancerOutput) Ipv4EipId() pulumi.StringOutput
The ID of the EIP. Changing this parameter will create a new resource.
func (LoadbalancerOutput) Ipv4SubnetId ¶
func (o LoadbalancerOutput) Ipv4SubnetId() pulumi.StringPtrOutput
The **IPv4 subnet ID** of the subnet on which to allocate the loadbalancer's ipv4 address.
func (LoadbalancerOutput) Ipv6Address ¶
func (o LoadbalancerOutput) Ipv6Address() pulumi.StringOutput
The ipv6 address of the Load Balancer.
func (LoadbalancerOutput) Ipv6BandwidthId ¶
func (o LoadbalancerOutput) Ipv6BandwidthId() pulumi.StringPtrOutput
The ipv6 bandwidth id. Only support shared bandwidth.
func (LoadbalancerOutput) Ipv6Eip ¶
func (o LoadbalancerOutput) Ipv6Eip() pulumi.StringOutput
The ipv6 eip address of the Load Balancer.
func (LoadbalancerOutput) Ipv6EipId ¶
func (o LoadbalancerOutput) Ipv6EipId() pulumi.StringOutput
The ipv6 eip id of the Load Balancer.
func (LoadbalancerOutput) Ipv6NetworkId ¶
func (o LoadbalancerOutput) Ipv6NetworkId() pulumi.StringPtrOutput
The **ID** of the subnet on which to allocate the loadbalancer's ipv6 address.
func (LoadbalancerOutput) L4FlavorId ¶
func (o LoadbalancerOutput) L4FlavorId() pulumi.StringOutput
The L4 flavor id of the load balancer.
func (LoadbalancerOutput) L7FlavorId ¶
func (o LoadbalancerOutput) L7FlavorId() pulumi.StringOutput
The L7 flavor id of the load balancer.
func (LoadbalancerOutput) MinL7FlavorId ¶ added in v0.0.8
func (o LoadbalancerOutput) MinL7FlavorId() pulumi.StringOutput
Specifies the ID of the minimum Layer-7 flavor for elastic scaling. This parameter cannot be left blank if there are HTTP or HTTPS listeners.
func (LoadbalancerOutput) Name ¶
func (o LoadbalancerOutput) Name() pulumi.StringOutput
Human-readable name for the loadbalancer.
func (LoadbalancerOutput) Period ¶
func (o LoadbalancerOutput) Period() pulumi.IntPtrOutput
Specifies the charging period of the ELB loadbalancer. If `periodUnit` is set to **month**, the value ranges from 1 to 9. If `periodUnit` is set to **year**, the value ranges from 1 to 3. This parameter is mandatory if `chargingMode` is set to **prePaid**. Changing this parameter will create a new resource.
func (LoadbalancerOutput) PeriodUnit ¶
func (o LoadbalancerOutput) PeriodUnit() pulumi.StringPtrOutput
Specifies the charging period unit of the ELB loadbalancer. Valid values are **month** and **year**. This parameter is mandatory if `chargingMode` is set to **prePaid**. Changing this parameter will create a new resource.
func (LoadbalancerOutput) Region ¶
func (o LoadbalancerOutput) Region() pulumi.StringOutput
The region in which to create the loadbalancer resource. If omitted, the provider-level region will be used. Changing this creates a new loadbalancer.
func (LoadbalancerOutput) Sharetype ¶
func (o LoadbalancerOutput) Sharetype() pulumi.StringOutput
Bandwidth sharing type. Changing this parameter will create a new resource.
func (LoadbalancerOutput) Tags ¶
func (o LoadbalancerOutput) Tags() pulumi.StringMapOutput
The key/value pairs to associate with the loadbalancer.
func (LoadbalancerOutput) ToLoadbalancerOutput ¶
func (o LoadbalancerOutput) ToLoadbalancerOutput() LoadbalancerOutput
func (LoadbalancerOutput) ToLoadbalancerOutputWithContext ¶
func (o LoadbalancerOutput) ToLoadbalancerOutputWithContext(ctx context.Context) LoadbalancerOutput
func (LoadbalancerOutput) VpcId ¶
func (o LoadbalancerOutput) VpcId() pulumi.StringOutput
The vpc on which to create the loadbalancer. Changing this creates a new loadbalancer.
type LoadbalancerState ¶
type LoadbalancerState struct { // Deprecated: Deprecated AutoPay pulumi.StringPtrInput // Specifies whether auto renew is enabled. Valid values are **true** and **false**. AutoRenew pulumi.StringPtrInput // Specifies whether autoscaling is enabled. Valid values are **true** and // **false**. AutoscalingEnabled pulumi.BoolPtrInput // Specifies the list of AZ names. Changing this parameter will create a // new resource. AvailabilityZones pulumi.StringArrayInput // Bandwidth billing type. Changing this parameter will create a // new resource. BandwidthChargeMode pulumi.StringPtrInput // Bandwidth size. Changing this parameter will create a new resource. BandwidthSize pulumi.IntPtrInput // Specifies the charging mode of the ELB loadbalancer. // Valid values are **prePaid** and **postPaid**, defaults to **postPaid**. // Changing this parameter will create a new resource. ChargingMode pulumi.StringPtrInput // Enable this if you want to associate the IP addresses of backend servers with // your load balancer. Can only be true when updating. CrossVpcBackend pulumi.BoolPtrInput // Human-readable description for the loadbalancer. Description pulumi.StringPtrInput // The enterprise project id of the loadbalancer. Changing this // creates a new loadbalancer. EnterpriseProjectId pulumi.StringPtrInput // Elastic IP type. Changing this parameter will create a new resource. Iptype pulumi.StringPtrInput // The ipv4 address of the load balancer. Ipv4Address pulumi.StringPtrInput // The ipv4 eip address of the Load Balancer. Ipv4Eip pulumi.StringPtrInput // The ID of the EIP. Changing this parameter will create a new resource. Ipv4EipId pulumi.StringPtrInput // The **IPv4 subnet ID** of the subnet on which to allocate the loadbalancer's // ipv4 address. Ipv4SubnetId pulumi.StringPtrInput // The ipv6 address of the Load Balancer. Ipv6Address pulumi.StringPtrInput // The ipv6 bandwidth id. Only support shared bandwidth. Ipv6BandwidthId pulumi.StringPtrInput // The ipv6 eip address of the Load Balancer. Ipv6Eip pulumi.StringPtrInput // The ipv6 eip id of the Load Balancer. Ipv6EipId pulumi.StringPtrInput // The **ID** of the subnet on which to allocate the loadbalancer's ipv6 address. Ipv6NetworkId pulumi.StringPtrInput // The L4 flavor id of the load balancer. L4FlavorId pulumi.StringPtrInput // The L7 flavor id of the load balancer. L7FlavorId pulumi.StringPtrInput // Specifies the ID of the minimum Layer-7 flavor for elastic scaling. // This parameter cannot be left blank if there are HTTP or HTTPS listeners. MinL7FlavorId pulumi.StringPtrInput // Human-readable name for the loadbalancer. Name pulumi.StringPtrInput // Specifies the charging period of the ELB loadbalancer. // If `periodUnit` is set to **month**, the value ranges from 1 to 9. // If `periodUnit` is set to **year**, the value ranges from 1 to 3. // This parameter is mandatory if `chargingMode` is set to **prePaid**. // Changing this parameter will create a new resource. Period pulumi.IntPtrInput // Specifies the charging period unit of the ELB loadbalancer. // Valid values are **month** and **year**. This parameter is mandatory if `chargingMode` is set to **prePaid**. // Changing this parameter will create a new resource. PeriodUnit pulumi.StringPtrInput // The region in which to create the loadbalancer resource. If omitted, the // provider-level region will be used. Changing this creates a new loadbalancer. Region pulumi.StringPtrInput Sharetype pulumi.StringPtrInput // The key/value pairs to associate with the loadbalancer. Tags pulumi.StringMapInput // The vpc on which to create the loadbalancer. Changing this creates a new // loadbalancer. VpcId pulumi.StringPtrInput }
func (LoadbalancerState) ElementType ¶
func (LoadbalancerState) ElementType() reflect.Type
type LookupCertificateArgs ¶
type LookupCertificateArgs struct { // The name of certificate. The value is case sensitive and does not supports fuzzy matching. Name string `pulumi:"name"` // The region in which to obtain the Dedicated ELB certificate. If omitted, the // provider-level region will be used. Region *string `pulumi:"region"` }
A collection of arguments for invoking getCertificate.
type LookupCertificateOutputArgs ¶
type LookupCertificateOutputArgs struct { // The name of certificate. The value is case sensitive and does not supports fuzzy matching. Name pulumi.StringInput `pulumi:"name"` // The region in which to obtain the Dedicated ELB certificate. If omitted, the // provider-level region will be used. Region pulumi.StringPtrInput `pulumi:"region"` }
A collection of arguments for invoking getCertificate.
func (LookupCertificateOutputArgs) ElementType ¶
func (LookupCertificateOutputArgs) ElementType() reflect.Type
type LookupCertificateResult ¶
type LookupCertificateResult struct { // Human-readable description for the Certificate. Description string `pulumi:"description"` // The domain of the Certificate. This parameter is valid only when `type` is "server". Domain string `pulumi:"domain"` // Indicates the time when the certificate expires. Expiration string `pulumi:"expiration"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` Name string `pulumi:"name"` Region string `pulumi:"region"` // Specifies the certificate type. The value can be one of the following: // + `server`: indicates the server certificate. // + `client`: indicates the CA certificate. Type string `pulumi:"type"` }
A collection of values returned by getCertificate.
func LookupCertificate ¶
func LookupCertificate(ctx *pulumi.Context, args *LookupCertificateArgs, opts ...pulumi.InvokeOption) (*LookupCertificateResult, error)
Use this data source to get the certificate in HuaweiCloud Dedicated Load Balance (Dedicated ELB).
## Example Usage
```go package main
import (
"github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/DedicatedElb" "github.com/pulumi/pulumi-huaweicloud/sdk/go/huaweicloud/DedicatedElb" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" "github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { cfg := config.New(ctx, "") certificateName := cfg.RequireObject("certificateName") _, err := DedicatedElb.GetCertificate(ctx, &dedicatedelb.GetCertificateArgs{ Name: certificateName, }, nil) if err != nil { return err } return nil }) }
```
type LookupCertificateResultOutput ¶
type LookupCertificateResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getCertificate.
func LookupCertificateOutput ¶
func LookupCertificateOutput(ctx *pulumi.Context, args LookupCertificateOutputArgs, opts ...pulumi.InvokeOption) LookupCertificateResultOutput
func (LookupCertificateResultOutput) Description ¶
func (o LookupCertificateResultOutput) Description() pulumi.StringOutput
Human-readable description for the Certificate.
func (LookupCertificateResultOutput) Domain ¶
func (o LookupCertificateResultOutput) Domain() pulumi.StringOutput
The domain of the Certificate. This parameter is valid only when `type` is "server".
func (LookupCertificateResultOutput) ElementType ¶
func (LookupCertificateResultOutput) ElementType() reflect.Type
func (LookupCertificateResultOutput) Expiration ¶
func (o LookupCertificateResultOutput) Expiration() pulumi.StringOutput
Indicates the time when the certificate expires.
func (LookupCertificateResultOutput) Id ¶
func (o LookupCertificateResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (LookupCertificateResultOutput) Name ¶
func (o LookupCertificateResultOutput) Name() pulumi.StringOutput
func (LookupCertificateResultOutput) Region ¶
func (o LookupCertificateResultOutput) Region() pulumi.StringOutput
func (LookupCertificateResultOutput) ToLookupCertificateResultOutput ¶
func (o LookupCertificateResultOutput) ToLookupCertificateResultOutput() LookupCertificateResultOutput
func (LookupCertificateResultOutput) ToLookupCertificateResultOutputWithContext ¶
func (o LookupCertificateResultOutput) ToLookupCertificateResultOutputWithContext(ctx context.Context) LookupCertificateResultOutput
func (LookupCertificateResultOutput) Type ¶
func (o LookupCertificateResultOutput) Type() pulumi.StringOutput
Specifies the certificate type. The value can be one of the following: + `server`: indicates the server certificate. + `client`: indicates the CA certificate.
type Member ¶
type Member struct { pulumi.CustomResourceState // The IP address of the member to receive traffic from the load balancer. // Changing this creates a new member. Address pulumi.StringOutput `pulumi:"address"` // Human-readable name for the member. Name pulumi.StringOutput `pulumi:"name"` // The id of the pool that this member will be assigned to. PoolId pulumi.StringOutput `pulumi:"poolId"` // The port on which to listen for client traffic. Changing this creates a // new member. ProtocolPort pulumi.IntOutput `pulumi:"protocolPort"` // The region in which to create the ELB member resource. If omitted, the the // provider-level region will be used. Changing this creates a new member. Region pulumi.StringOutput `pulumi:"region"` // The **IPv4 or IPv6 subnet ID** of the subnet in which to access the member. // + The IPv4 or IPv6 subnet must be in the same VPC as the subnet of the load balancer. // + If this parameter is not specified, **cross-VPC backend** has been enabled for the load balancer. // In this case, cross-VPC backend servers must use private IPv4 addresses, // and the protocol of the backend server group must be TCP, HTTP, or HTTPS. SubnetId pulumi.StringPtrOutput `pulumi:"subnetId"` // A positive integer value that indicates the relative portion of traffic that this member // should receive from the pool. For example, a member with a weight of 10 receives five times as much traffic as a // member with a weight of 2. Weight pulumi.IntOutput `pulumi:"weight"` }
Manages an ELB member resource within HuaweiCloud.
## Example Usage
```go package main
import (
"github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/DedicatedElb" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" "github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { cfg := config.New(ctx, "") elbPoolId := cfg.RequireObject("elbPoolId") ipv4SubnetId := cfg.RequireObject("ipv4SubnetId") _, err := DedicatedElb.NewMember(ctx, "member1", &DedicatedElb.MemberArgs{ Address: pulumi.String("192.168.199.23"), ProtocolPort: pulumi.Int(8080), PoolId: pulumi.Any(elbPoolId), SubnetId: pulumi.Any(ipv4SubnetId), }) if err != nil { return err } return nil }) }
```
## Import
ELB member can be imported using the pool ID and member ID separated by a slash, e.g.
```sh
$ pulumi import huaweicloud:DedicatedElb/member:Member member_1 e0bd694a-abbe-450e-b329-0931fd1cc5eb/4086b0c9-b18c-4d1c-b6b8-4c56c3ad2a9e
```
func GetMember ¶
func GetMember(ctx *pulumi.Context, name string, id pulumi.IDInput, state *MemberState, opts ...pulumi.ResourceOption) (*Member, error)
GetMember gets an existing Member resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewMember ¶
func NewMember(ctx *pulumi.Context, name string, args *MemberArgs, opts ...pulumi.ResourceOption) (*Member, error)
NewMember registers a new resource with the given unique name, arguments, and options.
func (*Member) ElementType ¶
func (*Member) ToMemberOutput ¶
func (i *Member) ToMemberOutput() MemberOutput
func (*Member) ToMemberOutputWithContext ¶
func (i *Member) ToMemberOutputWithContext(ctx context.Context) MemberOutput
type MemberArgs ¶
type MemberArgs struct { // The IP address of the member to receive traffic from the load balancer. // Changing this creates a new member. Address pulumi.StringInput // Human-readable name for the member. Name pulumi.StringPtrInput // The id of the pool that this member will be assigned to. PoolId pulumi.StringInput // The port on which to listen for client traffic. Changing this creates a // new member. ProtocolPort pulumi.IntInput // The region in which to create the ELB member resource. If omitted, the the // provider-level region will be used. Changing this creates a new member. Region pulumi.StringPtrInput // The **IPv4 or IPv6 subnet ID** of the subnet in which to access the member. // + The IPv4 or IPv6 subnet must be in the same VPC as the subnet of the load balancer. // + If this parameter is not specified, **cross-VPC backend** has been enabled for the load balancer. // In this case, cross-VPC backend servers must use private IPv4 addresses, // and the protocol of the backend server group must be TCP, HTTP, or HTTPS. SubnetId pulumi.StringPtrInput // A positive integer value that indicates the relative portion of traffic that this member // should receive from the pool. For example, a member with a weight of 10 receives five times as much traffic as a // member with a weight of 2. Weight pulumi.IntPtrInput }
The set of arguments for constructing a Member resource.
func (MemberArgs) ElementType ¶
func (MemberArgs) ElementType() reflect.Type
type MemberArray ¶
type MemberArray []MemberInput
func (MemberArray) ElementType ¶
func (MemberArray) ElementType() reflect.Type
func (MemberArray) ToMemberArrayOutput ¶
func (i MemberArray) ToMemberArrayOutput() MemberArrayOutput
func (MemberArray) ToMemberArrayOutputWithContext ¶
func (i MemberArray) ToMemberArrayOutputWithContext(ctx context.Context) MemberArrayOutput
type MemberArrayInput ¶
type MemberArrayInput interface { pulumi.Input ToMemberArrayOutput() MemberArrayOutput ToMemberArrayOutputWithContext(context.Context) MemberArrayOutput }
MemberArrayInput is an input type that accepts MemberArray and MemberArrayOutput values. You can construct a concrete instance of `MemberArrayInput` via:
MemberArray{ MemberArgs{...} }
type MemberArrayOutput ¶
type MemberArrayOutput struct{ *pulumi.OutputState }
func (MemberArrayOutput) ElementType ¶
func (MemberArrayOutput) ElementType() reflect.Type
func (MemberArrayOutput) Index ¶
func (o MemberArrayOutput) Index(i pulumi.IntInput) MemberOutput
func (MemberArrayOutput) ToMemberArrayOutput ¶
func (o MemberArrayOutput) ToMemberArrayOutput() MemberArrayOutput
func (MemberArrayOutput) ToMemberArrayOutputWithContext ¶
func (o MemberArrayOutput) ToMemberArrayOutputWithContext(ctx context.Context) MemberArrayOutput
type MemberInput ¶
type MemberInput interface { pulumi.Input ToMemberOutput() MemberOutput ToMemberOutputWithContext(ctx context.Context) MemberOutput }
type MemberMap ¶
type MemberMap map[string]MemberInput
func (MemberMap) ElementType ¶
func (MemberMap) ToMemberMapOutput ¶
func (i MemberMap) ToMemberMapOutput() MemberMapOutput
func (MemberMap) ToMemberMapOutputWithContext ¶
func (i MemberMap) ToMemberMapOutputWithContext(ctx context.Context) MemberMapOutput
type MemberMapInput ¶
type MemberMapInput interface { pulumi.Input ToMemberMapOutput() MemberMapOutput ToMemberMapOutputWithContext(context.Context) MemberMapOutput }
MemberMapInput is an input type that accepts MemberMap and MemberMapOutput values. You can construct a concrete instance of `MemberMapInput` via:
MemberMap{ "key": MemberArgs{...} }
type MemberMapOutput ¶
type MemberMapOutput struct{ *pulumi.OutputState }
func (MemberMapOutput) ElementType ¶
func (MemberMapOutput) ElementType() reflect.Type
func (MemberMapOutput) MapIndex ¶
func (o MemberMapOutput) MapIndex(k pulumi.StringInput) MemberOutput
func (MemberMapOutput) ToMemberMapOutput ¶
func (o MemberMapOutput) ToMemberMapOutput() MemberMapOutput
func (MemberMapOutput) ToMemberMapOutputWithContext ¶
func (o MemberMapOutput) ToMemberMapOutputWithContext(ctx context.Context) MemberMapOutput
type MemberOutput ¶
type MemberOutput struct{ *pulumi.OutputState }
func (MemberOutput) Address ¶
func (o MemberOutput) Address() pulumi.StringOutput
The IP address of the member to receive traffic from the load balancer. Changing this creates a new member.
func (MemberOutput) ElementType ¶
func (MemberOutput) ElementType() reflect.Type
func (MemberOutput) Name ¶
func (o MemberOutput) Name() pulumi.StringOutput
Human-readable name for the member.
func (MemberOutput) PoolId ¶
func (o MemberOutput) PoolId() pulumi.StringOutput
The id of the pool that this member will be assigned to.
func (MemberOutput) ProtocolPort ¶
func (o MemberOutput) ProtocolPort() pulumi.IntOutput
The port on which to listen for client traffic. Changing this creates a new member.
func (MemberOutput) Region ¶
func (o MemberOutput) Region() pulumi.StringOutput
The region in which to create the ELB member resource. If omitted, the the provider-level region will be used. Changing this creates a new member.
func (MemberOutput) SubnetId ¶
func (o MemberOutput) SubnetId() pulumi.StringPtrOutput
The **IPv4 or IPv6 subnet ID** of the subnet in which to access the member.
- The IPv4 or IPv6 subnet must be in the same VPC as the subnet of the load balancer.
- If this parameter is not specified, **cross-VPC backend** has been enabled for the load balancer. In this case, cross-VPC backend servers must use private IPv4 addresses, and the protocol of the backend server group must be TCP, HTTP, or HTTPS.
func (MemberOutput) ToMemberOutput ¶
func (o MemberOutput) ToMemberOutput() MemberOutput
func (MemberOutput) ToMemberOutputWithContext ¶
func (o MemberOutput) ToMemberOutputWithContext(ctx context.Context) MemberOutput
func (MemberOutput) Weight ¶
func (o MemberOutput) Weight() pulumi.IntOutput
A positive integer value that indicates the relative portion of traffic that this member should receive from the pool. For example, a member with a weight of 10 receives five times as much traffic as a member with a weight of 2.
type MemberState ¶
type MemberState struct { // The IP address of the member to receive traffic from the load balancer. // Changing this creates a new member. Address pulumi.StringPtrInput // Human-readable name for the member. Name pulumi.StringPtrInput // The id of the pool that this member will be assigned to. PoolId pulumi.StringPtrInput // The port on which to listen for client traffic. Changing this creates a // new member. ProtocolPort pulumi.IntPtrInput // The region in which to create the ELB member resource. If omitted, the the // provider-level region will be used. Changing this creates a new member. Region pulumi.StringPtrInput // The **IPv4 or IPv6 subnet ID** of the subnet in which to access the member. // + The IPv4 or IPv6 subnet must be in the same VPC as the subnet of the load balancer. // + If this parameter is not specified, **cross-VPC backend** has been enabled for the load balancer. // In this case, cross-VPC backend servers must use private IPv4 addresses, // and the protocol of the backend server group must be TCP, HTTP, or HTTPS. SubnetId pulumi.StringPtrInput // A positive integer value that indicates the relative portion of traffic that this member // should receive from the pool. For example, a member with a weight of 10 receives five times as much traffic as a // member with a weight of 2. Weight pulumi.IntPtrInput }
func (MemberState) ElementType ¶
func (MemberState) ElementType() reflect.Type
type Monitor ¶
type Monitor struct { pulumi.CustomResourceState // The Domain Name of the Monitor. DomainName pulumi.StringPtrOutput `pulumi:"domainName"` // The time, in seconds, between sending probes to members. Interval pulumi.IntOutput `pulumi:"interval"` // Number of permissible ping failures before changing the member's status to INACTIVE. // Must be a number between 1 and 10. MaxRetries pulumi.IntOutput `pulumi:"maxRetries"` // The id of the pool that this monitor will be assigned to. PoolId pulumi.StringOutput `pulumi:"poolId"` // Specifies the health check port. The value ranges from 1 to 65535. Port pulumi.IntPtrOutput `pulumi:"port"` // The type of probe, which is TCP, HTTP, or HTTPS, that is sent by the load // balancer to verify the member state. Changing this creates a new monitor. Protocol pulumi.StringOutput `pulumi:"protocol"` // The region in which to create the ELB monitor resource. If omitted, the // provider-level region will be used. Changing this creates a new monitor. Region pulumi.StringOutput `pulumi:"region"` // Maximum number of seconds for a monitor to wait for a ping reply before it times out. The // value must be less than the delay value. Timeout pulumi.IntOutput `pulumi:"timeout"` // Required for HTTP(S) types. URI path that will be accessed if monitor type is HTTP or // HTTPS. UrlPath pulumi.StringOutput `pulumi:"urlPath"` }
Manages an ELB monitor resource within HuaweiCloud.
## Example Usage
```go package main
import (
"github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/DedicatedElb" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := DedicatedElb.NewMonitor(ctx, "monitor1", &DedicatedElb.MonitorArgs{ Protocol: pulumi.String("HTTP"), Interval: pulumi.Int(30), Timeout: pulumi.Int(15), MaxRetries: pulumi.Int(10), UrlPath: pulumi.String("/api"), Port: pulumi.Int(8888), PoolId: pulumi.Any(huaweicloud_elb_pool.Test.Id), }) if err != nil { return err } return nil }) }
```
## Import
ELB monitor can be imported using the monitor ID, e.g.
```sh
$ pulumi import huaweicloud:DedicatedElb/monitor:Monitor monitor_1 5c20fdad-7288-11eb-b817-0255ac10158b
```
func GetMonitor ¶
func GetMonitor(ctx *pulumi.Context, name string, id pulumi.IDInput, state *MonitorState, opts ...pulumi.ResourceOption) (*Monitor, error)
GetMonitor gets an existing Monitor resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewMonitor ¶
func NewMonitor(ctx *pulumi.Context, name string, args *MonitorArgs, opts ...pulumi.ResourceOption) (*Monitor, error)
NewMonitor registers a new resource with the given unique name, arguments, and options.
func (*Monitor) ElementType ¶
func (*Monitor) ToMonitorOutput ¶
func (i *Monitor) ToMonitorOutput() MonitorOutput
func (*Monitor) ToMonitorOutputWithContext ¶
func (i *Monitor) ToMonitorOutputWithContext(ctx context.Context) MonitorOutput
type MonitorArgs ¶
type MonitorArgs struct { // The Domain Name of the Monitor. DomainName pulumi.StringPtrInput // The time, in seconds, between sending probes to members. Interval pulumi.IntInput // Number of permissible ping failures before changing the member's status to INACTIVE. // Must be a number between 1 and 10. MaxRetries pulumi.IntInput // The id of the pool that this monitor will be assigned to. PoolId pulumi.StringInput // Specifies the health check port. The value ranges from 1 to 65535. Port pulumi.IntPtrInput // The type of probe, which is TCP, HTTP, or HTTPS, that is sent by the load // balancer to verify the member state. Changing this creates a new monitor. Protocol pulumi.StringInput // The region in which to create the ELB monitor resource. If omitted, the // provider-level region will be used. Changing this creates a new monitor. Region pulumi.StringPtrInput // Maximum number of seconds for a monitor to wait for a ping reply before it times out. The // value must be less than the delay value. Timeout pulumi.IntInput // Required for HTTP(S) types. URI path that will be accessed if monitor type is HTTP or // HTTPS. UrlPath pulumi.StringPtrInput }
The set of arguments for constructing a Monitor resource.
func (MonitorArgs) ElementType ¶
func (MonitorArgs) ElementType() reflect.Type
type MonitorArray ¶
type MonitorArray []MonitorInput
func (MonitorArray) ElementType ¶
func (MonitorArray) ElementType() reflect.Type
func (MonitorArray) ToMonitorArrayOutput ¶
func (i MonitorArray) ToMonitorArrayOutput() MonitorArrayOutput
func (MonitorArray) ToMonitorArrayOutputWithContext ¶
func (i MonitorArray) ToMonitorArrayOutputWithContext(ctx context.Context) MonitorArrayOutput
type MonitorArrayInput ¶
type MonitorArrayInput interface { pulumi.Input ToMonitorArrayOutput() MonitorArrayOutput ToMonitorArrayOutputWithContext(context.Context) MonitorArrayOutput }
MonitorArrayInput is an input type that accepts MonitorArray and MonitorArrayOutput values. You can construct a concrete instance of `MonitorArrayInput` via:
MonitorArray{ MonitorArgs{...} }
type MonitorArrayOutput ¶
type MonitorArrayOutput struct{ *pulumi.OutputState }
func (MonitorArrayOutput) ElementType ¶
func (MonitorArrayOutput) ElementType() reflect.Type
func (MonitorArrayOutput) Index ¶
func (o MonitorArrayOutput) Index(i pulumi.IntInput) MonitorOutput
func (MonitorArrayOutput) ToMonitorArrayOutput ¶
func (o MonitorArrayOutput) ToMonitorArrayOutput() MonitorArrayOutput
func (MonitorArrayOutput) ToMonitorArrayOutputWithContext ¶
func (o MonitorArrayOutput) ToMonitorArrayOutputWithContext(ctx context.Context) MonitorArrayOutput
type MonitorInput ¶
type MonitorInput interface { pulumi.Input ToMonitorOutput() MonitorOutput ToMonitorOutputWithContext(ctx context.Context) MonitorOutput }
type MonitorMap ¶
type MonitorMap map[string]MonitorInput
func (MonitorMap) ElementType ¶
func (MonitorMap) ElementType() reflect.Type
func (MonitorMap) ToMonitorMapOutput ¶
func (i MonitorMap) ToMonitorMapOutput() MonitorMapOutput
func (MonitorMap) ToMonitorMapOutputWithContext ¶
func (i MonitorMap) ToMonitorMapOutputWithContext(ctx context.Context) MonitorMapOutput
type MonitorMapInput ¶
type MonitorMapInput interface { pulumi.Input ToMonitorMapOutput() MonitorMapOutput ToMonitorMapOutputWithContext(context.Context) MonitorMapOutput }
MonitorMapInput is an input type that accepts MonitorMap and MonitorMapOutput values. You can construct a concrete instance of `MonitorMapInput` via:
MonitorMap{ "key": MonitorArgs{...} }
type MonitorMapOutput ¶
type MonitorMapOutput struct{ *pulumi.OutputState }
func (MonitorMapOutput) ElementType ¶
func (MonitorMapOutput) ElementType() reflect.Type
func (MonitorMapOutput) MapIndex ¶
func (o MonitorMapOutput) MapIndex(k pulumi.StringInput) MonitorOutput
func (MonitorMapOutput) ToMonitorMapOutput ¶
func (o MonitorMapOutput) ToMonitorMapOutput() MonitorMapOutput
func (MonitorMapOutput) ToMonitorMapOutputWithContext ¶
func (o MonitorMapOutput) ToMonitorMapOutputWithContext(ctx context.Context) MonitorMapOutput
type MonitorOutput ¶
type MonitorOutput struct{ *pulumi.OutputState }
func (MonitorOutput) DomainName ¶
func (o MonitorOutput) DomainName() pulumi.StringPtrOutput
The Domain Name of the Monitor.
func (MonitorOutput) ElementType ¶
func (MonitorOutput) ElementType() reflect.Type
func (MonitorOutput) Interval ¶
func (o MonitorOutput) Interval() pulumi.IntOutput
The time, in seconds, between sending probes to members.
func (MonitorOutput) MaxRetries ¶
func (o MonitorOutput) MaxRetries() pulumi.IntOutput
Number of permissible ping failures before changing the member's status to INACTIVE. Must be a number between 1 and 10.
func (MonitorOutput) PoolId ¶
func (o MonitorOutput) PoolId() pulumi.StringOutput
The id of the pool that this monitor will be assigned to.
func (MonitorOutput) Port ¶
func (o MonitorOutput) Port() pulumi.IntPtrOutput
Specifies the health check port. The value ranges from 1 to 65535.
func (MonitorOutput) Protocol ¶
func (o MonitorOutput) Protocol() pulumi.StringOutput
The type of probe, which is TCP, HTTP, or HTTPS, that is sent by the load balancer to verify the member state. Changing this creates a new monitor.
func (MonitorOutput) Region ¶
func (o MonitorOutput) Region() pulumi.StringOutput
The region in which to create the ELB monitor resource. If omitted, the provider-level region will be used. Changing this creates a new monitor.
func (MonitorOutput) Timeout ¶
func (o MonitorOutput) Timeout() pulumi.IntOutput
Maximum number of seconds for a monitor to wait for a ping reply before it times out. The value must be less than the delay value.
func (MonitorOutput) ToMonitorOutput ¶
func (o MonitorOutput) ToMonitorOutput() MonitorOutput
func (MonitorOutput) ToMonitorOutputWithContext ¶
func (o MonitorOutput) ToMonitorOutputWithContext(ctx context.Context) MonitorOutput
func (MonitorOutput) UrlPath ¶
func (o MonitorOutput) UrlPath() pulumi.StringOutput
Required for HTTP(S) types. URI path that will be accessed if monitor type is HTTP or HTTPS.
type MonitorState ¶
type MonitorState struct { // The Domain Name of the Monitor. DomainName pulumi.StringPtrInput // The time, in seconds, between sending probes to members. Interval pulumi.IntPtrInput // Number of permissible ping failures before changing the member's status to INACTIVE. // Must be a number between 1 and 10. MaxRetries pulumi.IntPtrInput // The id of the pool that this monitor will be assigned to. PoolId pulumi.StringPtrInput // Specifies the health check port. The value ranges from 1 to 65535. Port pulumi.IntPtrInput // The type of probe, which is TCP, HTTP, or HTTPS, that is sent by the load // balancer to verify the member state. Changing this creates a new monitor. Protocol pulumi.StringPtrInput // The region in which to create the ELB monitor resource. If omitted, the // provider-level region will be used. Changing this creates a new monitor. Region pulumi.StringPtrInput // Maximum number of seconds for a monitor to wait for a ping reply before it times out. The // value must be less than the delay value. Timeout pulumi.IntPtrInput // Required for HTTP(S) types. URI path that will be accessed if monitor type is HTTP or // HTTPS. UrlPath pulumi.StringPtrInput }
func (MonitorState) ElementType ¶
func (MonitorState) ElementType() reflect.Type
type Pool ¶
type Pool struct { pulumi.CustomResourceState // Human-readable description for the pool. Description pulumi.StringPtrOutput `pulumi:"description"` // The load balancing algorithm to distribute traffic to the pool's members. Must be one // of ROUND_ROBIN, LEAST_CONNECTIONS, or SOURCE_IP. LbMethod pulumi.StringOutput `pulumi:"lbMethod"` // The Listener on which the members of the pool will be associated with. // Changing this creates a new pool. Note: Exactly one of LoadbalancerID or ListenerID must be provided. ListenerId pulumi.StringOutput `pulumi:"listenerId"` // The load balancer on which to provision this pool. Changing this // creates a new pool. Note: Exactly one of LoadbalancerID or ListenerID must be provided. LoadbalancerId pulumi.StringOutput `pulumi:"loadbalancerId"` // Human-readable name for the pool. Name pulumi.StringOutput `pulumi:"name"` // Omit this field to prevent session persistence. Indicates whether // connections in the same session will be processed by the same Pool member or not. Changing this creates a new pool. Persistences PoolPersistenceArrayOutput `pulumi:"persistences"` // The protocol - can either be TCP, UDP, HTTP, HTTPS or QUIC. Protocol pulumi.StringOutput `pulumi:"protocol"` // The region in which to create the ELB pool resource. If omitted, the the // provider-level region will be used. Changing this creates a new pool. Region pulumi.StringOutput `pulumi:"region"` }
Manages an ELB pool resource within HuaweiCloud.
## Example Usage
```go package main
import (
"github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/DedicatedElb" "github.com/pulumi/pulumi-huaweicloud/sdk/go/huaweicloud/DedicatedElb" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := DedicatedElb.NewPool(ctx, "pool1", &DedicatedElb.PoolArgs{ LbMethod: pulumi.String("ROUND_ROBIN"), ListenerId: pulumi.String("{{ listener_id }}"), Persistences: dedicatedelb.PoolPersistenceArray{ &dedicatedelb.PoolPersistenceArgs{ CookieName: pulumi.String("testCookie"), Type: pulumi.String("HTTP_COOKIE"), }, }, Protocol: pulumi.String("HTTP"), }) if err != nil { return err } return nil }) }
```
## Import
ELB pool can be imported using the pool ID, e.g.
```sh
$ pulumi import huaweicloud:DedicatedElb/pool:Pool pool_1 5c20fdad-7288-11eb-b817-0255ac10158b
```
func GetPool ¶
func GetPool(ctx *pulumi.Context, name string, id pulumi.IDInput, state *PoolState, opts ...pulumi.ResourceOption) (*Pool, error)
GetPool gets an existing Pool resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewPool ¶
func NewPool(ctx *pulumi.Context, name string, args *PoolArgs, opts ...pulumi.ResourceOption) (*Pool, error)
NewPool registers a new resource with the given unique name, arguments, and options.
func (*Pool) ElementType ¶
func (*Pool) ToPoolOutput ¶
func (i *Pool) ToPoolOutput() PoolOutput
func (*Pool) ToPoolOutputWithContext ¶
func (i *Pool) ToPoolOutputWithContext(ctx context.Context) PoolOutput
type PoolArgs ¶
type PoolArgs struct { // Human-readable description for the pool. Description pulumi.StringPtrInput // The load balancing algorithm to distribute traffic to the pool's members. Must be one // of ROUND_ROBIN, LEAST_CONNECTIONS, or SOURCE_IP. LbMethod pulumi.StringInput // The Listener on which the members of the pool will be associated with. // Changing this creates a new pool. Note: Exactly one of LoadbalancerID or ListenerID must be provided. ListenerId pulumi.StringPtrInput // The load balancer on which to provision this pool. Changing this // creates a new pool. Note: Exactly one of LoadbalancerID or ListenerID must be provided. LoadbalancerId pulumi.StringPtrInput // Human-readable name for the pool. Name pulumi.StringPtrInput // Omit this field to prevent session persistence. Indicates whether // connections in the same session will be processed by the same Pool member or not. Changing this creates a new pool. Persistences PoolPersistenceArrayInput // The protocol - can either be TCP, UDP, HTTP, HTTPS or QUIC. Protocol pulumi.StringInput // The region in which to create the ELB pool resource. If omitted, the the // provider-level region will be used. Changing this creates a new pool. Region pulumi.StringPtrInput }
The set of arguments for constructing a Pool resource.
func (PoolArgs) ElementType ¶
type PoolArray ¶
type PoolArray []PoolInput
func (PoolArray) ElementType ¶
func (PoolArray) ToPoolArrayOutput ¶
func (i PoolArray) ToPoolArrayOutput() PoolArrayOutput
func (PoolArray) ToPoolArrayOutputWithContext ¶
func (i PoolArray) ToPoolArrayOutputWithContext(ctx context.Context) PoolArrayOutput
type PoolArrayInput ¶
type PoolArrayInput interface { pulumi.Input ToPoolArrayOutput() PoolArrayOutput ToPoolArrayOutputWithContext(context.Context) PoolArrayOutput }
PoolArrayInput is an input type that accepts PoolArray and PoolArrayOutput values. You can construct a concrete instance of `PoolArrayInput` via:
PoolArray{ PoolArgs{...} }
type PoolArrayOutput ¶
type PoolArrayOutput struct{ *pulumi.OutputState }
func (PoolArrayOutput) ElementType ¶
func (PoolArrayOutput) ElementType() reflect.Type
func (PoolArrayOutput) Index ¶
func (o PoolArrayOutput) Index(i pulumi.IntInput) PoolOutput
func (PoolArrayOutput) ToPoolArrayOutput ¶
func (o PoolArrayOutput) ToPoolArrayOutput() PoolArrayOutput
func (PoolArrayOutput) ToPoolArrayOutputWithContext ¶
func (o PoolArrayOutput) ToPoolArrayOutputWithContext(ctx context.Context) PoolArrayOutput
type PoolInput ¶
type PoolInput interface { pulumi.Input ToPoolOutput() PoolOutput ToPoolOutputWithContext(ctx context.Context) PoolOutput }
type PoolMap ¶
func (PoolMap) ElementType ¶
func (PoolMap) ToPoolMapOutput ¶
func (i PoolMap) ToPoolMapOutput() PoolMapOutput
func (PoolMap) ToPoolMapOutputWithContext ¶
func (i PoolMap) ToPoolMapOutputWithContext(ctx context.Context) PoolMapOutput
type PoolMapInput ¶
type PoolMapInput interface { pulumi.Input ToPoolMapOutput() PoolMapOutput ToPoolMapOutputWithContext(context.Context) PoolMapOutput }
PoolMapInput is an input type that accepts PoolMap and PoolMapOutput values. You can construct a concrete instance of `PoolMapInput` via:
PoolMap{ "key": PoolArgs{...} }
type PoolMapOutput ¶
type PoolMapOutput struct{ *pulumi.OutputState }
func (PoolMapOutput) ElementType ¶
func (PoolMapOutput) ElementType() reflect.Type
func (PoolMapOutput) MapIndex ¶
func (o PoolMapOutput) MapIndex(k pulumi.StringInput) PoolOutput
func (PoolMapOutput) ToPoolMapOutput ¶
func (o PoolMapOutput) ToPoolMapOutput() PoolMapOutput
func (PoolMapOutput) ToPoolMapOutputWithContext ¶
func (o PoolMapOutput) ToPoolMapOutputWithContext(ctx context.Context) PoolMapOutput
type PoolOutput ¶
type PoolOutput struct{ *pulumi.OutputState }
func (PoolOutput) Description ¶
func (o PoolOutput) Description() pulumi.StringPtrOutput
Human-readable description for the pool.
func (PoolOutput) ElementType ¶
func (PoolOutput) ElementType() reflect.Type
func (PoolOutput) LbMethod ¶
func (o PoolOutput) LbMethod() pulumi.StringOutput
The load balancing algorithm to distribute traffic to the pool's members. Must be one of ROUND_ROBIN, LEAST_CONNECTIONS, or SOURCE_IP.
func (PoolOutput) ListenerId ¶
func (o PoolOutput) ListenerId() pulumi.StringOutput
The Listener on which the members of the pool will be associated with. Changing this creates a new pool. Note: Exactly one of LoadbalancerID or ListenerID must be provided.
func (PoolOutput) LoadbalancerId ¶
func (o PoolOutput) LoadbalancerId() pulumi.StringOutput
The load balancer on which to provision this pool. Changing this creates a new pool. Note: Exactly one of LoadbalancerID or ListenerID must be provided.
func (PoolOutput) Name ¶
func (o PoolOutput) Name() pulumi.StringOutput
Human-readable name for the pool.
func (PoolOutput) Persistences ¶
func (o PoolOutput) Persistences() PoolPersistenceArrayOutput
Omit this field to prevent session persistence. Indicates whether connections in the same session will be processed by the same Pool member or not. Changing this creates a new pool.
func (PoolOutput) Protocol ¶
func (o PoolOutput) Protocol() pulumi.StringOutput
The protocol - can either be TCP, UDP, HTTP, HTTPS or QUIC.
func (PoolOutput) Region ¶
func (o PoolOutput) Region() pulumi.StringOutput
The region in which to create the ELB pool resource. If omitted, the the provider-level region will be used. Changing this creates a new pool.
func (PoolOutput) ToPoolOutput ¶
func (o PoolOutput) ToPoolOutput() PoolOutput
func (PoolOutput) ToPoolOutputWithContext ¶
func (o PoolOutput) ToPoolOutputWithContext(ctx context.Context) PoolOutput
type PoolPersistence ¶
type PoolPersistence struct { // The name of the cookie if persistence mode is set appropriately. Required // if `type = APP_COOKIE`. CookieName *string `pulumi:"cookieName"` // Specifies the sticky session timeout duration in minutes. This parameter is // invalid when type is set to APP_COOKIE. The value range varies depending on the protocol of the backend server group: // + When the protocol of the backend server group is TCP or UDP, the value ranges from 1 to 60. // + When the protocol of the backend server group is HTTP or HTTPS, the value ranges from 1 to 1440. Timeout *int `pulumi:"timeout"` // The type of persistence mode. The current specification supports SOURCE_IP, // HTTP_COOKIE, and APP_COOKIE. Type string `pulumi:"type"` }
type PoolPersistenceArgs ¶
type PoolPersistenceArgs struct { // The name of the cookie if persistence mode is set appropriately. Required // if `type = APP_COOKIE`. CookieName pulumi.StringPtrInput `pulumi:"cookieName"` // Specifies the sticky session timeout duration in minutes. This parameter is // invalid when type is set to APP_COOKIE. The value range varies depending on the protocol of the backend server group: // + When the protocol of the backend server group is TCP or UDP, the value ranges from 1 to 60. // + When the protocol of the backend server group is HTTP or HTTPS, the value ranges from 1 to 1440. Timeout pulumi.IntPtrInput `pulumi:"timeout"` // The type of persistence mode. The current specification supports SOURCE_IP, // HTTP_COOKIE, and APP_COOKIE. Type pulumi.StringInput `pulumi:"type"` }
func (PoolPersistenceArgs) ElementType ¶
func (PoolPersistenceArgs) ElementType() reflect.Type
func (PoolPersistenceArgs) ToPoolPersistenceOutput ¶
func (i PoolPersistenceArgs) ToPoolPersistenceOutput() PoolPersistenceOutput
func (PoolPersistenceArgs) ToPoolPersistenceOutputWithContext ¶
func (i PoolPersistenceArgs) ToPoolPersistenceOutputWithContext(ctx context.Context) PoolPersistenceOutput
type PoolPersistenceArray ¶
type PoolPersistenceArray []PoolPersistenceInput
func (PoolPersistenceArray) ElementType ¶
func (PoolPersistenceArray) ElementType() reflect.Type
func (PoolPersistenceArray) ToPoolPersistenceArrayOutput ¶
func (i PoolPersistenceArray) ToPoolPersistenceArrayOutput() PoolPersistenceArrayOutput
func (PoolPersistenceArray) ToPoolPersistenceArrayOutputWithContext ¶
func (i PoolPersistenceArray) ToPoolPersistenceArrayOutputWithContext(ctx context.Context) PoolPersistenceArrayOutput
type PoolPersistenceArrayInput ¶
type PoolPersistenceArrayInput interface { pulumi.Input ToPoolPersistenceArrayOutput() PoolPersistenceArrayOutput ToPoolPersistenceArrayOutputWithContext(context.Context) PoolPersistenceArrayOutput }
PoolPersistenceArrayInput is an input type that accepts PoolPersistenceArray and PoolPersistenceArrayOutput values. You can construct a concrete instance of `PoolPersistenceArrayInput` via:
PoolPersistenceArray{ PoolPersistenceArgs{...} }
type PoolPersistenceArrayOutput ¶
type PoolPersistenceArrayOutput struct{ *pulumi.OutputState }
func (PoolPersistenceArrayOutput) ElementType ¶
func (PoolPersistenceArrayOutput) ElementType() reflect.Type
func (PoolPersistenceArrayOutput) Index ¶
func (o PoolPersistenceArrayOutput) Index(i pulumi.IntInput) PoolPersistenceOutput
func (PoolPersistenceArrayOutput) ToPoolPersistenceArrayOutput ¶
func (o PoolPersistenceArrayOutput) ToPoolPersistenceArrayOutput() PoolPersistenceArrayOutput
func (PoolPersistenceArrayOutput) ToPoolPersistenceArrayOutputWithContext ¶
func (o PoolPersistenceArrayOutput) ToPoolPersistenceArrayOutputWithContext(ctx context.Context) PoolPersistenceArrayOutput
type PoolPersistenceInput ¶
type PoolPersistenceInput interface { pulumi.Input ToPoolPersistenceOutput() PoolPersistenceOutput ToPoolPersistenceOutputWithContext(context.Context) PoolPersistenceOutput }
PoolPersistenceInput is an input type that accepts PoolPersistenceArgs and PoolPersistenceOutput values. You can construct a concrete instance of `PoolPersistenceInput` via:
PoolPersistenceArgs{...}
type PoolPersistenceOutput ¶
type PoolPersistenceOutput struct{ *pulumi.OutputState }
func (PoolPersistenceOutput) CookieName ¶
func (o PoolPersistenceOutput) CookieName() pulumi.StringPtrOutput
The name of the cookie if persistence mode is set appropriately. Required if `type = APP_COOKIE`.
func (PoolPersistenceOutput) ElementType ¶
func (PoolPersistenceOutput) ElementType() reflect.Type
func (PoolPersistenceOutput) Timeout ¶ added in v0.0.8
func (o PoolPersistenceOutput) Timeout() pulumi.IntPtrOutput
Specifies the sticky session timeout duration in minutes. This parameter is invalid when type is set to APP_COOKIE. The value range varies depending on the protocol of the backend server group: + When the protocol of the backend server group is TCP or UDP, the value ranges from 1 to 60. + When the protocol of the backend server group is HTTP or HTTPS, the value ranges from 1 to 1440.
func (PoolPersistenceOutput) ToPoolPersistenceOutput ¶
func (o PoolPersistenceOutput) ToPoolPersistenceOutput() PoolPersistenceOutput
func (PoolPersistenceOutput) ToPoolPersistenceOutputWithContext ¶
func (o PoolPersistenceOutput) ToPoolPersistenceOutputWithContext(ctx context.Context) PoolPersistenceOutput
func (PoolPersistenceOutput) Type ¶
func (o PoolPersistenceOutput) Type() pulumi.StringOutput
The type of persistence mode. The current specification supports SOURCE_IP, HTTP_COOKIE, and APP_COOKIE.
type PoolState ¶
type PoolState struct { // Human-readable description for the pool. Description pulumi.StringPtrInput // The load balancing algorithm to distribute traffic to the pool's members. Must be one // of ROUND_ROBIN, LEAST_CONNECTIONS, or SOURCE_IP. LbMethod pulumi.StringPtrInput // The Listener on which the members of the pool will be associated with. // Changing this creates a new pool. Note: Exactly one of LoadbalancerID or ListenerID must be provided. ListenerId pulumi.StringPtrInput // The load balancer on which to provision this pool. Changing this // creates a new pool. Note: Exactly one of LoadbalancerID or ListenerID must be provided. LoadbalancerId pulumi.StringPtrInput // Human-readable name for the pool. Name pulumi.StringPtrInput // Omit this field to prevent session persistence. Indicates whether // connections in the same session will be processed by the same Pool member or not. Changing this creates a new pool. Persistences PoolPersistenceArrayInput // The protocol - can either be TCP, UDP, HTTP, HTTPS or QUIC. Protocol pulumi.StringPtrInput // The region in which to create the ELB pool resource. If omitted, the the // provider-level region will be used. Changing this creates a new pool. Region pulumi.StringPtrInput }