alicloud.pvtz.Endpoint
Explore with Pulumi AI
Provides a Private Zone Endpoint resource.
For information about Private Zone Endpoint and how to use it, see What is Endpoint.
NOTE: Available since v1.143.0.
Create Endpoint Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Endpoint(name: string, args: EndpointArgs, opts?: CustomResourceOptions);
@overload
def Endpoint(resource_name: str,
args: EndpointArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Endpoint(resource_name: str,
opts: Optional[ResourceOptions] = None,
endpoint_name: Optional[str] = None,
ip_configs: Optional[Sequence[EndpointIpConfigArgs]] = None,
security_group_id: Optional[str] = None,
vpc_id: Optional[str] = None,
vpc_region_id: Optional[str] = None)
func NewEndpoint(ctx *Context, name string, args EndpointArgs, opts ...ResourceOption) (*Endpoint, error)
public Endpoint(string name, EndpointArgs args, CustomResourceOptions? opts = null)
public Endpoint(String name, EndpointArgs args)
public Endpoint(String name, EndpointArgs args, CustomResourceOptions options)
type: alicloud:pvtz:Endpoint
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args EndpointArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args EndpointArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args EndpointArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args EndpointArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args EndpointArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var alicloudEndpointResource = new AliCloud.Pvtz.Endpoint("alicloudEndpointResource", new()
{
EndpointName = "string",
IpConfigs = new[]
{
new AliCloud.Pvtz.Inputs.EndpointIpConfigArgs
{
CidrBlock = "string",
VswitchId = "string",
ZoneId = "string",
Ip = "string",
},
},
SecurityGroupId = "string",
VpcId = "string",
VpcRegionId = "string",
});
example, err := pvtz.NewEndpoint(ctx, "alicloudEndpointResource", &pvtz.EndpointArgs{
EndpointName: pulumi.String("string"),
IpConfigs: pvtz.EndpointIpConfigArray{
&pvtz.EndpointIpConfigArgs{
CidrBlock: pulumi.String("string"),
VswitchId: pulumi.String("string"),
ZoneId: pulumi.String("string"),
Ip: pulumi.String("string"),
},
},
SecurityGroupId: pulumi.String("string"),
VpcId: pulumi.String("string"),
VpcRegionId: pulumi.String("string"),
})
var alicloudEndpointResource = new Endpoint("alicloudEndpointResource", EndpointArgs.builder()
.endpointName("string")
.ipConfigs(EndpointIpConfigArgs.builder()
.cidrBlock("string")
.vswitchId("string")
.zoneId("string")
.ip("string")
.build())
.securityGroupId("string")
.vpcId("string")
.vpcRegionId("string")
.build());
alicloud_endpoint_resource = alicloud.pvtz.Endpoint("alicloudEndpointResource",
endpoint_name="string",
ip_configs=[{
"cidr_block": "string",
"vswitch_id": "string",
"zone_id": "string",
"ip": "string",
}],
security_group_id="string",
vpc_id="string",
vpc_region_id="string")
const alicloudEndpointResource = new alicloud.pvtz.Endpoint("alicloudEndpointResource", {
endpointName: "string",
ipConfigs: [{
cidrBlock: "string",
vswitchId: "string",
zoneId: "string",
ip: "string",
}],
securityGroupId: "string",
vpcId: "string",
vpcRegionId: "string",
});
type: alicloud:pvtz:Endpoint
properties:
endpointName: string
ipConfigs:
- cidrBlock: string
ip: string
vswitchId: string
zoneId: string
securityGroupId: string
vpcId: string
vpcRegionId: string
Endpoint Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Endpoint resource accepts the following input properties:
- Endpoint
Name string - The name of the resource.
- Ip
Configs List<Pulumi.Ali Cloud. Pvtz. Inputs. Endpoint Ip Config> - The Ip Configs. See
ip_configs
below. NOTE: In order to ensure high availability, add at least 2 and up to 6. - Security
Group stringId - The ID of the Security Group.
- Vpc
Id string - The VPC ID.
- Vpc
Region stringId - The Region of the VPC.
- Endpoint
Name string - The name of the resource.
- Ip
Configs []EndpointIp Config Args - The Ip Configs. See
ip_configs
below. NOTE: In order to ensure high availability, add at least 2 and up to 6. - Security
Group stringId - The ID of the Security Group.
- Vpc
Id string - The VPC ID.
- Vpc
Region stringId - The Region of the VPC.
- endpoint
Name String - The name of the resource.
- ip
Configs List<EndpointIp Config> - The Ip Configs. See
ip_configs
below. NOTE: In order to ensure high availability, add at least 2 and up to 6. - security
Group StringId - The ID of the Security Group.
- vpc
Id String - The VPC ID.
- vpc
Region StringId - The Region of the VPC.
- endpoint
Name string - The name of the resource.
- ip
Configs EndpointIp Config[] - The Ip Configs. See
ip_configs
below. NOTE: In order to ensure high availability, add at least 2 and up to 6. - security
Group stringId - The ID of the Security Group.
- vpc
Id string - The VPC ID.
- vpc
Region stringId - The Region of the VPC.
- endpoint_
name str - The name of the resource.
- ip_
configs Sequence[EndpointIp Config Args] - The Ip Configs. See
ip_configs
below. NOTE: In order to ensure high availability, add at least 2 and up to 6. - security_
group_ strid - The ID of the Security Group.
- vpc_
id str - The VPC ID.
- vpc_
region_ strid - The Region of the VPC.
- endpoint
Name String - The name of the resource.
- ip
Configs List<Property Map> - The Ip Configs. See
ip_configs
below. NOTE: In order to ensure high availability, add at least 2 and up to 6. - security
Group StringId - The ID of the Security Group.
- vpc
Id String - The VPC ID.
- vpc
Region StringId - The Region of the VPC.
Outputs
All input properties are implicitly available as output properties. Additionally, the Endpoint resource produces the following output properties:
Look up Existing Endpoint Resource
Get an existing Endpoint resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: EndpointState, opts?: CustomResourceOptions): Endpoint
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
endpoint_name: Optional[str] = None,
ip_configs: Optional[Sequence[EndpointIpConfigArgs]] = None,
security_group_id: Optional[str] = None,
status: Optional[str] = None,
vpc_id: Optional[str] = None,
vpc_region_id: Optional[str] = None) -> Endpoint
func GetEndpoint(ctx *Context, name string, id IDInput, state *EndpointState, opts ...ResourceOption) (*Endpoint, error)
public static Endpoint Get(string name, Input<string> id, EndpointState? state, CustomResourceOptions? opts = null)
public static Endpoint get(String name, Output<String> id, EndpointState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Endpoint
Name string - The name of the resource.
- Ip
Configs List<Pulumi.Ali Cloud. Pvtz. Inputs. Endpoint Ip Config> - The Ip Configs. See
ip_configs
below. NOTE: In order to ensure high availability, add at least 2 and up to 6. - Security
Group stringId - The ID of the Security Group.
- Status string
- The status of the resource. Valid values:
CHANGE_FAILED
,CHANGE_INIT
,EXCEPTION
,FAILED
,INIT
,SUCCESS
. - Vpc
Id string - The VPC ID.
- Vpc
Region stringId - The Region of the VPC.
- Endpoint
Name string - The name of the resource.
- Ip
Configs []EndpointIp Config Args - The Ip Configs. See
ip_configs
below. NOTE: In order to ensure high availability, add at least 2 and up to 6. - Security
Group stringId - The ID of the Security Group.
- Status string
- The status of the resource. Valid values:
CHANGE_FAILED
,CHANGE_INIT
,EXCEPTION
,FAILED
,INIT
,SUCCESS
. - Vpc
Id string - The VPC ID.
- Vpc
Region stringId - The Region of the VPC.
- endpoint
Name String - The name of the resource.
- ip
Configs List<EndpointIp Config> - The Ip Configs. See
ip_configs
below. NOTE: In order to ensure high availability, add at least 2 and up to 6. - security
Group StringId - The ID of the Security Group.
- status String
- The status of the resource. Valid values:
CHANGE_FAILED
,CHANGE_INIT
,EXCEPTION
,FAILED
,INIT
,SUCCESS
. - vpc
Id String - The VPC ID.
- vpc
Region StringId - The Region of the VPC.
- endpoint
Name string - The name of the resource.
- ip
Configs EndpointIp Config[] - The Ip Configs. See
ip_configs
below. NOTE: In order to ensure high availability, add at least 2 and up to 6. - security
Group stringId - The ID of the Security Group.
- status string
- The status of the resource. Valid values:
CHANGE_FAILED
,CHANGE_INIT
,EXCEPTION
,FAILED
,INIT
,SUCCESS
. - vpc
Id string - The VPC ID.
- vpc
Region stringId - The Region of the VPC.
- endpoint_
name str - The name of the resource.
- ip_
configs Sequence[EndpointIp Config Args] - The Ip Configs. See
ip_configs
below. NOTE: In order to ensure high availability, add at least 2 and up to 6. - security_
group_ strid - The ID of the Security Group.
- status str
- The status of the resource. Valid values:
CHANGE_FAILED
,CHANGE_INIT
,EXCEPTION
,FAILED
,INIT
,SUCCESS
. - vpc_
id str - The VPC ID.
- vpc_
region_ strid - The Region of the VPC.
- endpoint
Name String - The name of the resource.
- ip
Configs List<Property Map> - The Ip Configs. See
ip_configs
below. NOTE: In order to ensure high availability, add at least 2 and up to 6. - security
Group StringId - The ID of the Security Group.
- status String
- The status of the resource. Valid values:
CHANGE_FAILED
,CHANGE_INIT
,EXCEPTION
,FAILED
,INIT
,SUCCESS
. - vpc
Id String - The VPC ID.
- vpc
Region StringId - The Region of the VPC.
Supporting Types
EndpointIpConfig, EndpointIpConfigArgs
- cidr_
block str - The Subnet mask.
- vswitch_
id str - The Vswitch id.
- zone_
id str - The Zone ID.
- ip str
- The IP address within the parameter range of the subnet mask. It is recommended to use the IP address assigned by the system.
Import
Private Zone Endpoint can be imported using the id, e.g.
$ pulumi import alicloud:pvtz/endpoint:Endpoint example <id>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.