Documentation ¶
Index ¶
- func PkgVersion() (semver.Version, error)
- type Approval
- type ApprovalArgs
- type ApprovalArray
- type ApprovalArrayInput
- type ApprovalArrayOutput
- type ApprovalConnection
- type ApprovalConnectionArgs
- type ApprovalConnectionArray
- type ApprovalConnectionArrayInput
- type ApprovalConnectionArrayOutput
- func (ApprovalConnectionArrayOutput) ElementType() reflect.Type
- func (o ApprovalConnectionArrayOutput) Index(i pulumi.IntInput) ApprovalConnectionOutput
- func (o ApprovalConnectionArrayOutput) ToApprovalConnectionArrayOutput() ApprovalConnectionArrayOutput
- func (o ApprovalConnectionArrayOutput) ToApprovalConnectionArrayOutputWithContext(ctx context.Context) ApprovalConnectionArrayOutput
- type ApprovalConnectionInput
- type ApprovalConnectionOutput
- func (o ApprovalConnectionOutput) Description() pulumi.StringPtrOutput
- func (o ApprovalConnectionOutput) DomainId() pulumi.StringPtrOutput
- func (ApprovalConnectionOutput) ElementType() reflect.Type
- func (o ApprovalConnectionOutput) EndpointId() pulumi.StringPtrOutput
- func (o ApprovalConnectionOutput) PacketId() pulumi.IntPtrOutput
- func (o ApprovalConnectionOutput) Status() pulumi.StringPtrOutput
- func (o ApprovalConnectionOutput) ToApprovalConnectionOutput() ApprovalConnectionOutput
- func (o ApprovalConnectionOutput) ToApprovalConnectionOutputWithContext(ctx context.Context) ApprovalConnectionOutput
- type ApprovalInput
- type ApprovalMap
- type ApprovalMapInput
- type ApprovalMapOutput
- type ApprovalOutput
- func (o ApprovalOutput) Connections() ApprovalConnectionArrayOutput
- func (ApprovalOutput) ElementType() reflect.Type
- func (o ApprovalOutput) Endpoints() pulumi.StringArrayOutput
- func (o ApprovalOutput) Region() pulumi.StringOutput
- func (o ApprovalOutput) ServiceId() pulumi.StringOutput
- func (o ApprovalOutput) ToApprovalOutput() ApprovalOutput
- func (o ApprovalOutput) ToApprovalOutputWithContext(ctx context.Context) ApprovalOutput
- type ApprovalState
- type Endpoint
- type EndpointArgs
- type EndpointArray
- type EndpointArrayInput
- type EndpointArrayOutput
- type EndpointInput
- type EndpointMap
- type EndpointMapInput
- type EndpointMapOutput
- type EndpointOutput
- func (o EndpointOutput) Description() pulumi.StringOutput
- func (EndpointOutput) ElementType() reflect.Type
- func (o EndpointOutput) EnableDns() pulumi.BoolPtrOutput
- func (o EndpointOutput) EnableWhitelist() pulumi.BoolPtrOutput
- func (o EndpointOutput) IpAddress() pulumi.StringOutput
- func (o EndpointOutput) NetworkId() pulumi.StringOutput
- func (o EndpointOutput) PacketId() pulumi.IntOutput
- func (o EndpointOutput) PrivateDomainName() pulumi.StringOutput
- func (o EndpointOutput) Region() pulumi.StringOutput
- func (o EndpointOutput) ServiceId() pulumi.StringOutput
- func (o EndpointOutput) ServiceName() pulumi.StringOutput
- func (o EndpointOutput) ServiceType() pulumi.StringOutput
- func (o EndpointOutput) Status() pulumi.StringOutput
- func (o EndpointOutput) Tags() pulumi.StringMapOutput
- func (o EndpointOutput) ToEndpointOutput() EndpointOutput
- func (o EndpointOutput) ToEndpointOutputWithContext(ctx context.Context) EndpointOutput
- func (o EndpointOutput) VpcId() pulumi.StringOutput
- func (o EndpointOutput) Whitelists() pulumi.StringArrayOutput
- type EndpointState
- type GetPublicServicesArgs
- type GetPublicServicesOutputArgs
- type GetPublicServicesResult
- type GetPublicServicesResultOutput
- func (GetPublicServicesResultOutput) ElementType() reflect.Type
- func (o GetPublicServicesResultOutput) Id() pulumi.StringOutput
- func (o GetPublicServicesResultOutput) Region() pulumi.StringOutput
- func (o GetPublicServicesResultOutput) ServiceId() pulumi.StringPtrOutput
- func (o GetPublicServicesResultOutput) ServiceName() pulumi.StringPtrOutput
- func (o GetPublicServicesResultOutput) Services() GetPublicServicesServiceArrayOutput
- func (o GetPublicServicesResultOutput) ToGetPublicServicesResultOutput() GetPublicServicesResultOutput
- func (o GetPublicServicesResultOutput) ToGetPublicServicesResultOutputWithContext(ctx context.Context) GetPublicServicesResultOutput
- type GetPublicServicesService
- type GetPublicServicesServiceArgs
- func (GetPublicServicesServiceArgs) ElementType() reflect.Type
- func (i GetPublicServicesServiceArgs) ToGetPublicServicesServiceOutput() GetPublicServicesServiceOutput
- func (i GetPublicServicesServiceArgs) ToGetPublicServicesServiceOutputWithContext(ctx context.Context) GetPublicServicesServiceOutput
- type GetPublicServicesServiceArray
- func (GetPublicServicesServiceArray) ElementType() reflect.Type
- func (i GetPublicServicesServiceArray) ToGetPublicServicesServiceArrayOutput() GetPublicServicesServiceArrayOutput
- func (i GetPublicServicesServiceArray) ToGetPublicServicesServiceArrayOutputWithContext(ctx context.Context) GetPublicServicesServiceArrayOutput
- type GetPublicServicesServiceArrayInput
- type GetPublicServicesServiceArrayOutput
- func (GetPublicServicesServiceArrayOutput) ElementType() reflect.Type
- func (o GetPublicServicesServiceArrayOutput) Index(i pulumi.IntInput) GetPublicServicesServiceOutput
- func (o GetPublicServicesServiceArrayOutput) ToGetPublicServicesServiceArrayOutput() GetPublicServicesServiceArrayOutput
- func (o GetPublicServicesServiceArrayOutput) ToGetPublicServicesServiceArrayOutputWithContext(ctx context.Context) GetPublicServicesServiceArrayOutput
- type GetPublicServicesServiceInput
- type GetPublicServicesServiceOutput
- func (GetPublicServicesServiceOutput) ElementType() reflect.Type
- func (o GetPublicServicesServiceOutput) Id() pulumi.StringOutput
- func (o GetPublicServicesServiceOutput) IsCharge() pulumi.BoolOutput
- func (o GetPublicServicesServiceOutput) Owner() pulumi.StringOutput
- func (o GetPublicServicesServiceOutput) ServiceName() pulumi.StringOutput
- func (o GetPublicServicesServiceOutput) ServiceType() pulumi.StringOutput
- func (o GetPublicServicesServiceOutput) ToGetPublicServicesServiceOutput() GetPublicServicesServiceOutput
- func (o GetPublicServicesServiceOutput) ToGetPublicServicesServiceOutputWithContext(ctx context.Context) GetPublicServicesServiceOutput
- type Service
- type ServiceArgs
- type ServiceArray
- type ServiceArrayInput
- type ServiceArrayOutput
- type ServiceConnection
- type ServiceConnectionArgs
- type ServiceConnectionArray
- type ServiceConnectionArrayInput
- type ServiceConnectionArrayOutput
- func (ServiceConnectionArrayOutput) ElementType() reflect.Type
- func (o ServiceConnectionArrayOutput) Index(i pulumi.IntInput) ServiceConnectionOutput
- func (o ServiceConnectionArrayOutput) ToServiceConnectionArrayOutput() ServiceConnectionArrayOutput
- func (o ServiceConnectionArrayOutput) ToServiceConnectionArrayOutputWithContext(ctx context.Context) ServiceConnectionArrayOutput
- type ServiceConnectionInput
- type ServiceConnectionOutput
- func (o ServiceConnectionOutput) Description() pulumi.StringPtrOutput
- func (o ServiceConnectionOutput) DomainId() pulumi.StringPtrOutput
- func (ServiceConnectionOutput) ElementType() reflect.Type
- func (o ServiceConnectionOutput) EndpointId() pulumi.StringPtrOutput
- func (o ServiceConnectionOutput) PacketId() pulumi.IntPtrOutput
- func (o ServiceConnectionOutput) Status() pulumi.StringPtrOutput
- func (o ServiceConnectionOutput) ToServiceConnectionOutput() ServiceConnectionOutput
- func (o ServiceConnectionOutput) ToServiceConnectionOutputWithContext(ctx context.Context) ServiceConnectionOutput
- type ServiceInput
- type ServiceMap
- type ServiceMapInput
- type ServiceMapOutput
- type ServiceOutput
- func (o ServiceOutput) Approval() pulumi.BoolOutput
- func (o ServiceOutput) Connections() ServiceConnectionArrayOutput
- func (o ServiceOutput) Description() pulumi.StringOutput
- func (ServiceOutput) ElementType() reflect.Type
- func (o ServiceOutput) Name() pulumi.StringOutput
- func (o ServiceOutput) Permissions() pulumi.StringArrayOutput
- func (o ServiceOutput) PortId() pulumi.StringOutput
- func (o ServiceOutput) PortMappings() ServicePortMappingArrayOutput
- func (o ServiceOutput) Region() pulumi.StringOutput
- func (o ServiceOutput) ServerType() pulumi.StringOutput
- func (o ServiceOutput) ServiceName() pulumi.StringOutput
- func (o ServiceOutput) ServiceType() pulumi.StringPtrOutput
- func (o ServiceOutput) Status() pulumi.StringOutput
- func (o ServiceOutput) Tags() pulumi.StringMapOutput
- func (o ServiceOutput) ToServiceOutput() ServiceOutput
- func (o ServiceOutput) ToServiceOutputWithContext(ctx context.Context) ServiceOutput
- func (o ServiceOutput) VpcId() pulumi.StringOutput
- type ServicePortMapping
- type ServicePortMappingArgs
- type ServicePortMappingArray
- type ServicePortMappingArrayInput
- type ServicePortMappingArrayOutput
- func (ServicePortMappingArrayOutput) ElementType() reflect.Type
- func (o ServicePortMappingArrayOutput) Index(i pulumi.IntInput) ServicePortMappingOutput
- func (o ServicePortMappingArrayOutput) ToServicePortMappingArrayOutput() ServicePortMappingArrayOutput
- func (o ServicePortMappingArrayOutput) ToServicePortMappingArrayOutputWithContext(ctx context.Context) ServicePortMappingArrayOutput
- type ServicePortMappingInput
- type ServicePortMappingOutput
- func (ServicePortMappingOutput) ElementType() reflect.Type
- func (o ServicePortMappingOutput) Protocol() pulumi.StringPtrOutput
- func (o ServicePortMappingOutput) ServicePort() pulumi.IntPtrOutput
- func (o ServicePortMappingOutput) TerminalPort() pulumi.IntPtrOutput
- func (o ServicePortMappingOutput) ToServicePortMappingOutput() ServicePortMappingOutput
- func (o ServicePortMappingOutput) ToServicePortMappingOutputWithContext(ctx context.Context) ServicePortMappingOutput
- type ServiceState
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 Approval ¶
type Approval struct { pulumi.CustomResourceState // An array of VPC endpoints connect to the VPC endpoint service. Structure is documented below. Connections ApprovalConnectionArrayOutput `pulumi:"connections"` // Specifies the list of VPC endpoint IDs which accepted to connect to VPC endpoint // service. The VPC endpoints will be rejected when the resource was destroyed. Endpoints pulumi.StringArrayOutput `pulumi:"endpoints"` // The region in which to obtain the VPC endpoint service. If omitted, the // provider-level region will be used. Changing this creates a new resource. Region pulumi.StringOutput `pulumi:"region"` // Specifies the ID of the VPC endpoint service. Changing this creates a new // resource. ServiceId pulumi.StringOutput `pulumi:"serviceId"` }
Provides a resource to manage the VPC endpoint connections.
## Example Usage
```go package main
import (
"github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/Vpcep" "github.com/pulumi/pulumi-huaweicloud/sdk/go/huaweicloud/Vpcep" "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, "") serviceVpcId := cfg.RequireObject("serviceVpcId") vmPort := cfg.RequireObject("vmPort") vpcId := cfg.RequireObject("vpcId") networkId := cfg.RequireObject("networkId") demoService, err := Vpcep.NewService(ctx, "demoService", &Vpcep.ServiceArgs{ ServerType: pulumi.String("VM"), VpcId: pulumi.Any(serviceVpcId), PortId: pulumi.Any(vmPort), Approval: pulumi.Bool(true), PortMappings: vpcep.ServicePortMappingArray{ &vpcep.ServicePortMappingArgs{ ServicePort: pulumi.Int(8080), TerminalPort: pulumi.Int(80), }, }, }) if err != nil { return err } demoEndpoint, err := Vpcep.NewEndpoint(ctx, "demoEndpoint", &Vpcep.EndpointArgs{ ServiceId: demoService.ID(), VpcId: pulumi.Any(vpcId), NetworkId: pulumi.Any(networkId), EnableDns: pulumi.Bool(true), }) if err != nil { return err } _, err = Vpcep.NewApproval(ctx, "approval", &Vpcep.ApprovalArgs{ ServiceId: demoService.ID(), Endpoints: pulumi.StringArray{ demoEndpoint.ID(), }, }) if err != nil { return err } return nil }) }
```
## Import
VPC endpoint approval can be imported using the `id`, e.g. bash
```sh
$ pulumi import huaweicloud:Vpcep/approval:Approval test <id>
```
func GetApproval ¶
func GetApproval(ctx *pulumi.Context, name string, id pulumi.IDInput, state *ApprovalState, opts ...pulumi.ResourceOption) (*Approval, error)
GetApproval gets an existing Approval 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 NewApproval ¶
func NewApproval(ctx *pulumi.Context, name string, args *ApprovalArgs, opts ...pulumi.ResourceOption) (*Approval, error)
NewApproval registers a new resource with the given unique name, arguments, and options.
func (*Approval) ElementType ¶
func (*Approval) ToApprovalOutput ¶
func (i *Approval) ToApprovalOutput() ApprovalOutput
func (*Approval) ToApprovalOutputWithContext ¶
func (i *Approval) ToApprovalOutputWithContext(ctx context.Context) ApprovalOutput
type ApprovalArgs ¶
type ApprovalArgs struct { // Specifies the list of VPC endpoint IDs which accepted to connect to VPC endpoint // service. The VPC endpoints will be rejected when the resource was destroyed. Endpoints pulumi.StringArrayInput // The region in which to obtain the VPC endpoint service. If omitted, the // provider-level region will be used. Changing this creates a new resource. Region pulumi.StringPtrInput // Specifies the ID of the VPC endpoint service. Changing this creates a new // resource. ServiceId pulumi.StringInput }
The set of arguments for constructing a Approval resource.
func (ApprovalArgs) ElementType ¶
func (ApprovalArgs) ElementType() reflect.Type
type ApprovalArray ¶
type ApprovalArray []ApprovalInput
func (ApprovalArray) ElementType ¶
func (ApprovalArray) ElementType() reflect.Type
func (ApprovalArray) ToApprovalArrayOutput ¶
func (i ApprovalArray) ToApprovalArrayOutput() ApprovalArrayOutput
func (ApprovalArray) ToApprovalArrayOutputWithContext ¶
func (i ApprovalArray) ToApprovalArrayOutputWithContext(ctx context.Context) ApprovalArrayOutput
type ApprovalArrayInput ¶
type ApprovalArrayInput interface { pulumi.Input ToApprovalArrayOutput() ApprovalArrayOutput ToApprovalArrayOutputWithContext(context.Context) ApprovalArrayOutput }
ApprovalArrayInput is an input type that accepts ApprovalArray and ApprovalArrayOutput values. You can construct a concrete instance of `ApprovalArrayInput` via:
ApprovalArray{ ApprovalArgs{...} }
type ApprovalArrayOutput ¶
type ApprovalArrayOutput struct{ *pulumi.OutputState }
func (ApprovalArrayOutput) ElementType ¶
func (ApprovalArrayOutput) ElementType() reflect.Type
func (ApprovalArrayOutput) Index ¶
func (o ApprovalArrayOutput) Index(i pulumi.IntInput) ApprovalOutput
func (ApprovalArrayOutput) ToApprovalArrayOutput ¶
func (o ApprovalArrayOutput) ToApprovalArrayOutput() ApprovalArrayOutput
func (ApprovalArrayOutput) ToApprovalArrayOutputWithContext ¶
func (o ApprovalArrayOutput) ToApprovalArrayOutputWithContext(ctx context.Context) ApprovalArrayOutput
type ApprovalConnection ¶
type ApprovalConnection struct { // The description of the VPC endpoint service connection. Description *string `pulumi:"description"` // The user's domain ID. DomainId *string `pulumi:"domainId"` // The unique ID of the VPC endpoint. EndpointId *string `pulumi:"endpointId"` // The packet ID of the VPC endpoint. PacketId *int `pulumi:"packetId"` // The connection status of the VPC endpoint. Status *string `pulumi:"status"` }
type ApprovalConnectionArgs ¶
type ApprovalConnectionArgs struct { // The description of the VPC endpoint service connection. Description pulumi.StringPtrInput `pulumi:"description"` // The user's domain ID. DomainId pulumi.StringPtrInput `pulumi:"domainId"` // The unique ID of the VPC endpoint. EndpointId pulumi.StringPtrInput `pulumi:"endpointId"` // The packet ID of the VPC endpoint. PacketId pulumi.IntPtrInput `pulumi:"packetId"` // The connection status of the VPC endpoint. Status pulumi.StringPtrInput `pulumi:"status"` }
func (ApprovalConnectionArgs) ElementType ¶
func (ApprovalConnectionArgs) ElementType() reflect.Type
func (ApprovalConnectionArgs) ToApprovalConnectionOutput ¶
func (i ApprovalConnectionArgs) ToApprovalConnectionOutput() ApprovalConnectionOutput
func (ApprovalConnectionArgs) ToApprovalConnectionOutputWithContext ¶
func (i ApprovalConnectionArgs) ToApprovalConnectionOutputWithContext(ctx context.Context) ApprovalConnectionOutput
type ApprovalConnectionArray ¶
type ApprovalConnectionArray []ApprovalConnectionInput
func (ApprovalConnectionArray) ElementType ¶
func (ApprovalConnectionArray) ElementType() reflect.Type
func (ApprovalConnectionArray) ToApprovalConnectionArrayOutput ¶
func (i ApprovalConnectionArray) ToApprovalConnectionArrayOutput() ApprovalConnectionArrayOutput
func (ApprovalConnectionArray) ToApprovalConnectionArrayOutputWithContext ¶
func (i ApprovalConnectionArray) ToApprovalConnectionArrayOutputWithContext(ctx context.Context) ApprovalConnectionArrayOutput
type ApprovalConnectionArrayInput ¶
type ApprovalConnectionArrayInput interface { pulumi.Input ToApprovalConnectionArrayOutput() ApprovalConnectionArrayOutput ToApprovalConnectionArrayOutputWithContext(context.Context) ApprovalConnectionArrayOutput }
ApprovalConnectionArrayInput is an input type that accepts ApprovalConnectionArray and ApprovalConnectionArrayOutput values. You can construct a concrete instance of `ApprovalConnectionArrayInput` via:
ApprovalConnectionArray{ ApprovalConnectionArgs{...} }
type ApprovalConnectionArrayOutput ¶
type ApprovalConnectionArrayOutput struct{ *pulumi.OutputState }
func (ApprovalConnectionArrayOutput) ElementType ¶
func (ApprovalConnectionArrayOutput) ElementType() reflect.Type
func (ApprovalConnectionArrayOutput) Index ¶
func (o ApprovalConnectionArrayOutput) Index(i pulumi.IntInput) ApprovalConnectionOutput
func (ApprovalConnectionArrayOutput) ToApprovalConnectionArrayOutput ¶
func (o ApprovalConnectionArrayOutput) ToApprovalConnectionArrayOutput() ApprovalConnectionArrayOutput
func (ApprovalConnectionArrayOutput) ToApprovalConnectionArrayOutputWithContext ¶
func (o ApprovalConnectionArrayOutput) ToApprovalConnectionArrayOutputWithContext(ctx context.Context) ApprovalConnectionArrayOutput
type ApprovalConnectionInput ¶
type ApprovalConnectionInput interface { pulumi.Input ToApprovalConnectionOutput() ApprovalConnectionOutput ToApprovalConnectionOutputWithContext(context.Context) ApprovalConnectionOutput }
ApprovalConnectionInput is an input type that accepts ApprovalConnectionArgs and ApprovalConnectionOutput values. You can construct a concrete instance of `ApprovalConnectionInput` via:
ApprovalConnectionArgs{...}
type ApprovalConnectionOutput ¶
type ApprovalConnectionOutput struct{ *pulumi.OutputState }
func (ApprovalConnectionOutput) Description ¶ added in v0.0.8
func (o ApprovalConnectionOutput) Description() pulumi.StringPtrOutput
The description of the VPC endpoint service connection.
func (ApprovalConnectionOutput) DomainId ¶
func (o ApprovalConnectionOutput) DomainId() pulumi.StringPtrOutput
The user's domain ID.
func (ApprovalConnectionOutput) ElementType ¶
func (ApprovalConnectionOutput) ElementType() reflect.Type
func (ApprovalConnectionOutput) EndpointId ¶
func (o ApprovalConnectionOutput) EndpointId() pulumi.StringPtrOutput
The unique ID of the VPC endpoint.
func (ApprovalConnectionOutput) PacketId ¶
func (o ApprovalConnectionOutput) PacketId() pulumi.IntPtrOutput
The packet ID of the VPC endpoint.
func (ApprovalConnectionOutput) Status ¶
func (o ApprovalConnectionOutput) Status() pulumi.StringPtrOutput
The connection status of the VPC endpoint.
func (ApprovalConnectionOutput) ToApprovalConnectionOutput ¶
func (o ApprovalConnectionOutput) ToApprovalConnectionOutput() ApprovalConnectionOutput
func (ApprovalConnectionOutput) ToApprovalConnectionOutputWithContext ¶
func (o ApprovalConnectionOutput) ToApprovalConnectionOutputWithContext(ctx context.Context) ApprovalConnectionOutput
type ApprovalInput ¶
type ApprovalInput interface { pulumi.Input ToApprovalOutput() ApprovalOutput ToApprovalOutputWithContext(ctx context.Context) ApprovalOutput }
type ApprovalMap ¶
type ApprovalMap map[string]ApprovalInput
func (ApprovalMap) ElementType ¶
func (ApprovalMap) ElementType() reflect.Type
func (ApprovalMap) ToApprovalMapOutput ¶
func (i ApprovalMap) ToApprovalMapOutput() ApprovalMapOutput
func (ApprovalMap) ToApprovalMapOutputWithContext ¶
func (i ApprovalMap) ToApprovalMapOutputWithContext(ctx context.Context) ApprovalMapOutput
type ApprovalMapInput ¶
type ApprovalMapInput interface { pulumi.Input ToApprovalMapOutput() ApprovalMapOutput ToApprovalMapOutputWithContext(context.Context) ApprovalMapOutput }
ApprovalMapInput is an input type that accepts ApprovalMap and ApprovalMapOutput values. You can construct a concrete instance of `ApprovalMapInput` via:
ApprovalMap{ "key": ApprovalArgs{...} }
type ApprovalMapOutput ¶
type ApprovalMapOutput struct{ *pulumi.OutputState }
func (ApprovalMapOutput) ElementType ¶
func (ApprovalMapOutput) ElementType() reflect.Type
func (ApprovalMapOutput) MapIndex ¶
func (o ApprovalMapOutput) MapIndex(k pulumi.StringInput) ApprovalOutput
func (ApprovalMapOutput) ToApprovalMapOutput ¶
func (o ApprovalMapOutput) ToApprovalMapOutput() ApprovalMapOutput
func (ApprovalMapOutput) ToApprovalMapOutputWithContext ¶
func (o ApprovalMapOutput) ToApprovalMapOutputWithContext(ctx context.Context) ApprovalMapOutput
type ApprovalOutput ¶
type ApprovalOutput struct{ *pulumi.OutputState }
func (ApprovalOutput) Connections ¶
func (o ApprovalOutput) Connections() ApprovalConnectionArrayOutput
An array of VPC endpoints connect to the VPC endpoint service. Structure is documented below.
func (ApprovalOutput) ElementType ¶
func (ApprovalOutput) ElementType() reflect.Type
func (ApprovalOutput) Endpoints ¶
func (o ApprovalOutput) Endpoints() pulumi.StringArrayOutput
Specifies the list of VPC endpoint IDs which accepted to connect to VPC endpoint service. The VPC endpoints will be rejected when the resource was destroyed.
func (ApprovalOutput) Region ¶
func (o ApprovalOutput) Region() pulumi.StringOutput
The region in which to obtain the VPC endpoint service. If omitted, the provider-level region will be used. Changing this creates a new resource.
func (ApprovalOutput) ServiceId ¶
func (o ApprovalOutput) ServiceId() pulumi.StringOutput
Specifies the ID of the VPC endpoint service. Changing this creates a new resource.
func (ApprovalOutput) ToApprovalOutput ¶
func (o ApprovalOutput) ToApprovalOutput() ApprovalOutput
func (ApprovalOutput) ToApprovalOutputWithContext ¶
func (o ApprovalOutput) ToApprovalOutputWithContext(ctx context.Context) ApprovalOutput
type ApprovalState ¶
type ApprovalState struct { // An array of VPC endpoints connect to the VPC endpoint service. Structure is documented below. Connections ApprovalConnectionArrayInput // Specifies the list of VPC endpoint IDs which accepted to connect to VPC endpoint // service. The VPC endpoints will be rejected when the resource was destroyed. Endpoints pulumi.StringArrayInput // The region in which to obtain the VPC endpoint service. If omitted, the // provider-level region will be used. Changing this creates a new resource. Region pulumi.StringPtrInput // Specifies the ID of the VPC endpoint service. Changing this creates a new // resource. ServiceId pulumi.StringPtrInput }
func (ApprovalState) ElementType ¶
func (ApprovalState) ElementType() reflect.Type
type Endpoint ¶
type Endpoint struct { pulumi.CustomResourceState // Specifies the description of the VPC endpoint. Description pulumi.StringOutput `pulumi:"description"` // Specifies whether to create a private domain name. The default value is // true. Changing this creates a new VPC endpoint. EnableDns pulumi.BoolPtrOutput `pulumi:"enableDns"` // Specifies whether to enable access control. The default value is // false. EnableWhitelist pulumi.BoolPtrOutput `pulumi:"enableWhitelist"` // Specifies the IP address for accessing the associated VPC endpoint // service. Only IPv4 addresses are supported. Changing this creates a new VPC endpoint. IpAddress pulumi.StringOutput `pulumi:"ipAddress"` // Specifies the network ID of the subnet in the VPC specified by `vpcId`. // Changing this creates a new VPC endpoint. NetworkId pulumi.StringOutput `pulumi:"networkId"` // The packet ID of the VPC endpoint. PacketId pulumi.IntOutput `pulumi:"packetId"` // The domain name for accessing the associated VPC endpoint service. This parameter is only // available when enableDns is set to true. PrivateDomainName pulumi.StringOutput `pulumi:"privateDomainName"` // The region in which to create the VPC endpoint. If omitted, the provider-level // region will be used. Changing this creates a new VPC endpoint. Region pulumi.StringOutput `pulumi:"region"` // Specifies the ID of the VPC endpoint service. // The VPC endpoint service could be private or public. Changing this creates a new VPC endpoint. ServiceId pulumi.StringOutput `pulumi:"serviceId"` // The name of the VPC endpoint service. ServiceName pulumi.StringOutput `pulumi:"serviceName"` // The type of the VPC endpoint service. ServiceType pulumi.StringOutput `pulumi:"serviceType"` // The status of the VPC endpoint. The value can be **accepted**, **pendingAcceptance** or **rejected**. Status pulumi.StringOutput `pulumi:"status"` // The key/value pairs to associate with the VPC endpoint. Tags pulumi.StringMapOutput `pulumi:"tags"` // Specifies the ID of the VPC where the VPC endpoint is to be created. Changing // this creates a new VPC endpoint. VpcId pulumi.StringOutput `pulumi:"vpcId"` // Specifies the list of IP address or CIDR block which can be accessed to the // VPC endpoint. This field is valid when `enableWhitelist` is set to **true**. The max length of whitelist is 20. Whitelists pulumi.StringArrayOutput `pulumi:"whitelists"` }
Provides a resource to manage a VPC endpoint resource.
## Example Usage ### Access to the public service
```go package main
import (
"github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/Vpcep" "github.com/pulumi/pulumi-huaweicloud/sdk/go/huaweicloud/Vpcep" "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, "") vpcId := cfg.RequireObject("vpcId") networkId := cfg.RequireObject("networkId") cloudService, err := Vpcep.GetPublicServices(ctx, &vpcep.GetPublicServicesArgs{ ServiceName: pulumi.StringRef("dis"), }, nil) if err != nil { return err } _, err = Vpcep.NewEndpoint(ctx, "myendpoint", &Vpcep.EndpointArgs{ ServiceId: pulumi.String(cloudService.Services[0].Id), VpcId: pulumi.Any(vpcId), NetworkId: pulumi.Any(networkId), EnableDns: pulumi.Bool(true), EnableWhitelist: pulumi.Bool(true), Whitelists: pulumi.StringArray{ pulumi.String("192.168.0.0/24"), }, }) if err != nil { return err } return nil }) }
``` ### Access to the private service
```go package main
import (
"github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/Vpcep" "github.com/pulumi/pulumi-huaweicloud/sdk/go/huaweicloud/Vpcep" "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, "") serviceVpcId := cfg.RequireObject("serviceVpcId") vmPort := cfg.RequireObject("vmPort") vpcId := cfg.RequireObject("vpcId") networkId := cfg.RequireObject("networkId") demoService, err := Vpcep.NewService(ctx, "demoService", &Vpcep.ServiceArgs{ ServerType: pulumi.String("VM"), VpcId: pulumi.Any(serviceVpcId), PortId: pulumi.Any(vmPort), PortMappings: vpcep.ServicePortMappingArray{ &vpcep.ServicePortMappingArgs{ ServicePort: pulumi.Int(8080), TerminalPort: pulumi.Int(80), }, }, }) if err != nil { return err } _, err = Vpcep.NewEndpoint(ctx, "demoEndpoint", &Vpcep.EndpointArgs{ ServiceId: demoService.ID(), VpcId: pulumi.Any(vpcId), NetworkId: pulumi.Any(networkId), EnableDns: pulumi.Bool(true), Description: pulumi.String("test description"), }) if err != nil { return err } return nil }) }
```
## Import
VPC endpoint can be imported using the `id`, e.g. bash
```sh
$ pulumi import huaweicloud:Vpcep/endpoint:Endpoint test <id>
```
func GetEndpoint ¶
func GetEndpoint(ctx *pulumi.Context, name string, id pulumi.IDInput, state *EndpointState, opts ...pulumi.ResourceOption) (*Endpoint, error)
GetEndpoint gets an existing Endpoint 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 NewEndpoint ¶
func NewEndpoint(ctx *pulumi.Context, name string, args *EndpointArgs, opts ...pulumi.ResourceOption) (*Endpoint, error)
NewEndpoint registers a new resource with the given unique name, arguments, and options.
func (*Endpoint) ElementType ¶
func (*Endpoint) ToEndpointOutput ¶
func (i *Endpoint) ToEndpointOutput() EndpointOutput
func (*Endpoint) ToEndpointOutputWithContext ¶
func (i *Endpoint) ToEndpointOutputWithContext(ctx context.Context) EndpointOutput
type EndpointArgs ¶
type EndpointArgs struct { // Specifies the description of the VPC endpoint. Description pulumi.StringPtrInput // Specifies whether to create a private domain name. The default value is // true. Changing this creates a new VPC endpoint. EnableDns pulumi.BoolPtrInput // Specifies whether to enable access control. The default value is // false. EnableWhitelist pulumi.BoolPtrInput // Specifies the IP address for accessing the associated VPC endpoint // service. Only IPv4 addresses are supported. Changing this creates a new VPC endpoint. IpAddress pulumi.StringPtrInput // Specifies the network ID of the subnet in the VPC specified by `vpcId`. // Changing this creates a new VPC endpoint. NetworkId pulumi.StringInput // The region in which to create the VPC endpoint. If omitted, the provider-level // region will be used. Changing this creates a new VPC endpoint. Region pulumi.StringPtrInput // Specifies the ID of the VPC endpoint service. // The VPC endpoint service could be private or public. Changing this creates a new VPC endpoint. ServiceId pulumi.StringInput // The key/value pairs to associate with the VPC endpoint. Tags pulumi.StringMapInput // Specifies the ID of the VPC where the VPC endpoint is to be created. Changing // this creates a new VPC endpoint. VpcId pulumi.StringInput // Specifies the list of IP address or CIDR block which can be accessed to the // VPC endpoint. This field is valid when `enableWhitelist` is set to **true**. The max length of whitelist is 20. Whitelists pulumi.StringArrayInput }
The set of arguments for constructing a Endpoint resource.
func (EndpointArgs) ElementType ¶
func (EndpointArgs) ElementType() reflect.Type
type EndpointArray ¶
type EndpointArray []EndpointInput
func (EndpointArray) ElementType ¶
func (EndpointArray) ElementType() reflect.Type
func (EndpointArray) ToEndpointArrayOutput ¶
func (i EndpointArray) ToEndpointArrayOutput() EndpointArrayOutput
func (EndpointArray) ToEndpointArrayOutputWithContext ¶
func (i EndpointArray) ToEndpointArrayOutputWithContext(ctx context.Context) EndpointArrayOutput
type EndpointArrayInput ¶
type EndpointArrayInput interface { pulumi.Input ToEndpointArrayOutput() EndpointArrayOutput ToEndpointArrayOutputWithContext(context.Context) EndpointArrayOutput }
EndpointArrayInput is an input type that accepts EndpointArray and EndpointArrayOutput values. You can construct a concrete instance of `EndpointArrayInput` via:
EndpointArray{ EndpointArgs{...} }
type EndpointArrayOutput ¶
type EndpointArrayOutput struct{ *pulumi.OutputState }
func (EndpointArrayOutput) ElementType ¶
func (EndpointArrayOutput) ElementType() reflect.Type
func (EndpointArrayOutput) Index ¶
func (o EndpointArrayOutput) Index(i pulumi.IntInput) EndpointOutput
func (EndpointArrayOutput) ToEndpointArrayOutput ¶
func (o EndpointArrayOutput) ToEndpointArrayOutput() EndpointArrayOutput
func (EndpointArrayOutput) ToEndpointArrayOutputWithContext ¶
func (o EndpointArrayOutput) ToEndpointArrayOutputWithContext(ctx context.Context) EndpointArrayOutput
type EndpointInput ¶
type EndpointInput interface { pulumi.Input ToEndpointOutput() EndpointOutput ToEndpointOutputWithContext(ctx context.Context) EndpointOutput }
type EndpointMap ¶
type EndpointMap map[string]EndpointInput
func (EndpointMap) ElementType ¶
func (EndpointMap) ElementType() reflect.Type
func (EndpointMap) ToEndpointMapOutput ¶
func (i EndpointMap) ToEndpointMapOutput() EndpointMapOutput
func (EndpointMap) ToEndpointMapOutputWithContext ¶
func (i EndpointMap) ToEndpointMapOutputWithContext(ctx context.Context) EndpointMapOutput
type EndpointMapInput ¶
type EndpointMapInput interface { pulumi.Input ToEndpointMapOutput() EndpointMapOutput ToEndpointMapOutputWithContext(context.Context) EndpointMapOutput }
EndpointMapInput is an input type that accepts EndpointMap and EndpointMapOutput values. You can construct a concrete instance of `EndpointMapInput` via:
EndpointMap{ "key": EndpointArgs{...} }
type EndpointMapOutput ¶
type EndpointMapOutput struct{ *pulumi.OutputState }
func (EndpointMapOutput) ElementType ¶
func (EndpointMapOutput) ElementType() reflect.Type
func (EndpointMapOutput) MapIndex ¶
func (o EndpointMapOutput) MapIndex(k pulumi.StringInput) EndpointOutput
func (EndpointMapOutput) ToEndpointMapOutput ¶
func (o EndpointMapOutput) ToEndpointMapOutput() EndpointMapOutput
func (EndpointMapOutput) ToEndpointMapOutputWithContext ¶
func (o EndpointMapOutput) ToEndpointMapOutputWithContext(ctx context.Context) EndpointMapOutput
type EndpointOutput ¶
type EndpointOutput struct{ *pulumi.OutputState }
func (EndpointOutput) Description ¶ added in v0.0.8
func (o EndpointOutput) Description() pulumi.StringOutput
Specifies the description of the VPC endpoint.
func (EndpointOutput) ElementType ¶
func (EndpointOutput) ElementType() reflect.Type
func (EndpointOutput) EnableDns ¶
func (o EndpointOutput) EnableDns() pulumi.BoolPtrOutput
Specifies whether to create a private domain name. The default value is true. Changing this creates a new VPC endpoint.
func (EndpointOutput) EnableWhitelist ¶
func (o EndpointOutput) EnableWhitelist() pulumi.BoolPtrOutput
Specifies whether to enable access control. The default value is false.
func (EndpointOutput) IpAddress ¶
func (o EndpointOutput) IpAddress() pulumi.StringOutput
Specifies the IP address for accessing the associated VPC endpoint service. Only IPv4 addresses are supported. Changing this creates a new VPC endpoint.
func (EndpointOutput) NetworkId ¶
func (o EndpointOutput) NetworkId() pulumi.StringOutput
Specifies the network ID of the subnet in the VPC specified by `vpcId`. Changing this creates a new VPC endpoint.
func (EndpointOutput) PacketId ¶
func (o EndpointOutput) PacketId() pulumi.IntOutput
The packet ID of the VPC endpoint.
func (EndpointOutput) PrivateDomainName ¶
func (o EndpointOutput) PrivateDomainName() pulumi.StringOutput
The domain name for accessing the associated VPC endpoint service. This parameter is only available when enableDns is set to true.
func (EndpointOutput) Region ¶
func (o EndpointOutput) Region() pulumi.StringOutput
The region in which to create the VPC endpoint. If omitted, the provider-level region will be used. Changing this creates a new VPC endpoint.
func (EndpointOutput) ServiceId ¶
func (o EndpointOutput) ServiceId() pulumi.StringOutput
Specifies the ID of the VPC endpoint service. The VPC endpoint service could be private or public. Changing this creates a new VPC endpoint.
func (EndpointOutput) ServiceName ¶
func (o EndpointOutput) ServiceName() pulumi.StringOutput
The name of the VPC endpoint service.
func (EndpointOutput) ServiceType ¶
func (o EndpointOutput) ServiceType() pulumi.StringOutput
The type of the VPC endpoint service.
func (EndpointOutput) Status ¶
func (o EndpointOutput) Status() pulumi.StringOutput
The status of the VPC endpoint. The value can be **accepted**, **pendingAcceptance** or **rejected**.
func (EndpointOutput) Tags ¶
func (o EndpointOutput) Tags() pulumi.StringMapOutput
The key/value pairs to associate with the VPC endpoint.
func (EndpointOutput) ToEndpointOutput ¶
func (o EndpointOutput) ToEndpointOutput() EndpointOutput
func (EndpointOutput) ToEndpointOutputWithContext ¶
func (o EndpointOutput) ToEndpointOutputWithContext(ctx context.Context) EndpointOutput
func (EndpointOutput) VpcId ¶
func (o EndpointOutput) VpcId() pulumi.StringOutput
Specifies the ID of the VPC where the VPC endpoint is to be created. Changing this creates a new VPC endpoint.
func (EndpointOutput) Whitelists ¶
func (o EndpointOutput) Whitelists() pulumi.StringArrayOutput
Specifies the list of IP address or CIDR block which can be accessed to the VPC endpoint. This field is valid when `enableWhitelist` is set to **true**. The max length of whitelist is 20.
type EndpointState ¶
type EndpointState struct { // Specifies the description of the VPC endpoint. Description pulumi.StringPtrInput // Specifies whether to create a private domain name. The default value is // true. Changing this creates a new VPC endpoint. EnableDns pulumi.BoolPtrInput // Specifies whether to enable access control. The default value is // false. EnableWhitelist pulumi.BoolPtrInput // Specifies the IP address for accessing the associated VPC endpoint // service. Only IPv4 addresses are supported. Changing this creates a new VPC endpoint. IpAddress pulumi.StringPtrInput // Specifies the network ID of the subnet in the VPC specified by `vpcId`. // Changing this creates a new VPC endpoint. NetworkId pulumi.StringPtrInput // The packet ID of the VPC endpoint. PacketId pulumi.IntPtrInput // The domain name for accessing the associated VPC endpoint service. This parameter is only // available when enableDns is set to true. PrivateDomainName pulumi.StringPtrInput // The region in which to create the VPC endpoint. If omitted, the provider-level // region will be used. Changing this creates a new VPC endpoint. Region pulumi.StringPtrInput // Specifies the ID of the VPC endpoint service. // The VPC endpoint service could be private or public. Changing this creates a new VPC endpoint. ServiceId pulumi.StringPtrInput // The name of the VPC endpoint service. ServiceName pulumi.StringPtrInput // The type of the VPC endpoint service. ServiceType pulumi.StringPtrInput // The status of the VPC endpoint. The value can be **accepted**, **pendingAcceptance** or **rejected**. Status pulumi.StringPtrInput // The key/value pairs to associate with the VPC endpoint. Tags pulumi.StringMapInput // Specifies the ID of the VPC where the VPC endpoint is to be created. Changing // this creates a new VPC endpoint. VpcId pulumi.StringPtrInput // Specifies the list of IP address or CIDR block which can be accessed to the // VPC endpoint. This field is valid when `enableWhitelist` is set to **true**. The max length of whitelist is 20. Whitelists pulumi.StringArrayInput }
func (EndpointState) ElementType ¶
func (EndpointState) ElementType() reflect.Type
type GetPublicServicesArgs ¶
type GetPublicServicesArgs struct { // The region in which to obtain the public VPC endpoint services. If omitted, the // provider-level region will be used. Region *string `pulumi:"region"` // Specifies the unique ID of the public VPC endpoint service. ServiceId *string `pulumi:"serviceId"` // Specifies the name of the public VPC endpoint service. The value is not // case-sensitive and supports fuzzy match. ServiceName *string `pulumi:"serviceName"` }
A collection of arguments for invoking getPublicServices.
type GetPublicServicesOutputArgs ¶
type GetPublicServicesOutputArgs struct { // The region in which to obtain the public VPC endpoint services. If omitted, the // provider-level region will be used. Region pulumi.StringPtrInput `pulumi:"region"` // Specifies the unique ID of the public VPC endpoint service. ServiceId pulumi.StringPtrInput `pulumi:"serviceId"` // Specifies the name of the public VPC endpoint service. The value is not // case-sensitive and supports fuzzy match. ServiceName pulumi.StringPtrInput `pulumi:"serviceName"` }
A collection of arguments for invoking getPublicServices.
func (GetPublicServicesOutputArgs) ElementType ¶
func (GetPublicServicesOutputArgs) ElementType() reflect.Type
type GetPublicServicesResult ¶
type GetPublicServicesResult struct { // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` Region string `pulumi:"region"` ServiceId *string `pulumi:"serviceId"` // The name of the public VPC endpoint service. ServiceName *string `pulumi:"serviceName"` // Indicates the public VPC endpoint services information. Structure is documented below. Services []GetPublicServicesService `pulumi:"services"` }
A collection of values returned by getPublicServices.
func GetPublicServices ¶
func GetPublicServices(ctx *pulumi.Context, args *GetPublicServicesArgs, opts ...pulumi.InvokeOption) (*GetPublicServicesResult, error)
Use this data source to get available public VPC endpoint services.
## Example Usage
```go package main
import (
"github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/Vpcep" "github.com/pulumi/pulumi-huaweicloud/sdk/go/huaweicloud/Vpcep" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := Vpcep.GetPublicServices(ctx, nil, nil) if err != nil { return err } _, err = Vpcep.GetPublicServices(ctx, &vpcep.GetPublicServicesArgs{ ServiceName: pulumi.StringRef("dns"), }, nil) if err != nil { return err } return nil }) }
```
type GetPublicServicesResultOutput ¶
type GetPublicServicesResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getPublicServices.
func GetPublicServicesOutput ¶
func GetPublicServicesOutput(ctx *pulumi.Context, args GetPublicServicesOutputArgs, opts ...pulumi.InvokeOption) GetPublicServicesResultOutput
func (GetPublicServicesResultOutput) ElementType ¶
func (GetPublicServicesResultOutput) ElementType() reflect.Type
func (GetPublicServicesResultOutput) Id ¶
func (o GetPublicServicesResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (GetPublicServicesResultOutput) Region ¶
func (o GetPublicServicesResultOutput) Region() pulumi.StringOutput
func (GetPublicServicesResultOutput) ServiceId ¶
func (o GetPublicServicesResultOutput) ServiceId() pulumi.StringPtrOutput
func (GetPublicServicesResultOutput) ServiceName ¶
func (o GetPublicServicesResultOutput) ServiceName() pulumi.StringPtrOutput
The name of the public VPC endpoint service.
func (GetPublicServicesResultOutput) Services ¶
func (o GetPublicServicesResultOutput) Services() GetPublicServicesServiceArrayOutput
Indicates the public VPC endpoint services information. Structure is documented below.
func (GetPublicServicesResultOutput) ToGetPublicServicesResultOutput ¶
func (o GetPublicServicesResultOutput) ToGetPublicServicesResultOutput() GetPublicServicesResultOutput
func (GetPublicServicesResultOutput) ToGetPublicServicesResultOutputWithContext ¶
func (o GetPublicServicesResultOutput) ToGetPublicServicesResultOutputWithContext(ctx context.Context) GetPublicServicesResultOutput
type GetPublicServicesService ¶
type GetPublicServicesService struct { // The unique ID of the public VPC endpoint service. Id string `pulumi:"id"` // Indicates whether the associated VPC endpoint carries a charge. IsCharge bool `pulumi:"isCharge"` // The owner of the VPC endpoint service. Owner string `pulumi:"owner"` // Specifies the name of the public VPC endpoint service. The value is not // case-sensitive and supports fuzzy match. ServiceName string `pulumi:"serviceName"` // The type of the VPC endpoint service. ServiceType string `pulumi:"serviceType"` }
type GetPublicServicesServiceArgs ¶
type GetPublicServicesServiceArgs struct { // The unique ID of the public VPC endpoint service. Id pulumi.StringInput `pulumi:"id"` // Indicates whether the associated VPC endpoint carries a charge. IsCharge pulumi.BoolInput `pulumi:"isCharge"` // The owner of the VPC endpoint service. Owner pulumi.StringInput `pulumi:"owner"` // Specifies the name of the public VPC endpoint service. The value is not // case-sensitive and supports fuzzy match. ServiceName pulumi.StringInput `pulumi:"serviceName"` // The type of the VPC endpoint service. ServiceType pulumi.StringInput `pulumi:"serviceType"` }
func (GetPublicServicesServiceArgs) ElementType ¶
func (GetPublicServicesServiceArgs) ElementType() reflect.Type
func (GetPublicServicesServiceArgs) ToGetPublicServicesServiceOutput ¶
func (i GetPublicServicesServiceArgs) ToGetPublicServicesServiceOutput() GetPublicServicesServiceOutput
func (GetPublicServicesServiceArgs) ToGetPublicServicesServiceOutputWithContext ¶
func (i GetPublicServicesServiceArgs) ToGetPublicServicesServiceOutputWithContext(ctx context.Context) GetPublicServicesServiceOutput
type GetPublicServicesServiceArray ¶
type GetPublicServicesServiceArray []GetPublicServicesServiceInput
func (GetPublicServicesServiceArray) ElementType ¶
func (GetPublicServicesServiceArray) ElementType() reflect.Type
func (GetPublicServicesServiceArray) ToGetPublicServicesServiceArrayOutput ¶
func (i GetPublicServicesServiceArray) ToGetPublicServicesServiceArrayOutput() GetPublicServicesServiceArrayOutput
func (GetPublicServicesServiceArray) ToGetPublicServicesServiceArrayOutputWithContext ¶
func (i GetPublicServicesServiceArray) ToGetPublicServicesServiceArrayOutputWithContext(ctx context.Context) GetPublicServicesServiceArrayOutput
type GetPublicServicesServiceArrayInput ¶
type GetPublicServicesServiceArrayInput interface { pulumi.Input ToGetPublicServicesServiceArrayOutput() GetPublicServicesServiceArrayOutput ToGetPublicServicesServiceArrayOutputWithContext(context.Context) GetPublicServicesServiceArrayOutput }
GetPublicServicesServiceArrayInput is an input type that accepts GetPublicServicesServiceArray and GetPublicServicesServiceArrayOutput values. You can construct a concrete instance of `GetPublicServicesServiceArrayInput` via:
GetPublicServicesServiceArray{ GetPublicServicesServiceArgs{...} }
type GetPublicServicesServiceArrayOutput ¶
type GetPublicServicesServiceArrayOutput struct{ *pulumi.OutputState }
func (GetPublicServicesServiceArrayOutput) ElementType ¶
func (GetPublicServicesServiceArrayOutput) ElementType() reflect.Type
func (GetPublicServicesServiceArrayOutput) Index ¶
func (o GetPublicServicesServiceArrayOutput) Index(i pulumi.IntInput) GetPublicServicesServiceOutput
func (GetPublicServicesServiceArrayOutput) ToGetPublicServicesServiceArrayOutput ¶
func (o GetPublicServicesServiceArrayOutput) ToGetPublicServicesServiceArrayOutput() GetPublicServicesServiceArrayOutput
func (GetPublicServicesServiceArrayOutput) ToGetPublicServicesServiceArrayOutputWithContext ¶
func (o GetPublicServicesServiceArrayOutput) ToGetPublicServicesServiceArrayOutputWithContext(ctx context.Context) GetPublicServicesServiceArrayOutput
type GetPublicServicesServiceInput ¶
type GetPublicServicesServiceInput interface { pulumi.Input ToGetPublicServicesServiceOutput() GetPublicServicesServiceOutput ToGetPublicServicesServiceOutputWithContext(context.Context) GetPublicServicesServiceOutput }
GetPublicServicesServiceInput is an input type that accepts GetPublicServicesServiceArgs and GetPublicServicesServiceOutput values. You can construct a concrete instance of `GetPublicServicesServiceInput` via:
GetPublicServicesServiceArgs{...}
type GetPublicServicesServiceOutput ¶
type GetPublicServicesServiceOutput struct{ *pulumi.OutputState }
func (GetPublicServicesServiceOutput) ElementType ¶
func (GetPublicServicesServiceOutput) ElementType() reflect.Type
func (GetPublicServicesServiceOutput) Id ¶
func (o GetPublicServicesServiceOutput) Id() pulumi.StringOutput
The unique ID of the public VPC endpoint service.
func (GetPublicServicesServiceOutput) IsCharge ¶
func (o GetPublicServicesServiceOutput) IsCharge() pulumi.BoolOutput
Indicates whether the associated VPC endpoint carries a charge.
func (GetPublicServicesServiceOutput) Owner ¶
func (o GetPublicServicesServiceOutput) Owner() pulumi.StringOutput
The owner of the VPC endpoint service.
func (GetPublicServicesServiceOutput) ServiceName ¶
func (o GetPublicServicesServiceOutput) ServiceName() pulumi.StringOutput
Specifies the name of the public VPC endpoint service. The value is not case-sensitive and supports fuzzy match.
func (GetPublicServicesServiceOutput) ServiceType ¶
func (o GetPublicServicesServiceOutput) ServiceType() pulumi.StringOutput
The type of the VPC endpoint service.
func (GetPublicServicesServiceOutput) ToGetPublicServicesServiceOutput ¶
func (o GetPublicServicesServiceOutput) ToGetPublicServicesServiceOutput() GetPublicServicesServiceOutput
func (GetPublicServicesServiceOutput) ToGetPublicServicesServiceOutputWithContext ¶
func (o GetPublicServicesServiceOutput) ToGetPublicServicesServiceOutputWithContext(ctx context.Context) GetPublicServicesServiceOutput
type Service ¶
type Service struct { pulumi.CustomResourceState // Specifies whether connection approval is required. The default value is false. Approval pulumi.BoolOutput `pulumi:"approval"` // An array of VPC endpoints connect to the VPC endpoint service. Structure is documented below. Connections ServiceConnectionArrayOutput `pulumi:"connections"` // Specifies the description of the VPC endpoint service. Description pulumi.StringOutput `pulumi:"description"` // Specifies the name of the VPC endpoint service. The value contains a maximum of 16 // characters, including letters, digits, underscores (_), and hyphens (-). Name pulumi.StringOutput `pulumi:"name"` // Specifies the list of accounts to access the VPC endpoint service. The record is in // the `iam:domain::domain_id` format, while `*` allows all users to access the VPC endpoint service. Permissions pulumi.StringArrayOutput `pulumi:"permissions"` // Specifies the ID for identifying the backend resource of the VPC endpoint service. // + If the `serverType` is **VM**, the value is the NIC ID of the ECS where the VPC endpoint service is deployed. // + If the `serverType` is **LB**, the value is the ID of the port bound to the private IP address of the load // balancer. PortId pulumi.StringOutput `pulumi:"portId"` // Specifies the port mappings opened to the VPC endpoint service. Structure is // documented below. PortMappings ServicePortMappingArrayOutput `pulumi:"portMappings"` // The region in which to create the VPC endpoint service. If omitted, the // provider-level region will be used. Changing this creates a new VPC endpoint service resource. Region pulumi.StringOutput `pulumi:"region"` // Specifies the backend resource type. The valid values are as follows: // + **VM**: Indicates the cloud server, which can be used as a server. // + **LB**: Indicates the shared load balancer, which is applicable to services with high access traffic and services // that require high reliability and disaster recovery. ServerType pulumi.StringOutput `pulumi:"serverType"` // The full name of the VPC endpoint service in the format: *region.name.id* or *region.id*. ServiceName pulumi.StringOutput `pulumi:"serviceName"` // The type of the VPC endpoint service. ServiceType pulumi.StringPtrOutput `pulumi:"serviceType"` // The connection status of the VPC endpoint. Status pulumi.StringOutput `pulumi:"status"` // The key/value pairs to associate with the VPC endpoint service. Tags pulumi.StringMapOutput `pulumi:"tags"` // Specifies the ID of the VPC to which the backend resource of the VPC endpoint // service belongs. Changing this creates a new VPC endpoint service. VpcId pulumi.StringOutput `pulumi:"vpcId"` }
Provides a resource to manage a VPC endpoint service resource.
## Example Usage
```go package main
import (
"github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/Vpcep" "github.com/pulumi/pulumi-huaweicloud/sdk/go/huaweicloud/Vpcep" "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, "") vpcId := cfg.RequireObject("vpcId") vmPort := cfg.RequireObject("vmPort") _, err := Vpcep.NewService(ctx, "demo", &Vpcep.ServiceArgs{ ServerType: pulumi.String("VM"), VpcId: pulumi.Any(vpcId), PortId: pulumi.Any(vmPort), Description: pulumi.String("test description"), PortMappings: vpcep.ServicePortMappingArray{ &vpcep.ServicePortMappingArgs{ ServicePort: pulumi.Int(8080), TerminalPort: pulumi.Int(80), }, }, }) if err != nil { return err } return nil }) }
```
## Import
VPC endpoint services can be imported using the `id`, e.g. bash
```sh
$ pulumi import huaweicloud:Vpcep/service:Service test_service <id>
```
func GetService ¶
func GetService(ctx *pulumi.Context, name string, id pulumi.IDInput, state *ServiceState, opts ...pulumi.ResourceOption) (*Service, error)
GetService gets an existing Service 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 NewService ¶
func NewService(ctx *pulumi.Context, name string, args *ServiceArgs, opts ...pulumi.ResourceOption) (*Service, error)
NewService registers a new resource with the given unique name, arguments, and options.
func (*Service) ElementType ¶
func (*Service) ToServiceOutput ¶
func (i *Service) ToServiceOutput() ServiceOutput
func (*Service) ToServiceOutputWithContext ¶
func (i *Service) ToServiceOutputWithContext(ctx context.Context) ServiceOutput
type ServiceArgs ¶
type ServiceArgs struct { // Specifies whether connection approval is required. The default value is false. Approval pulumi.BoolPtrInput // Specifies the description of the VPC endpoint service. Description pulumi.StringPtrInput // Specifies the name of the VPC endpoint service. The value contains a maximum of 16 // characters, including letters, digits, underscores (_), and hyphens (-). Name pulumi.StringPtrInput // Specifies the list of accounts to access the VPC endpoint service. The record is in // the `iam:domain::domain_id` format, while `*` allows all users to access the VPC endpoint service. Permissions pulumi.StringArrayInput // Specifies the ID for identifying the backend resource of the VPC endpoint service. // + If the `serverType` is **VM**, the value is the NIC ID of the ECS where the VPC endpoint service is deployed. // + If the `serverType` is **LB**, the value is the ID of the port bound to the private IP address of the load // balancer. PortId pulumi.StringInput // Specifies the port mappings opened to the VPC endpoint service. Structure is // documented below. PortMappings ServicePortMappingArrayInput // The region in which to create the VPC endpoint service. If omitted, the // provider-level region will be used. Changing this creates a new VPC endpoint service resource. Region pulumi.StringPtrInput // Specifies the backend resource type. The valid values are as follows: // + **VM**: Indicates the cloud server, which can be used as a server. // + **LB**: Indicates the shared load balancer, which is applicable to services with high access traffic and services // that require high reliability and disaster recovery. ServerType pulumi.StringInput // The type of the VPC endpoint service. ServiceType pulumi.StringPtrInput // The key/value pairs to associate with the VPC endpoint service. Tags pulumi.StringMapInput // Specifies the ID of the VPC to which the backend resource of the VPC endpoint // service belongs. Changing this creates a new VPC endpoint service. VpcId pulumi.StringInput }
The set of arguments for constructing a Service resource.
func (ServiceArgs) ElementType ¶
func (ServiceArgs) ElementType() reflect.Type
type ServiceArray ¶
type ServiceArray []ServiceInput
func (ServiceArray) ElementType ¶
func (ServiceArray) ElementType() reflect.Type
func (ServiceArray) ToServiceArrayOutput ¶
func (i ServiceArray) ToServiceArrayOutput() ServiceArrayOutput
func (ServiceArray) ToServiceArrayOutputWithContext ¶
func (i ServiceArray) ToServiceArrayOutputWithContext(ctx context.Context) ServiceArrayOutput
type ServiceArrayInput ¶
type ServiceArrayInput interface { pulumi.Input ToServiceArrayOutput() ServiceArrayOutput ToServiceArrayOutputWithContext(context.Context) ServiceArrayOutput }
ServiceArrayInput is an input type that accepts ServiceArray and ServiceArrayOutput values. You can construct a concrete instance of `ServiceArrayInput` via:
ServiceArray{ ServiceArgs{...} }
type ServiceArrayOutput ¶
type ServiceArrayOutput struct{ *pulumi.OutputState }
func (ServiceArrayOutput) ElementType ¶
func (ServiceArrayOutput) ElementType() reflect.Type
func (ServiceArrayOutput) Index ¶
func (o ServiceArrayOutput) Index(i pulumi.IntInput) ServiceOutput
func (ServiceArrayOutput) ToServiceArrayOutput ¶
func (o ServiceArrayOutput) ToServiceArrayOutput() ServiceArrayOutput
func (ServiceArrayOutput) ToServiceArrayOutputWithContext ¶
func (o ServiceArrayOutput) ToServiceArrayOutputWithContext(ctx context.Context) ServiceArrayOutput
type ServiceConnection ¶
type ServiceConnection struct { // Specifies the description of the VPC endpoint service. Description *string `pulumi:"description"` // The user's domain ID. DomainId *string `pulumi:"domainId"` // The unique ID of the VPC endpoint. EndpointId *string `pulumi:"endpointId"` // The packet ID of the VPC endpoint. PacketId *int `pulumi:"packetId"` // The connection status of the VPC endpoint. Status *string `pulumi:"status"` }
type ServiceConnectionArgs ¶
type ServiceConnectionArgs struct { // Specifies the description of the VPC endpoint service. Description pulumi.StringPtrInput `pulumi:"description"` // The user's domain ID. DomainId pulumi.StringPtrInput `pulumi:"domainId"` // The unique ID of the VPC endpoint. EndpointId pulumi.StringPtrInput `pulumi:"endpointId"` // The packet ID of the VPC endpoint. PacketId pulumi.IntPtrInput `pulumi:"packetId"` // The connection status of the VPC endpoint. Status pulumi.StringPtrInput `pulumi:"status"` }
func (ServiceConnectionArgs) ElementType ¶
func (ServiceConnectionArgs) ElementType() reflect.Type
func (ServiceConnectionArgs) ToServiceConnectionOutput ¶
func (i ServiceConnectionArgs) ToServiceConnectionOutput() ServiceConnectionOutput
func (ServiceConnectionArgs) ToServiceConnectionOutputWithContext ¶
func (i ServiceConnectionArgs) ToServiceConnectionOutputWithContext(ctx context.Context) ServiceConnectionOutput
type ServiceConnectionArray ¶
type ServiceConnectionArray []ServiceConnectionInput
func (ServiceConnectionArray) ElementType ¶
func (ServiceConnectionArray) ElementType() reflect.Type
func (ServiceConnectionArray) ToServiceConnectionArrayOutput ¶
func (i ServiceConnectionArray) ToServiceConnectionArrayOutput() ServiceConnectionArrayOutput
func (ServiceConnectionArray) ToServiceConnectionArrayOutputWithContext ¶
func (i ServiceConnectionArray) ToServiceConnectionArrayOutputWithContext(ctx context.Context) ServiceConnectionArrayOutput
type ServiceConnectionArrayInput ¶
type ServiceConnectionArrayInput interface { pulumi.Input ToServiceConnectionArrayOutput() ServiceConnectionArrayOutput ToServiceConnectionArrayOutputWithContext(context.Context) ServiceConnectionArrayOutput }
ServiceConnectionArrayInput is an input type that accepts ServiceConnectionArray and ServiceConnectionArrayOutput values. You can construct a concrete instance of `ServiceConnectionArrayInput` via:
ServiceConnectionArray{ ServiceConnectionArgs{...} }
type ServiceConnectionArrayOutput ¶
type ServiceConnectionArrayOutput struct{ *pulumi.OutputState }
func (ServiceConnectionArrayOutput) ElementType ¶
func (ServiceConnectionArrayOutput) ElementType() reflect.Type
func (ServiceConnectionArrayOutput) Index ¶
func (o ServiceConnectionArrayOutput) Index(i pulumi.IntInput) ServiceConnectionOutput
func (ServiceConnectionArrayOutput) ToServiceConnectionArrayOutput ¶
func (o ServiceConnectionArrayOutput) ToServiceConnectionArrayOutput() ServiceConnectionArrayOutput
func (ServiceConnectionArrayOutput) ToServiceConnectionArrayOutputWithContext ¶
func (o ServiceConnectionArrayOutput) ToServiceConnectionArrayOutputWithContext(ctx context.Context) ServiceConnectionArrayOutput
type ServiceConnectionInput ¶
type ServiceConnectionInput interface { pulumi.Input ToServiceConnectionOutput() ServiceConnectionOutput ToServiceConnectionOutputWithContext(context.Context) ServiceConnectionOutput }
ServiceConnectionInput is an input type that accepts ServiceConnectionArgs and ServiceConnectionOutput values. You can construct a concrete instance of `ServiceConnectionInput` via:
ServiceConnectionArgs{...}
type ServiceConnectionOutput ¶
type ServiceConnectionOutput struct{ *pulumi.OutputState }
func (ServiceConnectionOutput) Description ¶ added in v0.0.8
func (o ServiceConnectionOutput) Description() pulumi.StringPtrOutput
Specifies the description of the VPC endpoint service.
func (ServiceConnectionOutput) DomainId ¶
func (o ServiceConnectionOutput) DomainId() pulumi.StringPtrOutput
The user's domain ID.
func (ServiceConnectionOutput) ElementType ¶
func (ServiceConnectionOutput) ElementType() reflect.Type
func (ServiceConnectionOutput) EndpointId ¶
func (o ServiceConnectionOutput) EndpointId() pulumi.StringPtrOutput
The unique ID of the VPC endpoint.
func (ServiceConnectionOutput) PacketId ¶
func (o ServiceConnectionOutput) PacketId() pulumi.IntPtrOutput
The packet ID of the VPC endpoint.
func (ServiceConnectionOutput) Status ¶
func (o ServiceConnectionOutput) Status() pulumi.StringPtrOutput
The connection status of the VPC endpoint.
func (ServiceConnectionOutput) ToServiceConnectionOutput ¶
func (o ServiceConnectionOutput) ToServiceConnectionOutput() ServiceConnectionOutput
func (ServiceConnectionOutput) ToServiceConnectionOutputWithContext ¶
func (o ServiceConnectionOutput) ToServiceConnectionOutputWithContext(ctx context.Context) ServiceConnectionOutput
type ServiceInput ¶
type ServiceInput interface { pulumi.Input ToServiceOutput() ServiceOutput ToServiceOutputWithContext(ctx context.Context) ServiceOutput }
type ServiceMap ¶
type ServiceMap map[string]ServiceInput
func (ServiceMap) ElementType ¶
func (ServiceMap) ElementType() reflect.Type
func (ServiceMap) ToServiceMapOutput ¶
func (i ServiceMap) ToServiceMapOutput() ServiceMapOutput
func (ServiceMap) ToServiceMapOutputWithContext ¶
func (i ServiceMap) ToServiceMapOutputWithContext(ctx context.Context) ServiceMapOutput
type ServiceMapInput ¶
type ServiceMapInput interface { pulumi.Input ToServiceMapOutput() ServiceMapOutput ToServiceMapOutputWithContext(context.Context) ServiceMapOutput }
ServiceMapInput is an input type that accepts ServiceMap and ServiceMapOutput values. You can construct a concrete instance of `ServiceMapInput` via:
ServiceMap{ "key": ServiceArgs{...} }
type ServiceMapOutput ¶
type ServiceMapOutput struct{ *pulumi.OutputState }
func (ServiceMapOutput) ElementType ¶
func (ServiceMapOutput) ElementType() reflect.Type
func (ServiceMapOutput) MapIndex ¶
func (o ServiceMapOutput) MapIndex(k pulumi.StringInput) ServiceOutput
func (ServiceMapOutput) ToServiceMapOutput ¶
func (o ServiceMapOutput) ToServiceMapOutput() ServiceMapOutput
func (ServiceMapOutput) ToServiceMapOutputWithContext ¶
func (o ServiceMapOutput) ToServiceMapOutputWithContext(ctx context.Context) ServiceMapOutput
type ServiceOutput ¶
type ServiceOutput struct{ *pulumi.OutputState }
func (ServiceOutput) Approval ¶
func (o ServiceOutput) Approval() pulumi.BoolOutput
Specifies whether connection approval is required. The default value is false.
func (ServiceOutput) Connections ¶
func (o ServiceOutput) Connections() ServiceConnectionArrayOutput
An array of VPC endpoints connect to the VPC endpoint service. Structure is documented below.
func (ServiceOutput) Description ¶ added in v0.0.8
func (o ServiceOutput) Description() pulumi.StringOutput
Specifies the description of the VPC endpoint service.
func (ServiceOutput) ElementType ¶
func (ServiceOutput) ElementType() reflect.Type
func (ServiceOutput) Name ¶
func (o ServiceOutput) Name() pulumi.StringOutput
Specifies the name of the VPC endpoint service. The value contains a maximum of 16 characters, including letters, digits, underscores (_), and hyphens (-).
func (ServiceOutput) Permissions ¶
func (o ServiceOutput) Permissions() pulumi.StringArrayOutput
Specifies the list of accounts to access the VPC endpoint service. The record is in the `iam:domain::domain_id` format, while `*` allows all users to access the VPC endpoint service.
func (ServiceOutput) PortId ¶
func (o ServiceOutput) PortId() pulumi.StringOutput
Specifies the ID for identifying the backend resource of the VPC endpoint service.
- If the `serverType` is **VM**, the value is the NIC ID of the ECS where the VPC endpoint service is deployed.
- If the `serverType` is **LB**, the value is the ID of the port bound to the private IP address of the load balancer.
func (ServiceOutput) PortMappings ¶
func (o ServiceOutput) PortMappings() ServicePortMappingArrayOutput
Specifies the port mappings opened to the VPC endpoint service. Structure is documented below.
func (ServiceOutput) Region ¶
func (o ServiceOutput) Region() pulumi.StringOutput
The region in which to create the VPC endpoint service. If omitted, the provider-level region will be used. Changing this creates a new VPC endpoint service resource.
func (ServiceOutput) ServerType ¶
func (o ServiceOutput) ServerType() pulumi.StringOutput
Specifies the backend resource type. The valid values are as follows:
- **VM**: Indicates the cloud server, which can be used as a server.
- **LB**: Indicates the shared load balancer, which is applicable to services with high access traffic and services that require high reliability and disaster recovery.
func (ServiceOutput) ServiceName ¶
func (o ServiceOutput) ServiceName() pulumi.StringOutput
The full name of the VPC endpoint service in the format: *region.name.id* or *region.id*.
func (ServiceOutput) ServiceType ¶
func (o ServiceOutput) ServiceType() pulumi.StringPtrOutput
The type of the VPC endpoint service.
func (ServiceOutput) Status ¶
func (o ServiceOutput) Status() pulumi.StringOutput
The connection status of the VPC endpoint.
func (ServiceOutput) Tags ¶
func (o ServiceOutput) Tags() pulumi.StringMapOutput
The key/value pairs to associate with the VPC endpoint service.
func (ServiceOutput) ToServiceOutput ¶
func (o ServiceOutput) ToServiceOutput() ServiceOutput
func (ServiceOutput) ToServiceOutputWithContext ¶
func (o ServiceOutput) ToServiceOutputWithContext(ctx context.Context) ServiceOutput
func (ServiceOutput) VpcId ¶
func (o ServiceOutput) VpcId() pulumi.StringOutput
Specifies the ID of the VPC to which the backend resource of the VPC endpoint service belongs. Changing this creates a new VPC endpoint service.
type ServicePortMapping ¶
type ServicePortMapping struct { // Specifies the protocol used in port mappings. Only **TCP** is supported. Protocol *string `pulumi:"protocol"` // Specifies the port for accessing the VPC endpoint service. This port is provided by // the backend service to provide services. The value ranges from 1 to 65535. ServicePort *int `pulumi:"servicePort"` // Specifies the port for accessing the VPC endpoint. This port is provided by the VPC // endpoint, allowing you to access the VPC endpoint service. The value ranges from 1 to 65535. TerminalPort *int `pulumi:"terminalPort"` }
type ServicePortMappingArgs ¶
type ServicePortMappingArgs struct { // Specifies the protocol used in port mappings. Only **TCP** is supported. Protocol pulumi.StringPtrInput `pulumi:"protocol"` // Specifies the port for accessing the VPC endpoint service. This port is provided by // the backend service to provide services. The value ranges from 1 to 65535. ServicePort pulumi.IntPtrInput `pulumi:"servicePort"` // Specifies the port for accessing the VPC endpoint. This port is provided by the VPC // endpoint, allowing you to access the VPC endpoint service. The value ranges from 1 to 65535. TerminalPort pulumi.IntPtrInput `pulumi:"terminalPort"` }
func (ServicePortMappingArgs) ElementType ¶
func (ServicePortMappingArgs) ElementType() reflect.Type
func (ServicePortMappingArgs) ToServicePortMappingOutput ¶
func (i ServicePortMappingArgs) ToServicePortMappingOutput() ServicePortMappingOutput
func (ServicePortMappingArgs) ToServicePortMappingOutputWithContext ¶
func (i ServicePortMappingArgs) ToServicePortMappingOutputWithContext(ctx context.Context) ServicePortMappingOutput
type ServicePortMappingArray ¶
type ServicePortMappingArray []ServicePortMappingInput
func (ServicePortMappingArray) ElementType ¶
func (ServicePortMappingArray) ElementType() reflect.Type
func (ServicePortMappingArray) ToServicePortMappingArrayOutput ¶
func (i ServicePortMappingArray) ToServicePortMappingArrayOutput() ServicePortMappingArrayOutput
func (ServicePortMappingArray) ToServicePortMappingArrayOutputWithContext ¶
func (i ServicePortMappingArray) ToServicePortMappingArrayOutputWithContext(ctx context.Context) ServicePortMappingArrayOutput
type ServicePortMappingArrayInput ¶
type ServicePortMappingArrayInput interface { pulumi.Input ToServicePortMappingArrayOutput() ServicePortMappingArrayOutput ToServicePortMappingArrayOutputWithContext(context.Context) ServicePortMappingArrayOutput }
ServicePortMappingArrayInput is an input type that accepts ServicePortMappingArray and ServicePortMappingArrayOutput values. You can construct a concrete instance of `ServicePortMappingArrayInput` via:
ServicePortMappingArray{ ServicePortMappingArgs{...} }
type ServicePortMappingArrayOutput ¶
type ServicePortMappingArrayOutput struct{ *pulumi.OutputState }
func (ServicePortMappingArrayOutput) ElementType ¶
func (ServicePortMappingArrayOutput) ElementType() reflect.Type
func (ServicePortMappingArrayOutput) Index ¶
func (o ServicePortMappingArrayOutput) Index(i pulumi.IntInput) ServicePortMappingOutput
func (ServicePortMappingArrayOutput) ToServicePortMappingArrayOutput ¶
func (o ServicePortMappingArrayOutput) ToServicePortMappingArrayOutput() ServicePortMappingArrayOutput
func (ServicePortMappingArrayOutput) ToServicePortMappingArrayOutputWithContext ¶
func (o ServicePortMappingArrayOutput) ToServicePortMappingArrayOutputWithContext(ctx context.Context) ServicePortMappingArrayOutput
type ServicePortMappingInput ¶
type ServicePortMappingInput interface { pulumi.Input ToServicePortMappingOutput() ServicePortMappingOutput ToServicePortMappingOutputWithContext(context.Context) ServicePortMappingOutput }
ServicePortMappingInput is an input type that accepts ServicePortMappingArgs and ServicePortMappingOutput values. You can construct a concrete instance of `ServicePortMappingInput` via:
ServicePortMappingArgs{...}
type ServicePortMappingOutput ¶
type ServicePortMappingOutput struct{ *pulumi.OutputState }
func (ServicePortMappingOutput) ElementType ¶
func (ServicePortMappingOutput) ElementType() reflect.Type
func (ServicePortMappingOutput) Protocol ¶
func (o ServicePortMappingOutput) Protocol() pulumi.StringPtrOutput
Specifies the protocol used in port mappings. Only **TCP** is supported.
func (ServicePortMappingOutput) ServicePort ¶
func (o ServicePortMappingOutput) ServicePort() pulumi.IntPtrOutput
Specifies the port for accessing the VPC endpoint service. This port is provided by the backend service to provide services. The value ranges from 1 to 65535.
func (ServicePortMappingOutput) TerminalPort ¶
func (o ServicePortMappingOutput) TerminalPort() pulumi.IntPtrOutput
Specifies the port for accessing the VPC endpoint. This port is provided by the VPC endpoint, allowing you to access the VPC endpoint service. The value ranges from 1 to 65535.
func (ServicePortMappingOutput) ToServicePortMappingOutput ¶
func (o ServicePortMappingOutput) ToServicePortMappingOutput() ServicePortMappingOutput
func (ServicePortMappingOutput) ToServicePortMappingOutputWithContext ¶
func (o ServicePortMappingOutput) ToServicePortMappingOutputWithContext(ctx context.Context) ServicePortMappingOutput
type ServiceState ¶
type ServiceState struct { // Specifies whether connection approval is required. The default value is false. Approval pulumi.BoolPtrInput // An array of VPC endpoints connect to the VPC endpoint service. Structure is documented below. Connections ServiceConnectionArrayInput // Specifies the description of the VPC endpoint service. Description pulumi.StringPtrInput // Specifies the name of the VPC endpoint service. The value contains a maximum of 16 // characters, including letters, digits, underscores (_), and hyphens (-). Name pulumi.StringPtrInput // Specifies the list of accounts to access the VPC endpoint service. The record is in // the `iam:domain::domain_id` format, while `*` allows all users to access the VPC endpoint service. Permissions pulumi.StringArrayInput // Specifies the ID for identifying the backend resource of the VPC endpoint service. // + If the `serverType` is **VM**, the value is the NIC ID of the ECS where the VPC endpoint service is deployed. // + If the `serverType` is **LB**, the value is the ID of the port bound to the private IP address of the load // balancer. PortId pulumi.StringPtrInput // Specifies the port mappings opened to the VPC endpoint service. Structure is // documented below. PortMappings ServicePortMappingArrayInput // The region in which to create the VPC endpoint service. If omitted, the // provider-level region will be used. Changing this creates a new VPC endpoint service resource. Region pulumi.StringPtrInput // Specifies the backend resource type. The valid values are as follows: // + **VM**: Indicates the cloud server, which can be used as a server. // + **LB**: Indicates the shared load balancer, which is applicable to services with high access traffic and services // that require high reliability and disaster recovery. ServerType pulumi.StringPtrInput // The full name of the VPC endpoint service in the format: *region.name.id* or *region.id*. ServiceName pulumi.StringPtrInput // The type of the VPC endpoint service. ServiceType pulumi.StringPtrInput // The connection status of the VPC endpoint. Status pulumi.StringPtrInput // The key/value pairs to associate with the VPC endpoint service. Tags pulumi.StringMapInput // Specifies the ID of the VPC to which the backend resource of the VPC endpoint // service belongs. Changing this creates a new VPC endpoint service. VpcId pulumi.StringPtrInput }
func (ServiceState) ElementType ¶
func (ServiceState) ElementType() reflect.Type