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

com.pulumi.azurenative.security.SecurityConnector Maven / Gradle / Ivy

There is a newer version: 2.78.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.security;

import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.security.SecurityConnectorArgs;
import com.pulumi.azurenative.security.outputs.AwsEnvironmentDataResponse;
import com.pulumi.azurenative.security.outputs.AzureDevOpsScopeEnvironmentDataResponse;
import com.pulumi.azurenative.security.outputs.CspmMonitorAwsOfferingResponse;
import com.pulumi.azurenative.security.outputs.CspmMonitorAzureDevOpsOfferingResponse;
import com.pulumi.azurenative.security.outputs.CspmMonitorGcpOfferingResponse;
import com.pulumi.azurenative.security.outputs.CspmMonitorGitLabOfferingResponse;
import com.pulumi.azurenative.security.outputs.CspmMonitorGithubOfferingResponse;
import com.pulumi.azurenative.security.outputs.DefenderCspmAwsOfferingResponse;
import com.pulumi.azurenative.security.outputs.DefenderCspmGcpOfferingResponse;
import com.pulumi.azurenative.security.outputs.DefenderFoDatabasesAwsOfferingResponse;
import com.pulumi.azurenative.security.outputs.DefenderForContainersAwsOfferingResponse;
import com.pulumi.azurenative.security.outputs.DefenderForContainersGcpOfferingResponse;
import com.pulumi.azurenative.security.outputs.DefenderForDatabasesGcpOfferingResponse;
import com.pulumi.azurenative.security.outputs.DefenderForDevOpsAzureDevOpsOfferingResponse;
import com.pulumi.azurenative.security.outputs.DefenderForDevOpsGitLabOfferingResponse;
import com.pulumi.azurenative.security.outputs.DefenderForDevOpsGithubOfferingResponse;
import com.pulumi.azurenative.security.outputs.DefenderForServersAwsOfferingResponse;
import com.pulumi.azurenative.security.outputs.DefenderForServersGcpOfferingResponse;
import com.pulumi.azurenative.security.outputs.GcpProjectEnvironmentDataResponse;
import com.pulumi.azurenative.security.outputs.GithubScopeEnvironmentDataResponse;
import com.pulumi.azurenative.security.outputs.GitlabScopeEnvironmentDataResponse;
import com.pulumi.azurenative.security.outputs.InformationProtectionAwsOfferingResponse;
import com.pulumi.azurenative.security.outputs.SystemDataResponse;
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.Object;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import javax.annotation.Nullable;

