
com.pulumi.azurenative.purview.Account 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.purview;
import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.purview.AccountArgs;
import com.pulumi.azurenative.purview.outputs.AccountPropertiesResponseAccountStatus;
import com.pulumi.azurenative.purview.outputs.AccountPropertiesResponseEndpoints;
import com.pulumi.azurenative.purview.outputs.AccountPropertiesResponseManagedResources;
import com.pulumi.azurenative.purview.outputs.AccountResponseSku;
import com.pulumi.azurenative.purview.outputs.CloudConnectorsResponse;
import com.pulumi.azurenative.purview.outputs.IdentityResponse;
import com.pulumi.azurenative.purview.outputs.PrivateEndpointConnectionResponse;
import com.pulumi.azurenative.purview.outputs.TrackedResourceResponseSystemData;
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;
/**
* Account resource
* Azure REST API version: 2021-12-01. Prior API version in Azure Native 1.x: 2020-12-01-preview.
*
* Other available API versions: 2020-12-01-preview, 2021-07-01, 2023-05-01-preview, 2024-04-01-preview.
*
* ## Example Usage
* ### Accounts_CreateOrUpdate
*
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azurenative.purview.Account;
* import com.pulumi.azurenative.purview.AccountArgs;
* 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 account = new Account("account", AccountArgs.builder()
* .accountName("account1")
* .location("West US 2")
* .managedResourceGroupName("custom-rgname")
* .managedResourcesPublicNetworkAccess("Enabled")
* .resourceGroupName("SampleResourceGroup")
* .build());
*
* }
* }
*
* }
*
*
* ## Import
*
* An existing resource can be imported using its type token, name, and identifier, e.g.
*
* ```sh
* $ pulumi import azure-native:purview:Account account1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Purview/accounts/{accountName}
* ```
*
*/
@ResourceType(type="azure-native:purview:Account")
public class Account extends com.pulumi.resources.CustomResource {
/**
* Gets or sets the status of the account.
*
*/
@Export(name="accountStatus", refs={AccountPropertiesResponseAccountStatus.class}, tree="[0]")
private Output accountStatus;
/**
* @return Gets or sets the status of the account.
*
*/
public Output accountStatus() {
return this.accountStatus;
}
/**
* Cloud connectors.
* External cloud identifier used as part of scanning configuration.
*
*/
@Export(name="cloudConnectors", refs={CloudConnectorsResponse.class}, tree="[0]")
private Output* @Nullable */ CloudConnectorsResponse> cloudConnectors;
/**
* @return Cloud connectors.
* External cloud identifier used as part of scanning configuration.
*
*/
public Output> cloudConnectors() {
return Codegen.optional(this.cloudConnectors);
}
/**
* Gets the time at which the entity was created.
*
*/
@Export(name="createdAt", refs={String.class}, tree="[0]")
private Output createdAt;
/**
* @return Gets the time at which the entity was created.
*
*/
public Output createdAt() {
return this.createdAt;
}
/**
* Gets the creator of the entity.
*
*/
@Export(name="createdBy", refs={String.class}, tree="[0]")
private Output createdBy;
/**
* @return Gets the creator of the entity.
*
*/
public Output createdBy() {
return this.createdBy;
}
/**
* Gets the creators of the entity's object id.
*
*/
@Export(name="createdByObjectId", refs={String.class}, tree="[0]")
private Output createdByObjectId;
/**
* @return Gets the creators of the entity's object id.
*
*/
public Output createdByObjectId() {
return this.createdByObjectId;
}
/**
* The URIs that are the public endpoints of the account.
*
*/
@Export(name="endpoints", refs={AccountPropertiesResponseEndpoints.class}, tree="[0]")
private Output endpoints;
/**
* @return The URIs that are the public endpoints of the account.
*
*/
public Output endpoints() {
return this.endpoints;
}
/**
* Gets or sets the friendly name.
*
*/
@Export(name="friendlyName", refs={String.class}, tree="[0]")
private Output friendlyName;
/**
* @return Gets or sets the friendly name.
*
*/
public Output friendlyName() {
return this.friendlyName;
}
/**
* Identity Info on the tracked resource
*
*/
@Export(name="identity", refs={IdentityResponse.class}, tree="[0]")
private Output* @Nullable */ IdentityResponse> identity;
/**
* @return Identity Info on the tracked resource
*
*/
public Output> identity() {
return Codegen.optional(this.identity);
}
/**
* Gets or sets the location.
*
*/
@Export(name="location", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> location;
/**
* @return Gets or sets the location.
*
*/
public Output> location() {
return Codegen.optional(this.location);
}
/**
* Gets or sets the state of managed eventhub. If enabled managed eventhub will be created, if disabled the managed eventhub will be removed.
*
*/
@Export(name="managedEventHubState", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> managedEventHubState;
/**
* @return Gets or sets the state of managed eventhub. If enabled managed eventhub will be created, if disabled the managed eventhub will be removed.
*
*/
public Output> managedEventHubState() {
return Codegen.optional(this.managedEventHubState);
}
/**
* Gets or sets the managed resource group name
*
*/
@Export(name="managedResourceGroupName", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> managedResourceGroupName;
/**
* @return Gets or sets the managed resource group name
*
*/
public Output> managedResourceGroupName() {
return Codegen.optional(this.managedResourceGroupName);
}
/**
* Gets the resource identifiers of the managed resources.
*
*/
@Export(name="managedResources", refs={AccountPropertiesResponseManagedResources.class}, tree="[0]")
private Output managedResources;
/**
* @return Gets the resource identifiers of the managed resources.
*
*/
public Output managedResources() {
return this.managedResources;
}
/**
* Gets or sets the public network access for managed resources.
*
*/
@Export(name="managedResourcesPublicNetworkAccess", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> managedResourcesPublicNetworkAccess;
/**
* @return Gets or sets the public network access for managed resources.
*
*/
public Output> managedResourcesPublicNetworkAccess() {
return Codegen.optional(this.managedResourcesPublicNetworkAccess);
}
/**
* Gets or sets the name.
*
*/
@Export(name="name", refs={String.class}, tree="[0]")
private Output name;
/**
* @return Gets or sets the name.
*
*/
public Output name() {
return this.name;
}
/**
* Gets the private endpoint connections information.
*
*/
@Export(name="privateEndpointConnections", refs={List.class,PrivateEndpointConnectionResponse.class}, tree="[0,1]")
private Output> privateEndpointConnections;
/**
* @return Gets the private endpoint connections information.
*
*/
public Output> privateEndpointConnections() {
return this.privateEndpointConnections;
}
/**
* Gets or sets the state of the provisioning.
*
*/
@Export(name="provisioningState", refs={String.class}, tree="[0]")
private Output provisioningState;
/**
* @return Gets or sets the state of the provisioning.
*
*/
public Output provisioningState() {
return this.provisioningState;
}
/**
* Gets or sets the public network access.
*
*/
@Export(name="publicNetworkAccess", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> publicNetworkAccess;
/**
* @return Gets or sets the public network access.
*
*/
public Output> publicNetworkAccess() {
return Codegen.optional(this.publicNetworkAccess);
}
/**
* Gets or sets the Sku.
*
*/
@Export(name="sku", refs={AccountResponseSku.class}, tree="[0]")
private Output sku;
/**
* @return Gets or sets the Sku.
*
*/
public Output sku() {
return this.sku;
}
/**
* Metadata pertaining to creation and last modification of the resource.
*
*/
@Export(name="systemData", refs={TrackedResourceResponseSystemData.class}, tree="[0]")
private Output systemData;
/**
* @return Metadata pertaining to creation and last modification of the resource.
*
*/
public Output systemData() {
return this.systemData;
}
/**
* Tags on the azure resource.
*
*/
@Export(name="tags", refs={Map.class,String.class}, tree="[0,1,1]")
private Output* @Nullable */ Map> tags;
/**
* @return Tags on the azure resource.
*
*/
public Output>> tags() {
return Codegen.optional(this.tags);
}
/**
* Gets or sets the type.
*
*/
@Export(name="type", refs={String.class}, tree="[0]")
private Output type;
/**
* @return Gets or sets the type.
*
*/
public Output type() {
return this.type;
}
/**
*
* @param name The _unique_ name of the resulting resource.
*/
public Account(java.lang.String name) {
this(name, AccountArgs.Empty);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
*/
public Account(java.lang.String name, AccountArgs 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 Account(java.lang.String name, AccountArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure-native:purview:Account", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false);
}
private Account(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure-native:purview:Account", name, null, makeResourceOptions(options, id), false);
}
private static AccountArgs makeArgs(AccountArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
if (options != null && options.getUrn().isPresent()) {
return null;
}
return args == null ? AccountArgs.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:purview/v20201201preview:Account").build()),
Output.of(Alias.builder().type("azure-native:purview/v20210701:Account").build()),
Output.of(Alias.builder().type("azure-native:purview/v20211201:Account").build()),
Output.of(Alias.builder().type("azure-native:purview/v20230501preview:Account").build()),
Output.of(Alias.builder().type("azure-native:purview/v20240401preview:Account").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 Account get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) {
return new Account(name, id, options);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy