All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azurenative.securityinsights.FileImport Maven / Gradle / Ivy

There is a newer version: 2.82.0
Show newest version
// *** 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.securityinsights;

import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.securityinsights.FileImportArgs;
import com.pulumi.azurenative.securityinsights.outputs.FileMetadataResponse;
import com.pulumi.azurenative.securityinsights.outputs.SystemDataResponse;
import com.pulumi.azurenative.securityinsights.outputs.ValidationErrorResponse;
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.Integer;
import java.lang.String;
import java.util.List;
import javax.annotation.Nullable;

/**
 * Represents a file import in Azure Security Insights.
 * Azure REST API version: 2023-06-01-preview.
 * 
 * Other available API versions: 2023-07-01-preview, 2023-08-01-preview, 2023-09-01-preview, 2023-10-01-preview, 2023-12-01-preview, 2024-01-01-preview, 2024-04-01-preview.
 * 
 * ## Example Usage
 * ### Create a file import.
 * 
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.securityinsights.FileImport;
 * import com.pulumi.azurenative.securityinsights.FileImportArgs;
 * import com.pulumi.azurenative.securityinsights.inputs.FileMetadataArgs;
 * 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 fileImport = new FileImport("fileImport", FileImportArgs.builder()
 *             .contentType("StixIndicator")
 *             .fileImportId("73e01a99-5cd7-4139-a149-9f2736ff2ab5")
 *             .importFile(FileMetadataArgs.builder()
 *                 .fileFormat("JSON")
 *                 .fileName("myFile.json")
 *                 .fileSize(4653)
 *                 .build())
 *             .ingestionMode("IngestAnyValidRecords")
 *             .resourceGroupName("myRg")
 *             .source("mySource")
 *             .workspaceName("myWorkspace")
 *             .build());
 * 
 *     }
 * }
 * 
 * }
 * 
* * ## Import * * An existing resource can be imported using its type token, name, and identifier, e.g. * * ```sh * $ pulumi import azure-native:securityinsights:FileImport 73e01a99-5cd7-4139-a149-9f2736ff2ab5 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/fileImports/{fileImportId} * ``` * */ @ResourceType(type="azure-native:securityinsights:FileImport") public class FileImport extends com.pulumi.resources.CustomResource { /** * The content type of this file. * */ @Export(name="contentType", refs={String.class}, tree="[0]") private Output contentType; /** * @return The content type of this file. * */ public Output contentType() { return this.contentType; } /** * The time the file was imported. * */ @Export(name="createdTimeUTC", refs={String.class}, tree="[0]") private Output createdTimeUTC; /** * @return The time the file was imported. * */ public Output createdTimeUTC() { return this.createdTimeUTC; } /** * Represents the error file (if the import was ingested with errors or failed the validation). * */ @Export(name="errorFile", refs={FileMetadataResponse.class}, tree="[0]") private Output errorFile; /** * @return Represents the error file (if the import was ingested with errors or failed the validation). * */ public Output errorFile() { return this.errorFile; } /** * An ordered list of some of the errors that were encountered during validation. * */ @Export(name="errorsPreview", refs={List.class,ValidationErrorResponse.class}, tree="[0,1]") private Output> errorsPreview; /** * @return An ordered list of some of the errors that were encountered during validation. * */ public Output> errorsPreview() { return this.errorsPreview; } /** * The time the files associated with this import are deleted from the storage account. * */ @Export(name="filesValidUntilTimeUTC", refs={String.class}, tree="[0]") private Output filesValidUntilTimeUTC; /** * @return The time the files associated with this import are deleted from the storage account. * */ public Output filesValidUntilTimeUTC() { return this.filesValidUntilTimeUTC; } /** * Represents the imported file. * */ @Export(name="importFile", refs={FileMetadataResponse.class}, tree="[0]") private Output importFile; /** * @return Represents the imported file. * */ public Output importFile() { return this.importFile; } /** * The time the file import record is soft deleted from the database and history. * */ @Export(name="importValidUntilTimeUTC", refs={String.class}, tree="[0]") private Output importValidUntilTimeUTC; /** * @return The time the file import record is soft deleted from the database and history. * */ public Output importValidUntilTimeUTC() { return this.importValidUntilTimeUTC; } /** * The number of records that have been successfully ingested. * */ @Export(name="ingestedRecordCount", refs={Integer.class}, tree="[0]") private Output ingestedRecordCount; /** * @return The number of records that have been successfully ingested. * */ public Output ingestedRecordCount() { return this.ingestedRecordCount; } /** * Describes how to ingest the records in the file. * */ @Export(name="ingestionMode", refs={String.class}, tree="[0]") private Output ingestionMode; /** * @return Describes how to ingest the records in the file. * */ public Output ingestionMode() { return this.ingestionMode; } /** * 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 source for the data in the file. * */ @Export(name="source", refs={String.class}, tree="[0]") private Output source; /** * @return The source for the data in the file. * */ public Output source() { return this.source; } /** * The state of the file import. * */ @Export(name="state", refs={String.class}, tree="[0]") private Output state; /** * @return The state of the file import. * */ public Output state() { return this.state; } /** * Azure Resource Manager metadata containing createdBy and modifiedBy information. * */ @Export(name="systemData", refs={SystemDataResponse.class}, tree="[0]") private Output systemData; /** * @return Azure Resource Manager metadata containing createdBy and modifiedBy information. * */ public Output systemData() { return this.systemData; } /** * The number of records in the file. * */ @Export(name="totalRecordCount", refs={Integer.class}, tree="[0]") private Output totalRecordCount; /** * @return The number of records in the file. * */ public Output totalRecordCount() { return this.totalRecordCount; } /** * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" * */ @Export(name="type", refs={String.class}, tree="[0]") private Output type; /** * @return The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" * */ public Output type() { return this.type; } /** * The number of records that have passed validation. * */ @Export(name="validRecordCount", refs={Integer.class}, tree="[0]") private Output validRecordCount; /** * @return The number of records that have passed validation. * */ public Output validRecordCount() { return this.validRecordCount; } /** * * @param name The _unique_ name of the resulting resource. */ public FileImport(java.lang.String name) { this(name, FileImportArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public FileImport(java.lang.String name, FileImportArgs 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 FileImport(java.lang.String name, FileImportArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:securityinsights:FileImport", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private FileImport(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:securityinsights:FileImport", name, null, makeResourceOptions(options, id), false); } private static FileImportArgs makeArgs(FileImportArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? FileImportArgs.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:securityinsights/v20220801preview:FileImport").build()), Output.of(Alias.builder().type("azure-native:securityinsights/v20220901preview:FileImport").build()), Output.of(Alias.builder().type("azure-native:securityinsights/v20221001preview:FileImport").build()), Output.of(Alias.builder().type("azure-native:securityinsights/v20221101preview:FileImport").build()), Output.of(Alias.builder().type("azure-native:securityinsights/v20221201preview:FileImport").build()), Output.of(Alias.builder().type("azure-native:securityinsights/v20230201preview:FileImport").build()), Output.of(Alias.builder().type("azure-native:securityinsights/v20230301preview:FileImport").build()), Output.of(Alias.builder().type("azure-native:securityinsights/v20230401preview:FileImport").build()), Output.of(Alias.builder().type("azure-native:securityinsights/v20230501preview:FileImport").build()), Output.of(Alias.builder().type("azure-native:securityinsights/v20230601preview:FileImport").build()), Output.of(Alias.builder().type("azure-native:securityinsights/v20230701preview:FileImport").build()), Output.of(Alias.builder().type("azure-native:securityinsights/v20230801preview:FileImport").build()), Output.of(Alias.builder().type("azure-native:securityinsights/v20230901preview:FileImport").build()), Output.of(Alias.builder().type("azure-native:securityinsights/v20231001preview:FileImport").build()), Output.of(Alias.builder().type("azure-native:securityinsights/v20231201preview:FileImport").build()), Output.of(Alias.builder().type("azure-native:securityinsights/v20240101preview:FileImport").build()), Output.of(Alias.builder().type("azure-native:securityinsights/v20240401preview:FileImport").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 FileImport get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new FileImport(name, id, options); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy