com.pulumi.azurenative.streamanalytics.PrivateEndpoint 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.streamanalytics;
import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.streamanalytics.PrivateEndpointArgs;
import com.pulumi.azurenative.streamanalytics.outputs.PrivateLinkServiceConnectionResponse;
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.Optional;
import javax.annotation.Nullable;
/**
* Complete information about the private endpoint.
* Azure REST API version: 2020-03-01. Prior API version in Azure Native 1.x: 2020-03-01-preview.
*
* Other available API versions: 2020-03-01-preview.
*
* ## Example Usage
* ### Create a private endpoint
*
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azurenative.streamanalytics.PrivateEndpoint;
* import com.pulumi.azurenative.streamanalytics.PrivateEndpointArgs;
* import com.pulumi.azurenative.streamanalytics.inputs.PrivateLinkServiceConnectionArgs;
* 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 privateEndpoint = new PrivateEndpoint("privateEndpoint", PrivateEndpointArgs.builder()
* .clusterName("testcluster")
* .manualPrivateLinkServiceConnections(PrivateLinkServiceConnectionArgs.builder()
* .groupIds("groupIdFromResource")
* .privateLinkServiceId("/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/privateLinkServices/testPls")
* .build())
* .privateEndpointName("testpe")
* .resourceGroupName("sjrg")
* .build());
*
* }
* }
*
* }
*
*
* ## Import
*
* An existing resource can be imported using its type token, name, and identifier, e.g.
*
* ```sh
* $ pulumi import azure-native:streamanalytics:PrivateEndpoint An Example Private Endpoint /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/clusters/{clusterName}/privateEndpoints/{privateEndpointName}
* ```
*
*/
@ResourceType(type="azure-native:streamanalytics:PrivateEndpoint")
public class PrivateEndpoint extends com.pulumi.resources.CustomResource {
/**
* The date when this private endpoint was created.
*
*/
@Export(name="createdDate", refs={String.class}, tree="[0]")
private Output createdDate;
/**
* @return The date when this private endpoint was created.
*
*/
public Output createdDate() {
return this.createdDate;
}
/**
* Unique opaque string (generally a GUID) that represents the metadata state of the resource (private endpoint) and changes whenever the resource is updated. Required on PUT (CreateOrUpdate) requests.
*
*/
@Export(name="etag", refs={String.class}, tree="[0]")
private Output etag;
/**
* @return Unique opaque string (generally a GUID) that represents the metadata state of the resource (private endpoint) and changes whenever the resource is updated. Required on PUT (CreateOrUpdate) requests.
*
*/
public Output etag() {
return this.etag;
}
/**
* A list of connections to the remote resource. Immutable after it is set.
*
*/
@Export(name="manualPrivateLinkServiceConnections", refs={List.class,PrivateLinkServiceConnectionResponse.class}, tree="[0,1]")
private Output* @Nullable */ List> manualPrivateLinkServiceConnections;
/**
* @return A list of connections to the remote resource. Immutable after it is set.
*
*/
public Output>> manualPrivateLinkServiceConnections() {
return Codegen.optional(this.manualPrivateLinkServiceConnections);
}
/**
* The name of the resource
*
*/
@Export(name="name", refs={String.class}, tree="[0]")
private Output name;
/**
* @return The name of the resource
*
*/
public Output name() {
return this.name;
}
/**
* The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
*
*/
@Export(name="type", refs={String.class}, tree="[0]")
private Output type;
/**
* @return The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
*
*/
public Output type() {
return this.type;
}
/**
*
* @param name The _unique_ name of the resulting resource.
*/
public PrivateEndpoint(java.lang.String name) {
this(name, PrivateEndpointArgs.Empty);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
*/
public PrivateEndpoint(java.lang.String name, PrivateEndpointArgs 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 PrivateEndpoint(java.lang.String name, PrivateEndpointArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure-native:streamanalytics:PrivateEndpoint", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false);
}
private PrivateEndpoint(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure-native:streamanalytics:PrivateEndpoint", name, null, makeResourceOptions(options, id), false);
}
private static PrivateEndpointArgs makeArgs(PrivateEndpointArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
if (options != null && options.getUrn().isPresent()) {
return null;
}
return args == null ? PrivateEndpointArgs.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:streamanalytics/v20200301:PrivateEndpoint").build()),
Output.of(Alias.builder().type("azure-native:streamanalytics/v20200301preview:PrivateEndpoint").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 PrivateEndpoint get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) {
return new PrivateEndpoint(name, id, options);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy