
com.pulumi.azurenative.security.IotSecuritySolution 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.azurenative.security;
import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.security.IotSecuritySolutionArgs;
import com.pulumi.azurenative.security.outputs.AdditionalWorkspacesPropertiesResponse;
import com.pulumi.azurenative.security.outputs.RecommendationConfigurationPropertiesResponse;
import com.pulumi.azurenative.security.outputs.SystemDataResponse;
import com.pulumi.azurenative.security.outputs.UserDefinedResourcesPropertiesResponse;
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;
/**
* IoT Security solution configuration and resource information.
* Azure REST API version: 2019-08-01. Prior API version in Azure Native 1.x: 2019-08-01.
*
* Other available API versions: 2017-08-01-preview.
*
* ## Example Usage
* ### Create or update a IoT security solution
*
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azurenative.security.IotSecuritySolution;
* import com.pulumi.azurenative.security.IotSecuritySolutionArgs;
* import com.pulumi.azurenative.security.inputs.RecommendationConfigurationPropertiesArgs;
* import com.pulumi.azurenative.security.inputs.UserDefinedResourcesPropertiesArgs;
* 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 iotSecuritySolution = new IotSecuritySolution("iotSecuritySolution", IotSecuritySolutionArgs.builder()
* .disabledDataSources()
* .displayName("Solution Default")
* .export()
* .iotHubs("/subscriptions/075423e9-7d33-4166-8bdf-3920b04e3735/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/FirstIotHub")
* .location("East Us")
* .recommendationsConfiguration(
* RecommendationConfigurationPropertiesArgs.builder()
* .recommendationType("IoT_OpenPorts")
* .status("Disabled")
* .build(),
* RecommendationConfigurationPropertiesArgs.builder()
* .recommendationType("IoT_SharedCredentials")
* .status("Disabled")
* .build())
* .resourceGroupName("MyGroup")
* .solutionName("default")
* .status("Enabled")
* .tags()
* .unmaskedIpLoggingStatus("Enabled")
* .userDefinedResources(UserDefinedResourcesPropertiesArgs.builder()
* .query("where type != \"microsoft.devices/iothubs\" | where name contains \"iot\"")
* .querySubscriptions("075423e9-7d33-4166-8bdf-3920b04e3735")
* .build())
* .workspace("/subscriptions/c4930e90-cd72-4aa5-93e9-2d081d129569/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace1")
* .build());
*
* }
* }
*
* }
*
*
* ## Import
*
* An existing resource can be imported using its type token, name, and identifier, e.g.
*
* ```sh
* $ pulumi import azure-native:security:IotSecuritySolution default /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/iotSecuritySolutions/{solutionName}
* ```
*
*/
@ResourceType(type="azure-native:security:IotSecuritySolution")
public class IotSecuritySolution extends com.pulumi.resources.CustomResource {
/**
* List of additional workspaces
*
*/
@Export(name="additionalWorkspaces", refs={List.class,AdditionalWorkspacesPropertiesResponse.class}, tree="[0,1]")
private Output* @Nullable */ List> additionalWorkspaces;
/**
* @return List of additional workspaces
*
*/
public Output>> additionalWorkspaces() {
return Codegen.optional(this.additionalWorkspaces);
}
/**
* List of resources that were automatically discovered as relevant to the security solution.
*
*/
@Export(name="autoDiscoveredResources", refs={List.class,String.class}, tree="[0,1]")
private Output> autoDiscoveredResources;
/**
* @return List of resources that were automatically discovered as relevant to the security solution.
*
*/
public Output> autoDiscoveredResources() {
return this.autoDiscoveredResources;
}
/**
* Disabled data sources. Disabling these data sources compromises the system.
*
*/
@Export(name="disabledDataSources", refs={List.class,String.class}, tree="[0,1]")
private Output* @Nullable */ List> disabledDataSources;
/**
* @return Disabled data sources. Disabling these data sources compromises the system.
*
*/
public Output>> disabledDataSources() {
return Codegen.optional(this.disabledDataSources);
}
/**
* Resource display name.
*
*/
@Export(name="displayName", refs={String.class}, tree="[0]")
private Output displayName;
/**
* @return Resource display name.
*
*/
public Output displayName() {
return this.displayName;
}
/**
* List of additional options for exporting to workspace data.
*
*/
@Export(name="export", refs={List.class,String.class}, tree="[0,1]")
private Output* @Nullable */ List> export;
/**
* @return List of additional options for exporting to workspace data.
*
*/
public Output>> export() {
return Codegen.optional(this.export);
}
/**
* IoT Hub resource IDs
*
*/
@Export(name="iotHubs", refs={List.class,String.class}, tree="[0,1]")
private Output> iotHubs;
/**
* @return IoT Hub resource IDs
*
*/
public Output> iotHubs() {
return this.iotHubs;
}
/**
* The resource location.
*
*/
@Export(name="location", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> location;
/**
* @return The resource location.
*
*/
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;
}
/**
* List of the configuration status for each recommendation type.
*
*/
@Export(name="recommendationsConfiguration", refs={List.class,RecommendationConfigurationPropertiesResponse.class}, tree="[0,1]")
private Output* @Nullable */ List> recommendationsConfiguration;
/**
* @return List of the configuration status for each recommendation type.
*
*/
public Output>> recommendationsConfiguration() {
return Codegen.optional(this.recommendationsConfiguration);
}
/**
* Status of the IoT Security solution.
*
*/
@Export(name="status", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> status;
/**
* @return Status of the IoT Security solution.
*
*/
public Output> status() {
return Codegen.optional(this.status);
}
/**
* 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;
}
/**
* Resource tags
*
*/
@Export(name="tags", refs={Map.class,String.class}, tree="[0,1,1]")
private Output* @Nullable */ Map> tags;
/**
* @return Resource tags
*
*/
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;
}
/**
* Unmasked IP address logging status
*
*/
@Export(name="unmaskedIpLoggingStatus", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> unmaskedIpLoggingStatus;
/**
* @return Unmasked IP address logging status
*
*/
public Output> unmaskedIpLoggingStatus() {
return Codegen.optional(this.unmaskedIpLoggingStatus);
}
/**
* Properties of the IoT Security solution's user defined resources.
*
*/
@Export(name="userDefinedResources", refs={UserDefinedResourcesPropertiesResponse.class}, tree="[0]")
private Output* @Nullable */ UserDefinedResourcesPropertiesResponse> userDefinedResources;
/**
* @return Properties of the IoT Security solution's user defined resources.
*
*/
public Output> userDefinedResources() {
return Codegen.optional(this.userDefinedResources);
}
/**
* Workspace resource ID
*
*/
@Export(name="workspace", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> workspace;
/**
* @return Workspace resource ID
*
*/
public Output> workspace() {
return Codegen.optional(this.workspace);
}
/**
*
* @param name The _unique_ name of the resulting resource.
*/
public IotSecuritySolution(java.lang.String name) {
this(name, IotSecuritySolutionArgs.Empty);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
*/
public IotSecuritySolution(java.lang.String name, IotSecuritySolutionArgs 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 IotSecuritySolution(java.lang.String name, IotSecuritySolutionArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure-native:security:IotSecuritySolution", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false);
}
private IotSecuritySolution(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure-native:security:IotSecuritySolution", name, null, makeResourceOptions(options, id), false);
}
private static IotSecuritySolutionArgs makeArgs(IotSecuritySolutionArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
if (options != null && options.getUrn().isPresent()) {
return null;
}
return args == null ? IotSecuritySolutionArgs.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/v20170801preview:IotSecuritySolution").build()),
Output.of(Alias.builder().type("azure-native:security/v20190801:IotSecuritySolution").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 IotSecuritySolution get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) {
return new IotSecuritySolution(name, id, options);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy