github.com/pulumi/pulumi-aws/sdk/v6@v6.32.0/go/aws/opsworks/javaAppLayer.go (about)

     1  // Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT.
     2  // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
     3  
     4  package opsworks
     5  
     6  import (
     7  	"context"
     8  	"reflect"
     9  
    10  	"errors"
    11  	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/internal"
    12  	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    13  )
    14  
    15  // Provides an OpsWorks Java application layer resource.
    16  //
    17  // ## Example Usage
    18  //
    19  // <!--Start PulumiCodeChooser -->
    20  // ```go
    21  // package main
    22  //
    23  // import (
    24  //
    25  //	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/opsworks"
    26  //	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    27  //
    28  // )
    29  //
    30  //	func main() {
    31  //		pulumi.Run(func(ctx *pulumi.Context) error {
    32  //			_, err := opsworks.NewJavaAppLayer(ctx, "app", &opsworks.JavaAppLayerArgs{
    33  //				StackId: pulumi.Any(main.Id),
    34  //			})
    35  //			if err != nil {
    36  //				return err
    37  //			}
    38  //			return nil
    39  //		})
    40  //	}
    41  //
    42  // ```
    43  // <!--End PulumiCodeChooser -->
    44  type JavaAppLayer struct {
    45  	pulumi.CustomResourceState
    46  
    47  	// Keyword for the application container to use. Defaults to "tomcat".
    48  	AppServer pulumi.StringPtrOutput `pulumi:"appServer"`
    49  	// Version of the selected application container to use. Defaults to "7".
    50  	AppServerVersion pulumi.StringPtrOutput `pulumi:"appServerVersion"`
    51  	// The Amazon Resource Name(ARN) of the layer.
    52  	Arn pulumi.StringOutput `pulumi:"arn"`
    53  	// Whether to automatically assign an elastic IP address to the layer's instances.
    54  	AutoAssignElasticIps pulumi.BoolPtrOutput `pulumi:"autoAssignElasticIps"`
    55  	// For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer's instances.
    56  	AutoAssignPublicIps pulumi.BoolPtrOutput `pulumi:"autoAssignPublicIps"`
    57  	// Whether to enable auto-healing for the layer.
    58  	AutoHealing             pulumi.BoolPtrOutput                         `pulumi:"autoHealing"`
    59  	CloudwatchConfiguration JavaAppLayerCloudwatchConfigurationPtrOutput `pulumi:"cloudwatchConfiguration"`
    60  	CustomConfigureRecipes  pulumi.StringArrayOutput                     `pulumi:"customConfigureRecipes"`
    61  	CustomDeployRecipes     pulumi.StringArrayOutput                     `pulumi:"customDeployRecipes"`
    62  	// The ARN of an IAM profile that will be used for the layer's instances.
    63  	CustomInstanceProfileArn pulumi.StringPtrOutput `pulumi:"customInstanceProfileArn"`
    64  	// Custom JSON attributes to apply to the layer.
    65  	CustomJson pulumi.StringPtrOutput `pulumi:"customJson"`
    66  	// Ids for a set of security groups to apply to the layer's instances.
    67  	CustomSecurityGroupIds pulumi.StringArrayOutput `pulumi:"customSecurityGroupIds"`
    68  	CustomSetupRecipes     pulumi.StringArrayOutput `pulumi:"customSetupRecipes"`
    69  	CustomShutdownRecipes  pulumi.StringArrayOutput `pulumi:"customShutdownRecipes"`
    70  	CustomUndeployRecipes  pulumi.StringArrayOutput `pulumi:"customUndeployRecipes"`
    71  	// Whether to enable Elastic Load Balancing connection draining.
    72  	DrainElbOnShutdown pulumi.BoolPtrOutput `pulumi:"drainElbOnShutdown"`
    73  	// `ebsVolume` blocks, as described below, will each create an EBS volume and connect it to the layer's instances.
    74  	EbsVolumes JavaAppLayerEbsVolumeArrayOutput `pulumi:"ebsVolumes"`
    75  	// Name of an Elastic Load Balancer to attach to this layer
    76  	ElasticLoadBalancer pulumi.StringPtrOutput `pulumi:"elasticLoadBalancer"`
    77  	// Whether to install OS and package updates on each instance when it boots.
    78  	InstallUpdatesOnBoot pulumi.BoolPtrOutput `pulumi:"installUpdatesOnBoot"`
    79  	// The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event.
    80  	InstanceShutdownTimeout pulumi.IntPtrOutput `pulumi:"instanceShutdownTimeout"`
    81  	// Options to set for the JVM.
    82  	JvmOptions pulumi.StringPtrOutput `pulumi:"jvmOptions"`
    83  	// Keyword for the type of JVM to use. Defaults to `openjdk`.
    84  	JvmType pulumi.StringPtrOutput `pulumi:"jvmType"`
    85  	// Version of JVM to use. Defaults to "7".
    86  	JvmVersion           pulumi.StringPtrOutput                 `pulumi:"jvmVersion"`
    87  	LoadBasedAutoScaling JavaAppLayerLoadBasedAutoScalingOutput `pulumi:"loadBasedAutoScaling"`
    88  	// A human-readable name for the layer.
    89  	Name pulumi.StringOutput `pulumi:"name"`
    90  	// ID of the stack the layer will belong to.
    91  	StackId pulumi.StringOutput `pulumi:"stackId"`
    92  	// Names of a set of system packages to install on the layer's instances.
    93  	SystemPackages pulumi.StringArrayOutput `pulumi:"systemPackages"`
    94  	// A map of tags to assign to the resource. .If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    95  	//
    96  	// The following extra optional arguments, all lists of Chef recipe names, allow
    97  	// custom Chef recipes to be applied to layer instances at the five different
    98  	// lifecycle events, if custom cookbooks are enabled on the layer's stack:
    99  	Tags pulumi.StringMapOutput `pulumi:"tags"`
   100  	// A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
   101  	//
   102  	// Deprecated: Please use `tags` instead.
   103  	TagsAll pulumi.StringMapOutput `pulumi:"tagsAll"`
   104  	// Whether to use EBS-optimized instances.
   105  	UseEbsOptimizedInstances pulumi.BoolPtrOutput `pulumi:"useEbsOptimizedInstances"`
   106  }
   107  
   108  // NewJavaAppLayer registers a new resource with the given unique name, arguments, and options.
   109  func NewJavaAppLayer(ctx *pulumi.Context,
   110  	name string, args *JavaAppLayerArgs, opts ...pulumi.ResourceOption) (*JavaAppLayer, error) {
   111  	if args == nil {
   112  		return nil, errors.New("missing one or more required arguments")
   113  	}
   114  
   115  	if args.StackId == nil {
   116  		return nil, errors.New("invalid value for required argument 'StackId'")
   117  	}
   118  	opts = internal.PkgResourceDefaultOpts(opts)
   119  	var resource JavaAppLayer
   120  	err := ctx.RegisterResource("aws:opsworks/javaAppLayer:JavaAppLayer", name, args, &resource, opts...)
   121  	if err != nil {
   122  		return nil, err
   123  	}
   124  	return &resource, nil
   125  }
   126  
   127  // GetJavaAppLayer gets an existing JavaAppLayer resource's state with the given name, ID, and optional
   128  // state properties that are used to uniquely qualify the lookup (nil if not required).
   129  func GetJavaAppLayer(ctx *pulumi.Context,
   130  	name string, id pulumi.IDInput, state *JavaAppLayerState, opts ...pulumi.ResourceOption) (*JavaAppLayer, error) {
   131  	var resource JavaAppLayer
   132  	err := ctx.ReadResource("aws:opsworks/javaAppLayer:JavaAppLayer", name, id, state, &resource, opts...)
   133  	if err != nil {
   134  		return nil, err
   135  	}
   136  	return &resource, nil
   137  }
   138  
   139  // Input properties used for looking up and filtering JavaAppLayer resources.
   140  type javaAppLayerState struct {
   141  	// Keyword for the application container to use. Defaults to "tomcat".
   142  	AppServer *string `pulumi:"appServer"`
   143  	// Version of the selected application container to use. Defaults to "7".
   144  	AppServerVersion *string `pulumi:"appServerVersion"`
   145  	// The Amazon Resource Name(ARN) of the layer.
   146  	Arn *string `pulumi:"arn"`
   147  	// Whether to automatically assign an elastic IP address to the layer's instances.
   148  	AutoAssignElasticIps *bool `pulumi:"autoAssignElasticIps"`
   149  	// For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer's instances.
   150  	AutoAssignPublicIps *bool `pulumi:"autoAssignPublicIps"`
   151  	// Whether to enable auto-healing for the layer.
   152  	AutoHealing             *bool                                `pulumi:"autoHealing"`
   153  	CloudwatchConfiguration *JavaAppLayerCloudwatchConfiguration `pulumi:"cloudwatchConfiguration"`
   154  	CustomConfigureRecipes  []string                             `pulumi:"customConfigureRecipes"`
   155  	CustomDeployRecipes     []string                             `pulumi:"customDeployRecipes"`
   156  	// The ARN of an IAM profile that will be used for the layer's instances.
   157  	CustomInstanceProfileArn *string `pulumi:"customInstanceProfileArn"`
   158  	// Custom JSON attributes to apply to the layer.
   159  	CustomJson *string `pulumi:"customJson"`
   160  	// Ids for a set of security groups to apply to the layer's instances.
   161  	CustomSecurityGroupIds []string `pulumi:"customSecurityGroupIds"`
   162  	CustomSetupRecipes     []string `pulumi:"customSetupRecipes"`
   163  	CustomShutdownRecipes  []string `pulumi:"customShutdownRecipes"`
   164  	CustomUndeployRecipes  []string `pulumi:"customUndeployRecipes"`
   165  	// Whether to enable Elastic Load Balancing connection draining.
   166  	DrainElbOnShutdown *bool `pulumi:"drainElbOnShutdown"`
   167  	// `ebsVolume` blocks, as described below, will each create an EBS volume and connect it to the layer's instances.
   168  	EbsVolumes []JavaAppLayerEbsVolume `pulumi:"ebsVolumes"`
   169  	// Name of an Elastic Load Balancer to attach to this layer
   170  	ElasticLoadBalancer *string `pulumi:"elasticLoadBalancer"`
   171  	// Whether to install OS and package updates on each instance when it boots.
   172  	InstallUpdatesOnBoot *bool `pulumi:"installUpdatesOnBoot"`
   173  	// The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event.
   174  	InstanceShutdownTimeout *int `pulumi:"instanceShutdownTimeout"`
   175  	// Options to set for the JVM.
   176  	JvmOptions *string `pulumi:"jvmOptions"`
   177  	// Keyword for the type of JVM to use. Defaults to `openjdk`.
   178  	JvmType *string `pulumi:"jvmType"`
   179  	// Version of JVM to use. Defaults to "7".
   180  	JvmVersion           *string                           `pulumi:"jvmVersion"`
   181  	LoadBasedAutoScaling *JavaAppLayerLoadBasedAutoScaling `pulumi:"loadBasedAutoScaling"`
   182  	// A human-readable name for the layer.
   183  	Name *string `pulumi:"name"`
   184  	// ID of the stack the layer will belong to.
   185  	StackId *string `pulumi:"stackId"`
   186  	// Names of a set of system packages to install on the layer's instances.
   187  	SystemPackages []string `pulumi:"systemPackages"`
   188  	// A map of tags to assign to the resource. .If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
   189  	//
   190  	// The following extra optional arguments, all lists of Chef recipe names, allow
   191  	// custom Chef recipes to be applied to layer instances at the five different
   192  	// lifecycle events, if custom cookbooks are enabled on the layer's stack:
   193  	Tags map[string]string `pulumi:"tags"`
   194  	// A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
   195  	//
   196  	// Deprecated: Please use `tags` instead.
   197  	TagsAll map[string]string `pulumi:"tagsAll"`
   198  	// Whether to use EBS-optimized instances.
   199  	UseEbsOptimizedInstances *bool `pulumi:"useEbsOptimizedInstances"`
   200  }
   201  
   202  type JavaAppLayerState struct {
   203  	// Keyword for the application container to use. Defaults to "tomcat".
   204  	AppServer pulumi.StringPtrInput
   205  	// Version of the selected application container to use. Defaults to "7".
   206  	AppServerVersion pulumi.StringPtrInput
   207  	// The Amazon Resource Name(ARN) of the layer.
   208  	Arn pulumi.StringPtrInput
   209  	// Whether to automatically assign an elastic IP address to the layer's instances.
   210  	AutoAssignElasticIps pulumi.BoolPtrInput
   211  	// For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer's instances.
   212  	AutoAssignPublicIps pulumi.BoolPtrInput
   213  	// Whether to enable auto-healing for the layer.
   214  	AutoHealing             pulumi.BoolPtrInput
   215  	CloudwatchConfiguration JavaAppLayerCloudwatchConfigurationPtrInput
   216  	CustomConfigureRecipes  pulumi.StringArrayInput
   217  	CustomDeployRecipes     pulumi.StringArrayInput
   218  	// The ARN of an IAM profile that will be used for the layer's instances.
   219  	CustomInstanceProfileArn pulumi.StringPtrInput
   220  	// Custom JSON attributes to apply to the layer.
   221  	CustomJson pulumi.StringPtrInput
   222  	// Ids for a set of security groups to apply to the layer's instances.
   223  	CustomSecurityGroupIds pulumi.StringArrayInput
   224  	CustomSetupRecipes     pulumi.StringArrayInput
   225  	CustomShutdownRecipes  pulumi.StringArrayInput
   226  	CustomUndeployRecipes  pulumi.StringArrayInput
   227  	// Whether to enable Elastic Load Balancing connection draining.
   228  	DrainElbOnShutdown pulumi.BoolPtrInput
   229  	// `ebsVolume` blocks, as described below, will each create an EBS volume and connect it to the layer's instances.
   230  	EbsVolumes JavaAppLayerEbsVolumeArrayInput
   231  	// Name of an Elastic Load Balancer to attach to this layer
   232  	ElasticLoadBalancer pulumi.StringPtrInput
   233  	// Whether to install OS and package updates on each instance when it boots.
   234  	InstallUpdatesOnBoot pulumi.BoolPtrInput
   235  	// The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event.
   236  	InstanceShutdownTimeout pulumi.IntPtrInput
   237  	// Options to set for the JVM.
   238  	JvmOptions pulumi.StringPtrInput
   239  	// Keyword for the type of JVM to use. Defaults to `openjdk`.
   240  	JvmType pulumi.StringPtrInput
   241  	// Version of JVM to use. Defaults to "7".
   242  	JvmVersion           pulumi.StringPtrInput
   243  	LoadBasedAutoScaling JavaAppLayerLoadBasedAutoScalingPtrInput
   244  	// A human-readable name for the layer.
   245  	Name pulumi.StringPtrInput
   246  	// ID of the stack the layer will belong to.
   247  	StackId pulumi.StringPtrInput
   248  	// Names of a set of system packages to install on the layer's instances.
   249  	SystemPackages pulumi.StringArrayInput
   250  	// A map of tags to assign to the resource. .If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
   251  	//
   252  	// The following extra optional arguments, all lists of Chef recipe names, allow
   253  	// custom Chef recipes to be applied to layer instances at the five different
   254  	// lifecycle events, if custom cookbooks are enabled on the layer's stack:
   255  	Tags pulumi.StringMapInput
   256  	// A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
   257  	//
   258  	// Deprecated: Please use `tags` instead.
   259  	TagsAll pulumi.StringMapInput
   260  	// Whether to use EBS-optimized instances.
   261  	UseEbsOptimizedInstances pulumi.BoolPtrInput
   262  }
   263  
   264  func (JavaAppLayerState) ElementType() reflect.Type {
   265  	return reflect.TypeOf((*javaAppLayerState)(nil)).Elem()
   266  }
   267  
   268  type javaAppLayerArgs struct {
   269  	// Keyword for the application container to use. Defaults to "tomcat".
   270  	AppServer *string `pulumi:"appServer"`
   271  	// Version of the selected application container to use. Defaults to "7".
   272  	AppServerVersion *string `pulumi:"appServerVersion"`
   273  	// Whether to automatically assign an elastic IP address to the layer's instances.
   274  	AutoAssignElasticIps *bool `pulumi:"autoAssignElasticIps"`
   275  	// For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer's instances.
   276  	AutoAssignPublicIps *bool `pulumi:"autoAssignPublicIps"`
   277  	// Whether to enable auto-healing for the layer.
   278  	AutoHealing             *bool                                `pulumi:"autoHealing"`
   279  	CloudwatchConfiguration *JavaAppLayerCloudwatchConfiguration `pulumi:"cloudwatchConfiguration"`
   280  	CustomConfigureRecipes  []string                             `pulumi:"customConfigureRecipes"`
   281  	CustomDeployRecipes     []string                             `pulumi:"customDeployRecipes"`
   282  	// The ARN of an IAM profile that will be used for the layer's instances.
   283  	CustomInstanceProfileArn *string `pulumi:"customInstanceProfileArn"`
   284  	// Custom JSON attributes to apply to the layer.
   285  	CustomJson *string `pulumi:"customJson"`
   286  	// Ids for a set of security groups to apply to the layer's instances.
   287  	CustomSecurityGroupIds []string `pulumi:"customSecurityGroupIds"`
   288  	CustomSetupRecipes     []string `pulumi:"customSetupRecipes"`
   289  	CustomShutdownRecipes  []string `pulumi:"customShutdownRecipes"`
   290  	CustomUndeployRecipes  []string `pulumi:"customUndeployRecipes"`
   291  	// Whether to enable Elastic Load Balancing connection draining.
   292  	DrainElbOnShutdown *bool `pulumi:"drainElbOnShutdown"`
   293  	// `ebsVolume` blocks, as described below, will each create an EBS volume and connect it to the layer's instances.
   294  	EbsVolumes []JavaAppLayerEbsVolume `pulumi:"ebsVolumes"`
   295  	// Name of an Elastic Load Balancer to attach to this layer
   296  	ElasticLoadBalancer *string `pulumi:"elasticLoadBalancer"`
   297  	// Whether to install OS and package updates on each instance when it boots.
   298  	InstallUpdatesOnBoot *bool `pulumi:"installUpdatesOnBoot"`
   299  	// The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event.
   300  	InstanceShutdownTimeout *int `pulumi:"instanceShutdownTimeout"`
   301  	// Options to set for the JVM.
   302  	JvmOptions *string `pulumi:"jvmOptions"`
   303  	// Keyword for the type of JVM to use. Defaults to `openjdk`.
   304  	JvmType *string `pulumi:"jvmType"`
   305  	// Version of JVM to use. Defaults to "7".
   306  	JvmVersion           *string                           `pulumi:"jvmVersion"`
   307  	LoadBasedAutoScaling *JavaAppLayerLoadBasedAutoScaling `pulumi:"loadBasedAutoScaling"`
   308  	// A human-readable name for the layer.
   309  	Name *string `pulumi:"name"`
   310  	// ID of the stack the layer will belong to.
   311  	StackId string `pulumi:"stackId"`
   312  	// Names of a set of system packages to install on the layer's instances.
   313  	SystemPackages []string `pulumi:"systemPackages"`
   314  	// A map of tags to assign to the resource. .If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
   315  	//
   316  	// The following extra optional arguments, all lists of Chef recipe names, allow
   317  	// custom Chef recipes to be applied to layer instances at the five different
   318  	// lifecycle events, if custom cookbooks are enabled on the layer's stack:
   319  	Tags map[string]string `pulumi:"tags"`
   320  	// Whether to use EBS-optimized instances.
   321  	UseEbsOptimizedInstances *bool `pulumi:"useEbsOptimizedInstances"`
   322  }
   323  
   324  // The set of arguments for constructing a JavaAppLayer resource.
   325  type JavaAppLayerArgs struct {
   326  	// Keyword for the application container to use. Defaults to "tomcat".
   327  	AppServer pulumi.StringPtrInput
   328  	// Version of the selected application container to use. Defaults to "7".
   329  	AppServerVersion pulumi.StringPtrInput
   330  	// Whether to automatically assign an elastic IP address to the layer's instances.
   331  	AutoAssignElasticIps pulumi.BoolPtrInput
   332  	// For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer's instances.
   333  	AutoAssignPublicIps pulumi.BoolPtrInput
   334  	// Whether to enable auto-healing for the layer.
   335  	AutoHealing             pulumi.BoolPtrInput
   336  	CloudwatchConfiguration JavaAppLayerCloudwatchConfigurationPtrInput
   337  	CustomConfigureRecipes  pulumi.StringArrayInput
   338  	CustomDeployRecipes     pulumi.StringArrayInput
   339  	// The ARN of an IAM profile that will be used for the layer's instances.
   340  	CustomInstanceProfileArn pulumi.StringPtrInput
   341  	// Custom JSON attributes to apply to the layer.
   342  	CustomJson pulumi.StringPtrInput
   343  	// Ids for a set of security groups to apply to the layer's instances.
   344  	CustomSecurityGroupIds pulumi.StringArrayInput
   345  	CustomSetupRecipes     pulumi.StringArrayInput
   346  	CustomShutdownRecipes  pulumi.StringArrayInput
   347  	CustomUndeployRecipes  pulumi.StringArrayInput
   348  	// Whether to enable Elastic Load Balancing connection draining.
   349  	DrainElbOnShutdown pulumi.BoolPtrInput
   350  	// `ebsVolume` blocks, as described below, will each create an EBS volume and connect it to the layer's instances.
   351  	EbsVolumes JavaAppLayerEbsVolumeArrayInput
   352  	// Name of an Elastic Load Balancer to attach to this layer
   353  	ElasticLoadBalancer pulumi.StringPtrInput
   354  	// Whether to install OS and package updates on each instance when it boots.
   355  	InstallUpdatesOnBoot pulumi.BoolPtrInput
   356  	// The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event.
   357  	InstanceShutdownTimeout pulumi.IntPtrInput
   358  	// Options to set for the JVM.
   359  	JvmOptions pulumi.StringPtrInput
   360  	// Keyword for the type of JVM to use. Defaults to `openjdk`.
   361  	JvmType pulumi.StringPtrInput
   362  	// Version of JVM to use. Defaults to "7".
   363  	JvmVersion           pulumi.StringPtrInput
   364  	LoadBasedAutoScaling JavaAppLayerLoadBasedAutoScalingPtrInput
   365  	// A human-readable name for the layer.
   366  	Name pulumi.StringPtrInput
   367  	// ID of the stack the layer will belong to.
   368  	StackId pulumi.StringInput
   369  	// Names of a set of system packages to install on the layer's instances.
   370  	SystemPackages pulumi.StringArrayInput
   371  	// A map of tags to assign to the resource. .If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
   372  	//
   373  	// The following extra optional arguments, all lists of Chef recipe names, allow
   374  	// custom Chef recipes to be applied to layer instances at the five different
   375  	// lifecycle events, if custom cookbooks are enabled on the layer's stack:
   376  	Tags pulumi.StringMapInput
   377  	// Whether to use EBS-optimized instances.
   378  	UseEbsOptimizedInstances pulumi.BoolPtrInput
   379  }
   380  
   381  func (JavaAppLayerArgs) ElementType() reflect.Type {
   382  	return reflect.TypeOf((*javaAppLayerArgs)(nil)).Elem()
   383  }
   384  
   385  type JavaAppLayerInput interface {
   386  	pulumi.Input
   387  
   388  	ToJavaAppLayerOutput() JavaAppLayerOutput
   389  	ToJavaAppLayerOutputWithContext(ctx context.Context) JavaAppLayerOutput
   390  }
   391  
   392  func (*JavaAppLayer) ElementType() reflect.Type {
   393  	return reflect.TypeOf((**JavaAppLayer)(nil)).Elem()
   394  }
   395  
   396  func (i *JavaAppLayer) ToJavaAppLayerOutput() JavaAppLayerOutput {
   397  	return i.ToJavaAppLayerOutputWithContext(context.Background())
   398  }
   399  
   400  func (i *JavaAppLayer) ToJavaAppLayerOutputWithContext(ctx context.Context) JavaAppLayerOutput {
   401  	return pulumi.ToOutputWithContext(ctx, i).(JavaAppLayerOutput)
   402  }
   403  
   404  // JavaAppLayerArrayInput is an input type that accepts JavaAppLayerArray and JavaAppLayerArrayOutput values.
   405  // You can construct a concrete instance of `JavaAppLayerArrayInput` via:
   406  //
   407  //	JavaAppLayerArray{ JavaAppLayerArgs{...} }
   408  type JavaAppLayerArrayInput interface {
   409  	pulumi.Input
   410  
   411  	ToJavaAppLayerArrayOutput() JavaAppLayerArrayOutput
   412  	ToJavaAppLayerArrayOutputWithContext(context.Context) JavaAppLayerArrayOutput
   413  }
   414  
   415  type JavaAppLayerArray []JavaAppLayerInput
   416  
   417  func (JavaAppLayerArray) ElementType() reflect.Type {
   418  	return reflect.TypeOf((*[]*JavaAppLayer)(nil)).Elem()
   419  }
   420  
   421  func (i JavaAppLayerArray) ToJavaAppLayerArrayOutput() JavaAppLayerArrayOutput {
   422  	return i.ToJavaAppLayerArrayOutputWithContext(context.Background())
   423  }
   424  
   425  func (i JavaAppLayerArray) ToJavaAppLayerArrayOutputWithContext(ctx context.Context) JavaAppLayerArrayOutput {
   426  	return pulumi.ToOutputWithContext(ctx, i).(JavaAppLayerArrayOutput)
   427  }
   428  
   429  // JavaAppLayerMapInput is an input type that accepts JavaAppLayerMap and JavaAppLayerMapOutput values.
   430  // You can construct a concrete instance of `JavaAppLayerMapInput` via:
   431  //
   432  //	JavaAppLayerMap{ "key": JavaAppLayerArgs{...} }
   433  type JavaAppLayerMapInput interface {
   434  	pulumi.Input
   435  
   436  	ToJavaAppLayerMapOutput() JavaAppLayerMapOutput
   437  	ToJavaAppLayerMapOutputWithContext(context.Context) JavaAppLayerMapOutput
   438  }
   439  
   440  type JavaAppLayerMap map[string]JavaAppLayerInput
   441  
   442  func (JavaAppLayerMap) ElementType() reflect.Type {
   443  	return reflect.TypeOf((*map[string]*JavaAppLayer)(nil)).Elem()
   444  }
   445  
   446  func (i JavaAppLayerMap) ToJavaAppLayerMapOutput() JavaAppLayerMapOutput {
   447  	return i.ToJavaAppLayerMapOutputWithContext(context.Background())
   448  }
   449  
   450  func (i JavaAppLayerMap) ToJavaAppLayerMapOutputWithContext(ctx context.Context) JavaAppLayerMapOutput {
   451  	return pulumi.ToOutputWithContext(ctx, i).(JavaAppLayerMapOutput)
   452  }
   453  
   454  type JavaAppLayerOutput struct{ *pulumi.OutputState }
   455  
   456  func (JavaAppLayerOutput) ElementType() reflect.Type {
   457  	return reflect.TypeOf((**JavaAppLayer)(nil)).Elem()
   458  }
   459  
   460  func (o JavaAppLayerOutput) ToJavaAppLayerOutput() JavaAppLayerOutput {
   461  	return o
   462  }
   463  
   464  func (o JavaAppLayerOutput) ToJavaAppLayerOutputWithContext(ctx context.Context) JavaAppLayerOutput {
   465  	return o
   466  }
   467  
   468  // Keyword for the application container to use. Defaults to "tomcat".
   469  func (o JavaAppLayerOutput) AppServer() pulumi.StringPtrOutput {
   470  	return o.ApplyT(func(v *JavaAppLayer) pulumi.StringPtrOutput { return v.AppServer }).(pulumi.StringPtrOutput)
   471  }
   472  
   473  // Version of the selected application container to use. Defaults to "7".
   474  func (o JavaAppLayerOutput) AppServerVersion() pulumi.StringPtrOutput {
   475  	return o.ApplyT(func(v *JavaAppLayer) pulumi.StringPtrOutput { return v.AppServerVersion }).(pulumi.StringPtrOutput)
   476  }
   477  
   478  // The Amazon Resource Name(ARN) of the layer.
   479  func (o JavaAppLayerOutput) Arn() pulumi.StringOutput {
   480  	return o.ApplyT(func(v *JavaAppLayer) pulumi.StringOutput { return v.Arn }).(pulumi.StringOutput)
   481  }
   482  
   483  // Whether to automatically assign an elastic IP address to the layer's instances.
   484  func (o JavaAppLayerOutput) AutoAssignElasticIps() pulumi.BoolPtrOutput {
   485  	return o.ApplyT(func(v *JavaAppLayer) pulumi.BoolPtrOutput { return v.AutoAssignElasticIps }).(pulumi.BoolPtrOutput)
   486  }
   487  
   488  // For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer's instances.
   489  func (o JavaAppLayerOutput) AutoAssignPublicIps() pulumi.BoolPtrOutput {
   490  	return o.ApplyT(func(v *JavaAppLayer) pulumi.BoolPtrOutput { return v.AutoAssignPublicIps }).(pulumi.BoolPtrOutput)
   491  }
   492  
   493  // Whether to enable auto-healing for the layer.
   494  func (o JavaAppLayerOutput) AutoHealing() pulumi.BoolPtrOutput {
   495  	return o.ApplyT(func(v *JavaAppLayer) pulumi.BoolPtrOutput { return v.AutoHealing }).(pulumi.BoolPtrOutput)
   496  }
   497  
   498  func (o JavaAppLayerOutput) CloudwatchConfiguration() JavaAppLayerCloudwatchConfigurationPtrOutput {
   499  	return o.ApplyT(func(v *JavaAppLayer) JavaAppLayerCloudwatchConfigurationPtrOutput { return v.CloudwatchConfiguration }).(JavaAppLayerCloudwatchConfigurationPtrOutput)
   500  }
   501  
   502  func (o JavaAppLayerOutput) CustomConfigureRecipes() pulumi.StringArrayOutput {
   503  	return o.ApplyT(func(v *JavaAppLayer) pulumi.StringArrayOutput { return v.CustomConfigureRecipes }).(pulumi.StringArrayOutput)
   504  }
   505  
   506  func (o JavaAppLayerOutput) CustomDeployRecipes() pulumi.StringArrayOutput {
   507  	return o.ApplyT(func(v *JavaAppLayer) pulumi.StringArrayOutput { return v.CustomDeployRecipes }).(pulumi.StringArrayOutput)
   508  }
   509  
   510  // The ARN of an IAM profile that will be used for the layer's instances.
   511  func (o JavaAppLayerOutput) CustomInstanceProfileArn() pulumi.StringPtrOutput {
   512  	return o.ApplyT(func(v *JavaAppLayer) pulumi.StringPtrOutput { return v.CustomInstanceProfileArn }).(pulumi.StringPtrOutput)
   513  }
   514  
   515  // Custom JSON attributes to apply to the layer.
   516  func (o JavaAppLayerOutput) CustomJson() pulumi.StringPtrOutput {
   517  	return o.ApplyT(func(v *JavaAppLayer) pulumi.StringPtrOutput { return v.CustomJson }).(pulumi.StringPtrOutput)
   518  }
   519  
   520  // Ids for a set of security groups to apply to the layer's instances.
   521  func (o JavaAppLayerOutput) CustomSecurityGroupIds() pulumi.StringArrayOutput {
   522  	return o.ApplyT(func(v *JavaAppLayer) pulumi.StringArrayOutput { return v.CustomSecurityGroupIds }).(pulumi.StringArrayOutput)
   523  }
   524  
   525  func (o JavaAppLayerOutput) CustomSetupRecipes() pulumi.StringArrayOutput {
   526  	return o.ApplyT(func(v *JavaAppLayer) pulumi.StringArrayOutput { return v.CustomSetupRecipes }).(pulumi.StringArrayOutput)
   527  }
   528  
   529  func (o JavaAppLayerOutput) CustomShutdownRecipes() pulumi.StringArrayOutput {
   530  	return o.ApplyT(func(v *JavaAppLayer) pulumi.StringArrayOutput { return v.CustomShutdownRecipes }).(pulumi.StringArrayOutput)
   531  }
   532  
   533  func (o JavaAppLayerOutput) CustomUndeployRecipes() pulumi.StringArrayOutput {
   534  	return o.ApplyT(func(v *JavaAppLayer) pulumi.StringArrayOutput { return v.CustomUndeployRecipes }).(pulumi.StringArrayOutput)
   535  }
   536  
   537  // Whether to enable Elastic Load Balancing connection draining.
   538  func (o JavaAppLayerOutput) DrainElbOnShutdown() pulumi.BoolPtrOutput {
   539  	return o.ApplyT(func(v *JavaAppLayer) pulumi.BoolPtrOutput { return v.DrainElbOnShutdown }).(pulumi.BoolPtrOutput)
   540  }
   541  
   542  // `ebsVolume` blocks, as described below, will each create an EBS volume and connect it to the layer's instances.
   543  func (o JavaAppLayerOutput) EbsVolumes() JavaAppLayerEbsVolumeArrayOutput {
   544  	return o.ApplyT(func(v *JavaAppLayer) JavaAppLayerEbsVolumeArrayOutput { return v.EbsVolumes }).(JavaAppLayerEbsVolumeArrayOutput)
   545  }
   546  
   547  // Name of an Elastic Load Balancer to attach to this layer
   548  func (o JavaAppLayerOutput) ElasticLoadBalancer() pulumi.StringPtrOutput {
   549  	return o.ApplyT(func(v *JavaAppLayer) pulumi.StringPtrOutput { return v.ElasticLoadBalancer }).(pulumi.StringPtrOutput)
   550  }
   551  
   552  // Whether to install OS and package updates on each instance when it boots.
   553  func (o JavaAppLayerOutput) InstallUpdatesOnBoot() pulumi.BoolPtrOutput {
   554  	return o.ApplyT(func(v *JavaAppLayer) pulumi.BoolPtrOutput { return v.InstallUpdatesOnBoot }).(pulumi.BoolPtrOutput)
   555  }
   556  
   557  // The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event.
   558  func (o JavaAppLayerOutput) InstanceShutdownTimeout() pulumi.IntPtrOutput {
   559  	return o.ApplyT(func(v *JavaAppLayer) pulumi.IntPtrOutput { return v.InstanceShutdownTimeout }).(pulumi.IntPtrOutput)
   560  }
   561  
   562  // Options to set for the JVM.
   563  func (o JavaAppLayerOutput) JvmOptions() pulumi.StringPtrOutput {
   564  	return o.ApplyT(func(v *JavaAppLayer) pulumi.StringPtrOutput { return v.JvmOptions }).(pulumi.StringPtrOutput)
   565  }
   566  
   567  // Keyword for the type of JVM to use. Defaults to `openjdk`.
   568  func (o JavaAppLayerOutput) JvmType() pulumi.StringPtrOutput {
   569  	return o.ApplyT(func(v *JavaAppLayer) pulumi.StringPtrOutput { return v.JvmType }).(pulumi.StringPtrOutput)
   570  }
   571  
   572  // Version of JVM to use. Defaults to "7".
   573  func (o JavaAppLayerOutput) JvmVersion() pulumi.StringPtrOutput {
   574  	return o.ApplyT(func(v *JavaAppLayer) pulumi.StringPtrOutput { return v.JvmVersion }).(pulumi.StringPtrOutput)
   575  }
   576  
   577  func (o JavaAppLayerOutput) LoadBasedAutoScaling() JavaAppLayerLoadBasedAutoScalingOutput {
   578  	return o.ApplyT(func(v *JavaAppLayer) JavaAppLayerLoadBasedAutoScalingOutput { return v.LoadBasedAutoScaling }).(JavaAppLayerLoadBasedAutoScalingOutput)
   579  }
   580  
   581  // A human-readable name for the layer.
   582  func (o JavaAppLayerOutput) Name() pulumi.StringOutput {
   583  	return o.ApplyT(func(v *JavaAppLayer) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput)
   584  }
   585  
   586  // ID of the stack the layer will belong to.
   587  func (o JavaAppLayerOutput) StackId() pulumi.StringOutput {
   588  	return o.ApplyT(func(v *JavaAppLayer) pulumi.StringOutput { return v.StackId }).(pulumi.StringOutput)
   589  }
   590  
   591  // Names of a set of system packages to install on the layer's instances.
   592  func (o JavaAppLayerOutput) SystemPackages() pulumi.StringArrayOutput {
   593  	return o.ApplyT(func(v *JavaAppLayer) pulumi.StringArrayOutput { return v.SystemPackages }).(pulumi.StringArrayOutput)
   594  }
   595  
   596  // A map of tags to assign to the resource. .If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
   597  //
   598  // The following extra optional arguments, all lists of Chef recipe names, allow
   599  // custom Chef recipes to be applied to layer instances at the five different
   600  // lifecycle events, if custom cookbooks are enabled on the layer's stack:
   601  func (o JavaAppLayerOutput) Tags() pulumi.StringMapOutput {
   602  	return o.ApplyT(func(v *JavaAppLayer) pulumi.StringMapOutput { return v.Tags }).(pulumi.StringMapOutput)
   603  }
   604  
   605  // A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
   606  //
   607  // Deprecated: Please use `tags` instead.
   608  func (o JavaAppLayerOutput) TagsAll() pulumi.StringMapOutput {
   609  	return o.ApplyT(func(v *JavaAppLayer) pulumi.StringMapOutput { return v.TagsAll }).(pulumi.StringMapOutput)
   610  }
   611  
   612  // Whether to use EBS-optimized instances.
   613  func (o JavaAppLayerOutput) UseEbsOptimizedInstances() pulumi.BoolPtrOutput {
   614  	return o.ApplyT(func(v *JavaAppLayer) pulumi.BoolPtrOutput { return v.UseEbsOptimizedInstances }).(pulumi.BoolPtrOutput)
   615  }
   616  
   617  type JavaAppLayerArrayOutput struct{ *pulumi.OutputState }
   618  
   619  func (JavaAppLayerArrayOutput) ElementType() reflect.Type {
   620  	return reflect.TypeOf((*[]*JavaAppLayer)(nil)).Elem()
   621  }
   622  
   623  func (o JavaAppLayerArrayOutput) ToJavaAppLayerArrayOutput() JavaAppLayerArrayOutput {
   624  	return o
   625  }
   626  
   627  func (o JavaAppLayerArrayOutput) ToJavaAppLayerArrayOutputWithContext(ctx context.Context) JavaAppLayerArrayOutput {
   628  	return o
   629  }
   630  
   631  func (o JavaAppLayerArrayOutput) Index(i pulumi.IntInput) JavaAppLayerOutput {
   632  	return pulumi.All(o, i).ApplyT(func(vs []interface{}) *JavaAppLayer {
   633  		return vs[0].([]*JavaAppLayer)[vs[1].(int)]
   634  	}).(JavaAppLayerOutput)
   635  }
   636  
   637  type JavaAppLayerMapOutput struct{ *pulumi.OutputState }
   638  
   639  func (JavaAppLayerMapOutput) ElementType() reflect.Type {
   640  	return reflect.TypeOf((*map[string]*JavaAppLayer)(nil)).Elem()
   641  }
   642  
   643  func (o JavaAppLayerMapOutput) ToJavaAppLayerMapOutput() JavaAppLayerMapOutput {
   644  	return o
   645  }
   646  
   647  func (o JavaAppLayerMapOutput) ToJavaAppLayerMapOutputWithContext(ctx context.Context) JavaAppLayerMapOutput {
   648  	return o
   649  }
   650  
   651  func (o JavaAppLayerMapOutput) MapIndex(k pulumi.StringInput) JavaAppLayerOutput {
   652  	return pulumi.All(o, k).ApplyT(func(vs []interface{}) *JavaAppLayer {
   653  		return vs[0].(map[string]*JavaAppLayer)[vs[1].(string)]
   654  	}).(JavaAppLayerOutput)
   655  }
   656  
   657  func init() {
   658  	pulumi.RegisterInputType(reflect.TypeOf((*JavaAppLayerInput)(nil)).Elem(), &JavaAppLayer{})
   659  	pulumi.RegisterInputType(reflect.TypeOf((*JavaAppLayerArrayInput)(nil)).Elem(), JavaAppLayerArray{})
   660  	pulumi.RegisterInputType(reflect.TypeOf((*JavaAppLayerMapInput)(nil)).Elem(), JavaAppLayerMap{})
   661  	pulumi.RegisterOutputType(JavaAppLayerOutput{})
   662  	pulumi.RegisterOutputType(JavaAppLayerArrayOutput{})
   663  	pulumi.RegisterOutputType(JavaAppLayerMapOutput{})
   664  }