Class DscNodeConfiguration


  • public class DscNodeConfiguration
    extends com.pulumi.resources.CustomResource
    Definition of the dsc node configuration. Azure REST API version: 2022-08-08. Prior API version in Azure Native 1.x: 2019-06-01. Other available API versions: 2023-05-15-preview, 2023-11-01. ## Example Usage ### Create node configuration ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.azurenative.automation.DscNodeConfiguration; import com.pulumi.azurenative.automation.DscNodeConfigurationArgs; 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 dscNodeConfiguration = new DscNodeConfiguration("dscNodeConfiguration", DscNodeConfigurationArgs.builder() .automationAccountName("myAutomationAccount20") .configuration(Map.of("name", "configName")) .incrementNodeConfigurationBuild(true) .name("configName.nodeConfigName") .nodeConfigurationName("configName.nodeConfigName") .resourceGroupName("rg") .source(Map.ofEntries( Map.entry("hash", Map.ofEntries( Map.entry("algorithm", "sha256"), Map.entry("value", "6DE256A57F01BFA29B88696D5E77A383D6E61484C7686E8DB955FA10ACE9FFE5") )), Map.entry("type", "embeddedContent"), Map.entry("value", """ instance of MSFT_RoleResource as $MSFT_RoleResource1ref { ResourceID = "[WindowsFeature]IIS"; Ensure = "Present"; SourceInfo = "::3::32::WindowsFeature"; Name = "Web-Server"; ModuleName = "PsDesiredStateConfiguration"; ModuleVersion = "1.0"; ConfigurationName = "configName"; }; instance of OMI_ConfigurationDocument { Version="2.0.0"; MinimumCompatibleVersion = "1.0.0"; CompatibleVersionAdditionalProperties= {"Omi_BaseResource:ConfigurationName"}; Author="weijiel"; GenerationDate="03/30/2017 13:40:25"; GenerationHost="TEST-BACKEND"; Name="configName"; }; """), Map.entry("version", "1.0") )) .build()); } } ``` ## Import An existing resource can be imported using its type token, name, and identifier, e.g. ```sh $ pulumi import azure-native:automation:DscNodeConfiguration configName.nodeConfigName /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/nodeConfigurations/{nodeConfigurationName} ```
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.pulumi.resources.CustomResource

        com.pulumi.resources.CustomResource.CustomResourceInternal
      • Nested classes/interfaces inherited from class com.pulumi.resources.Resource

        com.pulumi.resources.Resource.LazyField<T extends java.lang.Object>, com.pulumi.resources.Resource.LazyFields, com.pulumi.resources.Resource.ResourceInternal
    • Field Summary

      • Fields inherited from class com.pulumi.resources.Resource

        childResources, remote
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.pulumi.core.Output<java.util.Optional<DscConfigurationAssociationPropertyResponse>> configuration()  
      com.pulumi.core.Output<java.util.Optional<java.lang.String>> creationTime()  
      static DscNodeConfiguration get​(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, com.pulumi.resources.CustomResourceOptions options)
      Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
      com.pulumi.core.Output<java.util.Optional<java.lang.Boolean>> incrementNodeConfigurationBuild()  
      com.pulumi.core.Output<java.util.Optional<java.lang.String>> lastModifiedTime()  
      com.pulumi.core.Output<java.lang.String> name()  
      com.pulumi.core.Output<java.util.Optional<java.lang.Double>> nodeCount()  
      com.pulumi.core.Output<java.util.Optional<java.lang.String>> source()  
      com.pulumi.core.Output<java.lang.String> type()  
      • Methods inherited from class com.pulumi.resources.CustomResource

        getId, id, idFuture
      • Methods inherited from class com.pulumi.resources.Resource

        getChildResources, getResourceName, getResourceType, getUrn, pulumiChildResources, pulumiResourceName, pulumiResourceType, urn
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DscNodeConfiguration

        public DscNodeConfiguration​(java.lang.String name)
        Parameters:
        name - The _unique_ name of the resulting resource.
      • DscNodeConfiguration

        public DscNodeConfiguration​(java.lang.String name,
                                    DscNodeConfigurationArgs args)
        Parameters:
        name - The _unique_ name of the resulting resource.
        args - The arguments to use to populate this resource's properties.
      • DscNodeConfiguration

        public DscNodeConfiguration​(java.lang.String name,
                                    DscNodeConfigurationArgs args,
                                    @Nullable
                                    com.pulumi.resources.CustomResourceOptions options)
        Parameters:
        name - The _unique_ name of the resulting resource.
        args - The arguments to use to populate this resource's properties.
        options - A bag of options that control this resource's behavior.
    • Method Detail

      • creationTime

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> creationTime()
        Returns:
        Gets or sets creation time.
      • incrementNodeConfigurationBuild

        public com.pulumi.core.Output<java.util.Optional<java.lang.Boolean>> incrementNodeConfigurationBuild()
        Returns:
        If a new build version of NodeConfiguration is required.
      • lastModifiedTime

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> lastModifiedTime()
        Returns:
        Gets or sets the last modified time.
      • name

        public com.pulumi.core.Output<java.lang.String> name()
        Returns:
        The name of the resource
      • nodeCount

        public com.pulumi.core.Output<java.util.Optional<java.lang.Double>> nodeCount()
        Returns:
        Number of nodes with this node configuration assigned
      • source

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> source()
        Returns:
        Source of node configuration.
      • type

        public com.pulumi.core.Output<java.lang.String> type()
        Returns:
        The type of the resource.
      • get

        public static DscNodeConfiguration get​(java.lang.String name,
                                               com.pulumi.core.Output<java.lang.String> id,
                                               @Nullable
                                               com.pulumi.resources.CustomResourceOptions options)
        Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
        Parameters:
        name - The _unique_ name of the resulting resource.
        id - The _unique_ provider ID of the resource to lookup.
        options - Optional settings to control the behavior of the CustomResource.