/**
 * The security connector resource.
 * Azure REST API version: 2023-03-01-preview. Prior API version in Azure Native 1.x: 2021-07-01-preview.
 * 
 * Other available API versions: 2021-07-01-preview, 2023-10-01-preview, 2024-03-01-preview.
 * 
 * ## Example Usage
 * ### Create or update a security connector
 * 
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.security.SecurityConnector;
 * import com.pulumi.azurenative.security.SecurityConnectorArgs;
 * 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 securityConnector = new SecurityConnector("securityConnector", SecurityConnectorArgs.builder()
 *             .environmentData(AwsEnvironmentDataArgs.builder()
 *                 .environmentType("AwsAccount")
 *                 .build())
 *             .environmentName("AWS")
 *             .hierarchyIdentifier("exampleHierarchyId")
 *             .location("Central US")
 *             .offerings(CspmMonitorAwsOfferingArgs.builder()
 *                 .nativeCloudConnection(CspmMonitorAwsOfferingNativeCloudConnectionArgs.builder()
 *                     .cloudRoleArn("arn:aws:iam::00000000:role/ASCMonitor")
 *                     .build())
 *                 .offeringType("CspmMonitorAws")
 *                 .build())
 *             .resourceGroupName("exampleResourceGroup")
 *             .securityConnectorName("exampleSecurityConnectorName")
 *             .tags()
 *             .build());
 * 
 *     }
 * }
 * 
 * }
 * 
* * ## Import * * An existing resource can be imported using its type token, name, and identifier, e.g. * * ```sh * $ pulumi import azure-native:security:SecurityConnector exampleSecurityConnectorName /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName} * ``` * */ @ResourceType(type="azure-native:security:SecurityConnector") public class SecurityConnector extends com.pulumi.resources.CustomResource { /** * The security connector environment data. * */ @Export(name="environmentData", refs={Object.class}, tree="[0]") private Output environmentData; /** * @return The security connector environment data. * */ public Output> environmentData() { return Codegen.optional(this.environmentData); } /** * The multi cloud resource's cloud name. * */ @Export(name="environmentName", refs={String.class}, tree="[0]") private Output environmentName; /** * @return The multi cloud resource's cloud name. * */ public Output> environmentName() { return Codegen.optional(this.environmentName); } /** * Entity tag is used for comparing two or more entities from the same requested resource. * */ @Export(name="etag", refs={String.class}, tree="[0]") private Output etag; /** * @return Entity tag is used for comparing two or more entities from the same requested resource. * */ public Output> etag() { return Codegen.optional(this.etag); } /** * The multi cloud resource identifier (account id in case of AWS connector, project number in case of GCP connector). * */ @Export(name="hierarchyIdentifier", refs={String.class}, tree="[0]") private Output hierarchyIdentifier; /** * @return The multi cloud resource identifier (account id in case of AWS connector, project number in case of GCP connector). * */ public Output> hierarchyIdentifier() { return Codegen.optional(this.hierarchyIdentifier); } /** * The date on which the trial period will end, if applicable. Trial period exists for 30 days after upgrading to payed offerings. * */ @Export(name="hierarchyIdentifierTrialEndDate", refs={String.class}, tree="[0]") private Output hierarchyIdentifierTrialEndDate; /** * @return The date on which the trial period will end, if applicable. Trial period exists for 30 days after upgrading to payed offerings. * */ public Output hierarchyIdentifierTrialEndDate() { return this.hierarchyIdentifierTrialEndDate; } /** * Kind of the resource * */ @Export(name="kind", refs={String.class}, tree="[0]") private Output kind; /** * @return Kind of the resource * */ public Output> kind() { return Codegen.optional(this.kind); } /** * Location where the resource is stored * */ @Export(name="location", refs={String.class}, tree="[0]") private Output location; /** * @return Location where the resource is stored * */ 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; } /** * A collection of offerings for the security connector. * */ @Export(name="offerings", refs={List.class,Object.class}, tree="[0,1]") private Output> offerings; /** * @return A collection of offerings for the security connector. * */ public Output>> offerings() { return Codegen.optional(this.offerings); } /** * 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; } /** * A list of key value pairs that describe the resource. * */ @Export(name="tags", refs={Map.class,String.class}, tree="[0,1,1]") private Output> tags; /** * @return A list of key value pairs that describe the resource. * */ 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 SecurityConnector(java.lang.String name) { this(name, SecurityConnectorArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public SecurityConnector(java.lang.String name, SecurityConnectorArgs 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 SecurityConnector(java.lang.String name, SecurityConnectorArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:security:SecurityConnector", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private SecurityConnector(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:security:SecurityConnector", name, null, makeResourceOptions(options, id), false); } private static SecurityConnectorArgs makeArgs(SecurityConnectorArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? SecurityConnectorArgs.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:security/v20210701preview:SecurityConnector").build()), Output.of(Alias.builder().type("azure-native:security/v20211201preview:SecurityConnector").build()), Output.of(Alias.builder().type("azure-native:security/v20220501preview:SecurityConnector").build()), Output.of(Alias.builder().type("azure-native:security/v20220801preview:SecurityConnector").build()), Output.of(Alias.builder().type("azure-native:security/v20230301preview:SecurityConnector").build()), Output.of(Alias.builder().type("azure-native:security/v20231001preview:SecurityConnector").build()), Output.of(Alias.builder().type("azure-native:security/v20240301preview:SecurityConnector").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 SecurityConnector get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new SecurityConnector(name, id, options); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy