Class GatewayEndpoint


  • public class GatewayEndpoint
    extends com.pulumi.resources.CustomResource
    Provides a VPC Gateway Endpoint resource. VPC gateway endpoint. For information about VPC Gateway Endpoint and how to use it, see [What is Gateway Endpoint](https://www.alibabacloud.com/help/en/virtual-private-cloud/latest/gateway-endpoint). > **NOTE:** Available since v1.208.0. ## Example Usage Basic Usage ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.alicloud.vpc.Network; import com.pulumi.alicloud.vpc.NetworkArgs; import com.pulumi.alicloud.resourcemanager.ResourceGroup; import com.pulumi.alicloud.resourcemanager.ResourceGroupArgs; import com.pulumi.alicloud.vpc.GatewayEndpoint; import com.pulumi.alicloud.vpc.GatewayEndpointArgs; import java.util.List; import java.util.ArrayList; import java.util.Map; import java.io.File; import java.nio.file.Files; import java.nio.file.Paths; public class App { public static void main(String[] args) { Pulumi.run(App::stack); } public static void stack(Context ctx) { final var config = ctx.config(); final var name = config.get("name").orElse("terraform-example"); final var domain = config.get("domain").orElse("com.aliyun.cn-hangzhou.oss"); var defaultVpc = new Network("defaultVpc", NetworkArgs.builder() .description("tf-example") .build()); var defaultRg = new ResourceGroup("defaultRg", ResourceGroupArgs.builder() .displayName("tf-example-497") .resourceGroupName(name) .build()); var default_ = new GatewayEndpoint("default", GatewayEndpointArgs.builder() .gatewayEndpointDescrption("test-gateway-endpoint") .gatewayEndpointName(name) .vpcId(defaultVpc.id()) .resourceGroupId(defaultRg.id()) .serviceName(domain) .policyDocument(""" { "Version": "1", "Statement": [{ "Effect": "Allow", "Resource": ["*"], "Action": ["*"], "Principal": ["*"] }] } """) .build()); } } ``` ## Import VPC Gateway Endpoint can be imported using the id, e.g. ```sh $ pulumi import alicloud:vpc/gatewayEndpoint:GatewayEndpoint example <id> ```
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.pulumi.resources.CustomResource

        com.pulumi.resources.CustomResource.CustomResourceInternal
      • Nested classes/interfaces inherited from class com.pulumi.resources.Resource

        com.pulumi.resources.Resource.LazyField<T extends java.lang.Object>, com.pulumi.resources.Resource.LazyFields, com.pulumi.resources.Resource.ResourceInternal
    • Field Summary

      • Fields inherited from class com.pulumi.resources.Resource

        childResources, remote
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.pulumi.core.Output<java.lang.String> createTime()  
      com.pulumi.core.Output<java.util.Optional<java.lang.String>> gatewayEndpointDescrption()  
      com.pulumi.core.Output<java.util.Optional<java.lang.String>> gatewayEndpointName()  
      static GatewayEndpoint get​(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, GatewayEndpointState state, com.pulumi.resources.CustomResourceOptions options)
      Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
      com.pulumi.core.Output<java.util.Optional<java.lang.String>> policyDocument()  
      com.pulumi.core.Output<java.lang.String> resourceGroupId()  
      com.pulumi.core.Output<java.lang.String> serviceName()  
      com.pulumi.core.Output<java.lang.String> status()  
      com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,​java.lang.Object>>> tags()  
      com.pulumi.core.Output<java.lang.String> vpcId()  
      • Methods inherited from class com.pulumi.resources.CustomResource

        getId, id, idFuture
      • Methods inherited from class com.pulumi.resources.Resource

        getChildResources, getResourceName, getResourceType, getUrn, pulumiChildResources, pulumiResourceName, pulumiResourceType, urn
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GatewayEndpoint

        public GatewayEndpoint​(java.lang.String name)
        Parameters:
        name - The _unique_ name of the resulting resource.
      • GatewayEndpoint

        public GatewayEndpoint​(java.lang.String name,
                               GatewayEndpointArgs args)
        Parameters:
        name - The _unique_ name of the resulting resource.
        args - The arguments to use to populate this resource's properties.
      • GatewayEndpoint

        public GatewayEndpoint​(java.lang.String name,
                               GatewayEndpointArgs args,
                               @Nullable
                               com.pulumi.resources.CustomResourceOptions options)
        Parameters:
        name - The _unique_ name of the resulting resource.
        args - The arguments to use to populate this resource's properties.
        options - A bag of options that control this resource's behavior.
    • Method Detail

      • createTime

        public com.pulumi.core.Output<java.lang.String> createTime()
        Returns:
        The creation time of the gateway endpoint.
      • gatewayEndpointDescrption

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> gatewayEndpointDescrption()
        Returns:
        The description of the gateway endpoint.
      • gatewayEndpointName

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> gatewayEndpointName()
        Returns:
        The name of the gateway endpoint.
      • policyDocument

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> policyDocument()
        Returns:
        Access control policies for cloud services. This parameter is required when the cloud service is oss. For details about the syntax and structure of access policies, see [syntax and structure of permission Policies](https://help.aliyun.com/document_detail/93739.html).
      • resourceGroupId

        public com.pulumi.core.Output<java.lang.String> resourceGroupId()
        Returns:
        The ID of the resource group to which the instance belongs.
      • serviceName

        public com.pulumi.core.Output<java.lang.String> serviceName()
        Returns:
        The name of endpoint service.
      • status

        public com.pulumi.core.Output<java.lang.String> status()
        Returns:
        The status of VPC gateway endpoint.
      • tags

        public com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,​java.lang.Object>>> tags()
        Returns:
        The tags of the resource.
      • vpcId

        public com.pulumi.core.Output<java.lang.String> vpcId()
        Returns:
        The ID of the VPC.
      • get

        public static GatewayEndpoint get​(java.lang.String name,
                                          com.pulumi.core.Output<java.lang.String> id,
                                          @Nullable
                                          GatewayEndpointState state,
                                          @Nullable
                                          com.pulumi.resources.CustomResourceOptions options)
        Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
        Parameters:
        name - The _unique_ name of the resulting resource.
        id - The _unique_ provider ID of the resource to lookup.
        state -
        options - Optional settings to control the behavior of the CustomResource.