github.com/pulumi/pulumi-aws/sdk/v6@v6.32.0/go/aws/imagebuilder/image.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 imagebuilder
     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  // Manages an Image Builder Image.
    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/imagebuilder"
    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 := imagebuilder.NewImage(ctx, "example", &imagebuilder.ImageArgs{
    33  //				DistributionConfigurationArn:   pulumi.Any(exampleAwsImagebuilderDistributionConfiguration.Arn),
    34  //				ImageRecipeArn:                 pulumi.Any(exampleAwsImagebuilderImageRecipe.Arn),
    35  //				InfrastructureConfigurationArn: pulumi.Any(exampleAwsImagebuilderInfrastructureConfiguration.Arn),
    36  //			})
    37  //			if err != nil {
    38  //				return err
    39  //			}
    40  //			return nil
    41  //		})
    42  //	}
    43  //
    44  // ```
    45  // <!--End PulumiCodeChooser -->
    46  //
    47  // ## Import
    48  //
    49  // Using `pulumi import`, import `aws_imagebuilder_image` resources using the Amazon Resource Name (ARN). For example:
    50  //
    51  // ```sh
    52  // $ pulumi import aws:imagebuilder/image:Image example arn:aws:imagebuilder:us-east-1:123456789012:image/example/1.0.0/1
    53  // ```
    54  type Image struct {
    55  	pulumi.CustomResourceState
    56  
    57  	// Amazon Resource Name (ARN) of the image.
    58  	Arn pulumi.StringOutput `pulumi:"arn"`
    59  	// Amazon Resource Name (ARN) of the container recipe.
    60  	ContainerRecipeArn pulumi.StringPtrOutput `pulumi:"containerRecipeArn"`
    61  	// Date the image was created.
    62  	DateCreated pulumi.StringOutput `pulumi:"dateCreated"`
    63  	// Amazon Resource Name (ARN) of the Image Builder Distribution Configuration.
    64  	DistributionConfigurationArn pulumi.StringPtrOutput `pulumi:"distributionConfigurationArn"`
    65  	// Whether additional information about the image being created is collected. Defaults to `true`.
    66  	EnhancedImageMetadataEnabled pulumi.BoolPtrOutput `pulumi:"enhancedImageMetadataEnabled"`
    67  	// Amazon Resource Name (ARN) of the service-linked role to be used by Image Builder to [execute workflows](https://docs.aws.amazon.com/imagebuilder/latest/userguide/manage-image-workflows.html).
    68  	ExecutionRole pulumi.StringOutput `pulumi:"executionRole"`
    69  	// Amazon Resource Name (ARN) of the image recipe.
    70  	ImageRecipeArn pulumi.StringPtrOutput `pulumi:"imageRecipeArn"`
    71  	// Configuration block with image scanning configuration. Detailed below.
    72  	ImageScanningConfiguration ImageImageScanningConfigurationOutput `pulumi:"imageScanningConfiguration"`
    73  	// Configuration block with image tests configuration. Detailed below.
    74  	ImageTestsConfiguration ImageImageTestsConfigurationOutput `pulumi:"imageTestsConfiguration"`
    75  	// Amazon Resource Name (ARN) of the Image Builder Infrastructure Configuration.
    76  	//
    77  	// The following arguments are optional:
    78  	InfrastructureConfigurationArn pulumi.StringOutput `pulumi:"infrastructureConfigurationArn"`
    79  	// The name of the Workflow parameter.
    80  	Name pulumi.StringOutput `pulumi:"name"`
    81  	// Operating System version of the image.
    82  	OsVersion pulumi.StringOutput `pulumi:"osVersion"`
    83  	// List of objects with resources created by the image.
    84  	OutputResources ImageOutputResourceArrayOutput `pulumi:"outputResources"`
    85  	// Platform of the image.
    86  	Platform pulumi.StringOutput `pulumi:"platform"`
    87  	// Key-value map of resource tags for the Image Builder Image. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    88  	Tags pulumi.StringMapOutput `pulumi:"tags"`
    89  	// A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
    90  	//
    91  	// Deprecated: Please use `tags` instead.
    92  	TagsAll pulumi.StringMapOutput `pulumi:"tagsAll"`
    93  	// Version of the image.
    94  	Version pulumi.StringOutput `pulumi:"version"`
    95  	// Configuration block with the workflow configuration. Detailed below.
    96  	Workflows ImageWorkflowArrayOutput `pulumi:"workflows"`
    97  }
    98  
    99  // NewImage registers a new resource with the given unique name, arguments, and options.
   100  func NewImage(ctx *pulumi.Context,
   101  	name string, args *ImageArgs, opts ...pulumi.ResourceOption) (*Image, error) {
   102  	if args == nil {
   103  		return nil, errors.New("missing one or more required arguments")
   104  	}
   105  
   106  	if args.InfrastructureConfigurationArn == nil {
   107  		return nil, errors.New("invalid value for required argument 'InfrastructureConfigurationArn'")
   108  	}
   109  	opts = internal.PkgResourceDefaultOpts(opts)
   110  	var resource Image
   111  	err := ctx.RegisterResource("aws:imagebuilder/image:Image", name, args, &resource, opts...)
   112  	if err != nil {
   113  		return nil, err
   114  	}
   115  	return &resource, nil
   116  }
   117  
   118  // GetImage gets an existing Image resource's state with the given name, ID, and optional
   119  // state properties that are used to uniquely qualify the lookup (nil if not required).
   120  func GetImage(ctx *pulumi.Context,
   121  	name string, id pulumi.IDInput, state *ImageState, opts ...pulumi.ResourceOption) (*Image, error) {
   122  	var resource Image
   123  	err := ctx.ReadResource("aws:imagebuilder/image:Image", name, id, state, &resource, opts...)
   124  	if err != nil {
   125  		return nil, err
   126  	}
   127  	return &resource, nil
   128  }
   129  
   130  // Input properties used for looking up and filtering Image resources.
   131  type imageState struct {
   132  	// Amazon Resource Name (ARN) of the image.
   133  	Arn *string `pulumi:"arn"`
   134  	// Amazon Resource Name (ARN) of the container recipe.
   135  	ContainerRecipeArn *string `pulumi:"containerRecipeArn"`
   136  	// Date the image was created.
   137  	DateCreated *string `pulumi:"dateCreated"`
   138  	// Amazon Resource Name (ARN) of the Image Builder Distribution Configuration.
   139  	DistributionConfigurationArn *string `pulumi:"distributionConfigurationArn"`
   140  	// Whether additional information about the image being created is collected. Defaults to `true`.
   141  	EnhancedImageMetadataEnabled *bool `pulumi:"enhancedImageMetadataEnabled"`
   142  	// Amazon Resource Name (ARN) of the service-linked role to be used by Image Builder to [execute workflows](https://docs.aws.amazon.com/imagebuilder/latest/userguide/manage-image-workflows.html).
   143  	ExecutionRole *string `pulumi:"executionRole"`
   144  	// Amazon Resource Name (ARN) of the image recipe.
   145  	ImageRecipeArn *string `pulumi:"imageRecipeArn"`
   146  	// Configuration block with image scanning configuration. Detailed below.
   147  	ImageScanningConfiguration *ImageImageScanningConfiguration `pulumi:"imageScanningConfiguration"`
   148  	// Configuration block with image tests configuration. Detailed below.
   149  	ImageTestsConfiguration *ImageImageTestsConfiguration `pulumi:"imageTestsConfiguration"`
   150  	// Amazon Resource Name (ARN) of the Image Builder Infrastructure Configuration.
   151  	//
   152  	// The following arguments are optional:
   153  	InfrastructureConfigurationArn *string `pulumi:"infrastructureConfigurationArn"`
   154  	// The name of the Workflow parameter.
   155  	Name *string `pulumi:"name"`
   156  	// Operating System version of the image.
   157  	OsVersion *string `pulumi:"osVersion"`
   158  	// List of objects with resources created by the image.
   159  	OutputResources []ImageOutputResource `pulumi:"outputResources"`
   160  	// Platform of the image.
   161  	Platform *string `pulumi:"platform"`
   162  	// Key-value map of resource tags for the Image Builder Image. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
   163  	Tags map[string]string `pulumi:"tags"`
   164  	// A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
   165  	//
   166  	// Deprecated: Please use `tags` instead.
   167  	TagsAll map[string]string `pulumi:"tagsAll"`
   168  	// Version of the image.
   169  	Version *string `pulumi:"version"`
   170  	// Configuration block with the workflow configuration. Detailed below.
   171  	Workflows []ImageWorkflow `pulumi:"workflows"`
   172  }
   173  
   174  type ImageState struct {
   175  	// Amazon Resource Name (ARN) of the image.
   176  	Arn pulumi.StringPtrInput
   177  	// Amazon Resource Name (ARN) of the container recipe.
   178  	ContainerRecipeArn pulumi.StringPtrInput
   179  	// Date the image was created.
   180  	DateCreated pulumi.StringPtrInput
   181  	// Amazon Resource Name (ARN) of the Image Builder Distribution Configuration.
   182  	DistributionConfigurationArn pulumi.StringPtrInput
   183  	// Whether additional information about the image being created is collected. Defaults to `true`.
   184  	EnhancedImageMetadataEnabled pulumi.BoolPtrInput
   185  	// Amazon Resource Name (ARN) of the service-linked role to be used by Image Builder to [execute workflows](https://docs.aws.amazon.com/imagebuilder/latest/userguide/manage-image-workflows.html).
   186  	ExecutionRole pulumi.StringPtrInput
   187  	// Amazon Resource Name (ARN) of the image recipe.
   188  	ImageRecipeArn pulumi.StringPtrInput
   189  	// Configuration block with image scanning configuration. Detailed below.
   190  	ImageScanningConfiguration ImageImageScanningConfigurationPtrInput
   191  	// Configuration block with image tests configuration. Detailed below.
   192  	ImageTestsConfiguration ImageImageTestsConfigurationPtrInput
   193  	// Amazon Resource Name (ARN) of the Image Builder Infrastructure Configuration.
   194  	//
   195  	// The following arguments are optional:
   196  	InfrastructureConfigurationArn pulumi.StringPtrInput
   197  	// The name of the Workflow parameter.
   198  	Name pulumi.StringPtrInput
   199  	// Operating System version of the image.
   200  	OsVersion pulumi.StringPtrInput
   201  	// List of objects with resources created by the image.
   202  	OutputResources ImageOutputResourceArrayInput
   203  	// Platform of the image.
   204  	Platform pulumi.StringPtrInput
   205  	// Key-value map of resource tags for the Image Builder Image. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
   206  	Tags pulumi.StringMapInput
   207  	// A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
   208  	//
   209  	// Deprecated: Please use `tags` instead.
   210  	TagsAll pulumi.StringMapInput
   211  	// Version of the image.
   212  	Version pulumi.StringPtrInput
   213  	// Configuration block with the workflow configuration. Detailed below.
   214  	Workflows ImageWorkflowArrayInput
   215  }
   216  
   217  func (ImageState) ElementType() reflect.Type {
   218  	return reflect.TypeOf((*imageState)(nil)).Elem()
   219  }
   220  
   221  type imageArgs struct {
   222  	// Amazon Resource Name (ARN) of the container recipe.
   223  	ContainerRecipeArn *string `pulumi:"containerRecipeArn"`
   224  	// Amazon Resource Name (ARN) of the Image Builder Distribution Configuration.
   225  	DistributionConfigurationArn *string `pulumi:"distributionConfigurationArn"`
   226  	// Whether additional information about the image being created is collected. Defaults to `true`.
   227  	EnhancedImageMetadataEnabled *bool `pulumi:"enhancedImageMetadataEnabled"`
   228  	// Amazon Resource Name (ARN) of the service-linked role to be used by Image Builder to [execute workflows](https://docs.aws.amazon.com/imagebuilder/latest/userguide/manage-image-workflows.html).
   229  	ExecutionRole *string `pulumi:"executionRole"`
   230  	// Amazon Resource Name (ARN) of the image recipe.
   231  	ImageRecipeArn *string `pulumi:"imageRecipeArn"`
   232  	// Configuration block with image scanning configuration. Detailed below.
   233  	ImageScanningConfiguration *ImageImageScanningConfiguration `pulumi:"imageScanningConfiguration"`
   234  	// Configuration block with image tests configuration. Detailed below.
   235  	ImageTestsConfiguration *ImageImageTestsConfiguration `pulumi:"imageTestsConfiguration"`
   236  	// Amazon Resource Name (ARN) of the Image Builder Infrastructure Configuration.
   237  	//
   238  	// The following arguments are optional:
   239  	InfrastructureConfigurationArn string `pulumi:"infrastructureConfigurationArn"`
   240  	// Key-value map of resource tags for the Image Builder Image. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
   241  	Tags map[string]string `pulumi:"tags"`
   242  	// Configuration block with the workflow configuration. Detailed below.
   243  	Workflows []ImageWorkflow `pulumi:"workflows"`
   244  }
   245  
   246  // The set of arguments for constructing a Image resource.
   247  type ImageArgs struct {
   248  	// Amazon Resource Name (ARN) of the container recipe.
   249  	ContainerRecipeArn pulumi.StringPtrInput
   250  	// Amazon Resource Name (ARN) of the Image Builder Distribution Configuration.
   251  	DistributionConfigurationArn pulumi.StringPtrInput
   252  	// Whether additional information about the image being created is collected. Defaults to `true`.
   253  	EnhancedImageMetadataEnabled pulumi.BoolPtrInput
   254  	// Amazon Resource Name (ARN) of the service-linked role to be used by Image Builder to [execute workflows](https://docs.aws.amazon.com/imagebuilder/latest/userguide/manage-image-workflows.html).
   255  	ExecutionRole pulumi.StringPtrInput
   256  	// Amazon Resource Name (ARN) of the image recipe.
   257  	ImageRecipeArn pulumi.StringPtrInput
   258  	// Configuration block with image scanning configuration. Detailed below.
   259  	ImageScanningConfiguration ImageImageScanningConfigurationPtrInput
   260  	// Configuration block with image tests configuration. Detailed below.
   261  	ImageTestsConfiguration ImageImageTestsConfigurationPtrInput
   262  	// Amazon Resource Name (ARN) of the Image Builder Infrastructure Configuration.
   263  	//
   264  	// The following arguments are optional:
   265  	InfrastructureConfigurationArn pulumi.StringInput
   266  	// Key-value map of resource tags for the Image Builder Image. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
   267  	Tags pulumi.StringMapInput
   268  	// Configuration block with the workflow configuration. Detailed below.
   269  	Workflows ImageWorkflowArrayInput
   270  }
   271  
   272  func (ImageArgs) ElementType() reflect.Type {
   273  	return reflect.TypeOf((*imageArgs)(nil)).Elem()
   274  }
   275  
   276  type ImageInput interface {
   277  	pulumi.Input
   278  
   279  	ToImageOutput() ImageOutput
   280  	ToImageOutputWithContext(ctx context.Context) ImageOutput
   281  }
   282  
   283  func (*Image) ElementType() reflect.Type {
   284  	return reflect.TypeOf((**Image)(nil)).Elem()
   285  }
   286  
   287  func (i *Image) ToImageOutput() ImageOutput {
   288  	return i.ToImageOutputWithContext(context.Background())
   289  }
   290  
   291  func (i *Image) ToImageOutputWithContext(ctx context.Context) ImageOutput {
   292  	return pulumi.ToOutputWithContext(ctx, i).(ImageOutput)
   293  }
   294  
   295  // ImageArrayInput is an input type that accepts ImageArray and ImageArrayOutput values.
   296  // You can construct a concrete instance of `ImageArrayInput` via:
   297  //
   298  //	ImageArray{ ImageArgs{...} }
   299  type ImageArrayInput interface {
   300  	pulumi.Input
   301  
   302  	ToImageArrayOutput() ImageArrayOutput
   303  	ToImageArrayOutputWithContext(context.Context) ImageArrayOutput
   304  }
   305  
   306  type ImageArray []ImageInput
   307  
   308  func (ImageArray) ElementType() reflect.Type {
   309  	return reflect.TypeOf((*[]*Image)(nil)).Elem()
   310  }
   311  
   312  func (i ImageArray) ToImageArrayOutput() ImageArrayOutput {
   313  	return i.ToImageArrayOutputWithContext(context.Background())
   314  }
   315  
   316  func (i ImageArray) ToImageArrayOutputWithContext(ctx context.Context) ImageArrayOutput {
   317  	return pulumi.ToOutputWithContext(ctx, i).(ImageArrayOutput)
   318  }
   319  
   320  // ImageMapInput is an input type that accepts ImageMap and ImageMapOutput values.
   321  // You can construct a concrete instance of `ImageMapInput` via:
   322  //
   323  //	ImageMap{ "key": ImageArgs{...} }
   324  type ImageMapInput interface {
   325  	pulumi.Input
   326  
   327  	ToImageMapOutput() ImageMapOutput
   328  	ToImageMapOutputWithContext(context.Context) ImageMapOutput
   329  }
   330  
   331  type ImageMap map[string]ImageInput
   332  
   333  func (ImageMap) ElementType() reflect.Type {
   334  	return reflect.TypeOf((*map[string]*Image)(nil)).Elem()
   335  }
   336  
   337  func (i ImageMap) ToImageMapOutput() ImageMapOutput {
   338  	return i.ToImageMapOutputWithContext(context.Background())
   339  }
   340  
   341  func (i ImageMap) ToImageMapOutputWithContext(ctx context.Context) ImageMapOutput {
   342  	return pulumi.ToOutputWithContext(ctx, i).(ImageMapOutput)
   343  }
   344  
   345  type ImageOutput struct{ *pulumi.OutputState }
   346  
   347  func (ImageOutput) ElementType() reflect.Type {
   348  	return reflect.TypeOf((**Image)(nil)).Elem()
   349  }
   350  
   351  func (o ImageOutput) ToImageOutput() ImageOutput {
   352  	return o
   353  }
   354  
   355  func (o ImageOutput) ToImageOutputWithContext(ctx context.Context) ImageOutput {
   356  	return o
   357  }
   358  
   359  // Amazon Resource Name (ARN) of the image.
   360  func (o ImageOutput) Arn() pulumi.StringOutput {
   361  	return o.ApplyT(func(v *Image) pulumi.StringOutput { return v.Arn }).(pulumi.StringOutput)
   362  }
   363  
   364  // Amazon Resource Name (ARN) of the container recipe.
   365  func (o ImageOutput) ContainerRecipeArn() pulumi.StringPtrOutput {
   366  	return o.ApplyT(func(v *Image) pulumi.StringPtrOutput { return v.ContainerRecipeArn }).(pulumi.StringPtrOutput)
   367  }
   368  
   369  // Date the image was created.
   370  func (o ImageOutput) DateCreated() pulumi.StringOutput {
   371  	return o.ApplyT(func(v *Image) pulumi.StringOutput { return v.DateCreated }).(pulumi.StringOutput)
   372  }
   373  
   374  // Amazon Resource Name (ARN) of the Image Builder Distribution Configuration.
   375  func (o ImageOutput) DistributionConfigurationArn() pulumi.StringPtrOutput {
   376  	return o.ApplyT(func(v *Image) pulumi.StringPtrOutput { return v.DistributionConfigurationArn }).(pulumi.StringPtrOutput)
   377  }
   378  
   379  // Whether additional information about the image being created is collected. Defaults to `true`.
   380  func (o ImageOutput) EnhancedImageMetadataEnabled() pulumi.BoolPtrOutput {
   381  	return o.ApplyT(func(v *Image) pulumi.BoolPtrOutput { return v.EnhancedImageMetadataEnabled }).(pulumi.BoolPtrOutput)
   382  }
   383  
   384  // Amazon Resource Name (ARN) of the service-linked role to be used by Image Builder to [execute workflows](https://docs.aws.amazon.com/imagebuilder/latest/userguide/manage-image-workflows.html).
   385  func (o ImageOutput) ExecutionRole() pulumi.StringOutput {
   386  	return o.ApplyT(func(v *Image) pulumi.StringOutput { return v.ExecutionRole }).(pulumi.StringOutput)
   387  }
   388  
   389  // Amazon Resource Name (ARN) of the image recipe.
   390  func (o ImageOutput) ImageRecipeArn() pulumi.StringPtrOutput {
   391  	return o.ApplyT(func(v *Image) pulumi.StringPtrOutput { return v.ImageRecipeArn }).(pulumi.StringPtrOutput)
   392  }
   393  
   394  // Configuration block with image scanning configuration. Detailed below.
   395  func (o ImageOutput) ImageScanningConfiguration() ImageImageScanningConfigurationOutput {
   396  	return o.ApplyT(func(v *Image) ImageImageScanningConfigurationOutput { return v.ImageScanningConfiguration }).(ImageImageScanningConfigurationOutput)
   397  }
   398  
   399  // Configuration block with image tests configuration. Detailed below.
   400  func (o ImageOutput) ImageTestsConfiguration() ImageImageTestsConfigurationOutput {
   401  	return o.ApplyT(func(v *Image) ImageImageTestsConfigurationOutput { return v.ImageTestsConfiguration }).(ImageImageTestsConfigurationOutput)
   402  }
   403  
   404  // Amazon Resource Name (ARN) of the Image Builder Infrastructure Configuration.
   405  //
   406  // The following arguments are optional:
   407  func (o ImageOutput) InfrastructureConfigurationArn() pulumi.StringOutput {
   408  	return o.ApplyT(func(v *Image) pulumi.StringOutput { return v.InfrastructureConfigurationArn }).(pulumi.StringOutput)
   409  }
   410  
   411  // The name of the Workflow parameter.
   412  func (o ImageOutput) Name() pulumi.StringOutput {
   413  	return o.ApplyT(func(v *Image) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput)
   414  }
   415  
   416  // Operating System version of the image.
   417  func (o ImageOutput) OsVersion() pulumi.StringOutput {
   418  	return o.ApplyT(func(v *Image) pulumi.StringOutput { return v.OsVersion }).(pulumi.StringOutput)
   419  }
   420  
   421  // List of objects with resources created by the image.
   422  func (o ImageOutput) OutputResources() ImageOutputResourceArrayOutput {
   423  	return o.ApplyT(func(v *Image) ImageOutputResourceArrayOutput { return v.OutputResources }).(ImageOutputResourceArrayOutput)
   424  }
   425  
   426  // Platform of the image.
   427  func (o ImageOutput) Platform() pulumi.StringOutput {
   428  	return o.ApplyT(func(v *Image) pulumi.StringOutput { return v.Platform }).(pulumi.StringOutput)
   429  }
   430  
   431  // Key-value map of resource tags for the Image Builder Image. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
   432  func (o ImageOutput) Tags() pulumi.StringMapOutput {
   433  	return o.ApplyT(func(v *Image) pulumi.StringMapOutput { return v.Tags }).(pulumi.StringMapOutput)
   434  }
   435  
   436  // A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
   437  //
   438  // Deprecated: Please use `tags` instead.
   439  func (o ImageOutput) TagsAll() pulumi.StringMapOutput {
   440  	return o.ApplyT(func(v *Image) pulumi.StringMapOutput { return v.TagsAll }).(pulumi.StringMapOutput)
   441  }
   442  
   443  // Version of the image.
   444  func (o ImageOutput) Version() pulumi.StringOutput {
   445  	return o.ApplyT(func(v *Image) pulumi.StringOutput { return v.Version }).(pulumi.StringOutput)
   446  }
   447  
   448  // Configuration block with the workflow configuration. Detailed below.
   449  func (o ImageOutput) Workflows() ImageWorkflowArrayOutput {
   450  	return o.ApplyT(func(v *Image) ImageWorkflowArrayOutput { return v.Workflows }).(ImageWorkflowArrayOutput)
   451  }
   452  
   453  type ImageArrayOutput struct{ *pulumi.OutputState }
   454  
   455  func (ImageArrayOutput) ElementType() reflect.Type {
   456  	return reflect.TypeOf((*[]*Image)(nil)).Elem()
   457  }
   458  
   459  func (o ImageArrayOutput) ToImageArrayOutput() ImageArrayOutput {
   460  	return o
   461  }
   462  
   463  func (o ImageArrayOutput) ToImageArrayOutputWithContext(ctx context.Context) ImageArrayOutput {
   464  	return o
   465  }
   466  
   467  func (o ImageArrayOutput) Index(i pulumi.IntInput) ImageOutput {
   468  	return pulumi.All(o, i).ApplyT(func(vs []interface{}) *Image {
   469  		return vs[0].([]*Image)[vs[1].(int)]
   470  	}).(ImageOutput)
   471  }
   472  
   473  type ImageMapOutput struct{ *pulumi.OutputState }
   474  
   475  func (ImageMapOutput) ElementType() reflect.Type {
   476  	return reflect.TypeOf((*map[string]*Image)(nil)).Elem()
   477  }
   478  
   479  func (o ImageMapOutput) ToImageMapOutput() ImageMapOutput {
   480  	return o
   481  }
   482  
   483  func (o ImageMapOutput) ToImageMapOutputWithContext(ctx context.Context) ImageMapOutput {
   484  	return o
   485  }
   486  
   487  func (o ImageMapOutput) MapIndex(k pulumi.StringInput) ImageOutput {
   488  	return pulumi.All(o, k).ApplyT(func(vs []interface{}) *Image {
   489  		return vs[0].(map[string]*Image)[vs[1].(string)]
   490  	}).(ImageOutput)
   491  }
   492  
   493  func init() {
   494  	pulumi.RegisterInputType(reflect.TypeOf((*ImageInput)(nil)).Elem(), &Image{})
   495  	pulumi.RegisterInputType(reflect.TypeOf((*ImageArrayInput)(nil)).Elem(), ImageArray{})
   496  	pulumi.RegisterInputType(reflect.TypeOf((*ImageMapInput)(nil)).Elem(), ImageMap{})
   497  	pulumi.RegisterOutputType(ImageOutput{})
   498  	pulumi.RegisterOutputType(ImageArrayOutput{})
   499  	pulumi.RegisterOutputType(ImageMapOutput{})
   500  }