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

com.pulumi.azure.securitycenter.ServerVulnerabilityAssessmentsSetting Maven / Gradle / Ivy

// *** 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.azure.securitycenter;

import com.pulumi.azure.Utilities;
import com.pulumi.azure.securitycenter.ServerVulnerabilityAssessmentsSettingArgs;
import com.pulumi.azure.securitycenter.inputs.ServerVulnerabilityAssessmentsSettingState;
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 javax.annotation.Nullable;

/**
 * Manages the Server Vulnerability Assesments Setting for Azure Security Center.
 * 
 * > **NOTE:** This resource requires the `Owner` permission on the Subscription.
 * 
 * > **NOTE:** Deletion of this resource disables the setting.
 * 
 * ## Example Usage
 * 
 * <!--Start PulumiCodeChooser -->
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azure.securitycenter.ServerVulnerabilityAssessmentsSetting;
 * import com.pulumi.azure.securitycenter.ServerVulnerabilityAssessmentsSettingArgs;
 * 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 example = new ServerVulnerabilityAssessmentsSetting("example", ServerVulnerabilityAssessmentsSettingArgs.builder()
 *             .vulnerabilityAssessmentProvider("MdeTvm")
 *             .build());
 * 
 *     }
 * }
 * }
 * 
* <!--End PulumiCodeChooser --> * * ## Import * * The setting can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:securitycenter/serverVulnerabilityAssessmentsSetting:ServerVulnerabilityAssessmentsSetting example /subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Security/serverVulnerabilityAssessmentsSettings/AzureServersSetting * ``` * */ @ResourceType(type="azure:securitycenter/serverVulnerabilityAssessmentsSetting:ServerVulnerabilityAssessmentsSetting") public class ServerVulnerabilityAssessmentsSetting extends com.pulumi.resources.CustomResource { /** * The vulnerability assesment provider to use. The only possible values is `MdeTvm`. * */ @Export(name="vulnerabilityAssessmentProvider", refs={String.class}, tree="[0]") private Output vulnerabilityAssessmentProvider; /** * @return The vulnerability assesment provider to use. The only possible values is `MdeTvm`. * */ public Output vulnerabilityAssessmentProvider() { return this.vulnerabilityAssessmentProvider; } /** * * @param name The _unique_ name of the resulting resource. */ public ServerVulnerabilityAssessmentsSetting(java.lang.String name) { this(name, ServerVulnerabilityAssessmentsSettingArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public ServerVulnerabilityAssessmentsSetting(java.lang.String name, ServerVulnerabilityAssessmentsSettingArgs 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 ServerVulnerabilityAssessmentsSetting(java.lang.String name, ServerVulnerabilityAssessmentsSettingArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure:securitycenter/serverVulnerabilityAssessmentsSetting:ServerVulnerabilityAssessmentsSetting", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private ServerVulnerabilityAssessmentsSetting(java.lang.String name, Output id, @Nullable ServerVulnerabilityAssessmentsSettingState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure:securitycenter/serverVulnerabilityAssessmentsSetting:ServerVulnerabilityAssessmentsSetting", name, state, makeResourceOptions(options, id), false); } private static ServerVulnerabilityAssessmentsSettingArgs makeArgs(ServerVulnerabilityAssessmentsSettingArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? ServerVulnerabilityAssessmentsSettingArgs.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()) .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 state * @param options Optional settings to control the behavior of the CustomResource. */ public static ServerVulnerabilityAssessmentsSetting get(java.lang.String name, Output id, @Nullable ServerVulnerabilityAssessmentsSettingState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new ServerVulnerabilityAssessmentsSetting(name, id, state, options); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy