com.pulumi.azurenative.network.InterfaceEndpoint Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.azurenative.network;
import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.network.InterfaceEndpointArgs;
import com.pulumi.azurenative.network.outputs.EndpointServiceResponse;
import com.pulumi.azurenative.network.outputs.NetworkInterfaceResponse;
import com.pulumi.azurenative.network.outputs.SubnetResponse;
import com.pulumi.core.Alias;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Export;
import com.pulumi.core.annotations.ResourceType;
import com.pulumi.core.internal.Codegen;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import javax.annotation.Nullable;
/**
* Interface endpoint resource.
* Azure REST API version: 2019-02-01.
*
* ## Example Usage
* ### Create interface endpoint
*
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azurenative.network.InterfaceEndpoint;
* import com.pulumi.azurenative.network.InterfaceEndpointArgs;
* import com.pulumi.azurenative.network.inputs.EndpointServiceArgs;
* import com.pulumi.azurenative.network.inputs.SubnetArgs;
* 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) {
* var interfaceEndpoint = new InterfaceEndpoint("interfaceEndpoint", InterfaceEndpointArgs.builder()
* .endpointService(EndpointServiceArgs.builder()
* .id("/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Provider/resourceType/resourceName")
* .build())
* .fqdn("uniqueIdentifier.fqdn.windows.net")
* .interfaceEndpointName("testIe")
* .resourceGroupName("rg1")
* .subnet(SubnetArgs.builder()
* .id("/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/myVnet/subnets/mySubnet")
* .build())
* .build());
*
* }
* }
*
* }
*
*
* ## Import
*
* An existing resource can be imported using its type token, name, and identifier, e.g.
*
* ```sh
* $ pulumi import azure-native:network:InterfaceEndpoint testIe /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/interfaceEndpoints/{interfaceEndpointName}
* ```
*
*/
@ResourceType(type="azure-native:network:InterfaceEndpoint")
public class InterfaceEndpoint extends com.pulumi.resources.CustomResource {
/**
* A reference to the service being brought into the virtual network.
*
*/
@Export(name="endpointService", refs={EndpointServiceResponse.class}, tree="[0]")
private Output* @Nullable */ EndpointServiceResponse> endpointService;
/**
* @return A reference to the service being brought into the virtual network.
*
*/
public Output> endpointService() {
return Codegen.optional(this.endpointService);
}
/**
* Gets a unique read-only string that changes whenever the resource is updated.
*
*/
@Export(name="etag", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> etag;
/**
* @return Gets a unique read-only string that changes whenever the resource is updated.
*
*/
public Output> etag() {
return Codegen.optional(this.etag);
}
/**
* A first-party service's FQDN that is mapped to the private IP allocated via this interface endpoint.
*
*/
@Export(name="fqdn", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> fqdn;
/**
* @return A first-party service's FQDN that is mapped to the private IP allocated via this interface endpoint.
*
*/
public Output> fqdn() {
return Codegen.optional(this.fqdn);
}
/**
* Resource location.
*
*/
@Export(name="location", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> location;
/**
* @return Resource location.
*
*/
public Output> location() {
return Codegen.optional(this.location);
}
/**
* Resource name.
*
*/
@Export(name="name", refs={String.class}, tree="[0]")
private Output name;
/**
* @return Resource name.
*
*/
public Output name() {
return this.name;
}
/**
* Gets an array of references to the network interfaces created for this interface endpoint.
*
*/
@Export(name="networkInterfaces", refs={List.class,NetworkInterfaceResponse.class}, tree="[0,1]")
private Output> networkInterfaces;
/**
* @return Gets an array of references to the network interfaces created for this interface endpoint.
*
*/
public Output> networkInterfaces() {
return this.networkInterfaces;
}
/**
* A read-only property that identifies who created this interface endpoint.
*
*/
@Export(name="owner", refs={String.class}, tree="[0]")
private Output owner;
/**
* @return A read-only property that identifies who created this interface endpoint.
*
*/
public Output owner() {
return this.owner;
}
/**
* The provisioning state of the interface endpoint. Possible values are: 'Updating', 'Deleting', and 'Failed'.
*
*/
@Export(name="provisioningState", refs={String.class}, tree="[0]")
private Output provisioningState;
/**
* @return The provisioning state of the interface endpoint. Possible values are: 'Updating', 'Deleting', and 'Failed'.
*
*/
public Output provisioningState() {
return this.provisioningState;
}
/**
* The ID of the subnet from which the private IP will be allocated.
*
*/
@Export(name="subnet", refs={SubnetResponse.class}, tree="[0]")
private Output* @Nullable */ SubnetResponse> subnet;
/**
* @return The ID of the subnet from which the private IP will be allocated.
*
*/
public Output> subnet() {
return Codegen.optional(this.subnet);
}
/**
* Resource tags.
*
*/
@Export(name="tags", refs={Map.class,String.class}, tree="[0,1,1]")
private Output* @Nullable */ Map> tags;
/**
* @return Resource tags.
*
*/
public Output>> tags() {
return Codegen.optional(this.tags);
}
/**
* Resource type.
*
*/
@Export(name="type", refs={String.class}, tree="[0]")
private Output type;
/**
* @return Resource type.
*
*/
public Output type() {
return this.type;
}
/**
*
* @param name The _unique_ name of the resulting resource.
*/
public InterfaceEndpoint(java.lang.String name) {
this(name, InterfaceEndpointArgs.Empty);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
*/
public InterfaceEndpoint(java.lang.String name, InterfaceEndpointArgs args) {
this(name, args, null);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
* @param options A bag of options that control this resource's behavior.
*/
public InterfaceEndpoint(java.lang.String name, InterfaceEndpointArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure-native:network:InterfaceEndpoint", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false);
}
private InterfaceEndpoint(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure-native:network:InterfaceEndpoint", name, null, makeResourceOptions(options, id), false);
}
private static InterfaceEndpointArgs makeArgs(InterfaceEndpointArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
if (options != null && options.getUrn().isPresent()) {
return null;
}
return args == null ? InterfaceEndpointArgs.Empty : args;
}
private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) {
var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder()
.version(Utilities.getVersion())
.aliases(List.of(
Output.of(Alias.builder().type("azure-native:network/v20180801:InterfaceEndpoint").build()),
Output.of(Alias.builder().type("azure-native:network/v20181001:InterfaceEndpoint").build()),
Output.of(Alias.builder().type("azure-native:network/v20181101:InterfaceEndpoint").build()),
Output.of(Alias.builder().type("azure-native:network/v20181201:InterfaceEndpoint").build()),
Output.of(Alias.builder().type("azure-native:network/v20190201:InterfaceEndpoint").build()),
Output.of(Alias.builder().type("azure-native:network/v20190401:InterfaceEndpoint").build()),
Output.of(Alias.builder().type("azure-native:network/v20190601:InterfaceEndpoint").build()),
Output.of(Alias.builder().type("azure-native:network/v20190701:InterfaceEndpoint").build()),
Output.of(Alias.builder().type("azure-native:network/v20190801:InterfaceEndpoint").build()),
Output.of(Alias.builder().type("azure-native:network/v20190901:InterfaceEndpoint").build()),
Output.of(Alias.builder().type("azure-native:network/v20191101:InterfaceEndpoint").build()),
Output.of(Alias.builder().type("azure-native:network/v20191201:InterfaceEndpoint").build()),
Output.of(Alias.builder().type("azure-native:network/v20200301:InterfaceEndpoint").build()),
Output.of(Alias.builder().type("azure-native:network/v20200401:InterfaceEndpoint").build()),
Output.of(Alias.builder().type("azure-native:network/v20200501:InterfaceEndpoint").build()),
Output.of(Alias.builder().type("azure-native:network/v20200601:InterfaceEndpoint").build()),
Output.of(Alias.builder().type("azure-native:network/v20200701:InterfaceEndpoint").build()),
Output.of(Alias.builder().type("azure-native:network/v20200801:InterfaceEndpoint").build()),
Output.of(Alias.builder().type("azure-native:network/v20201101:InterfaceEndpoint").build()),
Output.of(Alias.builder().type("azure-native:network/v20210201:InterfaceEndpoint").build()),
Output.of(Alias.builder().type("azure-native:network/v20210301:InterfaceEndpoint").build()),
Output.of(Alias.builder().type("azure-native:network/v20210501:InterfaceEndpoint").build()),
Output.of(Alias.builder().type("azure-native:network/v20210801:InterfaceEndpoint").build()),
Output.of(Alias.builder().type("azure-native:network/v20220101:InterfaceEndpoint").build()),
Output.of(Alias.builder().type("azure-native:network/v20220501:InterfaceEndpoint").build()),
Output.of(Alias.builder().type("azure-native:network/v20220701:InterfaceEndpoint").build()),
Output.of(Alias.builder().type("azure-native:network/v20220901:InterfaceEndpoint").build()),
Output.of(Alias.builder().type("azure-native:network/v20221101:InterfaceEndpoint").build()),
Output.of(Alias.builder().type("azure-native:network/v20230201:InterfaceEndpoint").build()),
Output.of(Alias.builder().type("azure-native:network/v20230401:InterfaceEndpoint").build()),
Output.of(Alias.builder().type("azure-native:network/v20230501:InterfaceEndpoint").build()),
Output.of(Alias.builder().type("azure-native:network/v20230601:InterfaceEndpoint").build()),
Output.of(Alias.builder().type("azure-native:network/v20230901:InterfaceEndpoint").build()),
Output.of(Alias.builder().type("azure-native:network/v20231101:InterfaceEndpoint").build()),
Output.of(Alias.builder().type("azure-native:network/v20240101:InterfaceEndpoint").build()),
Output.of(Alias.builder().type("azure-native:network/v20240301:InterfaceEndpoint").build())
))
.build();
return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id);
}
/**
* Get an existing Host resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param options Optional settings to control the behavior of the CustomResource.
*/
public static InterfaceEndpoint get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) {
return new InterfaceEndpoint(name, id, options);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy