github.com/pulumi/pulumi-aws/sdk/v6@v6.32.0/go/aws/imagebuilder/containerRecipe.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 Container Recipe. 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.NewContainerRecipe(ctx, "example", &imagebuilder.ContainerRecipeArgs{ 33 // Name: pulumi.String("example"), 34 // Version: pulumi.String("1.0.0"), 35 // ContainerType: pulumi.String("DOCKER"), 36 // ParentImage: pulumi.String("arn:aws:imagebuilder:eu-central-1:aws:image/amazon-linux-x86-latest/x.x.x"), 37 // TargetRepository: &imagebuilder.ContainerRecipeTargetRepositoryArgs{ 38 // RepositoryName: pulumi.Any(exampleAwsEcrRepository.Name), 39 // Service: pulumi.String("ECR"), 40 // }, 41 // Components: imagebuilder.ContainerRecipeComponentArray{ 42 // &imagebuilder.ContainerRecipeComponentArgs{ 43 // ComponentArn: pulumi.Any(exampleAwsImagebuilderComponent.Arn), 44 // Parameters: imagebuilder.ContainerRecipeComponentParameterArray{ 45 // &imagebuilder.ContainerRecipeComponentParameterArgs{ 46 // Name: pulumi.String("Parameter1"), 47 // Value: pulumi.String("Value1"), 48 // }, 49 // &imagebuilder.ContainerRecipeComponentParameterArgs{ 50 // Name: pulumi.String("Parameter2"), 51 // Value: pulumi.String("Value2"), 52 // }, 53 // }, 54 // }, 55 // }, 56 // DockerfileTemplateData: pulumi.String("FROM {{{ imagebuilder:parentImage }}}\n{{{ imagebuilder:environments }}}\n{{{ imagebuilder:components }}}\n"), 57 // }) 58 // if err != nil { 59 // return err 60 // } 61 // return nil 62 // }) 63 // } 64 // 65 // ``` 66 // <!--End PulumiCodeChooser --> 67 // 68 // ## Import 69 // 70 // Using `pulumi import`, import `aws_imagebuilder_container_recipe` resources using the Amazon Resource Name (ARN). For example: 71 // 72 // ```sh 73 // $ pulumi import aws:imagebuilder/containerRecipe:ContainerRecipe example arn:aws:imagebuilder:us-east-1:123456789012:container-recipe/example/1.0.0 74 // ``` 75 type ContainerRecipe struct { 76 pulumi.CustomResourceState 77 78 // (Required) Amazon Resource Name (ARN) of the container recipe. 79 Arn pulumi.StringOutput `pulumi:"arn"` 80 // Ordered configuration block(s) with components for the container recipe. Detailed below. 81 Components ContainerRecipeComponentArrayOutput `pulumi:"components"` 82 // The type of the container to create. Valid values: `DOCKER`. 83 ContainerType pulumi.StringOutput `pulumi:"containerType"` 84 // Date the container recipe was created. 85 DateCreated pulumi.StringOutput `pulumi:"dateCreated"` 86 // The description of the container recipe. 87 Description pulumi.StringPtrOutput `pulumi:"description"` 88 // The Dockerfile template used to build the image as an inline data blob. 89 DockerfileTemplateData pulumi.StringOutput `pulumi:"dockerfileTemplateData"` 90 // The Amazon S3 URI for the Dockerfile that will be used to build the container image. 91 DockerfileTemplateUri pulumi.StringPtrOutput `pulumi:"dockerfileTemplateUri"` 92 // Whether to encrypt the volume. Defaults to unset, which is the value inherited from the parent image. 93 Encrypted pulumi.BoolOutput `pulumi:"encrypted"` 94 // Configuration block used to configure an instance for building and testing container images. Detailed below. 95 InstanceConfiguration ContainerRecipeInstanceConfigurationPtrOutput `pulumi:"instanceConfiguration"` 96 // The KMS key used to encrypt the container image. 97 KmsKeyId pulumi.StringPtrOutput `pulumi:"kmsKeyId"` 98 // The name of the container recipe. 99 Name pulumi.StringOutput `pulumi:"name"` 100 // Owner of the container recipe. 101 Owner pulumi.StringOutput `pulumi:"owner"` 102 // The base image for the container recipe. 103 ParentImage pulumi.StringOutput `pulumi:"parentImage"` 104 // Platform of the container recipe. 105 Platform pulumi.StringOutput `pulumi:"platform"` 106 // Specifies the operating system platform when you use a custom base image. 107 PlatformOverride pulumi.StringPtrOutput `pulumi:"platformOverride"` 108 // Key-value map of resource tags for the container recipe. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. 109 Tags pulumi.StringMapOutput `pulumi:"tags"` 110 // A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block. 111 // 112 // Deprecated: Please use `tags` instead. 113 TagsAll pulumi.StringMapOutput `pulumi:"tagsAll"` 114 // The destination repository for the container image. Detailed below. 115 TargetRepository ContainerRecipeTargetRepositoryOutput `pulumi:"targetRepository"` 116 // Version of the container recipe. 117 // 118 // The following attributes are optional: 119 Version pulumi.StringOutput `pulumi:"version"` 120 // The working directory to be used during build and test workflows. 121 WorkingDirectory pulumi.StringPtrOutput `pulumi:"workingDirectory"` 122 } 123 124 // NewContainerRecipe registers a new resource with the given unique name, arguments, and options. 125 func NewContainerRecipe(ctx *pulumi.Context, 126 name string, args *ContainerRecipeArgs, opts ...pulumi.ResourceOption) (*ContainerRecipe, error) { 127 if args == nil { 128 return nil, errors.New("missing one or more required arguments") 129 } 130 131 if args.Components == nil { 132 return nil, errors.New("invalid value for required argument 'Components'") 133 } 134 if args.ContainerType == nil { 135 return nil, errors.New("invalid value for required argument 'ContainerType'") 136 } 137 if args.ParentImage == nil { 138 return nil, errors.New("invalid value for required argument 'ParentImage'") 139 } 140 if args.TargetRepository == nil { 141 return nil, errors.New("invalid value for required argument 'TargetRepository'") 142 } 143 if args.Version == nil { 144 return nil, errors.New("invalid value for required argument 'Version'") 145 } 146 opts = internal.PkgResourceDefaultOpts(opts) 147 var resource ContainerRecipe 148 err := ctx.RegisterResource("aws:imagebuilder/containerRecipe:ContainerRecipe", name, args, &resource, opts...) 149 if err != nil { 150 return nil, err 151 } 152 return &resource, nil 153 } 154 155 // GetContainerRecipe gets an existing ContainerRecipe resource's state with the given name, ID, and optional 156 // state properties that are used to uniquely qualify the lookup (nil if not required). 157 func GetContainerRecipe(ctx *pulumi.Context, 158 name string, id pulumi.IDInput, state *ContainerRecipeState, opts ...pulumi.ResourceOption) (*ContainerRecipe, error) { 159 var resource ContainerRecipe 160 err := ctx.ReadResource("aws:imagebuilder/containerRecipe:ContainerRecipe", name, id, state, &resource, opts...) 161 if err != nil { 162 return nil, err 163 } 164 return &resource, nil 165 } 166 167 // Input properties used for looking up and filtering ContainerRecipe resources. 168 type containerRecipeState struct { 169 // (Required) Amazon Resource Name (ARN) of the container recipe. 170 Arn *string `pulumi:"arn"` 171 // Ordered configuration block(s) with components for the container recipe. Detailed below. 172 Components []ContainerRecipeComponent `pulumi:"components"` 173 // The type of the container to create. Valid values: `DOCKER`. 174 ContainerType *string `pulumi:"containerType"` 175 // Date the container recipe was created. 176 DateCreated *string `pulumi:"dateCreated"` 177 // The description of the container recipe. 178 Description *string `pulumi:"description"` 179 // The Dockerfile template used to build the image as an inline data blob. 180 DockerfileTemplateData *string `pulumi:"dockerfileTemplateData"` 181 // The Amazon S3 URI for the Dockerfile that will be used to build the container image. 182 DockerfileTemplateUri *string `pulumi:"dockerfileTemplateUri"` 183 // Whether to encrypt the volume. Defaults to unset, which is the value inherited from the parent image. 184 Encrypted *bool `pulumi:"encrypted"` 185 // Configuration block used to configure an instance for building and testing container images. Detailed below. 186 InstanceConfiguration *ContainerRecipeInstanceConfiguration `pulumi:"instanceConfiguration"` 187 // The KMS key used to encrypt the container image. 188 KmsKeyId *string `pulumi:"kmsKeyId"` 189 // The name of the container recipe. 190 Name *string `pulumi:"name"` 191 // Owner of the container recipe. 192 Owner *string `pulumi:"owner"` 193 // The base image for the container recipe. 194 ParentImage *string `pulumi:"parentImage"` 195 // Platform of the container recipe. 196 Platform *string `pulumi:"platform"` 197 // Specifies the operating system platform when you use a custom base image. 198 PlatformOverride *string `pulumi:"platformOverride"` 199 // Key-value map of resource tags for the container recipe. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. 200 Tags map[string]string `pulumi:"tags"` 201 // A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block. 202 // 203 // Deprecated: Please use `tags` instead. 204 TagsAll map[string]string `pulumi:"tagsAll"` 205 // The destination repository for the container image. Detailed below. 206 TargetRepository *ContainerRecipeTargetRepository `pulumi:"targetRepository"` 207 // Version of the container recipe. 208 // 209 // The following attributes are optional: 210 Version *string `pulumi:"version"` 211 // The working directory to be used during build and test workflows. 212 WorkingDirectory *string `pulumi:"workingDirectory"` 213 } 214 215 type ContainerRecipeState struct { 216 // (Required) Amazon Resource Name (ARN) of the container recipe. 217 Arn pulumi.StringPtrInput 218 // Ordered configuration block(s) with components for the container recipe. Detailed below. 219 Components ContainerRecipeComponentArrayInput 220 // The type of the container to create. Valid values: `DOCKER`. 221 ContainerType pulumi.StringPtrInput 222 // Date the container recipe was created. 223 DateCreated pulumi.StringPtrInput 224 // The description of the container recipe. 225 Description pulumi.StringPtrInput 226 // The Dockerfile template used to build the image as an inline data blob. 227 DockerfileTemplateData pulumi.StringPtrInput 228 // The Amazon S3 URI for the Dockerfile that will be used to build the container image. 229 DockerfileTemplateUri pulumi.StringPtrInput 230 // Whether to encrypt the volume. Defaults to unset, which is the value inherited from the parent image. 231 Encrypted pulumi.BoolPtrInput 232 // Configuration block used to configure an instance for building and testing container images. Detailed below. 233 InstanceConfiguration ContainerRecipeInstanceConfigurationPtrInput 234 // The KMS key used to encrypt the container image. 235 KmsKeyId pulumi.StringPtrInput 236 // The name of the container recipe. 237 Name pulumi.StringPtrInput 238 // Owner of the container recipe. 239 Owner pulumi.StringPtrInput 240 // The base image for the container recipe. 241 ParentImage pulumi.StringPtrInput 242 // Platform of the container recipe. 243 Platform pulumi.StringPtrInput 244 // Specifies the operating system platform when you use a custom base image. 245 PlatformOverride pulumi.StringPtrInput 246 // Key-value map of resource tags for the container recipe. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. 247 Tags pulumi.StringMapInput 248 // A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block. 249 // 250 // Deprecated: Please use `tags` instead. 251 TagsAll pulumi.StringMapInput 252 // The destination repository for the container image. Detailed below. 253 TargetRepository ContainerRecipeTargetRepositoryPtrInput 254 // Version of the container recipe. 255 // 256 // The following attributes are optional: 257 Version pulumi.StringPtrInput 258 // The working directory to be used during build and test workflows. 259 WorkingDirectory pulumi.StringPtrInput 260 } 261 262 func (ContainerRecipeState) ElementType() reflect.Type { 263 return reflect.TypeOf((*containerRecipeState)(nil)).Elem() 264 } 265 266 type containerRecipeArgs struct { 267 // Ordered configuration block(s) with components for the container recipe. Detailed below. 268 Components []ContainerRecipeComponent `pulumi:"components"` 269 // The type of the container to create. Valid values: `DOCKER`. 270 ContainerType string `pulumi:"containerType"` 271 // The description of the container recipe. 272 Description *string `pulumi:"description"` 273 // The Dockerfile template used to build the image as an inline data blob. 274 DockerfileTemplateData *string `pulumi:"dockerfileTemplateData"` 275 // The Amazon S3 URI for the Dockerfile that will be used to build the container image. 276 DockerfileTemplateUri *string `pulumi:"dockerfileTemplateUri"` 277 // Configuration block used to configure an instance for building and testing container images. Detailed below. 278 InstanceConfiguration *ContainerRecipeInstanceConfiguration `pulumi:"instanceConfiguration"` 279 // The KMS key used to encrypt the container image. 280 KmsKeyId *string `pulumi:"kmsKeyId"` 281 // The name of the container recipe. 282 Name *string `pulumi:"name"` 283 // The base image for the container recipe. 284 ParentImage string `pulumi:"parentImage"` 285 // Specifies the operating system platform when you use a custom base image. 286 PlatformOverride *string `pulumi:"platformOverride"` 287 // Key-value map of resource tags for the container recipe. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. 288 Tags map[string]string `pulumi:"tags"` 289 // The destination repository for the container image. Detailed below. 290 TargetRepository ContainerRecipeTargetRepository `pulumi:"targetRepository"` 291 // Version of the container recipe. 292 // 293 // The following attributes are optional: 294 Version string `pulumi:"version"` 295 // The working directory to be used during build and test workflows. 296 WorkingDirectory *string `pulumi:"workingDirectory"` 297 } 298 299 // The set of arguments for constructing a ContainerRecipe resource. 300 type ContainerRecipeArgs struct { 301 // Ordered configuration block(s) with components for the container recipe. Detailed below. 302 Components ContainerRecipeComponentArrayInput 303 // The type of the container to create. Valid values: `DOCKER`. 304 ContainerType pulumi.StringInput 305 // The description of the container recipe. 306 Description pulumi.StringPtrInput 307 // The Dockerfile template used to build the image as an inline data blob. 308 DockerfileTemplateData pulumi.StringPtrInput 309 // The Amazon S3 URI for the Dockerfile that will be used to build the container image. 310 DockerfileTemplateUri pulumi.StringPtrInput 311 // Configuration block used to configure an instance for building and testing container images. Detailed below. 312 InstanceConfiguration ContainerRecipeInstanceConfigurationPtrInput 313 // The KMS key used to encrypt the container image. 314 KmsKeyId pulumi.StringPtrInput 315 // The name of the container recipe. 316 Name pulumi.StringPtrInput 317 // The base image for the container recipe. 318 ParentImage pulumi.StringInput 319 // Specifies the operating system platform when you use a custom base image. 320 PlatformOverride pulumi.StringPtrInput 321 // Key-value map of resource tags for the container recipe. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. 322 Tags pulumi.StringMapInput 323 // The destination repository for the container image. Detailed below. 324 TargetRepository ContainerRecipeTargetRepositoryInput 325 // Version of the container recipe. 326 // 327 // The following attributes are optional: 328 Version pulumi.StringInput 329 // The working directory to be used during build and test workflows. 330 WorkingDirectory pulumi.StringPtrInput 331 } 332 333 func (ContainerRecipeArgs) ElementType() reflect.Type { 334 return reflect.TypeOf((*containerRecipeArgs)(nil)).Elem() 335 } 336 337 type ContainerRecipeInput interface { 338 pulumi.Input 339 340 ToContainerRecipeOutput() ContainerRecipeOutput 341 ToContainerRecipeOutputWithContext(ctx context.Context) ContainerRecipeOutput 342 } 343 344 func (*ContainerRecipe) ElementType() reflect.Type { 345 return reflect.TypeOf((**ContainerRecipe)(nil)).Elem() 346 } 347 348 func (i *ContainerRecipe) ToContainerRecipeOutput() ContainerRecipeOutput { 349 return i.ToContainerRecipeOutputWithContext(context.Background()) 350 } 351 352 func (i *ContainerRecipe) ToContainerRecipeOutputWithContext(ctx context.Context) ContainerRecipeOutput { 353 return pulumi.ToOutputWithContext(ctx, i).(ContainerRecipeOutput) 354 } 355 356 // ContainerRecipeArrayInput is an input type that accepts ContainerRecipeArray and ContainerRecipeArrayOutput values. 357 // You can construct a concrete instance of `ContainerRecipeArrayInput` via: 358 // 359 // ContainerRecipeArray{ ContainerRecipeArgs{...} } 360 type ContainerRecipeArrayInput interface { 361 pulumi.Input 362 363 ToContainerRecipeArrayOutput() ContainerRecipeArrayOutput 364 ToContainerRecipeArrayOutputWithContext(context.Context) ContainerRecipeArrayOutput 365 } 366 367 type ContainerRecipeArray []ContainerRecipeInput 368 369 func (ContainerRecipeArray) ElementType() reflect.Type { 370 return reflect.TypeOf((*[]*ContainerRecipe)(nil)).Elem() 371 } 372 373 func (i ContainerRecipeArray) ToContainerRecipeArrayOutput() ContainerRecipeArrayOutput { 374 return i.ToContainerRecipeArrayOutputWithContext(context.Background()) 375 } 376 377 func (i ContainerRecipeArray) ToContainerRecipeArrayOutputWithContext(ctx context.Context) ContainerRecipeArrayOutput { 378 return pulumi.ToOutputWithContext(ctx, i).(ContainerRecipeArrayOutput) 379 } 380 381 // ContainerRecipeMapInput is an input type that accepts ContainerRecipeMap and ContainerRecipeMapOutput values. 382 // You can construct a concrete instance of `ContainerRecipeMapInput` via: 383 // 384 // ContainerRecipeMap{ "key": ContainerRecipeArgs{...} } 385 type ContainerRecipeMapInput interface { 386 pulumi.Input 387 388 ToContainerRecipeMapOutput() ContainerRecipeMapOutput 389 ToContainerRecipeMapOutputWithContext(context.Context) ContainerRecipeMapOutput 390 } 391 392 type ContainerRecipeMap map[string]ContainerRecipeInput 393 394 func (ContainerRecipeMap) ElementType() reflect.Type { 395 return reflect.TypeOf((*map[string]*ContainerRecipe)(nil)).Elem() 396 } 397 398 func (i ContainerRecipeMap) ToContainerRecipeMapOutput() ContainerRecipeMapOutput { 399 return i.ToContainerRecipeMapOutputWithContext(context.Background()) 400 } 401 402 func (i ContainerRecipeMap) ToContainerRecipeMapOutputWithContext(ctx context.Context) ContainerRecipeMapOutput { 403 return pulumi.ToOutputWithContext(ctx, i).(ContainerRecipeMapOutput) 404 } 405 406 type ContainerRecipeOutput struct{ *pulumi.OutputState } 407 408 func (ContainerRecipeOutput) ElementType() reflect.Type { 409 return reflect.TypeOf((**ContainerRecipe)(nil)).Elem() 410 } 411 412 func (o ContainerRecipeOutput) ToContainerRecipeOutput() ContainerRecipeOutput { 413 return o 414 } 415 416 func (o ContainerRecipeOutput) ToContainerRecipeOutputWithContext(ctx context.Context) ContainerRecipeOutput { 417 return o 418 } 419 420 // (Required) Amazon Resource Name (ARN) of the container recipe. 421 func (o ContainerRecipeOutput) Arn() pulumi.StringOutput { 422 return o.ApplyT(func(v *ContainerRecipe) pulumi.StringOutput { return v.Arn }).(pulumi.StringOutput) 423 } 424 425 // Ordered configuration block(s) with components for the container recipe. Detailed below. 426 func (o ContainerRecipeOutput) Components() ContainerRecipeComponentArrayOutput { 427 return o.ApplyT(func(v *ContainerRecipe) ContainerRecipeComponentArrayOutput { return v.Components }).(ContainerRecipeComponentArrayOutput) 428 } 429 430 // The type of the container to create. Valid values: `DOCKER`. 431 func (o ContainerRecipeOutput) ContainerType() pulumi.StringOutput { 432 return o.ApplyT(func(v *ContainerRecipe) pulumi.StringOutput { return v.ContainerType }).(pulumi.StringOutput) 433 } 434 435 // Date the container recipe was created. 436 func (o ContainerRecipeOutput) DateCreated() pulumi.StringOutput { 437 return o.ApplyT(func(v *ContainerRecipe) pulumi.StringOutput { return v.DateCreated }).(pulumi.StringOutput) 438 } 439 440 // The description of the container recipe. 441 func (o ContainerRecipeOutput) Description() pulumi.StringPtrOutput { 442 return o.ApplyT(func(v *ContainerRecipe) pulumi.StringPtrOutput { return v.Description }).(pulumi.StringPtrOutput) 443 } 444 445 // The Dockerfile template used to build the image as an inline data blob. 446 func (o ContainerRecipeOutput) DockerfileTemplateData() pulumi.StringOutput { 447 return o.ApplyT(func(v *ContainerRecipe) pulumi.StringOutput { return v.DockerfileTemplateData }).(pulumi.StringOutput) 448 } 449 450 // The Amazon S3 URI for the Dockerfile that will be used to build the container image. 451 func (o ContainerRecipeOutput) DockerfileTemplateUri() pulumi.StringPtrOutput { 452 return o.ApplyT(func(v *ContainerRecipe) pulumi.StringPtrOutput { return v.DockerfileTemplateUri }).(pulumi.StringPtrOutput) 453 } 454 455 // Whether to encrypt the volume. Defaults to unset, which is the value inherited from the parent image. 456 func (o ContainerRecipeOutput) Encrypted() pulumi.BoolOutput { 457 return o.ApplyT(func(v *ContainerRecipe) pulumi.BoolOutput { return v.Encrypted }).(pulumi.BoolOutput) 458 } 459 460 // Configuration block used to configure an instance for building and testing container images. Detailed below. 461 func (o ContainerRecipeOutput) InstanceConfiguration() ContainerRecipeInstanceConfigurationPtrOutput { 462 return o.ApplyT(func(v *ContainerRecipe) ContainerRecipeInstanceConfigurationPtrOutput { return v.InstanceConfiguration }).(ContainerRecipeInstanceConfigurationPtrOutput) 463 } 464 465 // The KMS key used to encrypt the container image. 466 func (o ContainerRecipeOutput) KmsKeyId() pulumi.StringPtrOutput { 467 return o.ApplyT(func(v *ContainerRecipe) pulumi.StringPtrOutput { return v.KmsKeyId }).(pulumi.StringPtrOutput) 468 } 469 470 // The name of the container recipe. 471 func (o ContainerRecipeOutput) Name() pulumi.StringOutput { 472 return o.ApplyT(func(v *ContainerRecipe) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) 473 } 474 475 // Owner of the container recipe. 476 func (o ContainerRecipeOutput) Owner() pulumi.StringOutput { 477 return o.ApplyT(func(v *ContainerRecipe) pulumi.StringOutput { return v.Owner }).(pulumi.StringOutput) 478 } 479 480 // The base image for the container recipe. 481 func (o ContainerRecipeOutput) ParentImage() pulumi.StringOutput { 482 return o.ApplyT(func(v *ContainerRecipe) pulumi.StringOutput { return v.ParentImage }).(pulumi.StringOutput) 483 } 484 485 // Platform of the container recipe. 486 func (o ContainerRecipeOutput) Platform() pulumi.StringOutput { 487 return o.ApplyT(func(v *ContainerRecipe) pulumi.StringOutput { return v.Platform }).(pulumi.StringOutput) 488 } 489 490 // Specifies the operating system platform when you use a custom base image. 491 func (o ContainerRecipeOutput) PlatformOverride() pulumi.StringPtrOutput { 492 return o.ApplyT(func(v *ContainerRecipe) pulumi.StringPtrOutput { return v.PlatformOverride }).(pulumi.StringPtrOutput) 493 } 494 495 // Key-value map of resource tags for the container recipe. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. 496 func (o ContainerRecipeOutput) Tags() pulumi.StringMapOutput { 497 return o.ApplyT(func(v *ContainerRecipe) pulumi.StringMapOutput { return v.Tags }).(pulumi.StringMapOutput) 498 } 499 500 // A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block. 501 // 502 // Deprecated: Please use `tags` instead. 503 func (o ContainerRecipeOutput) TagsAll() pulumi.StringMapOutput { 504 return o.ApplyT(func(v *ContainerRecipe) pulumi.StringMapOutput { return v.TagsAll }).(pulumi.StringMapOutput) 505 } 506 507 // The destination repository for the container image. Detailed below. 508 func (o ContainerRecipeOutput) TargetRepository() ContainerRecipeTargetRepositoryOutput { 509 return o.ApplyT(func(v *ContainerRecipe) ContainerRecipeTargetRepositoryOutput { return v.TargetRepository }).(ContainerRecipeTargetRepositoryOutput) 510 } 511 512 // Version of the container recipe. 513 // 514 // The following attributes are optional: 515 func (o ContainerRecipeOutput) Version() pulumi.StringOutput { 516 return o.ApplyT(func(v *ContainerRecipe) pulumi.StringOutput { return v.Version }).(pulumi.StringOutput) 517 } 518 519 // The working directory to be used during build and test workflows. 520 func (o ContainerRecipeOutput) WorkingDirectory() pulumi.StringPtrOutput { 521 return o.ApplyT(func(v *ContainerRecipe) pulumi.StringPtrOutput { return v.WorkingDirectory }).(pulumi.StringPtrOutput) 522 } 523 524 type ContainerRecipeArrayOutput struct{ *pulumi.OutputState } 525 526 func (ContainerRecipeArrayOutput) ElementType() reflect.Type { 527 return reflect.TypeOf((*[]*ContainerRecipe)(nil)).Elem() 528 } 529 530 func (o ContainerRecipeArrayOutput) ToContainerRecipeArrayOutput() ContainerRecipeArrayOutput { 531 return o 532 } 533 534 func (o ContainerRecipeArrayOutput) ToContainerRecipeArrayOutputWithContext(ctx context.Context) ContainerRecipeArrayOutput { 535 return o 536 } 537 538 func (o ContainerRecipeArrayOutput) Index(i pulumi.IntInput) ContainerRecipeOutput { 539 return pulumi.All(o, i).ApplyT(func(vs []interface{}) *ContainerRecipe { 540 return vs[0].([]*ContainerRecipe)[vs[1].(int)] 541 }).(ContainerRecipeOutput) 542 } 543 544 type ContainerRecipeMapOutput struct{ *pulumi.OutputState } 545 546 func (ContainerRecipeMapOutput) ElementType() reflect.Type { 547 return reflect.TypeOf((*map[string]*ContainerRecipe)(nil)).Elem() 548 } 549 550 func (o ContainerRecipeMapOutput) ToContainerRecipeMapOutput() ContainerRecipeMapOutput { 551 return o 552 } 553 554 func (o ContainerRecipeMapOutput) ToContainerRecipeMapOutputWithContext(ctx context.Context) ContainerRecipeMapOutput { 555 return o 556 } 557 558 func (o ContainerRecipeMapOutput) MapIndex(k pulumi.StringInput) ContainerRecipeOutput { 559 return pulumi.All(o, k).ApplyT(func(vs []interface{}) *ContainerRecipe { 560 return vs[0].(map[string]*ContainerRecipe)[vs[1].(string)] 561 }).(ContainerRecipeOutput) 562 } 563 564 func init() { 565 pulumi.RegisterInputType(reflect.TypeOf((*ContainerRecipeInput)(nil)).Elem(), &ContainerRecipe{}) 566 pulumi.RegisterInputType(reflect.TypeOf((*ContainerRecipeArrayInput)(nil)).Elem(), ContainerRecipeArray{}) 567 pulumi.RegisterInputType(reflect.TypeOf((*ContainerRecipeMapInput)(nil)).Elem(), ContainerRecipeMap{}) 568 pulumi.RegisterOutputType(ContainerRecipeOutput{}) 569 pulumi.RegisterOutputType(ContainerRecipeArrayOutput{}) 570 pulumi.RegisterOutputType(ContainerRecipeMapOutput{}) 571 }