Class CustomLayer


  • public class CustomLayer
    extends com.pulumi.resources.CustomResource
    Provides an OpsWorks custom layer resource. ## Example Usage <!--Start PulumiCodeChooser --> ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.aws.opsworks.CustomLayer; import com.pulumi.aws.opsworks.CustomLayerArgs; 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 custlayer = new CustomLayer("custlayer", CustomLayerArgs.builder() .name("My Awesome Custom Layer") .shortName("awesome") .stackId(main.id()) .build()); } } ``` <!--End PulumiCodeChooser --> ## Import Using `pulumi import`, import OpsWorks Custom Layers using the `id`. For example: ```sh $ pulumi import aws:opsworks/customLayer:CustomLayer bar 00000000-0000-0000-0000-000000000000 ```
    • 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.lang.String> arn()  
      com.pulumi.core.Output<java.util.Optional<java.lang.Boolean>> autoAssignElasticIps()  
      com.pulumi.core.Output<java.util.Optional<java.lang.Boolean>> autoAssignPublicIps()  
      com.pulumi.core.Output<java.util.Optional<java.lang.Boolean>> autoHealing()  
      com.pulumi.core.Output<java.util.Optional<CustomLayerCloudwatchConfiguration>> cloudwatchConfiguration()  
      com.pulumi.core.Output<java.util.Optional<java.util.List<java.lang.String>>> customConfigureRecipes()  
      com.pulumi.core.Output<java.util.Optional<java.util.List<java.lang.String>>> customDeployRecipes()  
      com.pulumi.core.Output<java.util.Optional<java.lang.String>> customInstanceProfileArn()  
      com.pulumi.core.Output<java.util.Optional<java.lang.String>> customJson()  
      com.pulumi.core.Output<java.util.Optional<java.util.List<java.lang.String>>> customSecurityGroupIds()  
      com.pulumi.core.Output<java.util.Optional<java.util.List<java.lang.String>>> customSetupRecipes()  
      com.pulumi.core.Output<java.util.Optional<java.util.List<java.lang.String>>> customShutdownRecipes()  
      com.pulumi.core.Output<java.util.Optional<java.util.List<java.lang.String>>> customUndeployRecipes()  
      com.pulumi.core.Output<java.util.Optional<java.lang.Boolean>> drainElbOnShutdown()  
      com.pulumi.core.Output<java.util.List<CustomLayerEbsVolume>> ebsVolumes()  
      com.pulumi.core.Output<java.util.Optional<java.lang.String>> elasticLoadBalancer()  
      static CustomLayer get​(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, CustomLayerState 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.util.Optional<java.lang.Boolean>> installUpdatesOnBoot()  
      com.pulumi.core.Output<java.util.Optional<java.lang.Integer>> instanceShutdownTimeout()  
      com.pulumi.core.Output<CustomLayerLoadBasedAutoScaling> loadBasedAutoScaling()  
      com.pulumi.core.Output<java.lang.String> name()  
      com.pulumi.core.Output<java.lang.String> shortName()  
      com.pulumi.core.Output<java.lang.String> stackId()  
      com.pulumi.core.Output<java.util.Optional<java.util.List<java.lang.String>>> systemPackages()  
      com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,​java.lang.String>>> tags()  
      com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> tagsAll()  
      com.pulumi.core.Output<java.util.Optional<java.lang.Boolean>> useEbsOptimizedInstances()  
      • 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

      • CustomLayer

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

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

        public CustomLayer​(java.lang.String name,
                           CustomLayerArgs 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

      • arn

        public com.pulumi.core.Output<java.lang.String> arn()
        Returns:
        The Amazon Resource Name(ARN) of the layer.
      • autoAssignElasticIps

        public com.pulumi.core.Output<java.util.Optional<java.lang.Boolean>> autoAssignElasticIps()
        Returns:
        Whether to automatically assign an elastic IP address to the layer's instances.
      • autoAssignPublicIps

        public com.pulumi.core.Output<java.util.Optional<java.lang.Boolean>> autoAssignPublicIps()
        Returns:
        For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer's instances.
      • autoHealing

        public com.pulumi.core.Output<java.util.Optional<java.lang.Boolean>> autoHealing()
        Returns:
        Whether to enable auto-healing for the layer.
      • cloudwatchConfiguration

        public com.pulumi.core.Output<java.util.Optional<CustomLayerCloudwatchConfiguration>> cloudwatchConfiguration()
        Returns:
        Will create an EBS volume and connect it to the layer's instances. See Cloudwatch Configuration.
      • customConfigureRecipes

        public com.pulumi.core.Output<java.util.Optional<java.util.List<java.lang.String>>> customConfigureRecipes()
      • customDeployRecipes

        public com.pulumi.core.Output<java.util.Optional<java.util.List<java.lang.String>>> customDeployRecipes()
      • customInstanceProfileArn

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> customInstanceProfileArn()
        Returns:
        The ARN of an IAM profile that will be used for the layer's instances.
      • customJson

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> customJson()
        Returns:
        Custom JSON attributes to apply to the layer.
      • customSecurityGroupIds

        public com.pulumi.core.Output<java.util.Optional<java.util.List<java.lang.String>>> customSecurityGroupIds()
        Returns:
        Ids for a set of security groups to apply to the layer's instances.
      • customSetupRecipes

        public com.pulumi.core.Output<java.util.Optional<java.util.List<java.lang.String>>> customSetupRecipes()
      • customShutdownRecipes

        public com.pulumi.core.Output<java.util.Optional<java.util.List<java.lang.String>>> customShutdownRecipes()
      • customUndeployRecipes

        public com.pulumi.core.Output<java.util.Optional<java.util.List<java.lang.String>>> customUndeployRecipes()
      • drainElbOnShutdown

        public com.pulumi.core.Output<java.util.Optional<java.lang.Boolean>> drainElbOnShutdown()
        Returns:
        Whether to enable Elastic Load Balancing connection draining.
      • ebsVolumes

        public com.pulumi.core.Output<java.util.List<CustomLayerEbsVolume>> ebsVolumes()
        Returns:
        Will create an EBS volume and connect it to the layer's instances. See EBS Volume.
      • elasticLoadBalancer

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> elasticLoadBalancer()
        Returns:
        Name of an Elastic Load Balancer to attach to this layer
      • installUpdatesOnBoot

        public com.pulumi.core.Output<java.util.Optional<java.lang.Boolean>> installUpdatesOnBoot()
        Returns:
        Whether to install OS and package updates on each instance when it boots.
      • instanceShutdownTimeout

        public com.pulumi.core.Output<java.util.Optional<java.lang.Integer>> instanceShutdownTimeout()
        Returns:
        The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event.
      • loadBasedAutoScaling

        public com.pulumi.core.Output<CustomLayerLoadBasedAutoScaling> loadBasedAutoScaling()
        Returns:
        Load-based auto scaling configuration. See Load Based AutoScaling
      • name

        public com.pulumi.core.Output<java.lang.String> name()
        Returns:
        A human-readable name for the layer.
      • shortName

        public com.pulumi.core.Output<java.lang.String> shortName()
        Returns:
        A short, machine-readable name for the layer, which will be used to identify it in the Chef node JSON.
      • stackId

        public com.pulumi.core.Output<java.lang.String> stackId()
        Returns:
        ID of the stack the layer will belong to.
      • systemPackages

        public com.pulumi.core.Output<java.util.Optional<java.util.List<java.lang.String>>> systemPackages()
        Returns:
        Names of a set of system packages to install on the layer's instances.
      • tags

        public com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,​java.lang.String>>> tags()
        Returns:
        A map of tags to assign to the resource. .If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. The following extra optional arguments, all lists of Chef recipe names, allow custom Chef recipes to be applied to layer instances at the five different lifecycle events, if custom cookbooks are enabled on the layer's stack:
      • tagsAll

        public com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> tagsAll()
        Returns:
        A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
      • useEbsOptimizedInstances

        public com.pulumi.core.Output<java.util.Optional<java.lang.Boolean>> useEbsOptimizedInstances()
        Returns:
        Whether to use EBS-optimized instances.
      • get

        public static CustomLayer get​(java.lang.String name,
                                      com.pulumi.core.Output<java.lang.String> id,
                                      @Nullable
                                      CustomLayerState 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.