Documentation ¶
Index ¶
- type GetNATGatewayNatGateway
- type GetNATGatewayNatGatewayArgs
- type GetNATGatewayNatGatewayArray
- func (GetNATGatewayNatGatewayArray) ElementType() reflect.Type
- func (i GetNATGatewayNatGatewayArray) ToGetNATGatewayNatGatewayArrayOutput() GetNATGatewayNatGatewayArrayOutput
- func (i GetNATGatewayNatGatewayArray) ToGetNATGatewayNatGatewayArrayOutputWithContext(ctx context.Context) GetNATGatewayNatGatewayArrayOutput
- type GetNATGatewayNatGatewayArrayInput
- type GetNATGatewayNatGatewayArrayOutput
- func (GetNATGatewayNatGatewayArrayOutput) ElementType() reflect.Type
- func (o GetNATGatewayNatGatewayArrayOutput) Index(i pulumi.IntInput) GetNATGatewayNatGatewayOutput
- func (o GetNATGatewayNatGatewayArrayOutput) ToGetNATGatewayNatGatewayArrayOutput() GetNATGatewayNatGatewayArrayOutput
- func (o GetNATGatewayNatGatewayArrayOutput) ToGetNATGatewayNatGatewayArrayOutputWithContext(ctx context.Context) GetNATGatewayNatGatewayArrayOutput
- type GetNATGatewayNatGatewayInput
- type GetNATGatewayNatGatewayIpSet
- type GetNATGatewayNatGatewayIpSetArgs
- func (GetNATGatewayNatGatewayIpSetArgs) ElementType() reflect.Type
- func (i GetNATGatewayNatGatewayIpSetArgs) ToGetNATGatewayNatGatewayIpSetOutput() GetNATGatewayNatGatewayIpSetOutput
- func (i GetNATGatewayNatGatewayIpSetArgs) ToGetNATGatewayNatGatewayIpSetOutputWithContext(ctx context.Context) GetNATGatewayNatGatewayIpSetOutput
- type GetNATGatewayNatGatewayIpSetArray
- func (GetNATGatewayNatGatewayIpSetArray) ElementType() reflect.Type
- func (i GetNATGatewayNatGatewayIpSetArray) ToGetNATGatewayNatGatewayIpSetArrayOutput() GetNATGatewayNatGatewayIpSetArrayOutput
- func (i GetNATGatewayNatGatewayIpSetArray) ToGetNATGatewayNatGatewayIpSetArrayOutputWithContext(ctx context.Context) GetNATGatewayNatGatewayIpSetArrayOutput
- type GetNATGatewayNatGatewayIpSetArrayInput
- type GetNATGatewayNatGatewayIpSetArrayOutput
- func (GetNATGatewayNatGatewayIpSetArrayOutput) ElementType() reflect.Type
- func (o GetNATGatewayNatGatewayIpSetArrayOutput) Index(i pulumi.IntInput) GetNATGatewayNatGatewayIpSetOutput
- func (o GetNATGatewayNatGatewayIpSetArrayOutput) ToGetNATGatewayNatGatewayIpSetArrayOutput() GetNATGatewayNatGatewayIpSetArrayOutput
- func (o GetNATGatewayNatGatewayIpSetArrayOutput) ToGetNATGatewayNatGatewayIpSetArrayOutputWithContext(ctx context.Context) GetNATGatewayNatGatewayIpSetArrayOutput
- type GetNATGatewayNatGatewayIpSetInput
- type GetNATGatewayNatGatewayIpSetOutput
- func (GetNATGatewayNatGatewayIpSetOutput) ElementType() reflect.Type
- func (o GetNATGatewayNatGatewayIpSetOutput) InternetType() pulumi.StringOutput
- func (o GetNATGatewayNatGatewayIpSetOutput) Ip() pulumi.StringOutput
- func (o GetNATGatewayNatGatewayIpSetOutput) ToGetNATGatewayNatGatewayIpSetOutput() GetNATGatewayNatGatewayIpSetOutput
- func (o GetNATGatewayNatGatewayIpSetOutput) ToGetNATGatewayNatGatewayIpSetOutputWithContext(ctx context.Context) GetNATGatewayNatGatewayIpSetOutput
- type GetNATGatewayNatGatewayOutput
- func (o GetNATGatewayNatGatewayOutput) CreateTime() pulumi.StringOutput
- func (GetNATGatewayNatGatewayOutput) ElementType() reflect.Type
- func (o GetNATGatewayNatGatewayOutput) Id() pulumi.StringOutput
- func (o GetNATGatewayNatGatewayOutput) IpSets() GetNATGatewayNatGatewayIpSetArrayOutput
- func (o GetNATGatewayNatGatewayOutput) Name() pulumi.StringOutput
- func (o GetNATGatewayNatGatewayOutput) Remark() pulumi.StringOutput
- func (o GetNATGatewayNatGatewayOutput) SecurityGroup() pulumi.StringOutput
- func (o GetNATGatewayNatGatewayOutput) SubnetIds() pulumi.StringArrayOutput
- func (o GetNATGatewayNatGatewayOutput) Tag() pulumi.StringOutput
- func (o GetNATGatewayNatGatewayOutput) ToGetNATGatewayNatGatewayOutput() GetNATGatewayNatGatewayOutput
- func (o GetNATGatewayNatGatewayOutput) ToGetNATGatewayNatGatewayOutputWithContext(ctx context.Context) GetNATGatewayNatGatewayOutput
- func (o GetNATGatewayNatGatewayOutput) VpcId() pulumi.StringOutput
- type GetSubnetSubnet
- type GetSubnetSubnetArgs
- type GetSubnetSubnetArray
- type GetSubnetSubnetArrayInput
- type GetSubnetSubnetArrayOutput
- func (GetSubnetSubnetArrayOutput) ElementType() reflect.Type
- func (o GetSubnetSubnetArrayOutput) Index(i pulumi.IntInput) GetSubnetSubnetOutput
- func (o GetSubnetSubnetArrayOutput) ToGetSubnetSubnetArrayOutput() GetSubnetSubnetArrayOutput
- func (o GetSubnetSubnetArrayOutput) ToGetSubnetSubnetArrayOutputWithContext(ctx context.Context) GetSubnetSubnetArrayOutput
- type GetSubnetSubnetInput
- type GetSubnetSubnetOutput
- func (o GetSubnetSubnetOutput) CidrBlock() pulumi.StringOutput
- func (o GetSubnetSubnetOutput) CreateTime() pulumi.StringOutput
- func (GetSubnetSubnetOutput) ElementType() reflect.Type
- func (o GetSubnetSubnetOutput) Id() pulumi.StringOutput
- func (o GetSubnetSubnetOutput) Name() pulumi.StringOutput
- func (o GetSubnetSubnetOutput) Remark() pulumi.StringOutput
- func (o GetSubnetSubnetOutput) Tag() pulumi.StringOutput
- func (o GetSubnetSubnetOutput) ToGetSubnetSubnetOutput() GetSubnetSubnetOutput
- func (o GetSubnetSubnetOutput) ToGetSubnetSubnetOutputWithContext(ctx context.Context) GetSubnetSubnetOutput
- type GetVPCVpc
- type GetVPCVpcArgs
- type GetVPCVpcArray
- type GetVPCVpcArrayInput
- type GetVPCVpcArrayOutput
- func (GetVPCVpcArrayOutput) ElementType() reflect.Type
- func (o GetVPCVpcArrayOutput) Index(i pulumi.IntInput) GetVPCVpcOutput
- func (o GetVPCVpcArrayOutput) ToGetVPCVpcArrayOutput() GetVPCVpcArrayOutput
- func (o GetVPCVpcArrayOutput) ToGetVPCVpcArrayOutputWithContext(ctx context.Context) GetVPCVpcArrayOutput
- type GetVPCVpcInput
- type GetVPCVpcOutput
- func (o GetVPCVpcOutput) CidrBlocks() pulumi.StringArrayOutput
- func (o GetVPCVpcOutput) CreateTime() pulumi.StringOutput
- func (GetVPCVpcOutput) ElementType() reflect.Type
- func (o GetVPCVpcOutput) Id() pulumi.StringOutput
- func (o GetVPCVpcOutput) Name() pulumi.StringOutput
- func (o GetVPCVpcOutput) Tag() pulumi.StringOutput
- func (o GetVPCVpcOutput) ToGetVPCVpcOutput() GetVPCVpcOutput
- func (o GetVPCVpcOutput) ToGetVPCVpcOutputWithContext(ctx context.Context) GetVPCVpcOutput
- func (o GetVPCVpcOutput) UpdateTime() pulumi.StringOutput
- type LookupNATGatewayArgs
- type LookupNATGatewayResult
- type LookupSubnetArgs
- type LookupSubnetResult
- type LookupVPCArgs
- type LookupVPCResult
- type NATGateway
- func (*NATGateway) ElementType() reflect.Type
- func (i *NATGateway) ToNATGatewayOutput() NATGatewayOutput
- func (i *NATGateway) ToNATGatewayOutputWithContext(ctx context.Context) NATGatewayOutput
- func (i *NATGateway) ToNATGatewayPtrOutput() NATGatewayPtrOutput
- func (i *NATGateway) ToNATGatewayPtrOutputWithContext(ctx context.Context) NATGatewayPtrOutput
- type NATGatewayArgs
- type NATGatewayArray
- type NATGatewayArrayInput
- type NATGatewayArrayOutput
- func (NATGatewayArrayOutput) ElementType() reflect.Type
- func (o NATGatewayArrayOutput) Index(i pulumi.IntInput) NATGatewayOutput
- func (o NATGatewayArrayOutput) ToNATGatewayArrayOutput() NATGatewayArrayOutput
- func (o NATGatewayArrayOutput) ToNATGatewayArrayOutputWithContext(ctx context.Context) NATGatewayArrayOutput
- type NATGatewayInput
- type NATGatewayMap
- type NATGatewayMapInput
- type NATGatewayMapOutput
- func (NATGatewayMapOutput) ElementType() reflect.Type
- func (o NATGatewayMapOutput) MapIndex(k pulumi.StringInput) NATGatewayOutput
- func (o NATGatewayMapOutput) ToNATGatewayMapOutput() NATGatewayMapOutput
- func (o NATGatewayMapOutput) ToNATGatewayMapOutputWithContext(ctx context.Context) NATGatewayMapOutput
- type NATGatewayOutput
- func (NATGatewayOutput) ElementType() reflect.Type
- func (o NATGatewayOutput) ToNATGatewayOutput() NATGatewayOutput
- func (o NATGatewayOutput) ToNATGatewayOutputWithContext(ctx context.Context) NATGatewayOutput
- func (o NATGatewayOutput) ToNATGatewayPtrOutput() NATGatewayPtrOutput
- func (o NATGatewayOutput) ToNATGatewayPtrOutputWithContext(ctx context.Context) NATGatewayPtrOutput
- type NATGatewayPtrInput
- type NATGatewayPtrOutput
- type NATGatewayRule
- func (*NATGatewayRule) ElementType() reflect.Type
- func (i *NATGatewayRule) ToNATGatewayRuleOutput() NATGatewayRuleOutput
- func (i *NATGatewayRule) ToNATGatewayRuleOutputWithContext(ctx context.Context) NATGatewayRuleOutput
- func (i *NATGatewayRule) ToNATGatewayRulePtrOutput() NATGatewayRulePtrOutput
- func (i *NATGatewayRule) ToNATGatewayRulePtrOutputWithContext(ctx context.Context) NATGatewayRulePtrOutput
- type NATGatewayRuleArgs
- type NATGatewayRuleArray
- type NATGatewayRuleArrayInput
- type NATGatewayRuleArrayOutput
- func (NATGatewayRuleArrayOutput) ElementType() reflect.Type
- func (o NATGatewayRuleArrayOutput) Index(i pulumi.IntInput) NATGatewayRuleOutput
- func (o NATGatewayRuleArrayOutput) ToNATGatewayRuleArrayOutput() NATGatewayRuleArrayOutput
- func (o NATGatewayRuleArrayOutput) ToNATGatewayRuleArrayOutputWithContext(ctx context.Context) NATGatewayRuleArrayOutput
- type NATGatewayRuleInput
- type NATGatewayRuleMap
- type NATGatewayRuleMapInput
- type NATGatewayRuleMapOutput
- func (NATGatewayRuleMapOutput) ElementType() reflect.Type
- func (o NATGatewayRuleMapOutput) MapIndex(k pulumi.StringInput) NATGatewayRuleOutput
- func (o NATGatewayRuleMapOutput) ToNATGatewayRuleMapOutput() NATGatewayRuleMapOutput
- func (o NATGatewayRuleMapOutput) ToNATGatewayRuleMapOutputWithContext(ctx context.Context) NATGatewayRuleMapOutput
- type NATGatewayRuleOutput
- func (NATGatewayRuleOutput) ElementType() reflect.Type
- func (o NATGatewayRuleOutput) ToNATGatewayRuleOutput() NATGatewayRuleOutput
- func (o NATGatewayRuleOutput) ToNATGatewayRuleOutputWithContext(ctx context.Context) NATGatewayRuleOutput
- func (o NATGatewayRuleOutput) ToNATGatewayRulePtrOutput() NATGatewayRulePtrOutput
- func (o NATGatewayRuleOutput) ToNATGatewayRulePtrOutputWithContext(ctx context.Context) NATGatewayRulePtrOutput
- type NATGatewayRulePtrInput
- type NATGatewayRulePtrOutput
- type NATGatewayRuleState
- type NATGatewayState
- type Subnet
- func (*Subnet) ElementType() reflect.Type
- func (i *Subnet) ToSubnetOutput() SubnetOutput
- func (i *Subnet) ToSubnetOutputWithContext(ctx context.Context) SubnetOutput
- func (i *Subnet) ToSubnetPtrOutput() SubnetPtrOutput
- func (i *Subnet) ToSubnetPtrOutputWithContext(ctx context.Context) SubnetPtrOutput
- type SubnetArgs
- type SubnetArray
- type SubnetArrayInput
- type SubnetArrayOutput
- type SubnetInput
- type SubnetMap
- type SubnetMapInput
- type SubnetMapOutput
- type SubnetOutput
- func (SubnetOutput) ElementType() reflect.Type
- func (o SubnetOutput) ToSubnetOutput() SubnetOutput
- func (o SubnetOutput) ToSubnetOutputWithContext(ctx context.Context) SubnetOutput
- func (o SubnetOutput) ToSubnetPtrOutput() SubnetPtrOutput
- func (o SubnetOutput) ToSubnetPtrOutputWithContext(ctx context.Context) SubnetPtrOutput
- type SubnetPtrInput
- type SubnetPtrOutput
- type SubnetState
- type VIP
- type VIPArgs
- type VIPArray
- type VIPArrayInput
- type VIPArrayOutput
- type VIPInput
- type VIPMap
- type VIPMapInput
- type VIPMapOutput
- type VIPOutput
- type VIPPtrInput
- type VIPPtrOutput
- type VIPState
- type VPC
- type VPCArgs
- type VPCArray
- type VPCArrayInput
- type VPCArrayOutput
- type VPCInput
- type VPCMap
- type VPCMapInput
- type VPCMapOutput
- type VPCNetworkInfo
- type VPCNetworkInfoArgs
- type VPCNetworkInfoArray
- type VPCNetworkInfoArrayInput
- type VPCNetworkInfoArrayOutput
- func (VPCNetworkInfoArrayOutput) ElementType() reflect.Type
- func (o VPCNetworkInfoArrayOutput) Index(i pulumi.IntInput) VPCNetworkInfoOutput
- func (o VPCNetworkInfoArrayOutput) ToVPCNetworkInfoArrayOutput() VPCNetworkInfoArrayOutput
- func (o VPCNetworkInfoArrayOutput) ToVPCNetworkInfoArrayOutputWithContext(ctx context.Context) VPCNetworkInfoArrayOutput
- type VPCNetworkInfoInput
- type VPCNetworkInfoOutput
- func (o VPCNetworkInfoOutput) CidrBlock() pulumi.StringPtrOutput
- func (VPCNetworkInfoOutput) ElementType() reflect.Type
- func (o VPCNetworkInfoOutput) ToVPCNetworkInfoOutput() VPCNetworkInfoOutput
- func (o VPCNetworkInfoOutput) ToVPCNetworkInfoOutputWithContext(ctx context.Context) VPCNetworkInfoOutput
- type VPCOutput
- type VPCPeeringConnection
- func (*VPCPeeringConnection) ElementType() reflect.Type
- func (i *VPCPeeringConnection) ToVPCPeeringConnectionOutput() VPCPeeringConnectionOutput
- func (i *VPCPeeringConnection) ToVPCPeeringConnectionOutputWithContext(ctx context.Context) VPCPeeringConnectionOutput
- func (i *VPCPeeringConnection) ToVPCPeeringConnectionPtrOutput() VPCPeeringConnectionPtrOutput
- func (i *VPCPeeringConnection) ToVPCPeeringConnectionPtrOutputWithContext(ctx context.Context) VPCPeeringConnectionPtrOutput
- type VPCPeeringConnectionArgs
- type VPCPeeringConnectionArray
- type VPCPeeringConnectionArrayInput
- type VPCPeeringConnectionArrayOutput
- func (VPCPeeringConnectionArrayOutput) ElementType() reflect.Type
- func (o VPCPeeringConnectionArrayOutput) Index(i pulumi.IntInput) VPCPeeringConnectionOutput
- func (o VPCPeeringConnectionArrayOutput) ToVPCPeeringConnectionArrayOutput() VPCPeeringConnectionArrayOutput
- func (o VPCPeeringConnectionArrayOutput) ToVPCPeeringConnectionArrayOutputWithContext(ctx context.Context) VPCPeeringConnectionArrayOutput
- type VPCPeeringConnectionInput
- type VPCPeeringConnectionMap
- type VPCPeeringConnectionMapInput
- type VPCPeeringConnectionMapOutput
- func (VPCPeeringConnectionMapOutput) ElementType() reflect.Type
- func (o VPCPeeringConnectionMapOutput) MapIndex(k pulumi.StringInput) VPCPeeringConnectionOutput
- func (o VPCPeeringConnectionMapOutput) ToVPCPeeringConnectionMapOutput() VPCPeeringConnectionMapOutput
- func (o VPCPeeringConnectionMapOutput) ToVPCPeeringConnectionMapOutputWithContext(ctx context.Context) VPCPeeringConnectionMapOutput
- type VPCPeeringConnectionOutput
- func (VPCPeeringConnectionOutput) ElementType() reflect.Type
- func (o VPCPeeringConnectionOutput) ToVPCPeeringConnectionOutput() VPCPeeringConnectionOutput
- func (o VPCPeeringConnectionOutput) ToVPCPeeringConnectionOutputWithContext(ctx context.Context) VPCPeeringConnectionOutput
- func (o VPCPeeringConnectionOutput) ToVPCPeeringConnectionPtrOutput() VPCPeeringConnectionPtrOutput
- func (o VPCPeeringConnectionOutput) ToVPCPeeringConnectionPtrOutputWithContext(ctx context.Context) VPCPeeringConnectionPtrOutput
- type VPCPeeringConnectionPtrInput
- type VPCPeeringConnectionPtrOutput
- type VPCPeeringConnectionState
- type VPCPtrInput
- type VPCPtrOutput
- type VPCState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetNATGatewayNatGateway ¶
type GetNATGatewayNatGateway struct { // The time of creation for Nat Gateway, formatted in RFC3339 time string. CreateTime string `pulumi:"createTime"` // The ID of Nat Gateway. Id string `pulumi:"id"` // It is a nested type which documented below. IpSets []GetNATGatewayNatGatewayIpSet `pulumi:"ipSets"` // The name of the Nat Gateway. Name string `pulumi:"name"` // The remarks of Nat Gateway. Remark string `pulumi:"remark"` SecurityGroup string `pulumi:"securityGroup"` // The list of subnet ID under the VPC. // * `securityGroup` -The ID of the associated security group. SubnetIds []string `pulumi:"subnetIds"` // A tag assigned to the Nat Gateway. Tag string `pulumi:"tag"` // The ID of VPC linked to the Nat Gateway. VpcId string `pulumi:"vpcId"` }
type GetNATGatewayNatGatewayArgs ¶
type GetNATGatewayNatGatewayArgs struct { // The time of creation for Nat Gateway, formatted in RFC3339 time string. CreateTime pulumi.StringInput `pulumi:"createTime"` // The ID of Nat Gateway. Id pulumi.StringInput `pulumi:"id"` // It is a nested type which documented below. IpSets GetNATGatewayNatGatewayIpSetArrayInput `pulumi:"ipSets"` // The name of the Nat Gateway. Name pulumi.StringInput `pulumi:"name"` // The remarks of Nat Gateway. Remark pulumi.StringInput `pulumi:"remark"` SecurityGroup pulumi.StringInput `pulumi:"securityGroup"` // The list of subnet ID under the VPC. // * `securityGroup` -The ID of the associated security group. SubnetIds pulumi.StringArrayInput `pulumi:"subnetIds"` // A tag assigned to the Nat Gateway. Tag pulumi.StringInput `pulumi:"tag"` // The ID of VPC linked to the Nat Gateway. VpcId pulumi.StringInput `pulumi:"vpcId"` }
func (GetNATGatewayNatGatewayArgs) ElementType ¶
func (GetNATGatewayNatGatewayArgs) ElementType() reflect.Type
func (GetNATGatewayNatGatewayArgs) ToGetNATGatewayNatGatewayOutput ¶
func (i GetNATGatewayNatGatewayArgs) ToGetNATGatewayNatGatewayOutput() GetNATGatewayNatGatewayOutput
func (GetNATGatewayNatGatewayArgs) ToGetNATGatewayNatGatewayOutputWithContext ¶
func (i GetNATGatewayNatGatewayArgs) ToGetNATGatewayNatGatewayOutputWithContext(ctx context.Context) GetNATGatewayNatGatewayOutput
type GetNATGatewayNatGatewayArray ¶
type GetNATGatewayNatGatewayArray []GetNATGatewayNatGatewayInput
func (GetNATGatewayNatGatewayArray) ElementType ¶
func (GetNATGatewayNatGatewayArray) ElementType() reflect.Type
func (GetNATGatewayNatGatewayArray) ToGetNATGatewayNatGatewayArrayOutput ¶
func (i GetNATGatewayNatGatewayArray) ToGetNATGatewayNatGatewayArrayOutput() GetNATGatewayNatGatewayArrayOutput
func (GetNATGatewayNatGatewayArray) ToGetNATGatewayNatGatewayArrayOutputWithContext ¶
func (i GetNATGatewayNatGatewayArray) ToGetNATGatewayNatGatewayArrayOutputWithContext(ctx context.Context) GetNATGatewayNatGatewayArrayOutput
type GetNATGatewayNatGatewayArrayInput ¶
type GetNATGatewayNatGatewayArrayInput interface { pulumi.Input ToGetNATGatewayNatGatewayArrayOutput() GetNATGatewayNatGatewayArrayOutput ToGetNATGatewayNatGatewayArrayOutputWithContext(context.Context) GetNATGatewayNatGatewayArrayOutput }
GetNATGatewayNatGatewayArrayInput is an input type that accepts GetNATGatewayNatGatewayArray and GetNATGatewayNatGatewayArrayOutput values. You can construct a concrete instance of `GetNATGatewayNatGatewayArrayInput` via:
GetNATGatewayNatGatewayArray{ GetNATGatewayNatGatewayArgs{...} }
type GetNATGatewayNatGatewayArrayOutput ¶
type GetNATGatewayNatGatewayArrayOutput struct{ *pulumi.OutputState }
func (GetNATGatewayNatGatewayArrayOutput) ElementType ¶
func (GetNATGatewayNatGatewayArrayOutput) ElementType() reflect.Type
func (GetNATGatewayNatGatewayArrayOutput) Index ¶
func (o GetNATGatewayNatGatewayArrayOutput) Index(i pulumi.IntInput) GetNATGatewayNatGatewayOutput
func (GetNATGatewayNatGatewayArrayOutput) ToGetNATGatewayNatGatewayArrayOutput ¶
func (o GetNATGatewayNatGatewayArrayOutput) ToGetNATGatewayNatGatewayArrayOutput() GetNATGatewayNatGatewayArrayOutput
func (GetNATGatewayNatGatewayArrayOutput) ToGetNATGatewayNatGatewayArrayOutputWithContext ¶
func (o GetNATGatewayNatGatewayArrayOutput) ToGetNATGatewayNatGatewayArrayOutputWithContext(ctx context.Context) GetNATGatewayNatGatewayArrayOutput
type GetNATGatewayNatGatewayInput ¶
type GetNATGatewayNatGatewayInput interface { pulumi.Input ToGetNATGatewayNatGatewayOutput() GetNATGatewayNatGatewayOutput ToGetNATGatewayNatGatewayOutputWithContext(context.Context) GetNATGatewayNatGatewayOutput }
GetNATGatewayNatGatewayInput is an input type that accepts GetNATGatewayNatGatewayArgs and GetNATGatewayNatGatewayOutput values. You can construct a concrete instance of `GetNATGatewayNatGatewayInput` via:
GetNATGatewayNatGatewayArgs{...}
type GetNATGatewayNatGatewayIpSetArgs ¶
type GetNATGatewayNatGatewayIpSetArgs struct { // Type of Elastic IP routes. InternetType pulumi.StringInput `pulumi:"internetType"` // Elastic IP address. Ip pulumi.StringInput `pulumi:"ip"` }
func (GetNATGatewayNatGatewayIpSetArgs) ElementType ¶
func (GetNATGatewayNatGatewayIpSetArgs) ElementType() reflect.Type
func (GetNATGatewayNatGatewayIpSetArgs) ToGetNATGatewayNatGatewayIpSetOutput ¶
func (i GetNATGatewayNatGatewayIpSetArgs) ToGetNATGatewayNatGatewayIpSetOutput() GetNATGatewayNatGatewayIpSetOutput
func (GetNATGatewayNatGatewayIpSetArgs) ToGetNATGatewayNatGatewayIpSetOutputWithContext ¶
func (i GetNATGatewayNatGatewayIpSetArgs) ToGetNATGatewayNatGatewayIpSetOutputWithContext(ctx context.Context) GetNATGatewayNatGatewayIpSetOutput
type GetNATGatewayNatGatewayIpSetArray ¶
type GetNATGatewayNatGatewayIpSetArray []GetNATGatewayNatGatewayIpSetInput
func (GetNATGatewayNatGatewayIpSetArray) ElementType ¶
func (GetNATGatewayNatGatewayIpSetArray) ElementType() reflect.Type
func (GetNATGatewayNatGatewayIpSetArray) ToGetNATGatewayNatGatewayIpSetArrayOutput ¶
func (i GetNATGatewayNatGatewayIpSetArray) ToGetNATGatewayNatGatewayIpSetArrayOutput() GetNATGatewayNatGatewayIpSetArrayOutput
func (GetNATGatewayNatGatewayIpSetArray) ToGetNATGatewayNatGatewayIpSetArrayOutputWithContext ¶
func (i GetNATGatewayNatGatewayIpSetArray) ToGetNATGatewayNatGatewayIpSetArrayOutputWithContext(ctx context.Context) GetNATGatewayNatGatewayIpSetArrayOutput
type GetNATGatewayNatGatewayIpSetArrayInput ¶
type GetNATGatewayNatGatewayIpSetArrayInput interface { pulumi.Input ToGetNATGatewayNatGatewayIpSetArrayOutput() GetNATGatewayNatGatewayIpSetArrayOutput ToGetNATGatewayNatGatewayIpSetArrayOutputWithContext(context.Context) GetNATGatewayNatGatewayIpSetArrayOutput }
GetNATGatewayNatGatewayIpSetArrayInput is an input type that accepts GetNATGatewayNatGatewayIpSetArray and GetNATGatewayNatGatewayIpSetArrayOutput values. You can construct a concrete instance of `GetNATGatewayNatGatewayIpSetArrayInput` via:
GetNATGatewayNatGatewayIpSetArray{ GetNATGatewayNatGatewayIpSetArgs{...} }
type GetNATGatewayNatGatewayIpSetArrayOutput ¶
type GetNATGatewayNatGatewayIpSetArrayOutput struct{ *pulumi.OutputState }
func (GetNATGatewayNatGatewayIpSetArrayOutput) ElementType ¶
func (GetNATGatewayNatGatewayIpSetArrayOutput) ElementType() reflect.Type
func (GetNATGatewayNatGatewayIpSetArrayOutput) ToGetNATGatewayNatGatewayIpSetArrayOutput ¶
func (o GetNATGatewayNatGatewayIpSetArrayOutput) ToGetNATGatewayNatGatewayIpSetArrayOutput() GetNATGatewayNatGatewayIpSetArrayOutput
func (GetNATGatewayNatGatewayIpSetArrayOutput) ToGetNATGatewayNatGatewayIpSetArrayOutputWithContext ¶
func (o GetNATGatewayNatGatewayIpSetArrayOutput) ToGetNATGatewayNatGatewayIpSetArrayOutputWithContext(ctx context.Context) GetNATGatewayNatGatewayIpSetArrayOutput
type GetNATGatewayNatGatewayIpSetInput ¶
type GetNATGatewayNatGatewayIpSetInput interface { pulumi.Input ToGetNATGatewayNatGatewayIpSetOutput() GetNATGatewayNatGatewayIpSetOutput ToGetNATGatewayNatGatewayIpSetOutputWithContext(context.Context) GetNATGatewayNatGatewayIpSetOutput }
GetNATGatewayNatGatewayIpSetInput is an input type that accepts GetNATGatewayNatGatewayIpSetArgs and GetNATGatewayNatGatewayIpSetOutput values. You can construct a concrete instance of `GetNATGatewayNatGatewayIpSetInput` via:
GetNATGatewayNatGatewayIpSetArgs{...}
type GetNATGatewayNatGatewayIpSetOutput ¶
type GetNATGatewayNatGatewayIpSetOutput struct{ *pulumi.OutputState }
func (GetNATGatewayNatGatewayIpSetOutput) ElementType ¶
func (GetNATGatewayNatGatewayIpSetOutput) ElementType() reflect.Type
func (GetNATGatewayNatGatewayIpSetOutput) InternetType ¶
func (o GetNATGatewayNatGatewayIpSetOutput) InternetType() pulumi.StringOutput
Type of Elastic IP routes.
func (GetNATGatewayNatGatewayIpSetOutput) Ip ¶
func (o GetNATGatewayNatGatewayIpSetOutput) Ip() pulumi.StringOutput
Elastic IP address.
func (GetNATGatewayNatGatewayIpSetOutput) ToGetNATGatewayNatGatewayIpSetOutput ¶
func (o GetNATGatewayNatGatewayIpSetOutput) ToGetNATGatewayNatGatewayIpSetOutput() GetNATGatewayNatGatewayIpSetOutput
func (GetNATGatewayNatGatewayIpSetOutput) ToGetNATGatewayNatGatewayIpSetOutputWithContext ¶
func (o GetNATGatewayNatGatewayIpSetOutput) ToGetNATGatewayNatGatewayIpSetOutputWithContext(ctx context.Context) GetNATGatewayNatGatewayIpSetOutput
type GetNATGatewayNatGatewayOutput ¶
type GetNATGatewayNatGatewayOutput struct{ *pulumi.OutputState }
func (GetNATGatewayNatGatewayOutput) CreateTime ¶
func (o GetNATGatewayNatGatewayOutput) CreateTime() pulumi.StringOutput
The time of creation for Nat Gateway, formatted in RFC3339 time string.
func (GetNATGatewayNatGatewayOutput) ElementType ¶
func (GetNATGatewayNatGatewayOutput) ElementType() reflect.Type
func (GetNATGatewayNatGatewayOutput) Id ¶
func (o GetNATGatewayNatGatewayOutput) Id() pulumi.StringOutput
The ID of Nat Gateway.
func (GetNATGatewayNatGatewayOutput) IpSets ¶
func (o GetNATGatewayNatGatewayOutput) IpSets() GetNATGatewayNatGatewayIpSetArrayOutput
It is a nested type which documented below.
func (GetNATGatewayNatGatewayOutput) Name ¶
func (o GetNATGatewayNatGatewayOutput) Name() pulumi.StringOutput
The name of the Nat Gateway.
func (GetNATGatewayNatGatewayOutput) Remark ¶
func (o GetNATGatewayNatGatewayOutput) Remark() pulumi.StringOutput
The remarks of Nat Gateway.
func (GetNATGatewayNatGatewayOutput) SecurityGroup ¶
func (o GetNATGatewayNatGatewayOutput) SecurityGroup() pulumi.StringOutput
func (GetNATGatewayNatGatewayOutput) SubnetIds ¶
func (o GetNATGatewayNatGatewayOutput) SubnetIds() pulumi.StringArrayOutput
The list of subnet ID under the VPC. * `securityGroup` -The ID of the associated security group.
func (GetNATGatewayNatGatewayOutput) Tag ¶
func (o GetNATGatewayNatGatewayOutput) Tag() pulumi.StringOutput
A tag assigned to the Nat Gateway.
func (GetNATGatewayNatGatewayOutput) ToGetNATGatewayNatGatewayOutput ¶
func (o GetNATGatewayNatGatewayOutput) ToGetNATGatewayNatGatewayOutput() GetNATGatewayNatGatewayOutput
func (GetNATGatewayNatGatewayOutput) ToGetNATGatewayNatGatewayOutputWithContext ¶
func (o GetNATGatewayNatGatewayOutput) ToGetNATGatewayNatGatewayOutputWithContext(ctx context.Context) GetNATGatewayNatGatewayOutput
func (GetNATGatewayNatGatewayOutput) VpcId ¶
func (o GetNATGatewayNatGatewayOutput) VpcId() pulumi.StringOutput
The ID of VPC linked to the Nat Gateway.
type GetSubnetSubnet ¶
type GetSubnetSubnet struct { // The cidr block of the desired Subnet. CidrBlock string `pulumi:"cidrBlock"` // The time of creation of Subnet, formatted in RFC3339 time string. CreateTime string `pulumi:"createTime"` // The ID of Subnet. Id string `pulumi:"id"` // The name of Subnet. Name string `pulumi:"name"` // The remark of the Subnet. Remark string `pulumi:"remark"` // A tag assigned to Subnet. Tag string `pulumi:"tag"` }
type GetSubnetSubnetArgs ¶
type GetSubnetSubnetArgs struct { // The cidr block of the desired Subnet. CidrBlock pulumi.StringInput `pulumi:"cidrBlock"` // The time of creation of Subnet, formatted in RFC3339 time string. CreateTime pulumi.StringInput `pulumi:"createTime"` // The ID of Subnet. Id pulumi.StringInput `pulumi:"id"` // The name of Subnet. Name pulumi.StringInput `pulumi:"name"` // The remark of the Subnet. Remark pulumi.StringInput `pulumi:"remark"` // A tag assigned to Subnet. Tag pulumi.StringInput `pulumi:"tag"` }
func (GetSubnetSubnetArgs) ElementType ¶
func (GetSubnetSubnetArgs) ElementType() reflect.Type
func (GetSubnetSubnetArgs) ToGetSubnetSubnetOutput ¶
func (i GetSubnetSubnetArgs) ToGetSubnetSubnetOutput() GetSubnetSubnetOutput
func (GetSubnetSubnetArgs) ToGetSubnetSubnetOutputWithContext ¶
func (i GetSubnetSubnetArgs) ToGetSubnetSubnetOutputWithContext(ctx context.Context) GetSubnetSubnetOutput
type GetSubnetSubnetArray ¶
type GetSubnetSubnetArray []GetSubnetSubnetInput
func (GetSubnetSubnetArray) ElementType ¶
func (GetSubnetSubnetArray) ElementType() reflect.Type
func (GetSubnetSubnetArray) ToGetSubnetSubnetArrayOutput ¶
func (i GetSubnetSubnetArray) ToGetSubnetSubnetArrayOutput() GetSubnetSubnetArrayOutput
func (GetSubnetSubnetArray) ToGetSubnetSubnetArrayOutputWithContext ¶
func (i GetSubnetSubnetArray) ToGetSubnetSubnetArrayOutputWithContext(ctx context.Context) GetSubnetSubnetArrayOutput
type GetSubnetSubnetArrayInput ¶
type GetSubnetSubnetArrayInput interface { pulumi.Input ToGetSubnetSubnetArrayOutput() GetSubnetSubnetArrayOutput ToGetSubnetSubnetArrayOutputWithContext(context.Context) GetSubnetSubnetArrayOutput }
GetSubnetSubnetArrayInput is an input type that accepts GetSubnetSubnetArray and GetSubnetSubnetArrayOutput values. You can construct a concrete instance of `GetSubnetSubnetArrayInput` via:
GetSubnetSubnetArray{ GetSubnetSubnetArgs{...} }
type GetSubnetSubnetArrayOutput ¶
type GetSubnetSubnetArrayOutput struct{ *pulumi.OutputState }
func (GetSubnetSubnetArrayOutput) ElementType ¶
func (GetSubnetSubnetArrayOutput) ElementType() reflect.Type
func (GetSubnetSubnetArrayOutput) Index ¶
func (o GetSubnetSubnetArrayOutput) Index(i pulumi.IntInput) GetSubnetSubnetOutput
func (GetSubnetSubnetArrayOutput) ToGetSubnetSubnetArrayOutput ¶
func (o GetSubnetSubnetArrayOutput) ToGetSubnetSubnetArrayOutput() GetSubnetSubnetArrayOutput
func (GetSubnetSubnetArrayOutput) ToGetSubnetSubnetArrayOutputWithContext ¶
func (o GetSubnetSubnetArrayOutput) ToGetSubnetSubnetArrayOutputWithContext(ctx context.Context) GetSubnetSubnetArrayOutput
type GetSubnetSubnetInput ¶
type GetSubnetSubnetInput interface { pulumi.Input ToGetSubnetSubnetOutput() GetSubnetSubnetOutput ToGetSubnetSubnetOutputWithContext(context.Context) GetSubnetSubnetOutput }
GetSubnetSubnetInput is an input type that accepts GetSubnetSubnetArgs and GetSubnetSubnetOutput values. You can construct a concrete instance of `GetSubnetSubnetInput` via:
GetSubnetSubnetArgs{...}
type GetSubnetSubnetOutput ¶
type GetSubnetSubnetOutput struct{ *pulumi.OutputState }
func (GetSubnetSubnetOutput) CidrBlock ¶
func (o GetSubnetSubnetOutput) CidrBlock() pulumi.StringOutput
The cidr block of the desired Subnet.
func (GetSubnetSubnetOutput) CreateTime ¶
func (o GetSubnetSubnetOutput) CreateTime() pulumi.StringOutput
The time of creation of Subnet, formatted in RFC3339 time string.
func (GetSubnetSubnetOutput) ElementType ¶
func (GetSubnetSubnetOutput) ElementType() reflect.Type
func (GetSubnetSubnetOutput) Id ¶
func (o GetSubnetSubnetOutput) Id() pulumi.StringOutput
The ID of Subnet.
func (GetSubnetSubnetOutput) Name ¶
func (o GetSubnetSubnetOutput) Name() pulumi.StringOutput
The name of Subnet.
func (GetSubnetSubnetOutput) Remark ¶
func (o GetSubnetSubnetOutput) Remark() pulumi.StringOutput
The remark of the Subnet.
func (GetSubnetSubnetOutput) Tag ¶
func (o GetSubnetSubnetOutput) Tag() pulumi.StringOutput
A tag assigned to Subnet.
func (GetSubnetSubnetOutput) ToGetSubnetSubnetOutput ¶
func (o GetSubnetSubnetOutput) ToGetSubnetSubnetOutput() GetSubnetSubnetOutput
func (GetSubnetSubnetOutput) ToGetSubnetSubnetOutputWithContext ¶
func (o GetSubnetSubnetOutput) ToGetSubnetSubnetOutputWithContext(ctx context.Context) GetSubnetSubnetOutput
type GetVPCVpc ¶
type GetVPCVpc struct { // The CIDR blocks of VPC. CidrBlocks []string `pulumi:"cidrBlocks"` // The time of creation for VPC, formatted in RFC3339 time string. CreateTime string `pulumi:"createTime"` // The ID of VPC. Id string `pulumi:"id"` // The name of VPC. Name string `pulumi:"name"` // A tag assigned to VPC. Tag string `pulumi:"tag"` // The time whenever there is a change made to VPC, formatted in RFC3339 time string. UpdateTime string `pulumi:"updateTime"` }
type GetVPCVpcArgs ¶
type GetVPCVpcArgs struct { // The CIDR blocks of VPC. CidrBlocks pulumi.StringArrayInput `pulumi:"cidrBlocks"` // The time of creation for VPC, formatted in RFC3339 time string. CreateTime pulumi.StringInput `pulumi:"createTime"` // The ID of VPC. Id pulumi.StringInput `pulumi:"id"` // The name of VPC. Name pulumi.StringInput `pulumi:"name"` // A tag assigned to VPC. Tag pulumi.StringInput `pulumi:"tag"` // The time whenever there is a change made to VPC, formatted in RFC3339 time string. UpdateTime pulumi.StringInput `pulumi:"updateTime"` }
func (GetVPCVpcArgs) ElementType ¶
func (GetVPCVpcArgs) ElementType() reflect.Type
func (GetVPCVpcArgs) ToGetVPCVpcOutput ¶
func (i GetVPCVpcArgs) ToGetVPCVpcOutput() GetVPCVpcOutput
func (GetVPCVpcArgs) ToGetVPCVpcOutputWithContext ¶
func (i GetVPCVpcArgs) ToGetVPCVpcOutputWithContext(ctx context.Context) GetVPCVpcOutput
type GetVPCVpcArray ¶
type GetVPCVpcArray []GetVPCVpcInput
func (GetVPCVpcArray) ElementType ¶
func (GetVPCVpcArray) ElementType() reflect.Type
func (GetVPCVpcArray) ToGetVPCVpcArrayOutput ¶
func (i GetVPCVpcArray) ToGetVPCVpcArrayOutput() GetVPCVpcArrayOutput
func (GetVPCVpcArray) ToGetVPCVpcArrayOutputWithContext ¶
func (i GetVPCVpcArray) ToGetVPCVpcArrayOutputWithContext(ctx context.Context) GetVPCVpcArrayOutput
type GetVPCVpcArrayInput ¶
type GetVPCVpcArrayInput interface { pulumi.Input ToGetVPCVpcArrayOutput() GetVPCVpcArrayOutput ToGetVPCVpcArrayOutputWithContext(context.Context) GetVPCVpcArrayOutput }
GetVPCVpcArrayInput is an input type that accepts GetVPCVpcArray and GetVPCVpcArrayOutput values. You can construct a concrete instance of `GetVPCVpcArrayInput` via:
GetVPCVpcArray{ GetVPCVpcArgs{...} }
type GetVPCVpcArrayOutput ¶
type GetVPCVpcArrayOutput struct{ *pulumi.OutputState }
func (GetVPCVpcArrayOutput) ElementType ¶
func (GetVPCVpcArrayOutput) ElementType() reflect.Type
func (GetVPCVpcArrayOutput) Index ¶
func (o GetVPCVpcArrayOutput) Index(i pulumi.IntInput) GetVPCVpcOutput
func (GetVPCVpcArrayOutput) ToGetVPCVpcArrayOutput ¶
func (o GetVPCVpcArrayOutput) ToGetVPCVpcArrayOutput() GetVPCVpcArrayOutput
func (GetVPCVpcArrayOutput) ToGetVPCVpcArrayOutputWithContext ¶
func (o GetVPCVpcArrayOutput) ToGetVPCVpcArrayOutputWithContext(ctx context.Context) GetVPCVpcArrayOutput
type GetVPCVpcInput ¶
type GetVPCVpcInput interface { pulumi.Input ToGetVPCVpcOutput() GetVPCVpcOutput ToGetVPCVpcOutputWithContext(context.Context) GetVPCVpcOutput }
GetVPCVpcInput is an input type that accepts GetVPCVpcArgs and GetVPCVpcOutput values. You can construct a concrete instance of `GetVPCVpcInput` via:
GetVPCVpcArgs{...}
type GetVPCVpcOutput ¶
type GetVPCVpcOutput struct{ *pulumi.OutputState }
func (GetVPCVpcOutput) CidrBlocks ¶
func (o GetVPCVpcOutput) CidrBlocks() pulumi.StringArrayOutput
The CIDR blocks of VPC.
func (GetVPCVpcOutput) CreateTime ¶
func (o GetVPCVpcOutput) CreateTime() pulumi.StringOutput
The time of creation for VPC, formatted in RFC3339 time string.
func (GetVPCVpcOutput) ElementType ¶
func (GetVPCVpcOutput) ElementType() reflect.Type
func (GetVPCVpcOutput) Tag ¶
func (o GetVPCVpcOutput) Tag() pulumi.StringOutput
A tag assigned to VPC.
func (GetVPCVpcOutput) ToGetVPCVpcOutput ¶
func (o GetVPCVpcOutput) ToGetVPCVpcOutput() GetVPCVpcOutput
func (GetVPCVpcOutput) ToGetVPCVpcOutputWithContext ¶
func (o GetVPCVpcOutput) ToGetVPCVpcOutputWithContext(ctx context.Context) GetVPCVpcOutput
func (GetVPCVpcOutput) UpdateTime ¶
func (o GetVPCVpcOutput) UpdateTime() pulumi.StringOutput
The time whenever there is a change made to VPC, formatted in RFC3339 time string.
type LookupNATGatewayArgs ¶
type LookupNATGatewayArgs struct { // A list of Nat Gateway IDs, all the Nat Gateways belongs to the defined region will be retrieved if this argument is `[]`. Ids []string `pulumi:"ids"` // A regex string to filter resulting Nat Gateways by name. NameRegex *string `pulumi:"nameRegex"` OutputFile *string `pulumi:"outputFile"` }
A collection of arguments for invoking getNATGateway.
type LookupNATGatewayResult ¶
type LookupNATGatewayResult struct { // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` Ids []string `pulumi:"ids"` NameRegex *string `pulumi:"nameRegex"` // It is a nested type. Nat Gateways documented below. NatGateways []GetNATGatewayNatGateway `pulumi:"natGateways"` OutputFile *string `pulumi:"outputFile"` // Total number of Nat Gateways that satisfy the condition. TotalCount int `pulumi:"totalCount"` }
A collection of values returned by getNATGateway.
func LookupNATGateway ¶
func LookupNATGateway(ctx *pulumi.Context, args *LookupNATGatewayArgs, opts ...pulumi.InvokeOption) (*LookupNATGatewayResult, error)
This data source providers a list of Nat Gateway resources according to their ID and name.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-ucloud/sdk/go/ucloud/vpc" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { example, err := vpc.LookupNATGateway(ctx, nil, nil) if err != nil { return err } ctx.Export("first", example.NatGateways[0].Id) return nil }) }
```
type LookupSubnetArgs ¶
type LookupSubnetArgs struct { // A list of Subnet IDs, all the Subnet resources belong to this region will be retrieved if the ID is `[]`. Ids []string `pulumi:"ids"` // A regex string to filter resulting Subnet resources by name. NameRegex *string `pulumi:"nameRegex"` OutputFile *string `pulumi:"outputFile"` // A tag assigned to Subnet. Tag *string `pulumi:"tag"` // The id of the VPC that the desired Subnet belongs to. VpcId *string `pulumi:"vpcId"` }
A collection of arguments for invoking getSubnet.
type LookupSubnetResult ¶
type LookupSubnetResult struct { // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` Ids []string `pulumi:"ids"` NameRegex *string `pulumi:"nameRegex"` OutputFile *string `pulumi:"outputFile"` // It is a nested type which documented below. Subnets []GetSubnetSubnet `pulumi:"subnets"` // A tag assigned to Subnet. Tag *string `pulumi:"tag"` // Total number of Subnet resources that satisfy the condition. TotalCount int `pulumi:"totalCount"` VpcId *string `pulumi:"vpcId"` }
A collection of values returned by getSubnet.
func LookupSubnet ¶
func LookupSubnet(ctx *pulumi.Context, args *LookupSubnetArgs, opts ...pulumi.InvokeOption) (*LookupSubnetResult, error)
This data source provides a list of Subnet resources according to their Subnet ID, name and the VPC they belong to.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-ucloud/sdk/go/ucloud/vpc" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { opt0 := "uvnet-xxx" example, err := vpc.LookupSubnet(ctx, &vpc.LookupSubnetArgs{ VpcId: &opt0, }, nil) if err != nil { return err } ctx.Export("first", example.Subnets[0].Id) return nil }) }
```
type LookupVPCArgs ¶
type LookupVPCArgs struct { // A list of VPC IDs, all the VPC resources belong to this region will be retrieved if the ID is `[]`. Ids []string `pulumi:"ids"` // A regex string to filter resulting VPC resources by name. NameRegex *string `pulumi:"nameRegex"` OutputFile *string `pulumi:"outputFile"` // A tag assigned to VPC. Tag *string `pulumi:"tag"` }
A collection of arguments for invoking getVPC.
type LookupVPCResult ¶
type LookupVPCResult struct { // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` Ids []string `pulumi:"ids"` NameRegex *string `pulumi:"nameRegex"` OutputFile *string `pulumi:"outputFile"` // A tag assigned to VPC. Tag *string `pulumi:"tag"` // Total number of VPC resources that satisfy the condition. TotalCount int `pulumi:"totalCount"` // It is a nested type which documented below. Vpcs []GetVPCVpc `pulumi:"vpcs"` }
A collection of values returned by getVPC.
func LookupVPC ¶
func LookupVPC(ctx *pulumi.Context, args *LookupVPCArgs, opts ...pulumi.InvokeOption) (*LookupVPCResult, error)
This data source provides a list of VPC resources according to their VPC ID, name.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-ucloud/sdk/go/ucloud/vpc" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { example, err := vpc.LookupVPC(ctx, nil, nil) if err != nil { return err } ctx.Export("first", example.Vpcs[0].Id) return nil }) }
```
type NATGateway ¶
type NATGateway struct { pulumi.CustomResourceState // The time of creation of Nat Gateway, formatted in RFC3339 time string. CreateTime pulumi.StringOutput `pulumi:"createTime"` // The ID of eip associate to the Nat Gateway. EipId pulumi.StringOutput `pulumi:"eipId"` // The boolean value to Controls whether or not start the whitelist mode. EnableWhiteList pulumi.BoolOutput `pulumi:"enableWhiteList"` Name pulumi.StringOutput `pulumi:"name"` // The remarks of the Nat Gateway. (Default: `""`). Remark pulumi.StringOutput `pulumi:"remark"` // The ID of the associated security group. SecurityGroup pulumi.StringOutput `pulumi:"securityGroup"` // The list of subnet ID under the VPC. SubnetIds pulumi.StringArrayOutput `pulumi:"subnetIds"` // A tag assigned to Nat Gateway, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default: `Default`). // * “ Tag pulumi.StringPtrOutput `pulumi:"tag"` // The ID of VPC linked to the Nat Gateway. VpcId pulumi.StringOutput `pulumi:"vpcId"` // The white list of instance under the Nat Gateway. WhiteLists pulumi.StringArrayOutput `pulumi:"whiteLists"` }
Provides a Nat Gateway resource.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-ucloud/sdk/go/ucloud/unet" "github.com/pulumi/pulumi-ucloud/sdk/go/ucloud/vpc" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { fooVPC, err := vpc.NewVPC(ctx, "fooVPC", &vpc.VPCArgs{ Tag: pulumi.String("tf-acc"), CidrBlocks: pulumi.StringArray{ pulumi.String("192.168.0.0/16"), }, }) if err != nil { return err } fooSubnet, err := vpc.NewSubnet(ctx, "fooSubnet", &vpc.SubnetArgs{ Tag: pulumi.String("tf-acc"), CidrBlock: pulumi.String("192.168.1.0/24"), VpcId: fooVPC.ID(), }) if err != nil { return err } fooEIP, err := unet.NewEIP(ctx, "fooEIP", &unet.EIPArgs{ Bandwidth: pulumi.Int(1), InternetType: pulumi.String("bgp"), ChargeMode: pulumi.String("bandwidth"), Tag: pulumi.String("tf-acc"), }) if err != nil { return err } opt0 := "recommend_web" fooSecurityGroup, err := unet.LookupSecurityGroup(ctx, &unet.LookupSecurityGroupArgs{ Type: &opt0, }, nil) if err != nil { return err } _, err = vpc.NewNATGateway(ctx, "fooNATGateway", &vpc.NATGatewayArgs{ VpcId: fooVPC.ID(), SubnetIds: pulumi.StringArray{ fooSubnet.ID(), }, EipId: fooEIP.ID(), Tag: pulumi.String("tf-acc"), SecurityGroup: pulumi.String(fooSecurityGroup.SecurityGroups[0].Id), }) if err != nil { return err } return nil }) }
```
## Import
Nat Gateway can be imported using the `id`, e.g.
```sh
$ pulumi import ucloud:vpc/nATGateway:NATGateway example natgw-abc123456
```
func GetNATGateway ¶
func GetNATGateway(ctx *pulumi.Context, name string, id pulumi.IDInput, state *NATGatewayState, opts ...pulumi.ResourceOption) (*NATGateway, error)
GetNATGateway gets an existing NATGateway 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 NewNATGateway ¶
func NewNATGateway(ctx *pulumi.Context, name string, args *NATGatewayArgs, opts ...pulumi.ResourceOption) (*NATGateway, error)
NewNATGateway registers a new resource with the given unique name, arguments, and options.
func (*NATGateway) ElementType ¶
func (*NATGateway) ElementType() reflect.Type
func (*NATGateway) ToNATGatewayOutput ¶
func (i *NATGateway) ToNATGatewayOutput() NATGatewayOutput
func (*NATGateway) ToNATGatewayOutputWithContext ¶
func (i *NATGateway) ToNATGatewayOutputWithContext(ctx context.Context) NATGatewayOutput
func (*NATGateway) ToNATGatewayPtrOutput ¶
func (i *NATGateway) ToNATGatewayPtrOutput() NATGatewayPtrOutput
func (*NATGateway) ToNATGatewayPtrOutputWithContext ¶
func (i *NATGateway) ToNATGatewayPtrOutputWithContext(ctx context.Context) NATGatewayPtrOutput
type NATGatewayArgs ¶
type NATGatewayArgs struct { // The ID of eip associate to the Nat Gateway. EipId pulumi.StringInput // The boolean value to Controls whether or not start the whitelist mode. EnableWhiteList pulumi.BoolInput Name pulumi.StringPtrInput // The remarks of the Nat Gateway. (Default: `""`). Remark pulumi.StringPtrInput // The ID of the associated security group. SecurityGroup pulumi.StringInput // The list of subnet ID under the VPC. SubnetIds pulumi.StringArrayInput // A tag assigned to Nat Gateway, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default: `Default`). // * “ Tag pulumi.StringPtrInput // The ID of VPC linked to the Nat Gateway. VpcId pulumi.StringInput // The white list of instance under the Nat Gateway. WhiteLists pulumi.StringArrayInput }
The set of arguments for constructing a NATGateway resource.
func (NATGatewayArgs) ElementType ¶
func (NATGatewayArgs) ElementType() reflect.Type
type NATGatewayArray ¶
type NATGatewayArray []NATGatewayInput
func (NATGatewayArray) ElementType ¶
func (NATGatewayArray) ElementType() reflect.Type
func (NATGatewayArray) ToNATGatewayArrayOutput ¶
func (i NATGatewayArray) ToNATGatewayArrayOutput() NATGatewayArrayOutput
func (NATGatewayArray) ToNATGatewayArrayOutputWithContext ¶
func (i NATGatewayArray) ToNATGatewayArrayOutputWithContext(ctx context.Context) NATGatewayArrayOutput
type NATGatewayArrayInput ¶
type NATGatewayArrayInput interface { pulumi.Input ToNATGatewayArrayOutput() NATGatewayArrayOutput ToNATGatewayArrayOutputWithContext(context.Context) NATGatewayArrayOutput }
NATGatewayArrayInput is an input type that accepts NATGatewayArray and NATGatewayArrayOutput values. You can construct a concrete instance of `NATGatewayArrayInput` via:
NATGatewayArray{ NATGatewayArgs{...} }
type NATGatewayArrayOutput ¶
type NATGatewayArrayOutput struct{ *pulumi.OutputState }
func (NATGatewayArrayOutput) ElementType ¶
func (NATGatewayArrayOutput) ElementType() reflect.Type
func (NATGatewayArrayOutput) Index ¶
func (o NATGatewayArrayOutput) Index(i pulumi.IntInput) NATGatewayOutput
func (NATGatewayArrayOutput) ToNATGatewayArrayOutput ¶
func (o NATGatewayArrayOutput) ToNATGatewayArrayOutput() NATGatewayArrayOutput
func (NATGatewayArrayOutput) ToNATGatewayArrayOutputWithContext ¶
func (o NATGatewayArrayOutput) ToNATGatewayArrayOutputWithContext(ctx context.Context) NATGatewayArrayOutput
type NATGatewayInput ¶
type NATGatewayInput interface { pulumi.Input ToNATGatewayOutput() NATGatewayOutput ToNATGatewayOutputWithContext(ctx context.Context) NATGatewayOutput }
type NATGatewayMap ¶
type NATGatewayMap map[string]NATGatewayInput
func (NATGatewayMap) ElementType ¶
func (NATGatewayMap) ElementType() reflect.Type
func (NATGatewayMap) ToNATGatewayMapOutput ¶
func (i NATGatewayMap) ToNATGatewayMapOutput() NATGatewayMapOutput
func (NATGatewayMap) ToNATGatewayMapOutputWithContext ¶
func (i NATGatewayMap) ToNATGatewayMapOutputWithContext(ctx context.Context) NATGatewayMapOutput
type NATGatewayMapInput ¶
type NATGatewayMapInput interface { pulumi.Input ToNATGatewayMapOutput() NATGatewayMapOutput ToNATGatewayMapOutputWithContext(context.Context) NATGatewayMapOutput }
NATGatewayMapInput is an input type that accepts NATGatewayMap and NATGatewayMapOutput values. You can construct a concrete instance of `NATGatewayMapInput` via:
NATGatewayMap{ "key": NATGatewayArgs{...} }
type NATGatewayMapOutput ¶
type NATGatewayMapOutput struct{ *pulumi.OutputState }
func (NATGatewayMapOutput) ElementType ¶
func (NATGatewayMapOutput) ElementType() reflect.Type
func (NATGatewayMapOutput) MapIndex ¶
func (o NATGatewayMapOutput) MapIndex(k pulumi.StringInput) NATGatewayOutput
func (NATGatewayMapOutput) ToNATGatewayMapOutput ¶
func (o NATGatewayMapOutput) ToNATGatewayMapOutput() NATGatewayMapOutput
func (NATGatewayMapOutput) ToNATGatewayMapOutputWithContext ¶
func (o NATGatewayMapOutput) ToNATGatewayMapOutputWithContext(ctx context.Context) NATGatewayMapOutput
type NATGatewayOutput ¶
type NATGatewayOutput struct {
*pulumi.OutputState
}
func (NATGatewayOutput) ElementType ¶
func (NATGatewayOutput) ElementType() reflect.Type
func (NATGatewayOutput) ToNATGatewayOutput ¶
func (o NATGatewayOutput) ToNATGatewayOutput() NATGatewayOutput
func (NATGatewayOutput) ToNATGatewayOutputWithContext ¶
func (o NATGatewayOutput) ToNATGatewayOutputWithContext(ctx context.Context) NATGatewayOutput
func (NATGatewayOutput) ToNATGatewayPtrOutput ¶
func (o NATGatewayOutput) ToNATGatewayPtrOutput() NATGatewayPtrOutput
func (NATGatewayOutput) ToNATGatewayPtrOutputWithContext ¶
func (o NATGatewayOutput) ToNATGatewayPtrOutputWithContext(ctx context.Context) NATGatewayPtrOutput
type NATGatewayPtrInput ¶
type NATGatewayPtrInput interface { pulumi.Input ToNATGatewayPtrOutput() NATGatewayPtrOutput ToNATGatewayPtrOutputWithContext(ctx context.Context) NATGatewayPtrOutput }
type NATGatewayPtrOutput ¶
type NATGatewayPtrOutput struct {
*pulumi.OutputState
}
func (NATGatewayPtrOutput) ElementType ¶
func (NATGatewayPtrOutput) ElementType() reflect.Type
func (NATGatewayPtrOutput) ToNATGatewayPtrOutput ¶
func (o NATGatewayPtrOutput) ToNATGatewayPtrOutput() NATGatewayPtrOutput
func (NATGatewayPtrOutput) ToNATGatewayPtrOutputWithContext ¶
func (o NATGatewayPtrOutput) ToNATGatewayPtrOutputWithContext(ctx context.Context) NATGatewayPtrOutput
type NATGatewayRule ¶
type NATGatewayRule struct { pulumi.CustomResourceState // The private ip of instance bound to the jNAT gateway. DstIp pulumi.StringOutput `pulumi:"dstIp"` // The range of port numbers of the private ip, range: 1-65535. (eg: `port` or `port1-port2`). DstPortRange pulumi.StringOutput `pulumi:"dstPortRange"` Name pulumi.StringOutput `pulumi:"name"` // The ID of the Nat Gateway. NatGatewayId pulumi.StringOutput `pulumi:"natGatewayId"` // The protocol of the Nat Gateway Rule. Possible values: `tcp`, `udp`. Protocol pulumi.StringOutput `pulumi:"protocol"` // The ID of eip associate to the Nat Gateway. SrcEipId pulumi.StringOutput `pulumi:"srcEipId"` // The range of port numbers of the eip, range: 1-65535. (eg: `port` or `port1-port2`). SrcPortRange pulumi.StringOutput `pulumi:"srcPortRange"` }
Provides a Nat Gateway resource.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-ucloud/sdk/go/ucloud/uaccount" "github.com/pulumi/pulumi-ucloud/sdk/go/ucloud/uhost" "github.com/pulumi/pulumi-ucloud/sdk/go/ucloud/unet" "github.com/pulumi/pulumi-ucloud/sdk/go/ucloud/vpc" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { fooVPC, err := vpc.NewVPC(ctx, "fooVPC", &vpc.VPCArgs{ Tag: pulumi.String("tf-acc"), CidrBlocks: pulumi.StringArray{ pulumi.String("192.168.0.0/16"), }, }) if err != nil { return err } fooSubnet, err := vpc.NewSubnet(ctx, "fooSubnet", &vpc.SubnetArgs{ Tag: pulumi.String("tf-acc"), CidrBlock: pulumi.String("192.168.1.0/24"), VpcId: fooVPC.ID(), }) if err != nil { return err } fooEIP, err := unet.NewEIP(ctx, "fooEIP", &unet.EIPArgs{ Bandwidth: pulumi.Int(1), InternetType: pulumi.String("bgp"), ChargeMode: pulumi.String("bandwidth"), Tag: pulumi.String("tf-acc"), }) if err != nil { return err } opt0 := "recommend_web" fooSecurityGroup, err := unet.LookupSecurityGroup(ctx, &unet.LookupSecurityGroupArgs{ Type: &opt0, }, nil) if err != nil { return err } defaultZone, err := uaccount.GetZone(ctx, nil, nil) if err != nil { return err } opt1 := defaultZone.Zones[0].Id opt2 := "^CentOS 7.[1-2] 64" opt3 := "base" defaultImage, err := uhost.GetImage(ctx, &uhost.GetImageArgs{ AvailabilityZone: &opt1, NameRegex: &opt2, ImageType: &opt3, }, nil) if err != nil { return err } fooInstance, err := uhost.NewInstance(ctx, "fooInstance", &uhost.InstanceArgs{ VpcId: fooVPC.ID(), SubnetId: fooSubnet.ID(), AvailabilityZone: pulumi.String(defaultZone.Zones[0].Id), ImageId: pulumi.String(defaultImage.Images[0].Id), InstanceType: pulumi.String("n-basic-1"), ChargeType: pulumi.String("dynamic"), Tag: pulumi.String("tf-acc"), }) if err != nil { return err } fooNATGateway, err := vpc.NewNATGateway(ctx, "fooNATGateway", &vpc.NATGatewayArgs{ VpcId: fooVPC.ID(), SubnetIds: pulumi.StringArray{ fooSubnet.ID(), }, EipId: fooEIP.ID(), Tag: pulumi.String("tf-acc"), EnableWhiteList: pulumi.Bool(false), SecurityGroup: pulumi.String(fooSecurityGroup.SecurityGroups[0].Id), }) if err != nil { return err } _, err = vpc.NewNATGatewayRule(ctx, "fooNATGatewayRule", &vpc.NATGatewayRuleArgs{ NatGatewayId: fooNATGateway.ID(), Protocol: pulumi.String("tcp"), SrcEipId: fooEIP.ID(), SrcPortRange: pulumi.String("88"), DstIp: fooInstance.PrivateIp, DstPortRange: pulumi.String("80"), }) if err != nil { return err } _, err = vpc.NewNATGatewayRule(ctx, "bar", &vpc.NATGatewayRuleArgs{ NatGatewayId: fooNATGateway.ID(), Protocol: pulumi.String("tcp"), SrcEipId: fooEIP.ID(), SrcPortRange: pulumi.String("90-100"), DstIp: fooInstance.PrivateIp, DstPortRange: pulumi.String("90-100"), }) if err != nil { return err } return nil }) }
```
func GetNATGatewayRule ¶
func GetNATGatewayRule(ctx *pulumi.Context, name string, id pulumi.IDInput, state *NATGatewayRuleState, opts ...pulumi.ResourceOption) (*NATGatewayRule, error)
GetNATGatewayRule gets an existing NATGatewayRule 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 NewNATGatewayRule ¶
func NewNATGatewayRule(ctx *pulumi.Context, name string, args *NATGatewayRuleArgs, opts ...pulumi.ResourceOption) (*NATGatewayRule, error)
NewNATGatewayRule registers a new resource with the given unique name, arguments, and options.
func (*NATGatewayRule) ElementType ¶
func (*NATGatewayRule) ElementType() reflect.Type
func (*NATGatewayRule) ToNATGatewayRuleOutput ¶
func (i *NATGatewayRule) ToNATGatewayRuleOutput() NATGatewayRuleOutput
func (*NATGatewayRule) ToNATGatewayRuleOutputWithContext ¶
func (i *NATGatewayRule) ToNATGatewayRuleOutputWithContext(ctx context.Context) NATGatewayRuleOutput
func (*NATGatewayRule) ToNATGatewayRulePtrOutput ¶
func (i *NATGatewayRule) ToNATGatewayRulePtrOutput() NATGatewayRulePtrOutput
func (*NATGatewayRule) ToNATGatewayRulePtrOutputWithContext ¶
func (i *NATGatewayRule) ToNATGatewayRulePtrOutputWithContext(ctx context.Context) NATGatewayRulePtrOutput
type NATGatewayRuleArgs ¶
type NATGatewayRuleArgs struct { // The private ip of instance bound to the jNAT gateway. DstIp pulumi.StringInput // The range of port numbers of the private ip, range: 1-65535. (eg: `port` or `port1-port2`). DstPortRange pulumi.StringInput Name pulumi.StringPtrInput // The ID of the Nat Gateway. NatGatewayId pulumi.StringInput // The protocol of the Nat Gateway Rule. Possible values: `tcp`, `udp`. Protocol pulumi.StringInput // The ID of eip associate to the Nat Gateway. SrcEipId pulumi.StringInput // The range of port numbers of the eip, range: 1-65535. (eg: `port` or `port1-port2`). SrcPortRange pulumi.StringInput }
The set of arguments for constructing a NATGatewayRule resource.
func (NATGatewayRuleArgs) ElementType ¶
func (NATGatewayRuleArgs) ElementType() reflect.Type
type NATGatewayRuleArray ¶
type NATGatewayRuleArray []NATGatewayRuleInput
func (NATGatewayRuleArray) ElementType ¶
func (NATGatewayRuleArray) ElementType() reflect.Type
func (NATGatewayRuleArray) ToNATGatewayRuleArrayOutput ¶
func (i NATGatewayRuleArray) ToNATGatewayRuleArrayOutput() NATGatewayRuleArrayOutput
func (NATGatewayRuleArray) ToNATGatewayRuleArrayOutputWithContext ¶
func (i NATGatewayRuleArray) ToNATGatewayRuleArrayOutputWithContext(ctx context.Context) NATGatewayRuleArrayOutput
type NATGatewayRuleArrayInput ¶
type NATGatewayRuleArrayInput interface { pulumi.Input ToNATGatewayRuleArrayOutput() NATGatewayRuleArrayOutput ToNATGatewayRuleArrayOutputWithContext(context.Context) NATGatewayRuleArrayOutput }
NATGatewayRuleArrayInput is an input type that accepts NATGatewayRuleArray and NATGatewayRuleArrayOutput values. You can construct a concrete instance of `NATGatewayRuleArrayInput` via:
NATGatewayRuleArray{ NATGatewayRuleArgs{...} }
type NATGatewayRuleArrayOutput ¶
type NATGatewayRuleArrayOutput struct{ *pulumi.OutputState }
func (NATGatewayRuleArrayOutput) ElementType ¶
func (NATGatewayRuleArrayOutput) ElementType() reflect.Type
func (NATGatewayRuleArrayOutput) Index ¶
func (o NATGatewayRuleArrayOutput) Index(i pulumi.IntInput) NATGatewayRuleOutput
func (NATGatewayRuleArrayOutput) ToNATGatewayRuleArrayOutput ¶
func (o NATGatewayRuleArrayOutput) ToNATGatewayRuleArrayOutput() NATGatewayRuleArrayOutput
func (NATGatewayRuleArrayOutput) ToNATGatewayRuleArrayOutputWithContext ¶
func (o NATGatewayRuleArrayOutput) ToNATGatewayRuleArrayOutputWithContext(ctx context.Context) NATGatewayRuleArrayOutput
type NATGatewayRuleInput ¶
type NATGatewayRuleInput interface { pulumi.Input ToNATGatewayRuleOutput() NATGatewayRuleOutput ToNATGatewayRuleOutputWithContext(ctx context.Context) NATGatewayRuleOutput }
type NATGatewayRuleMap ¶
type NATGatewayRuleMap map[string]NATGatewayRuleInput
func (NATGatewayRuleMap) ElementType ¶
func (NATGatewayRuleMap) ElementType() reflect.Type
func (NATGatewayRuleMap) ToNATGatewayRuleMapOutput ¶
func (i NATGatewayRuleMap) ToNATGatewayRuleMapOutput() NATGatewayRuleMapOutput
func (NATGatewayRuleMap) ToNATGatewayRuleMapOutputWithContext ¶
func (i NATGatewayRuleMap) ToNATGatewayRuleMapOutputWithContext(ctx context.Context) NATGatewayRuleMapOutput
type NATGatewayRuleMapInput ¶
type NATGatewayRuleMapInput interface { pulumi.Input ToNATGatewayRuleMapOutput() NATGatewayRuleMapOutput ToNATGatewayRuleMapOutputWithContext(context.Context) NATGatewayRuleMapOutput }
NATGatewayRuleMapInput is an input type that accepts NATGatewayRuleMap and NATGatewayRuleMapOutput values. You can construct a concrete instance of `NATGatewayRuleMapInput` via:
NATGatewayRuleMap{ "key": NATGatewayRuleArgs{...} }
type NATGatewayRuleMapOutput ¶
type NATGatewayRuleMapOutput struct{ *pulumi.OutputState }
func (NATGatewayRuleMapOutput) ElementType ¶
func (NATGatewayRuleMapOutput) ElementType() reflect.Type
func (NATGatewayRuleMapOutput) MapIndex ¶
func (o NATGatewayRuleMapOutput) MapIndex(k pulumi.StringInput) NATGatewayRuleOutput
func (NATGatewayRuleMapOutput) ToNATGatewayRuleMapOutput ¶
func (o NATGatewayRuleMapOutput) ToNATGatewayRuleMapOutput() NATGatewayRuleMapOutput
func (NATGatewayRuleMapOutput) ToNATGatewayRuleMapOutputWithContext ¶
func (o NATGatewayRuleMapOutput) ToNATGatewayRuleMapOutputWithContext(ctx context.Context) NATGatewayRuleMapOutput
type NATGatewayRuleOutput ¶
type NATGatewayRuleOutput struct {
*pulumi.OutputState
}
func (NATGatewayRuleOutput) ElementType ¶
func (NATGatewayRuleOutput) ElementType() reflect.Type
func (NATGatewayRuleOutput) ToNATGatewayRuleOutput ¶
func (o NATGatewayRuleOutput) ToNATGatewayRuleOutput() NATGatewayRuleOutput
func (NATGatewayRuleOutput) ToNATGatewayRuleOutputWithContext ¶
func (o NATGatewayRuleOutput) ToNATGatewayRuleOutputWithContext(ctx context.Context) NATGatewayRuleOutput
func (NATGatewayRuleOutput) ToNATGatewayRulePtrOutput ¶
func (o NATGatewayRuleOutput) ToNATGatewayRulePtrOutput() NATGatewayRulePtrOutput
func (NATGatewayRuleOutput) ToNATGatewayRulePtrOutputWithContext ¶
func (o NATGatewayRuleOutput) ToNATGatewayRulePtrOutputWithContext(ctx context.Context) NATGatewayRulePtrOutput
type NATGatewayRulePtrInput ¶
type NATGatewayRulePtrInput interface { pulumi.Input ToNATGatewayRulePtrOutput() NATGatewayRulePtrOutput ToNATGatewayRulePtrOutputWithContext(ctx context.Context) NATGatewayRulePtrOutput }
type NATGatewayRulePtrOutput ¶
type NATGatewayRulePtrOutput struct {
*pulumi.OutputState
}
func (NATGatewayRulePtrOutput) ElementType ¶
func (NATGatewayRulePtrOutput) ElementType() reflect.Type
func (NATGatewayRulePtrOutput) ToNATGatewayRulePtrOutput ¶
func (o NATGatewayRulePtrOutput) ToNATGatewayRulePtrOutput() NATGatewayRulePtrOutput
func (NATGatewayRulePtrOutput) ToNATGatewayRulePtrOutputWithContext ¶
func (o NATGatewayRulePtrOutput) ToNATGatewayRulePtrOutputWithContext(ctx context.Context) NATGatewayRulePtrOutput
type NATGatewayRuleState ¶
type NATGatewayRuleState struct { // The private ip of instance bound to the jNAT gateway. DstIp pulumi.StringPtrInput // The range of port numbers of the private ip, range: 1-65535. (eg: `port` or `port1-port2`). DstPortRange pulumi.StringPtrInput Name pulumi.StringPtrInput // The ID of the Nat Gateway. NatGatewayId pulumi.StringPtrInput // The protocol of the Nat Gateway Rule. Possible values: `tcp`, `udp`. Protocol pulumi.StringPtrInput // The ID of eip associate to the Nat Gateway. SrcEipId pulumi.StringPtrInput // The range of port numbers of the eip, range: 1-65535. (eg: `port` or `port1-port2`). SrcPortRange pulumi.StringPtrInput }
func (NATGatewayRuleState) ElementType ¶
func (NATGatewayRuleState) ElementType() reflect.Type
type NATGatewayState ¶
type NATGatewayState struct { // The time of creation of Nat Gateway, formatted in RFC3339 time string. CreateTime pulumi.StringPtrInput // The ID of eip associate to the Nat Gateway. EipId pulumi.StringPtrInput // The boolean value to Controls whether or not start the whitelist mode. EnableWhiteList pulumi.BoolPtrInput Name pulumi.StringPtrInput // The remarks of the Nat Gateway. (Default: `""`). Remark pulumi.StringPtrInput // The ID of the associated security group. SecurityGroup pulumi.StringPtrInput // The list of subnet ID under the VPC. SubnetIds pulumi.StringArrayInput // A tag assigned to Nat Gateway, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default: `Default`). // * “ Tag pulumi.StringPtrInput // The ID of VPC linked to the Nat Gateway. VpcId pulumi.StringPtrInput // The white list of instance under the Nat Gateway. WhiteLists pulumi.StringArrayInput }
func (NATGatewayState) ElementType ¶
func (NATGatewayState) ElementType() reflect.Type
type Subnet ¶
type Subnet struct { pulumi.CustomResourceState // The cidr block of the desired subnet, format in "0.0.0.0/0", such as: `192.168.0.0/24`. CidrBlock pulumi.StringOutput `pulumi:"cidrBlock"` // The time of creation of subnet, formatted in RFC3339 time string. CreateTime pulumi.StringOutput `pulumi:"createTime"` Name pulumi.StringOutput `pulumi:"name"` // The remarks of the subnet. (Default: `""`). Remark pulumi.StringOutput `pulumi:"remark"` // A tag assigned to subnet, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default: `Default`). Tag pulumi.StringPtrOutput `pulumi:"tag"` // The id of the VPC that the desired subnet belongs to. VpcId pulumi.StringOutput `pulumi:"vpcId"` }
Provides a Subnet resource under VPC resource.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-ucloud/sdk/go/ucloud/vpc" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := vpc.NewVPC(ctx, "_default", &vpc.VPCArgs{ Tag: pulumi.String("tf-example"), CidrBlocks: pulumi.StringArray{ pulumi.String("192.168.0.0/16"), }, }) if err != nil { return err } _, err = vpc.NewSubnet(ctx, "example", &vpc.SubnetArgs{ Tag: pulumi.String("tf-example"), CidrBlock: pulumi.String("192.168.1.0/24"), VpcId: _default.ID(), }) if err != nil { return err } return nil }) }
```
## Import
Subnet can be imported using the `id`, e.g.
```sh
$ pulumi import ucloud:vpc/subnet:Subnet example subnet-abc123456
```
func GetSubnet ¶
func GetSubnet(ctx *pulumi.Context, name string, id pulumi.IDInput, state *SubnetState, opts ...pulumi.ResourceOption) (*Subnet, error)
GetSubnet gets an existing Subnet 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 NewSubnet ¶
func NewSubnet(ctx *pulumi.Context, name string, args *SubnetArgs, opts ...pulumi.ResourceOption) (*Subnet, error)
NewSubnet registers a new resource with the given unique name, arguments, and options.
func (*Subnet) ElementType ¶
func (*Subnet) ToSubnetOutput ¶
func (i *Subnet) ToSubnetOutput() SubnetOutput
func (*Subnet) ToSubnetOutputWithContext ¶
func (i *Subnet) ToSubnetOutputWithContext(ctx context.Context) SubnetOutput
func (*Subnet) ToSubnetPtrOutput ¶
func (i *Subnet) ToSubnetPtrOutput() SubnetPtrOutput
func (*Subnet) ToSubnetPtrOutputWithContext ¶
func (i *Subnet) ToSubnetPtrOutputWithContext(ctx context.Context) SubnetPtrOutput
type SubnetArgs ¶
type SubnetArgs struct { // The cidr block of the desired subnet, format in "0.0.0.0/0", such as: `192.168.0.0/24`. CidrBlock pulumi.StringInput Name pulumi.StringPtrInput // The remarks of the subnet. (Default: `""`). Remark pulumi.StringPtrInput // A tag assigned to subnet, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default: `Default`). Tag pulumi.StringPtrInput // The id of the VPC that the desired subnet belongs to. VpcId pulumi.StringInput }
The set of arguments for constructing a Subnet resource.
func (SubnetArgs) ElementType ¶
func (SubnetArgs) ElementType() reflect.Type
type SubnetArray ¶
type SubnetArray []SubnetInput
func (SubnetArray) ElementType ¶
func (SubnetArray) ElementType() reflect.Type
func (SubnetArray) ToSubnetArrayOutput ¶
func (i SubnetArray) ToSubnetArrayOutput() SubnetArrayOutput
func (SubnetArray) ToSubnetArrayOutputWithContext ¶
func (i SubnetArray) ToSubnetArrayOutputWithContext(ctx context.Context) SubnetArrayOutput
type SubnetArrayInput ¶
type SubnetArrayInput interface { pulumi.Input ToSubnetArrayOutput() SubnetArrayOutput ToSubnetArrayOutputWithContext(context.Context) SubnetArrayOutput }
SubnetArrayInput is an input type that accepts SubnetArray and SubnetArrayOutput values. You can construct a concrete instance of `SubnetArrayInput` via:
SubnetArray{ SubnetArgs{...} }
type SubnetArrayOutput ¶
type SubnetArrayOutput struct{ *pulumi.OutputState }
func (SubnetArrayOutput) ElementType ¶
func (SubnetArrayOutput) ElementType() reflect.Type
func (SubnetArrayOutput) Index ¶
func (o SubnetArrayOutput) Index(i pulumi.IntInput) SubnetOutput
func (SubnetArrayOutput) ToSubnetArrayOutput ¶
func (o SubnetArrayOutput) ToSubnetArrayOutput() SubnetArrayOutput
func (SubnetArrayOutput) ToSubnetArrayOutputWithContext ¶
func (o SubnetArrayOutput) ToSubnetArrayOutputWithContext(ctx context.Context) SubnetArrayOutput
type SubnetInput ¶
type SubnetInput interface { pulumi.Input ToSubnetOutput() SubnetOutput ToSubnetOutputWithContext(ctx context.Context) SubnetOutput }
type SubnetMap ¶
type SubnetMap map[string]SubnetInput
func (SubnetMap) ElementType ¶
func (SubnetMap) ToSubnetMapOutput ¶
func (i SubnetMap) ToSubnetMapOutput() SubnetMapOutput
func (SubnetMap) ToSubnetMapOutputWithContext ¶
func (i SubnetMap) ToSubnetMapOutputWithContext(ctx context.Context) SubnetMapOutput
type SubnetMapInput ¶
type SubnetMapInput interface { pulumi.Input ToSubnetMapOutput() SubnetMapOutput ToSubnetMapOutputWithContext(context.Context) SubnetMapOutput }
SubnetMapInput is an input type that accepts SubnetMap and SubnetMapOutput values. You can construct a concrete instance of `SubnetMapInput` via:
SubnetMap{ "key": SubnetArgs{...} }
type SubnetMapOutput ¶
type SubnetMapOutput struct{ *pulumi.OutputState }
func (SubnetMapOutput) ElementType ¶
func (SubnetMapOutput) ElementType() reflect.Type
func (SubnetMapOutput) MapIndex ¶
func (o SubnetMapOutput) MapIndex(k pulumi.StringInput) SubnetOutput
func (SubnetMapOutput) ToSubnetMapOutput ¶
func (o SubnetMapOutput) ToSubnetMapOutput() SubnetMapOutput
func (SubnetMapOutput) ToSubnetMapOutputWithContext ¶
func (o SubnetMapOutput) ToSubnetMapOutputWithContext(ctx context.Context) SubnetMapOutput
type SubnetOutput ¶
type SubnetOutput struct {
*pulumi.OutputState
}
func (SubnetOutput) ElementType ¶
func (SubnetOutput) ElementType() reflect.Type
func (SubnetOutput) ToSubnetOutput ¶
func (o SubnetOutput) ToSubnetOutput() SubnetOutput
func (SubnetOutput) ToSubnetOutputWithContext ¶
func (o SubnetOutput) ToSubnetOutputWithContext(ctx context.Context) SubnetOutput
func (SubnetOutput) ToSubnetPtrOutput ¶
func (o SubnetOutput) ToSubnetPtrOutput() SubnetPtrOutput
func (SubnetOutput) ToSubnetPtrOutputWithContext ¶
func (o SubnetOutput) ToSubnetPtrOutputWithContext(ctx context.Context) SubnetPtrOutput
type SubnetPtrInput ¶
type SubnetPtrInput interface { pulumi.Input ToSubnetPtrOutput() SubnetPtrOutput ToSubnetPtrOutputWithContext(ctx context.Context) SubnetPtrOutput }
type SubnetPtrOutput ¶
type SubnetPtrOutput struct {
*pulumi.OutputState
}
func (SubnetPtrOutput) ElementType ¶
func (SubnetPtrOutput) ElementType() reflect.Type
func (SubnetPtrOutput) ToSubnetPtrOutput ¶
func (o SubnetPtrOutput) ToSubnetPtrOutput() SubnetPtrOutput
func (SubnetPtrOutput) ToSubnetPtrOutputWithContext ¶
func (o SubnetPtrOutput) ToSubnetPtrOutputWithContext(ctx context.Context) SubnetPtrOutput
type SubnetState ¶
type SubnetState struct { // The cidr block of the desired subnet, format in "0.0.0.0/0", such as: `192.168.0.0/24`. CidrBlock pulumi.StringPtrInput // The time of creation of subnet, formatted in RFC3339 time string. CreateTime pulumi.StringPtrInput Name pulumi.StringPtrInput // The remarks of the subnet. (Default: `""`). Remark pulumi.StringPtrInput // A tag assigned to subnet, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default: `Default`). Tag pulumi.StringPtrInput // The id of the VPC that the desired subnet belongs to. VpcId pulumi.StringPtrInput }
func (SubnetState) ElementType ¶
func (SubnetState) ElementType() reflect.Type
type VIP ¶
type VIP struct { pulumi.CustomResourceState // The time of creation for VIP, formatted in RFC3339 time string. CreateTime pulumi.StringOutput `pulumi:"createTime"` // The ip address of the VIP. IpAddress pulumi.StringOutput `pulumi:"ipAddress"` Name pulumi.StringOutput `pulumi:"name"` // The remarks of the VIP. (Default: `""`). Remark pulumi.StringOutput `pulumi:"remark"` // The ID of subnet. If defined `vpcId`, the `subnetId` is Required. SubnetId pulumi.StringOutput `pulumi:"subnetId"` // A tag assigned to VIP, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default: `Default`). Tag pulumi.StringPtrOutput `pulumi:"tag"` // The ID of VPC linked to the VIP. VpcId pulumi.StringOutput `pulumi:"vpcId"` }
Provides a VIP resource.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-ucloud/sdk/go/ucloud/vpc" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { fooVPC, err := vpc.NewVPC(ctx, "fooVPC", &vpc.VPCArgs{ Tag: pulumi.String("tf-acc"), CidrBlocks: pulumi.StringArray{ pulumi.String("192.168.0.0/16"), }, }) if err != nil { return err } fooSubnet, err := vpc.NewSubnet(ctx, "fooSubnet", &vpc.SubnetArgs{ Tag: pulumi.String("tf-acc"), CidrBlock: pulumi.String("192.168.1.0/24"), VpcId: fooVPC.ID(), }) if err != nil { return err } _, err = vpc.NewVIP(ctx, "fooVIP", &vpc.VIPArgs{ VpcId: fooVPC.ID(), SubnetId: fooSubnet.ID(), Remark: pulumi.String("test"), }) if err != nil { return err } return nil }) }
```
func GetVIP ¶
func GetVIP(ctx *pulumi.Context, name string, id pulumi.IDInput, state *VIPState, opts ...pulumi.ResourceOption) (*VIP, error)
GetVIP gets an existing VIP 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 NewVIP ¶
func NewVIP(ctx *pulumi.Context, name string, args *VIPArgs, opts ...pulumi.ResourceOption) (*VIP, error)
NewVIP registers a new resource with the given unique name, arguments, and options.
func (*VIP) ElementType ¶
func (*VIP) ToVIPOutput ¶
func (*VIP) ToVIPOutputWithContext ¶
func (*VIP) ToVIPPtrOutput ¶
func (i *VIP) ToVIPPtrOutput() VIPPtrOutput
func (*VIP) ToVIPPtrOutputWithContext ¶
func (i *VIP) ToVIPPtrOutputWithContext(ctx context.Context) VIPPtrOutput
type VIPArgs ¶
type VIPArgs struct { Name pulumi.StringPtrInput // The remarks of the VIP. (Default: `""`). Remark pulumi.StringPtrInput // The ID of subnet. If defined `vpcId`, the `subnetId` is Required. SubnetId pulumi.StringInput // A tag assigned to VIP, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default: `Default`). Tag pulumi.StringPtrInput // The ID of VPC linked to the VIP. VpcId pulumi.StringInput }
The set of arguments for constructing a VIP resource.
func (VIPArgs) ElementType ¶
type VIPArray ¶
type VIPArray []VIPInput
func (VIPArray) ElementType ¶
func (VIPArray) ToVIPArrayOutput ¶
func (i VIPArray) ToVIPArrayOutput() VIPArrayOutput
func (VIPArray) ToVIPArrayOutputWithContext ¶
func (i VIPArray) ToVIPArrayOutputWithContext(ctx context.Context) VIPArrayOutput
type VIPArrayInput ¶
type VIPArrayInput interface { pulumi.Input ToVIPArrayOutput() VIPArrayOutput ToVIPArrayOutputWithContext(context.Context) VIPArrayOutput }
VIPArrayInput is an input type that accepts VIPArray and VIPArrayOutput values. You can construct a concrete instance of `VIPArrayInput` via:
VIPArray{ VIPArgs{...} }
type VIPArrayOutput ¶
type VIPArrayOutput struct{ *pulumi.OutputState }
func (VIPArrayOutput) ElementType ¶
func (VIPArrayOutput) ElementType() reflect.Type
func (VIPArrayOutput) ToVIPArrayOutput ¶
func (o VIPArrayOutput) ToVIPArrayOutput() VIPArrayOutput
func (VIPArrayOutput) ToVIPArrayOutputWithContext ¶
func (o VIPArrayOutput) ToVIPArrayOutputWithContext(ctx context.Context) VIPArrayOutput
type VIPMap ¶
func (VIPMap) ElementType ¶
func (VIPMap) ToVIPMapOutput ¶
func (i VIPMap) ToVIPMapOutput() VIPMapOutput
func (VIPMap) ToVIPMapOutputWithContext ¶
func (i VIPMap) ToVIPMapOutputWithContext(ctx context.Context) VIPMapOutput
type VIPMapInput ¶
type VIPMapInput interface { pulumi.Input ToVIPMapOutput() VIPMapOutput ToVIPMapOutputWithContext(context.Context) VIPMapOutput }
VIPMapInput is an input type that accepts VIPMap and VIPMapOutput values. You can construct a concrete instance of `VIPMapInput` via:
VIPMap{ "key": VIPArgs{...} }
type VIPMapOutput ¶
type VIPMapOutput struct{ *pulumi.OutputState }
func (VIPMapOutput) ElementType ¶
func (VIPMapOutput) ElementType() reflect.Type
func (VIPMapOutput) MapIndex ¶
func (o VIPMapOutput) MapIndex(k pulumi.StringInput) VIPOutput
func (VIPMapOutput) ToVIPMapOutput ¶
func (o VIPMapOutput) ToVIPMapOutput() VIPMapOutput
func (VIPMapOutput) ToVIPMapOutputWithContext ¶
func (o VIPMapOutput) ToVIPMapOutputWithContext(ctx context.Context) VIPMapOutput
type VIPOutput ¶
type VIPOutput struct {
*pulumi.OutputState
}
func (VIPOutput) ElementType ¶
func (VIPOutput) ToVIPOutput ¶
func (VIPOutput) ToVIPOutputWithContext ¶
func (VIPOutput) ToVIPPtrOutput ¶
func (o VIPOutput) ToVIPPtrOutput() VIPPtrOutput
func (VIPOutput) ToVIPPtrOutputWithContext ¶
func (o VIPOutput) ToVIPPtrOutputWithContext(ctx context.Context) VIPPtrOutput
type VIPPtrInput ¶
type VIPPtrInput interface { pulumi.Input ToVIPPtrOutput() VIPPtrOutput ToVIPPtrOutputWithContext(ctx context.Context) VIPPtrOutput }
type VIPPtrOutput ¶
type VIPPtrOutput struct {
*pulumi.OutputState
}
func (VIPPtrOutput) ElementType ¶
func (VIPPtrOutput) ElementType() reflect.Type
func (VIPPtrOutput) ToVIPPtrOutput ¶
func (o VIPPtrOutput) ToVIPPtrOutput() VIPPtrOutput
func (VIPPtrOutput) ToVIPPtrOutputWithContext ¶
func (o VIPPtrOutput) ToVIPPtrOutputWithContext(ctx context.Context) VIPPtrOutput
type VIPState ¶
type VIPState struct { // The time of creation for VIP, formatted in RFC3339 time string. CreateTime pulumi.StringPtrInput // The ip address of the VIP. IpAddress pulumi.StringPtrInput Name pulumi.StringPtrInput // The remarks of the VIP. (Default: `""`). Remark pulumi.StringPtrInput // The ID of subnet. If defined `vpcId`, the `subnetId` is Required. SubnetId pulumi.StringPtrInput // A tag assigned to VIP, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default: `Default`). Tag pulumi.StringPtrInput // The ID of VPC linked to the VIP. VpcId pulumi.StringPtrInput }
func (VIPState) ElementType ¶
type VPC ¶
type VPC struct { pulumi.CustomResourceState // The CIDR blocks of VPC. CidrBlocks pulumi.StringArrayOutput `pulumi:"cidrBlocks"` // The time of creation for VPC, formatted in RFC3339 time string. CreateTime pulumi.StringOutput `pulumi:"createTime"` Name pulumi.StringOutput `pulumi:"name"` // It is a nested type which documented below. NetworkInfos VPCNetworkInfoArrayOutput `pulumi:"networkInfos"` // The remarks of the VPC. (Default: `""`). Remark pulumi.StringOutput `pulumi:"remark"` // A tag assigned to VPC, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default: `Default`). Tag pulumi.StringPtrOutput `pulumi:"tag"` // The time whenever there is a change made to VPC, formatted in RFC3339 time string. UpdateTime pulumi.StringOutput `pulumi:"updateTime"` }
Provides a VPC resource.
> **Note** The network segment can only be created or deleted, can not perform both of them at the same time. ## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-ucloud/sdk/go/ucloud/vpc" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := vpc.NewVPC(ctx, "example", &vpc.VPCArgs{ CidrBlocks: pulumi.StringArray{ pulumi.String("192.168.0.0/16"), }, Tag: pulumi.String("tf-example"), }) if err != nil { return err } return nil }) }
```
## Import
VPC can be imported using the `id`, e.g.
```sh
$ pulumi import ucloud:vpc/vPC:VPC example uvnet-abc123456
```
func GetVPC ¶
func GetVPC(ctx *pulumi.Context, name string, id pulumi.IDInput, state *VPCState, opts ...pulumi.ResourceOption) (*VPC, error)
GetVPC gets an existing VPC 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 NewVPC ¶
func NewVPC(ctx *pulumi.Context, name string, args *VPCArgs, opts ...pulumi.ResourceOption) (*VPC, error)
NewVPC registers a new resource with the given unique name, arguments, and options.
func (*VPC) ElementType ¶
func (*VPC) ToVPCOutput ¶
func (*VPC) ToVPCOutputWithContext ¶
func (*VPC) ToVPCPtrOutput ¶
func (i *VPC) ToVPCPtrOutput() VPCPtrOutput
func (*VPC) ToVPCPtrOutputWithContext ¶
func (i *VPC) ToVPCPtrOutputWithContext(ctx context.Context) VPCPtrOutput
type VPCArgs ¶
type VPCArgs struct { // The CIDR blocks of VPC. CidrBlocks pulumi.StringArrayInput Name pulumi.StringPtrInput // The remarks of the VPC. (Default: `""`). Remark pulumi.StringPtrInput // A tag assigned to VPC, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default: `Default`). Tag pulumi.StringPtrInput }
The set of arguments for constructing a VPC resource.
func (VPCArgs) ElementType ¶
type VPCArray ¶
type VPCArray []VPCInput
func (VPCArray) ElementType ¶
func (VPCArray) ToVPCArrayOutput ¶
func (i VPCArray) ToVPCArrayOutput() VPCArrayOutput
func (VPCArray) ToVPCArrayOutputWithContext ¶
func (i VPCArray) ToVPCArrayOutputWithContext(ctx context.Context) VPCArrayOutput
type VPCArrayInput ¶
type VPCArrayInput interface { pulumi.Input ToVPCArrayOutput() VPCArrayOutput ToVPCArrayOutputWithContext(context.Context) VPCArrayOutput }
VPCArrayInput is an input type that accepts VPCArray and VPCArrayOutput values. You can construct a concrete instance of `VPCArrayInput` via:
VPCArray{ VPCArgs{...} }
type VPCArrayOutput ¶
type VPCArrayOutput struct{ *pulumi.OutputState }
func (VPCArrayOutput) ElementType ¶
func (VPCArrayOutput) ElementType() reflect.Type
func (VPCArrayOutput) ToVPCArrayOutput ¶
func (o VPCArrayOutput) ToVPCArrayOutput() VPCArrayOutput
func (VPCArrayOutput) ToVPCArrayOutputWithContext ¶
func (o VPCArrayOutput) ToVPCArrayOutputWithContext(ctx context.Context) VPCArrayOutput
type VPCMap ¶
func (VPCMap) ElementType ¶
func (VPCMap) ToVPCMapOutput ¶
func (i VPCMap) ToVPCMapOutput() VPCMapOutput
func (VPCMap) ToVPCMapOutputWithContext ¶
func (i VPCMap) ToVPCMapOutputWithContext(ctx context.Context) VPCMapOutput
type VPCMapInput ¶
type VPCMapInput interface { pulumi.Input ToVPCMapOutput() VPCMapOutput ToVPCMapOutputWithContext(context.Context) VPCMapOutput }
VPCMapInput is an input type that accepts VPCMap and VPCMapOutput values. You can construct a concrete instance of `VPCMapInput` via:
VPCMap{ "key": VPCArgs{...} }
type VPCMapOutput ¶
type VPCMapOutput struct{ *pulumi.OutputState }
func (VPCMapOutput) ElementType ¶
func (VPCMapOutput) ElementType() reflect.Type
func (VPCMapOutput) MapIndex ¶
func (o VPCMapOutput) MapIndex(k pulumi.StringInput) VPCOutput
func (VPCMapOutput) ToVPCMapOutput ¶
func (o VPCMapOutput) ToVPCMapOutput() VPCMapOutput
func (VPCMapOutput) ToVPCMapOutputWithContext ¶
func (o VPCMapOutput) ToVPCMapOutputWithContext(ctx context.Context) VPCMapOutput
type VPCNetworkInfo ¶
type VPCNetworkInfo struct { // The CIDR block of the VPC. CidrBlock *string `pulumi:"cidrBlock"` }
type VPCNetworkInfoArgs ¶
type VPCNetworkInfoArgs struct { // The CIDR block of the VPC. CidrBlock pulumi.StringPtrInput `pulumi:"cidrBlock"` }
func (VPCNetworkInfoArgs) ElementType ¶
func (VPCNetworkInfoArgs) ElementType() reflect.Type
func (VPCNetworkInfoArgs) ToVPCNetworkInfoOutput ¶
func (i VPCNetworkInfoArgs) ToVPCNetworkInfoOutput() VPCNetworkInfoOutput
func (VPCNetworkInfoArgs) ToVPCNetworkInfoOutputWithContext ¶
func (i VPCNetworkInfoArgs) ToVPCNetworkInfoOutputWithContext(ctx context.Context) VPCNetworkInfoOutput
type VPCNetworkInfoArray ¶
type VPCNetworkInfoArray []VPCNetworkInfoInput
func (VPCNetworkInfoArray) ElementType ¶
func (VPCNetworkInfoArray) ElementType() reflect.Type
func (VPCNetworkInfoArray) ToVPCNetworkInfoArrayOutput ¶
func (i VPCNetworkInfoArray) ToVPCNetworkInfoArrayOutput() VPCNetworkInfoArrayOutput
func (VPCNetworkInfoArray) ToVPCNetworkInfoArrayOutputWithContext ¶
func (i VPCNetworkInfoArray) ToVPCNetworkInfoArrayOutputWithContext(ctx context.Context) VPCNetworkInfoArrayOutput
type VPCNetworkInfoArrayInput ¶
type VPCNetworkInfoArrayInput interface { pulumi.Input ToVPCNetworkInfoArrayOutput() VPCNetworkInfoArrayOutput ToVPCNetworkInfoArrayOutputWithContext(context.Context) VPCNetworkInfoArrayOutput }
VPCNetworkInfoArrayInput is an input type that accepts VPCNetworkInfoArray and VPCNetworkInfoArrayOutput values. You can construct a concrete instance of `VPCNetworkInfoArrayInput` via:
VPCNetworkInfoArray{ VPCNetworkInfoArgs{...} }
type VPCNetworkInfoArrayOutput ¶
type VPCNetworkInfoArrayOutput struct{ *pulumi.OutputState }
func (VPCNetworkInfoArrayOutput) ElementType ¶
func (VPCNetworkInfoArrayOutput) ElementType() reflect.Type
func (VPCNetworkInfoArrayOutput) Index ¶
func (o VPCNetworkInfoArrayOutput) Index(i pulumi.IntInput) VPCNetworkInfoOutput
func (VPCNetworkInfoArrayOutput) ToVPCNetworkInfoArrayOutput ¶
func (o VPCNetworkInfoArrayOutput) ToVPCNetworkInfoArrayOutput() VPCNetworkInfoArrayOutput
func (VPCNetworkInfoArrayOutput) ToVPCNetworkInfoArrayOutputWithContext ¶
func (o VPCNetworkInfoArrayOutput) ToVPCNetworkInfoArrayOutputWithContext(ctx context.Context) VPCNetworkInfoArrayOutput
type VPCNetworkInfoInput ¶
type VPCNetworkInfoInput interface { pulumi.Input ToVPCNetworkInfoOutput() VPCNetworkInfoOutput ToVPCNetworkInfoOutputWithContext(context.Context) VPCNetworkInfoOutput }
VPCNetworkInfoInput is an input type that accepts VPCNetworkInfoArgs and VPCNetworkInfoOutput values. You can construct a concrete instance of `VPCNetworkInfoInput` via:
VPCNetworkInfoArgs{...}
type VPCNetworkInfoOutput ¶
type VPCNetworkInfoOutput struct{ *pulumi.OutputState }
func (VPCNetworkInfoOutput) CidrBlock ¶
func (o VPCNetworkInfoOutput) CidrBlock() pulumi.StringPtrOutput
The CIDR block of the VPC.
func (VPCNetworkInfoOutput) ElementType ¶
func (VPCNetworkInfoOutput) ElementType() reflect.Type
func (VPCNetworkInfoOutput) ToVPCNetworkInfoOutput ¶
func (o VPCNetworkInfoOutput) ToVPCNetworkInfoOutput() VPCNetworkInfoOutput
func (VPCNetworkInfoOutput) ToVPCNetworkInfoOutputWithContext ¶
func (o VPCNetworkInfoOutput) ToVPCNetworkInfoOutputWithContext(ctx context.Context) VPCNetworkInfoOutput
type VPCOutput ¶
type VPCOutput struct {
*pulumi.OutputState
}
func (VPCOutput) ElementType ¶
func (VPCOutput) ToVPCOutput ¶
func (VPCOutput) ToVPCOutputWithContext ¶
func (VPCOutput) ToVPCPtrOutput ¶
func (o VPCOutput) ToVPCPtrOutput() VPCPtrOutput
func (VPCOutput) ToVPCPtrOutputWithContext ¶
func (o VPCOutput) ToVPCPtrOutputWithContext(ctx context.Context) VPCPtrOutput
type VPCPeeringConnection ¶
type VPCPeeringConnection struct { pulumi.CustomResourceState // The ID of accepter project of the specific VPC Peering Connection to retrieve. PeerProjectId pulumi.StringOutput `pulumi:"peerProjectId"` // The short ID of accepter VPC of the specific VPC Peering Connection to retrieve. PeerVpcId pulumi.StringOutput `pulumi:"peerVpcId"` // The short of ID of the requester VPC of the specific VPC Peering Connection to retrieve. VpcId pulumi.StringOutput `pulumi:"vpcId"` }
Provides an VPC Peering Connection for establishing a connection between multiple VPC.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-ucloud/sdk/go/ucloud/vpc" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { foo, err := vpc.NewVPC(ctx, "foo", &vpc.VPCArgs{ Tag: pulumi.String("tf-example"), CidrBlocks: pulumi.StringArray{ pulumi.String("192.168.0.0/16"), }, }) if err != nil { return err } bar, err := vpc.NewVPC(ctx, "bar", &vpc.VPCArgs{ Tag: pulumi.String("tf-example"), CidrBlocks: pulumi.StringArray{ pulumi.String("10.10.0.0/16"), }, }) if err != nil { return err } _, err = vpc.NewVPCPeeringConnection(ctx, "connection", &vpc.VPCPeeringConnectionArgs{ VpcId: foo.ID(), PeerVpcId: bar.ID(), }) if err != nil { return err } return nil }) }
```
func GetVPCPeeringConnection ¶
func GetVPCPeeringConnection(ctx *pulumi.Context, name string, id pulumi.IDInput, state *VPCPeeringConnectionState, opts ...pulumi.ResourceOption) (*VPCPeeringConnection, error)
GetVPCPeeringConnection gets an existing VPCPeeringConnection 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 NewVPCPeeringConnection ¶
func NewVPCPeeringConnection(ctx *pulumi.Context, name string, args *VPCPeeringConnectionArgs, opts ...pulumi.ResourceOption) (*VPCPeeringConnection, error)
NewVPCPeeringConnection registers a new resource with the given unique name, arguments, and options.
func (*VPCPeeringConnection) ElementType ¶
func (*VPCPeeringConnection) ElementType() reflect.Type
func (*VPCPeeringConnection) ToVPCPeeringConnectionOutput ¶
func (i *VPCPeeringConnection) ToVPCPeeringConnectionOutput() VPCPeeringConnectionOutput
func (*VPCPeeringConnection) ToVPCPeeringConnectionOutputWithContext ¶
func (i *VPCPeeringConnection) ToVPCPeeringConnectionOutputWithContext(ctx context.Context) VPCPeeringConnectionOutput
func (*VPCPeeringConnection) ToVPCPeeringConnectionPtrOutput ¶
func (i *VPCPeeringConnection) ToVPCPeeringConnectionPtrOutput() VPCPeeringConnectionPtrOutput
func (*VPCPeeringConnection) ToVPCPeeringConnectionPtrOutputWithContext ¶
func (i *VPCPeeringConnection) ToVPCPeeringConnectionPtrOutputWithContext(ctx context.Context) VPCPeeringConnectionPtrOutput
type VPCPeeringConnectionArgs ¶
type VPCPeeringConnectionArgs struct { // The ID of accepter project of the specific VPC Peering Connection to retrieve. PeerProjectId pulumi.StringPtrInput // The short ID of accepter VPC of the specific VPC Peering Connection to retrieve. PeerVpcId pulumi.StringInput // The short of ID of the requester VPC of the specific VPC Peering Connection to retrieve. VpcId pulumi.StringInput }
The set of arguments for constructing a VPCPeeringConnection resource.
func (VPCPeeringConnectionArgs) ElementType ¶
func (VPCPeeringConnectionArgs) ElementType() reflect.Type
type VPCPeeringConnectionArray ¶
type VPCPeeringConnectionArray []VPCPeeringConnectionInput
func (VPCPeeringConnectionArray) ElementType ¶
func (VPCPeeringConnectionArray) ElementType() reflect.Type
func (VPCPeeringConnectionArray) ToVPCPeeringConnectionArrayOutput ¶
func (i VPCPeeringConnectionArray) ToVPCPeeringConnectionArrayOutput() VPCPeeringConnectionArrayOutput
func (VPCPeeringConnectionArray) ToVPCPeeringConnectionArrayOutputWithContext ¶
func (i VPCPeeringConnectionArray) ToVPCPeeringConnectionArrayOutputWithContext(ctx context.Context) VPCPeeringConnectionArrayOutput
type VPCPeeringConnectionArrayInput ¶
type VPCPeeringConnectionArrayInput interface { pulumi.Input ToVPCPeeringConnectionArrayOutput() VPCPeeringConnectionArrayOutput ToVPCPeeringConnectionArrayOutputWithContext(context.Context) VPCPeeringConnectionArrayOutput }
VPCPeeringConnectionArrayInput is an input type that accepts VPCPeeringConnectionArray and VPCPeeringConnectionArrayOutput values. You can construct a concrete instance of `VPCPeeringConnectionArrayInput` via:
VPCPeeringConnectionArray{ VPCPeeringConnectionArgs{...} }
type VPCPeeringConnectionArrayOutput ¶
type VPCPeeringConnectionArrayOutput struct{ *pulumi.OutputState }
func (VPCPeeringConnectionArrayOutput) ElementType ¶
func (VPCPeeringConnectionArrayOutput) ElementType() reflect.Type
func (VPCPeeringConnectionArrayOutput) Index ¶
func (o VPCPeeringConnectionArrayOutput) Index(i pulumi.IntInput) VPCPeeringConnectionOutput
func (VPCPeeringConnectionArrayOutput) ToVPCPeeringConnectionArrayOutput ¶
func (o VPCPeeringConnectionArrayOutput) ToVPCPeeringConnectionArrayOutput() VPCPeeringConnectionArrayOutput
func (VPCPeeringConnectionArrayOutput) ToVPCPeeringConnectionArrayOutputWithContext ¶
func (o VPCPeeringConnectionArrayOutput) ToVPCPeeringConnectionArrayOutputWithContext(ctx context.Context) VPCPeeringConnectionArrayOutput
type VPCPeeringConnectionInput ¶
type VPCPeeringConnectionInput interface { pulumi.Input ToVPCPeeringConnectionOutput() VPCPeeringConnectionOutput ToVPCPeeringConnectionOutputWithContext(ctx context.Context) VPCPeeringConnectionOutput }
type VPCPeeringConnectionMap ¶
type VPCPeeringConnectionMap map[string]VPCPeeringConnectionInput
func (VPCPeeringConnectionMap) ElementType ¶
func (VPCPeeringConnectionMap) ElementType() reflect.Type
func (VPCPeeringConnectionMap) ToVPCPeeringConnectionMapOutput ¶
func (i VPCPeeringConnectionMap) ToVPCPeeringConnectionMapOutput() VPCPeeringConnectionMapOutput
func (VPCPeeringConnectionMap) ToVPCPeeringConnectionMapOutputWithContext ¶
func (i VPCPeeringConnectionMap) ToVPCPeeringConnectionMapOutputWithContext(ctx context.Context) VPCPeeringConnectionMapOutput
type VPCPeeringConnectionMapInput ¶
type VPCPeeringConnectionMapInput interface { pulumi.Input ToVPCPeeringConnectionMapOutput() VPCPeeringConnectionMapOutput ToVPCPeeringConnectionMapOutputWithContext(context.Context) VPCPeeringConnectionMapOutput }
VPCPeeringConnectionMapInput is an input type that accepts VPCPeeringConnectionMap and VPCPeeringConnectionMapOutput values. You can construct a concrete instance of `VPCPeeringConnectionMapInput` via:
VPCPeeringConnectionMap{ "key": VPCPeeringConnectionArgs{...} }
type VPCPeeringConnectionMapOutput ¶
type VPCPeeringConnectionMapOutput struct{ *pulumi.OutputState }
func (VPCPeeringConnectionMapOutput) ElementType ¶
func (VPCPeeringConnectionMapOutput) ElementType() reflect.Type
func (VPCPeeringConnectionMapOutput) MapIndex ¶
func (o VPCPeeringConnectionMapOutput) MapIndex(k pulumi.StringInput) VPCPeeringConnectionOutput
func (VPCPeeringConnectionMapOutput) ToVPCPeeringConnectionMapOutput ¶
func (o VPCPeeringConnectionMapOutput) ToVPCPeeringConnectionMapOutput() VPCPeeringConnectionMapOutput
func (VPCPeeringConnectionMapOutput) ToVPCPeeringConnectionMapOutputWithContext ¶
func (o VPCPeeringConnectionMapOutput) ToVPCPeeringConnectionMapOutputWithContext(ctx context.Context) VPCPeeringConnectionMapOutput
type VPCPeeringConnectionOutput ¶
type VPCPeeringConnectionOutput struct {
*pulumi.OutputState
}
func (VPCPeeringConnectionOutput) ElementType ¶
func (VPCPeeringConnectionOutput) ElementType() reflect.Type
func (VPCPeeringConnectionOutput) ToVPCPeeringConnectionOutput ¶
func (o VPCPeeringConnectionOutput) ToVPCPeeringConnectionOutput() VPCPeeringConnectionOutput
func (VPCPeeringConnectionOutput) ToVPCPeeringConnectionOutputWithContext ¶
func (o VPCPeeringConnectionOutput) ToVPCPeeringConnectionOutputWithContext(ctx context.Context) VPCPeeringConnectionOutput
func (VPCPeeringConnectionOutput) ToVPCPeeringConnectionPtrOutput ¶
func (o VPCPeeringConnectionOutput) ToVPCPeeringConnectionPtrOutput() VPCPeeringConnectionPtrOutput
func (VPCPeeringConnectionOutput) ToVPCPeeringConnectionPtrOutputWithContext ¶
func (o VPCPeeringConnectionOutput) ToVPCPeeringConnectionPtrOutputWithContext(ctx context.Context) VPCPeeringConnectionPtrOutput
type VPCPeeringConnectionPtrInput ¶
type VPCPeeringConnectionPtrInput interface { pulumi.Input ToVPCPeeringConnectionPtrOutput() VPCPeeringConnectionPtrOutput ToVPCPeeringConnectionPtrOutputWithContext(ctx context.Context) VPCPeeringConnectionPtrOutput }
type VPCPeeringConnectionPtrOutput ¶
type VPCPeeringConnectionPtrOutput struct {
*pulumi.OutputState
}
func (VPCPeeringConnectionPtrOutput) ElementType ¶
func (VPCPeeringConnectionPtrOutput) ElementType() reflect.Type
func (VPCPeeringConnectionPtrOutput) ToVPCPeeringConnectionPtrOutput ¶
func (o VPCPeeringConnectionPtrOutput) ToVPCPeeringConnectionPtrOutput() VPCPeeringConnectionPtrOutput
func (VPCPeeringConnectionPtrOutput) ToVPCPeeringConnectionPtrOutputWithContext ¶
func (o VPCPeeringConnectionPtrOutput) ToVPCPeeringConnectionPtrOutputWithContext(ctx context.Context) VPCPeeringConnectionPtrOutput
type VPCPeeringConnectionState ¶
type VPCPeeringConnectionState struct { // The ID of accepter project of the specific VPC Peering Connection to retrieve. PeerProjectId pulumi.StringPtrInput // The short ID of accepter VPC of the specific VPC Peering Connection to retrieve. PeerVpcId pulumi.StringPtrInput // The short of ID of the requester VPC of the specific VPC Peering Connection to retrieve. VpcId pulumi.StringPtrInput }
func (VPCPeeringConnectionState) ElementType ¶
func (VPCPeeringConnectionState) ElementType() reflect.Type
type VPCPtrInput ¶
type VPCPtrInput interface { pulumi.Input ToVPCPtrOutput() VPCPtrOutput ToVPCPtrOutputWithContext(ctx context.Context) VPCPtrOutput }
type VPCPtrOutput ¶
type VPCPtrOutput struct {
*pulumi.OutputState
}
func (VPCPtrOutput) ElementType ¶
func (VPCPtrOutput) ElementType() reflect.Type
func (VPCPtrOutput) ToVPCPtrOutput ¶
func (o VPCPtrOutput) ToVPCPtrOutput() VPCPtrOutput
func (VPCPtrOutput) ToVPCPtrOutputWithContext ¶
func (o VPCPtrOutput) ToVPCPtrOutputWithContext(ctx context.Context) VPCPtrOutput
type VPCState ¶
type VPCState struct { // The CIDR blocks of VPC. CidrBlocks pulumi.StringArrayInput // The time of creation for VPC, formatted in RFC3339 time string. CreateTime pulumi.StringPtrInput Name pulumi.StringPtrInput // It is a nested type which documented below. NetworkInfos VPCNetworkInfoArrayInput // The remarks of the VPC. (Default: `""`). Remark pulumi.StringPtrInput // A tag assigned to VPC, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default: `Default`). Tag pulumi.StringPtrInput // The time whenever there is a change made to VPC, formatted in RFC3339 time string. UpdateTime pulumi.StringPtrInput }