Class Config


  • public class Config
    extends com.pulumi.resources.CustomResource
    > **This resource is deprecated** Please use the cloudinit.Config data source instead. Renders a [multi-part MIME configuration](https://cloudinit.readthedocs.io/en/latest/explanation/format.html#mime-multi-part-archive) for use with [cloud-init](https://cloudinit.readthedocs.io/en/latest/). Cloud-init is a commonly-used startup configuration utility for cloud compute instances. It accepts configuration via provider-specific user data mechanisms, such as `user_data` for Amazon EC2 instances. Multi-part MIME is one of the data formats it accepts. For more information, see [User-Data Formats](https://cloudinit.readthedocs.io/en/latest/explanation/format.html) in the cloud-init manual. This is not a generalized utility for producing multi-part MIME messages. It's feature set is specialized for cloud-init multi-part MIME messages. ## Example Usage ### Config ### hello-script.sh ### cloud-config.yaml <!-- This schema was originally generated with tfplugindocs, then modified manually to ensure `part` block list is noted as Required -->
    • 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
    • Constructor Summary

      Constructors 
      Constructor Description
      Config​(java.lang.String name)  
      Config​(java.lang.String name, ConfigArgs args)  
      Config​(java.lang.String name, ConfigArgs args, com.pulumi.resources.CustomResourceOptions options)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.pulumi.core.Output<java.lang.Boolean> base64Encode()  
      com.pulumi.core.Output<java.lang.String> boundary()  
      static Config get​(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, ConfigState state, 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.lang.Boolean> gzip()  
      com.pulumi.core.Output<java.util.Optional<java.util.List<ConfigPart>>> parts()  
      com.pulumi.core.Output<java.lang.String> rendered()  
      • 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

      • Config

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

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

        public Config​(java.lang.String name,
                      @Nullable
                      ConfigArgs 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

      • base64Encode

        public com.pulumi.core.Output<java.lang.Boolean> base64Encode()
        Returns:
        Specify whether or not to base64 encode the `rendered` output. Defaults to `true`, and cannot be disabled if gzip is `true`.
      • boundary

        public com.pulumi.core.Output<java.lang.String> boundary()
        Returns:
        Specify the Writer's default boundary separator. Defaults to `MIMEBOUNDARY`.
      • gzip

        public com.pulumi.core.Output<java.lang.Boolean> gzip()
        Returns:
        Specify whether or not to gzip the `rendered` output. Defaults to `true`.
      • parts

        public com.pulumi.core.Output<java.util.Optional<java.util.List<ConfigPart>>> parts()
        Returns:
        A nested block type which adds a file to the generated cloud-init configuration. Use multiple `part` blocks to specify multiple files, which will be included in order of declaration in the final MIME document.
      • rendered

        public com.pulumi.core.Output<java.lang.String> rendered()
        Returns:
        The final rendered multi-part cloud-init config.
      • get

        public static Config get​(java.lang.String name,
                                 com.pulumi.core.Output<java.lang.String> id,
                                 @Nullable
                                 ConfigState state,
                                 @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.
        state -
        options - Optional settings to control the behavior of the CustomResource.