All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azure.containerservice.kotlin.RegistryArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 6.15.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.containerservice.kotlin

import com.pulumi.azure.containerservice.RegistryArgs.builder
import com.pulumi.azure.containerservice.kotlin.inputs.RegistryEncryptionArgs
import com.pulumi.azure.containerservice.kotlin.inputs.RegistryEncryptionArgsBuilder
import com.pulumi.azure.containerservice.kotlin.inputs.RegistryGeoreplicationArgs
import com.pulumi.azure.containerservice.kotlin.inputs.RegistryGeoreplicationArgsBuilder
import com.pulumi.azure.containerservice.kotlin.inputs.RegistryIdentityArgs
import com.pulumi.azure.containerservice.kotlin.inputs.RegistryIdentityArgsBuilder
import com.pulumi.azure.containerservice.kotlin.inputs.RegistryNetworkRuleSetArgs
import com.pulumi.azure.containerservice.kotlin.inputs.RegistryNetworkRuleSetArgsBuilder
import com.pulumi.azure.containerservice.kotlin.inputs.RegistryRetentionPolicyArgs
import com.pulumi.azure.containerservice.kotlin.inputs.RegistryRetentionPolicyArgsBuilder
import com.pulumi.azure.containerservice.kotlin.inputs.RegistryTrustPolicyArgs
import com.pulumi.azure.containerservice.kotlin.inputs.RegistryTrustPolicyArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * Manages an Azure Container Registry.
 * ## Example Usage
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as azure from "@pulumi/azure";
 * const example = new azure.core.ResourceGroup("example", {
 *     name: "example-resources",
 *     location: "West Europe",
 * });
 * const acr = new azure.containerservice.Registry("acr", {
 *     name: "containerRegistry1",
 *     resourceGroupName: example.name,
 *     location: example.location,
 *     sku: "Premium",
 *     adminEnabled: false,
 *     georeplications: [
 *         {
 *             location: "East US",
 *             zoneRedundancyEnabled: true,
 *             tags: {},
 *         },
 *         {
 *             location: "North Europe",
 *             zoneRedundancyEnabled: true,
 *             tags: {},
 *         },
 *     ],
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_azure as azure
 * example = azure.core.ResourceGroup("example",
 *     name="example-resources",
 *     location="West Europe")
 * acr = azure.containerservice.Registry("acr",
 *     name="containerRegistry1",
 *     resource_group_name=example.name,
 *     location=example.location,
 *     sku="Premium",
 *     admin_enabled=False,
 *     georeplications=[
 *         azure.containerservice.RegistryGeoreplicationArgs(
 *             location="East US",
 *             zone_redundancy_enabled=True,
 *             tags={},
 *         ),
 *         azure.containerservice.RegistryGeoreplicationArgs(
 *             location="North Europe",
 *             zone_redundancy_enabled=True,
 *             tags={},
 *         ),
 *     ])
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Azure = Pulumi.Azure;
 * return await Deployment.RunAsync(() =>
 * {
 *     var example = new Azure.Core.ResourceGroup("example", new()
 *     {
 *         Name = "example-resources",
 *         Location = "West Europe",
 *     });
 *     var acr = new Azure.ContainerService.Registry("acr", new()
 *     {
 *         Name = "containerRegistry1",
 *         ResourceGroupName = example.Name,
 *         Location = example.Location,
 *         Sku = "Premium",
 *         AdminEnabled = false,
 *         Georeplications = new[]
 *         {
 *             new Azure.ContainerService.Inputs.RegistryGeoreplicationArgs
 *             {
 *                 Location = "East US",
 *                 ZoneRedundancyEnabled = true,
 *                 Tags = null,
 *             },
 *             new Azure.ContainerService.Inputs.RegistryGeoreplicationArgs
 *             {
 *                 Location = "North Europe",
 *                 ZoneRedundancyEnabled = true,
 *                 Tags = null,
 *             },
 *         },
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/containerservice"
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
 * 			Name:     pulumi.String("example-resources"),
 * 			Location: pulumi.String("West Europe"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		_, err = containerservice.NewRegistry(ctx, "acr", &containerservice.RegistryArgs{
 * 			Name:              pulumi.String("containerRegistry1"),
 * 			ResourceGroupName: example.Name,
 * 			Location:          example.Location,
 * 			Sku:               pulumi.String("Premium"),
 * 			AdminEnabled:      pulumi.Bool(false),
 * 			Georeplications: containerservice.RegistryGeoreplicationArray{
 * 				&containerservice.RegistryGeoreplicationArgs{
 * 					Location:              pulumi.String("East US"),
 * 					ZoneRedundancyEnabled: pulumi.Bool(true),
 * 					Tags:                  nil,
 * 				},
 * 				&containerservice.RegistryGeoreplicationArgs{
 * 					Location:              pulumi.String("North Europe"),
 * 					ZoneRedundancyEnabled: pulumi.Bool(true),
 * 					Tags:                  nil,
 * 				},
 * 			},
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		return nil
 * 	})
 * }
 * ```
 * ```java
 * package generated_program;
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azure.core.ResourceGroup;
 * import com.pulumi.azure.core.ResourceGroupArgs;
 * import com.pulumi.azure.containerservice.Registry;
 * import com.pulumi.azure.containerservice.RegistryArgs;
 * import com.pulumi.azure.containerservice.inputs.RegistryGeoreplicationArgs;
 * import java.util.List;
 * import java.util.ArrayList;
 * import java.util.Map;
 * import java.io.File;
 * import java.nio.file.Files;
 * import java.nio.file.Paths;
 * public class App {
 *     public static void main(String[] args) {
 *         Pulumi.run(App::stack);
 *     }
 *     public static void stack(Context ctx) {
 *         var example = new ResourceGroup("example", ResourceGroupArgs.builder()
 *             .name("example-resources")
 *             .location("West Europe")
 *             .build());
 *         var acr = new Registry("acr", RegistryArgs.builder()
 *             .name("containerRegistry1")
 *             .resourceGroupName(example.name())
 *             .location(example.location())
 *             .sku("Premium")
 *             .adminEnabled(false)
 *             .georeplications(
 *                 RegistryGeoreplicationArgs.builder()
 *                     .location("East US")
 *                     .zoneRedundancyEnabled(true)
 *                     .tags()
 *                     .build(),
 *                 RegistryGeoreplicationArgs.builder()
 *                     .location("North Europe")
 *                     .zoneRedundancyEnabled(true)
 *                     .tags()
 *                     .build())
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   example:
 *     type: azure:core:ResourceGroup
 *     properties:
 *       name: example-resources
 *       location: West Europe
 *   acr:
 *     type: azure:containerservice:Registry
 *     properties:
 *       name: containerRegistry1
 *       resourceGroupName: ${example.name}
 *       location: ${example.location}
 *       sku: Premium
 *       adminEnabled: false
 *       georeplications:
 *         - location: East US
 *           zoneRedundancyEnabled: true
 *           tags: {}
 *         - location: North Europe
 *           zoneRedundancyEnabled: true
 *           tags: {}
 * ```
 * 
 * ### Encryption)
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as azure from "@pulumi/azure";
 * const exampleResourceGroup = new azure.core.ResourceGroup("example", {
 *     name: "example-resources",
 *     location: "West Europe",
 * });
 * const exampleUserAssignedIdentity = new azure.authorization.UserAssignedIdentity("example", {
 *     resourceGroupName: exampleResourceGroup.name,
 *     location: exampleResourceGroup.location,
 *     name: "registry-uai",
 * });
 * const example = azure.keyvault.getKey({
 *     name: "super-secret",
 *     keyVaultId: existing.id,
 * });
 * const acr = new azure.containerservice.Registry("acr", {
 *     name: "containerRegistry1",
 *     resourceGroupName: exampleResourceGroup.name,
 *     location: exampleResourceGroup.location,
 *     sku: "Premium",
 *     identity: {
 *         type: "UserAssigned",
 *         identityIds: [exampleUserAssignedIdentity.id],
 *     },
 *     encryption: {
 *         enabled: true,
 *         keyVaultKeyId: example.then(example => example.id),
 *         identityClientId: exampleUserAssignedIdentity.clientId,
 *     },
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_azure as azure
 * example_resource_group = azure.core.ResourceGroup("example",
 *     name="example-resources",
 *     location="West Europe")
 * example_user_assigned_identity = azure.authorization.UserAssignedIdentity("example",
 *     resource_group_name=example_resource_group.name,
 *     location=example_resource_group.location,
 *     name="registry-uai")
 * example = azure.keyvault.get_key(name="super-secret",
 *     key_vault_id=existing["id"])
 * acr = azure.containerservice.Registry("acr",
 *     name="containerRegistry1",
 *     resource_group_name=example_resource_group.name,
 *     location=example_resource_group.location,
 *     sku="Premium",
 *     identity=azure.containerservice.RegistryIdentityArgs(
 *         type="UserAssigned",
 *         identity_ids=[example_user_assigned_identity.id],
 *     ),
 *     encryption=azure.containerservice.RegistryEncryptionArgs(
 *         enabled=True,
 *         key_vault_key_id=example.id,
 *         identity_client_id=example_user_assigned_identity.client_id,
 *     ))
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Azure = Pulumi.Azure;
 * return await Deployment.RunAsync(() =>
 * {
 *     var exampleResourceGroup = new Azure.Core.ResourceGroup("example", new()
 *     {
 *         Name = "example-resources",
 *         Location = "West Europe",
 *     });
 *     var exampleUserAssignedIdentity = new Azure.Authorization.UserAssignedIdentity("example", new()
 *     {
 *         ResourceGroupName = exampleResourceGroup.Name,
 *         Location = exampleResourceGroup.Location,
 *         Name = "registry-uai",
 *     });
 *     var example = Azure.KeyVault.GetKey.Invoke(new()
 *     {
 *         Name = "super-secret",
 *         KeyVaultId = existing.Id,
 *     });
 *     var acr = new Azure.ContainerService.Registry("acr", new()
 *     {
 *         Name = "containerRegistry1",
 *         ResourceGroupName = exampleResourceGroup.Name,
 *         Location = exampleResourceGroup.Location,
 *         Sku = "Premium",
 *         Identity = new Azure.ContainerService.Inputs.RegistryIdentityArgs
 *         {
 *             Type = "UserAssigned",
 *             IdentityIds = new[]
 *             {
 *                 exampleUserAssignedIdentity.Id,
 *             },
 *         },
 *         Encryption = new Azure.ContainerService.Inputs.RegistryEncryptionArgs
 *         {
 *             Enabled = true,
 *             KeyVaultKeyId = example.Apply(getKeyResult => getKeyResult.Id),
 *             IdentityClientId = exampleUserAssignedIdentity.ClientId,
 *         },
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/authorization"
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/containerservice"
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/keyvault"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		exampleResourceGroup, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
 * 			Name:     pulumi.String("example-resources"),
 * 			Location: pulumi.String("West Europe"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		exampleUserAssignedIdentity, err := authorization.NewUserAssignedIdentity(ctx, "example", &authorization.UserAssignedIdentityArgs{
 * 			ResourceGroupName: exampleResourceGroup.Name,
 * 			Location:          exampleResourceGroup.Location,
 * 			Name:              pulumi.String("registry-uai"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		example, err := keyvault.LookupKey(ctx, &keyvault.LookupKeyArgs{
 * 			Name:       "super-secret",
 * 			KeyVaultId: existing.Id,
 * 		}, nil)
 * 		if err != nil {
 * 			return err
 * 		}
 * 		_, err = containerservice.NewRegistry(ctx, "acr", &containerservice.RegistryArgs{
 * 			Name:              pulumi.String("containerRegistry1"),
 * 			ResourceGroupName: exampleResourceGroup.Name,
 * 			Location:          exampleResourceGroup.Location,
 * 			Sku:               pulumi.String("Premium"),
 * 			Identity: &containerservice.RegistryIdentityArgs{
 * 				Type: pulumi.String("UserAssigned"),
 * 				IdentityIds: pulumi.StringArray{
 * 					exampleUserAssignedIdentity.ID(),
 * 				},
 * 			},
 * 			Encryption: &containerservice.RegistryEncryptionArgs{
 * 				Enabled:          pulumi.Bool(true),
 * 				KeyVaultKeyId:    pulumi.String(example.Id),
 * 				IdentityClientId: exampleUserAssignedIdentity.ClientId,
 * 			},
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		return nil
 * 	})
 * }
 * ```
 * ```java
 * package generated_program;
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azure.core.ResourceGroup;
 * import com.pulumi.azure.core.ResourceGroupArgs;
 * import com.pulumi.azure.authorization.UserAssignedIdentity;
 * import com.pulumi.azure.authorization.UserAssignedIdentityArgs;
 * import com.pulumi.azure.keyvault.KeyvaultFunctions;
 * import com.pulumi.azure.keyvault.inputs.GetKeyArgs;
 * import com.pulumi.azure.containerservice.Registry;
 * import com.pulumi.azure.containerservice.RegistryArgs;
 * import com.pulumi.azure.containerservice.inputs.RegistryIdentityArgs;
 * import com.pulumi.azure.containerservice.inputs.RegistryEncryptionArgs;
 * import java.util.List;
 * import java.util.ArrayList;
 * import java.util.Map;
 * import java.io.File;
 * import java.nio.file.Files;
 * import java.nio.file.Paths;
 * public class App {
 *     public static void main(String[] args) {
 *         Pulumi.run(App::stack);
 *     }
 *     public static void stack(Context ctx) {
 *         var exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
 *             .name("example-resources")
 *             .location("West Europe")
 *             .build());
 *         var exampleUserAssignedIdentity = new UserAssignedIdentity("exampleUserAssignedIdentity", UserAssignedIdentityArgs.builder()
 *             .resourceGroupName(exampleResourceGroup.name())
 *             .location(exampleResourceGroup.location())
 *             .name("registry-uai")
 *             .build());
 *         final var example = KeyvaultFunctions.getKey(GetKeyArgs.builder()
 *             .name("super-secret")
 *             .keyVaultId(existing.id())
 *             .build());
 *         var acr = new Registry("acr", RegistryArgs.builder()
 *             .name("containerRegistry1")
 *             .resourceGroupName(exampleResourceGroup.name())
 *             .location(exampleResourceGroup.location())
 *             .sku("Premium")
 *             .identity(RegistryIdentityArgs.builder()
 *                 .type("UserAssigned")
 *                 .identityIds(exampleUserAssignedIdentity.id())
 *                 .build())
 *             .encryption(RegistryEncryptionArgs.builder()
 *                 .enabled(true)
 *                 .keyVaultKeyId(example.applyValue(getKeyResult -> getKeyResult.id()))
 *                 .identityClientId(exampleUserAssignedIdentity.clientId())
 *                 .build())
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   exampleResourceGroup:
 *     type: azure:core:ResourceGroup
 *     name: example
 *     properties:
 *       name: example-resources
 *       location: West Europe
 *   acr:
 *     type: azure:containerservice:Registry
 *     properties:
 *       name: containerRegistry1
 *       resourceGroupName: ${exampleResourceGroup.name}
 *       location: ${exampleResourceGroup.location}
 *       sku: Premium
 *       identity:
 *         type: UserAssigned
 *         identityIds:
 *           - ${exampleUserAssignedIdentity.id}
 *       encryption:
 *         enabled: true
 *         keyVaultKeyId: ${example.id}
 *         identityClientId: ${exampleUserAssignedIdentity.clientId}
 *   exampleUserAssignedIdentity:
 *     type: azure:authorization:UserAssignedIdentity
 *     name: example
 *     properties:
 *       resourceGroupName: ${exampleResourceGroup.name}
 *       location: ${exampleResourceGroup.location}
 *       name: registry-uai
 * variables:
 *   example:
 *     fn::invoke:
 *       Function: azure:keyvault:getKey
 *       Arguments:
 *         name: super-secret
 *         keyVaultId: ${existing.id}
 * ```
 * 
 * ### Attaching A Container Registry To A Kubernetes Cluster)
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as azure from "@pulumi/azure";
 * const example = new azure.core.ResourceGroup("example", {
 *     name: "example-resources",
 *     location: "West Europe",
 * });
 * const exampleRegistry = new azure.containerservice.Registry("example", {
 *     name: "containerRegistry1",
 *     resourceGroupName: example.name,
 *     location: example.location,
 *     sku: "Premium",
 * });
 * const exampleKubernetesCluster = new azure.containerservice.KubernetesCluster("example", {
 *     name: "example-aks1",
 *     location: example.location,
 *     resourceGroupName: example.name,
 *     dnsPrefix: "exampleaks1",
 *     defaultNodePool: {
 *         name: "default",
 *         nodeCount: 1,
 *         vmSize: "Standard_D2_v2",
 *     },
 *     identity: {
 *         type: "SystemAssigned",
 *     },
 *     tags: {
 *         Environment: "Production",
 *     },
 * });
 * const exampleAssignment = new azure.authorization.Assignment("example", {
 *     principalId: exampleKubernetesCluster.kubeletIdentity.apply(kubeletIdentity => kubeletIdentity.objectId),
 *     roleDefinitionName: "AcrPull",
 *     scope: exampleRegistry.id,
 *     skipServicePrincipalAadCheck: true,
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_azure as azure
 * example = azure.core.ResourceGroup("example",
 *     name="example-resources",
 *     location="West Europe")
 * example_registry = azure.containerservice.Registry("example",
 *     name="containerRegistry1",
 *     resource_group_name=example.name,
 *     location=example.location,
 *     sku="Premium")
 * example_kubernetes_cluster = azure.containerservice.KubernetesCluster("example",
 *     name="example-aks1",
 *     location=example.location,
 *     resource_group_name=example.name,
 *     dns_prefix="exampleaks1",
 *     default_node_pool=azure.containerservice.KubernetesClusterDefaultNodePoolArgs(
 *         name="default",
 *         node_count=1,
 *         vm_size="Standard_D2_v2",
 *     ),
 *     identity=azure.containerservice.KubernetesClusterIdentityArgs(
 *         type="SystemAssigned",
 *     ),
 *     tags={
 *         "Environment": "Production",
 *     })
 * example_assignment = azure.authorization.Assignment("example",
 *     principal_id=example_kubernetes_cluster.kubelet_identity.object_id,
 *     role_definition_name="AcrPull",
 *     scope=example_registry.id,
 *     skip_service_principal_aad_check=True)
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Azure = Pulumi.Azure;
 * return await Deployment.RunAsync(() =>
 * {
 *     var example = new Azure.Core.ResourceGroup("example", new()
 *     {
 *         Name = "example-resources",
 *         Location = "West Europe",
 *     });
 *     var exampleRegistry = new Azure.ContainerService.Registry("example", new()
 *     {
 *         Name = "containerRegistry1",
 *         ResourceGroupName = example.Name,
 *         Location = example.Location,
 *         Sku = "Premium",
 *     });
 *     var exampleKubernetesCluster = new Azure.ContainerService.KubernetesCluster("example", new()
 *     {
 *         Name = "example-aks1",
 *         Location = example.Location,
 *         ResourceGroupName = example.Name,
 *         DnsPrefix = "exampleaks1",
 *         DefaultNodePool = new Azure.ContainerService.Inputs.KubernetesClusterDefaultNodePoolArgs
 *         {
 *             Name = "default",
 *             NodeCount = 1,
 *             VmSize = "Standard_D2_v2",
 *         },
 *         Identity = new Azure.ContainerService.Inputs.KubernetesClusterIdentityArgs
 *         {
 *             Type = "SystemAssigned",
 *         },
 *         Tags =
 *         {
 *             { "Environment", "Production" },
 *         },
 *     });
 *     var exampleAssignment = new Azure.Authorization.Assignment("example", new()
 *     {
 *         PrincipalId = exampleKubernetesCluster.KubeletIdentity.Apply(kubeletIdentity => kubeletIdentity.ObjectId),
 *         RoleDefinitionName = "AcrPull",
 *         Scope = exampleRegistry.Id,
 *         SkipServicePrincipalAadCheck = true,
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/authorization"
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/containerservice"
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
 * 			Name:     pulumi.String("example-resources"),
 * 			Location: pulumi.String("West Europe"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		exampleRegistry, err := containerservice.NewRegistry(ctx, "example", &containerservice.RegistryArgs{
 * 			Name:              pulumi.String("containerRegistry1"),
 * 			ResourceGroupName: example.Name,
 * 			Location:          example.Location,
 * 			Sku:               pulumi.String("Premium"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		exampleKubernetesCluster, err := containerservice.NewKubernetesCluster(ctx, "example", &containerservice.KubernetesClusterArgs{
 * 			Name:              pulumi.String("example-aks1"),
 * 			Location:          example.Location,
 * 			ResourceGroupName: example.Name,
 * 			DnsPrefix:         pulumi.String("exampleaks1"),
 * 			DefaultNodePool: &containerservice.KubernetesClusterDefaultNodePoolArgs{
 * 				Name:      pulumi.String("default"),
 * 				NodeCount: pulumi.Int(1),
 * 				VmSize:    pulumi.String("Standard_D2_v2"),
 * 			},
 * 			Identity: &containerservice.KubernetesClusterIdentityArgs{
 * 				Type: pulumi.String("SystemAssigned"),
 * 			},
 * 			Tags: pulumi.StringMap{
 * 				"Environment": pulumi.String("Production"),
 * 			},
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		_, err = authorization.NewAssignment(ctx, "example", &authorization.AssignmentArgs{
 * 			PrincipalId: exampleKubernetesCluster.KubeletIdentity.ApplyT(func(kubeletIdentity containerservice.KubernetesClusterKubeletIdentity) (*string, error) {
 * 				return &kubeletIdentity.ObjectId, nil
 * 			}).(pulumi.StringPtrOutput),
 * 			RoleDefinitionName:           pulumi.String("AcrPull"),
 * 			Scope:                        exampleRegistry.ID(),
 * 			SkipServicePrincipalAadCheck: pulumi.Bool(true),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		return nil
 * 	})
 * }
 * ```
 * ```java
 * package generated_program;
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azure.core.ResourceGroup;
 * import com.pulumi.azure.core.ResourceGroupArgs;
 * import com.pulumi.azure.containerservice.Registry;
 * import com.pulumi.azure.containerservice.RegistryArgs;
 * import com.pulumi.azure.containerservice.KubernetesCluster;
 * import com.pulumi.azure.containerservice.KubernetesClusterArgs;
 * import com.pulumi.azure.containerservice.inputs.KubernetesClusterDefaultNodePoolArgs;
 * import com.pulumi.azure.containerservice.inputs.KubernetesClusterIdentityArgs;
 * import com.pulumi.azure.authorization.Assignment;
 * import com.pulumi.azure.authorization.AssignmentArgs;
 * import java.util.List;
 * import java.util.ArrayList;
 * import java.util.Map;
 * import java.io.File;
 * import java.nio.file.Files;
 * import java.nio.file.Paths;
 * public class App {
 *     public static void main(String[] args) {
 *         Pulumi.run(App::stack);
 *     }
 *     public static void stack(Context ctx) {
 *         var example = new ResourceGroup("example", ResourceGroupArgs.builder()
 *             .name("example-resources")
 *             .location("West Europe")
 *             .build());
 *         var exampleRegistry = new Registry("exampleRegistry", RegistryArgs.builder()
 *             .name("containerRegistry1")
 *             .resourceGroupName(example.name())
 *             .location(example.location())
 *             .sku("Premium")
 *             .build());
 *         var exampleKubernetesCluster = new KubernetesCluster("exampleKubernetesCluster", KubernetesClusterArgs.builder()
 *             .name("example-aks1")
 *             .location(example.location())
 *             .resourceGroupName(example.name())
 *             .dnsPrefix("exampleaks1")
 *             .defaultNodePool(KubernetesClusterDefaultNodePoolArgs.builder()
 *                 .name("default")
 *                 .nodeCount(1)
 *                 .vmSize("Standard_D2_v2")
 *                 .build())
 *             .identity(KubernetesClusterIdentityArgs.builder()
 *                 .type("SystemAssigned")
 *                 .build())
 *             .tags(Map.of("Environment", "Production"))
 *             .build());
 *         var exampleAssignment = new Assignment("exampleAssignment", AssignmentArgs.builder()
 *             .principalId(exampleKubernetesCluster.kubeletIdentity().applyValue(kubeletIdentity -> kubeletIdentity.objectId()))
 *             .roleDefinitionName("AcrPull")
 *             .scope(exampleRegistry.id())
 *             .skipServicePrincipalAadCheck(true)
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   example:
 *     type: azure:core:ResourceGroup
 *     properties:
 *       name: example-resources
 *       location: West Europe
 *   exampleRegistry:
 *     type: azure:containerservice:Registry
 *     name: example
 *     properties:
 *       name: containerRegistry1
 *       resourceGroupName: ${example.name}
 *       location: ${example.location}
 *       sku: Premium
 *   exampleKubernetesCluster:
 *     type: azure:containerservice:KubernetesCluster
 *     name: example
 *     properties:
 *       name: example-aks1
 *       location: ${example.location}
 *       resourceGroupName: ${example.name}
 *       dnsPrefix: exampleaks1
 *       defaultNodePool:
 *         name: default
 *         nodeCount: 1
 *         vmSize: Standard_D2_v2
 *       identity:
 *         type: SystemAssigned
 *       tags:
 *         Environment: Production
 *   exampleAssignment:
 *     type: azure:authorization:Assignment
 *     name: example
 *     properties:
 *       principalId: ${exampleKubernetesCluster.kubeletIdentity.objectId}
 *       roleDefinitionName: AcrPull
 *       scope: ${exampleRegistry.id}
 *       skipServicePrincipalAadCheck: true
 * ```
 * 
 * ## Import
 * Container Registries can be imported using the `resource id`, e.g.
 * ```sh
 * $ pulumi import azure:containerservice/registry:Registry example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.ContainerRegistry/registries/myregistry1
 * ```
 * @property adminEnabled Specifies whether the admin user is enabled. Defaults to `false`.
 * @property anonymousPullEnabled Whether allows anonymous (unauthenticated) pull access to this Container Registry? This is only supported on resources with the `Standard` or `Premium` SKU.
 * @property dataEndpointEnabled Whether to enable dedicated data endpoints for this Container Registry? This is only supported on resources with the `Premium` SKU.
 * @property encryption An `encryption` block as documented below.
 * @property exportPolicyEnabled Boolean value that indicates whether export policy is enabled. Defaults to `true`. In order to set it to `false`, make sure the `public_network_access_enabled` is also set to `false`.
 * > **NOTE:** `quarantine_policy_enabled`, `retention_policy`, `trust_policy`, `export_policy_enabled` and `zone_redundancy_enabled` are only supported on resources with the `Premium` SKU.
 * @property georeplications A `georeplications` block as documented below.
 * > **NOTE:** The `georeplications` is only supported on new resources with the `Premium` SKU.
 * > **NOTE:** The `georeplications` list cannot contain the location where the Container Registry exists.
 * > **NOTE:** If more than one `georeplications` block is specified, they are expected to follow the alphabetic order on the `location` property.
 * @property identity An `identity` block as defined below.
 * @property location Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
 * @property name Specifies the name of the Container Registry. Only Alphanumeric characters allowed. Changing this forces a new resource to be created.
 * @property networkRuleBypassOption Whether to allow trusted Azure services to access a network restricted Container Registry? Possible values are `None` and `AzureServices`. Defaults to `AzureServices`.
 * @property networkRuleSet A `network_rule_set` block as documented below.
 * @property publicNetworkAccessEnabled Whether public network access is allowed for the container registry. Defaults to `true`.
 * @property quarantinePolicyEnabled Boolean value that indicates whether quarantine policy is enabled.
 * @property resourceGroupName The name of the resource group in which to create the Container Registry. Changing this forces a new resource to be created.
 * @property retentionPolicy A `retention_policy` block as documented below.
 * @property sku The SKU name of the container registry. Possible values are `Basic`, `Standard` and `Premium`.
 * @property tags A mapping of tags to assign to the resource.
 * @property trustPolicy A `trust_policy` block as documented below.
 * @property zoneRedundancyEnabled Whether zone redundancy is enabled for this Container Registry? Changing this forces a new resource to be created. Defaults to `false`.
 */
public data class RegistryArgs(
    public val adminEnabled: Output? = null,
    public val anonymousPullEnabled: Output? = null,
    public val dataEndpointEnabled: Output? = null,
    public val encryption: Output? = null,
    public val exportPolicyEnabled: Output? = null,
    public val georeplications: Output>? = null,
    public val identity: Output? = null,
    public val location: Output? = null,
    public val name: Output? = null,
    public val networkRuleBypassOption: Output? = null,
    public val networkRuleSet: Output? = null,
    public val publicNetworkAccessEnabled: Output? = null,
    public val quarantinePolicyEnabled: Output? = null,
    public val resourceGroupName: Output? = null,
    public val retentionPolicy: Output? = null,
    public val sku: Output? = null,
    public val tags: Output>? = null,
    public val trustPolicy: Output? = null,
    public val zoneRedundancyEnabled: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.containerservice.RegistryArgs =
        com.pulumi.azure.containerservice.RegistryArgs.builder()
            .adminEnabled(adminEnabled?.applyValue({ args0 -> args0 }))
            .anonymousPullEnabled(anonymousPullEnabled?.applyValue({ args0 -> args0 }))
            .dataEndpointEnabled(dataEndpointEnabled?.applyValue({ args0 -> args0 }))
            .encryption(encryption?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .exportPolicyEnabled(exportPolicyEnabled?.applyValue({ args0 -> args0 }))
            .georeplications(
                georeplications?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .identity(identity?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .location(location?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .networkRuleBypassOption(networkRuleBypassOption?.applyValue({ args0 -> args0 }))
            .networkRuleSet(networkRuleSet?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .publicNetworkAccessEnabled(publicNetworkAccessEnabled?.applyValue({ args0 -> args0 }))
            .quarantinePolicyEnabled(quarantinePolicyEnabled?.applyValue({ args0 -> args0 }))
            .resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
            .retentionPolicy(retentionPolicy?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .sku(sku?.applyValue({ args0 -> args0 }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
            .trustPolicy(trustPolicy?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .zoneRedundancyEnabled(zoneRedundancyEnabled?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [RegistryArgs].
 */
@PulumiTagMarker
public class RegistryArgsBuilder internal constructor() {
    private var adminEnabled: Output? = null

    private var anonymousPullEnabled: Output? = null

    private var dataEndpointEnabled: Output? = null

    private var encryption: Output? = null

    private var exportPolicyEnabled: Output? = null

    private var georeplications: Output>? = null

    private var identity: Output? = null

    private var location: Output? = null

    private var name: Output? = null

    private var networkRuleBypassOption: Output? = null

    private var networkRuleSet: Output? = null

    private var publicNetworkAccessEnabled: Output? = null

    private var quarantinePolicyEnabled: Output? = null

    private var resourceGroupName: Output? = null

    private var retentionPolicy: Output? = null

    private var sku: Output? = null

    private var tags: Output>? = null

    private var trustPolicy: Output? = null

    private var zoneRedundancyEnabled: Output? = null

    /**
     * @param value Specifies whether the admin user is enabled. Defaults to `false`.
     */
    @JvmName("gmovctnbfixefkrv")
    public suspend fun adminEnabled(`value`: Output) {
        this.adminEnabled = value
    }

    /**
     * @param value Whether allows anonymous (unauthenticated) pull access to this Container Registry? This is only supported on resources with the `Standard` or `Premium` SKU.
     */
    @JvmName("yxbwltheyocrcjxh")
    public suspend fun anonymousPullEnabled(`value`: Output) {
        this.anonymousPullEnabled = value
    }

    /**
     * @param value Whether to enable dedicated data endpoints for this Container Registry? This is only supported on resources with the `Premium` SKU.
     */
    @JvmName("egirxiaqhpxnviql")
    public suspend fun dataEndpointEnabled(`value`: Output) {
        this.dataEndpointEnabled = value
    }

    /**
     * @param value An `encryption` block as documented below.
     */
    @JvmName("ehkbmixwdlrlbqvd")
    public suspend fun encryption(`value`: Output) {
        this.encryption = value
    }

    /**
     * @param value Boolean value that indicates whether export policy is enabled. Defaults to `true`. In order to set it to `false`, make sure the `public_network_access_enabled` is also set to `false`.
     * > **NOTE:** `quarantine_policy_enabled`, `retention_policy`, `trust_policy`, `export_policy_enabled` and `zone_redundancy_enabled` are only supported on resources with the `Premium` SKU.
     */
    @JvmName("rtaqitmrkcqhmchl")
    public suspend fun exportPolicyEnabled(`value`: Output) {
        this.exportPolicyEnabled = value
    }

    /**
     * @param value A `georeplications` block as documented below.
     * > **NOTE:** The `georeplications` is only supported on new resources with the `Premium` SKU.
     * > **NOTE:** The `georeplications` list cannot contain the location where the Container Registry exists.
     * > **NOTE:** If more than one `georeplications` block is specified, they are expected to follow the alphabetic order on the `location` property.
     */
    @JvmName("wpjitpgwghdpenhf")
    public suspend fun georeplications(`value`: Output>) {
        this.georeplications = value
    }

    @JvmName("shmkiivraxsrvxmv")
    public suspend fun georeplications(vararg values: Output) {
        this.georeplications = Output.all(values.asList())
    }

    /**
     * @param values A `georeplications` block as documented below.
     * > **NOTE:** The `georeplications` is only supported on new resources with the `Premium` SKU.
     * > **NOTE:** The `georeplications` list cannot contain the location where the Container Registry exists.
     * > **NOTE:** If more than one `georeplications` block is specified, they are expected to follow the alphabetic order on the `location` property.
     */
    @JvmName("muvlftajvnrsnads")
    public suspend fun georeplications(values: List>) {
        this.georeplications = Output.all(values)
    }

    /**
     * @param value An `identity` block as defined below.
     */
    @JvmName("nxwjbblauobofunx")
    public suspend fun identity(`value`: Output) {
        this.identity = value
    }

    /**
     * @param value Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
     */
    @JvmName("dekfnqaaniyibrul")
    public suspend fun location(`value`: Output) {
        this.location = value
    }

    /**
     * @param value Specifies the name of the Container Registry. Only Alphanumeric characters allowed. Changing this forces a new resource to be created.
     */
    @JvmName("jsnksvriieurbtbs")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value Whether to allow trusted Azure services to access a network restricted Container Registry? Possible values are `None` and `AzureServices`. Defaults to `AzureServices`.
     */
    @JvmName("nortmydbceynbhea")
    public suspend fun networkRuleBypassOption(`value`: Output) {
        this.networkRuleBypassOption = value
    }

    /**
     * @param value A `network_rule_set` block as documented below.
     */
    @JvmName("mibhttlpltovuklo")
    public suspend fun networkRuleSet(`value`: Output) {
        this.networkRuleSet = value
    }

    /**
     * @param value Whether public network access is allowed for the container registry. Defaults to `true`.
     */
    @JvmName("mcmrtmpaembdsdoi")
    public suspend fun publicNetworkAccessEnabled(`value`: Output) {
        this.publicNetworkAccessEnabled = value
    }

    /**
     * @param value Boolean value that indicates whether quarantine policy is enabled.
     */
    @JvmName("clwyubkdjelomixe")
    public suspend fun quarantinePolicyEnabled(`value`: Output) {
        this.quarantinePolicyEnabled = value
    }

    /**
     * @param value The name of the resource group in which to create the Container Registry. Changing this forces a new resource to be created.
     */
    @JvmName("svyfgeuvtoomdydd")
    public suspend fun resourceGroupName(`value`: Output) {
        this.resourceGroupName = value
    }

    /**
     * @param value A `retention_policy` block as documented below.
     */
    @JvmName("uklcpmjlhkvsiqrj")
    public suspend fun retentionPolicy(`value`: Output) {
        this.retentionPolicy = value
    }

    /**
     * @param value The SKU name of the container registry. Possible values are `Basic`, `Standard` and `Premium`.
     */
    @JvmName("dkrqjwqlyljerhbi")
    public suspend fun sku(`value`: Output) {
        this.sku = value
    }

    /**
     * @param value A mapping of tags to assign to the resource.
     */
    @JvmName("rehrdjexuclcvuus")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    /**
     * @param value A `trust_policy` block as documented below.
     */
    @JvmName("cmeihnffnbnjbene")
    public suspend fun trustPolicy(`value`: Output) {
        this.trustPolicy = value
    }

    /**
     * @param value Whether zone redundancy is enabled for this Container Registry? Changing this forces a new resource to be created. Defaults to `false`.
     */
    @JvmName("dfoiilxawsbegmwy")
    public suspend fun zoneRedundancyEnabled(`value`: Output) {
        this.zoneRedundancyEnabled = value
    }

    /**
     * @param value Specifies whether the admin user is enabled. Defaults to `false`.
     */
    @JvmName("cnecqlghfgghwxgv")
    public suspend fun adminEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.adminEnabled = mapped
    }

    /**
     * @param value Whether allows anonymous (unauthenticated) pull access to this Container Registry? This is only supported on resources with the `Standard` or `Premium` SKU.
     */
    @JvmName("gjeyxwaomvyisqbj")
    public suspend fun anonymousPullEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.anonymousPullEnabled = mapped
    }

    /**
     * @param value Whether to enable dedicated data endpoints for this Container Registry? This is only supported on resources with the `Premium` SKU.
     */
    @JvmName("adcspojnjrkemqih")
    public suspend fun dataEndpointEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dataEndpointEnabled = mapped
    }

    /**
     * @param value An `encryption` block as documented below.
     */
    @JvmName("mfmitlbjumlrrson")
    public suspend fun encryption(`value`: RegistryEncryptionArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.encryption = mapped
    }

    /**
     * @param argument An `encryption` block as documented below.
     */
    @JvmName("mgvlhqelchgdaoln")
    public suspend fun encryption(argument: suspend RegistryEncryptionArgsBuilder.() -> Unit) {
        val toBeMapped = RegistryEncryptionArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.encryption = mapped
    }

    /**
     * @param value Boolean value that indicates whether export policy is enabled. Defaults to `true`. In order to set it to `false`, make sure the `public_network_access_enabled` is also set to `false`.
     * > **NOTE:** `quarantine_policy_enabled`, `retention_policy`, `trust_policy`, `export_policy_enabled` and `zone_redundancy_enabled` are only supported on resources with the `Premium` SKU.
     */
    @JvmName("ilqgsbvmrrtamghc")
    public suspend fun exportPolicyEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.exportPolicyEnabled = mapped
    }

    /**
     * @param value A `georeplications` block as documented below.
     * > **NOTE:** The `georeplications` is only supported on new resources with the `Premium` SKU.
     * > **NOTE:** The `georeplications` list cannot contain the location where the Container Registry exists.
     * > **NOTE:** If more than one `georeplications` block is specified, they are expected to follow the alphabetic order on the `location` property.
     */
    @JvmName("miwnnaxyunamivps")
    public suspend fun georeplications(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.georeplications = mapped
    }

    /**
     * @param argument A `georeplications` block as documented below.
     * > **NOTE:** The `georeplications` is only supported on new resources with the `Premium` SKU.
     * > **NOTE:** The `georeplications` list cannot contain the location where the Container Registry exists.
     * > **NOTE:** If more than one `georeplications` block is specified, they are expected to follow the alphabetic order on the `location` property.
     */
    @JvmName("uulucexgopqjjnfu")
    public suspend
    fun georeplications(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            RegistryGeoreplicationArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.georeplications = mapped
    }

    /**
     * @param argument A `georeplications` block as documented below.
     * > **NOTE:** The `georeplications` is only supported on new resources with the `Premium` SKU.
     * > **NOTE:** The `georeplications` list cannot contain the location where the Container Registry exists.
     * > **NOTE:** If more than one `georeplications` block is specified, they are expected to follow the alphabetic order on the `location` property.
     */
    @JvmName("pwriiestcrnmqyms")
    public suspend fun georeplications(
        vararg
        argument: suspend RegistryGeoreplicationArgsBuilder.() -> Unit,
    ) {
        val toBeMapped = argument.toList().map {
            RegistryGeoreplicationArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.georeplications = mapped
    }

    /**
     * @param argument A `georeplications` block as documented below.
     * > **NOTE:** The `georeplications` is only supported on new resources with the `Premium` SKU.
     * > **NOTE:** The `georeplications` list cannot contain the location where the Container Registry exists.
     * > **NOTE:** If more than one `georeplications` block is specified, they are expected to follow the alphabetic order on the `location` property.
     */
    @JvmName("hhbjutfyqndrnnnj")
    public suspend
    fun georeplications(argument: suspend RegistryGeoreplicationArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(RegistryGeoreplicationArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.georeplications = mapped
    }

    /**
     * @param values A `georeplications` block as documented below.
     * > **NOTE:** The `georeplications` is only supported on new resources with the `Premium` SKU.
     * > **NOTE:** The `georeplications` list cannot contain the location where the Container Registry exists.
     * > **NOTE:** If more than one `georeplications` block is specified, they are expected to follow the alphabetic order on the `location` property.
     */
    @JvmName("laiucouxxtcpqhmx")
    public suspend fun georeplications(vararg values: RegistryGeoreplicationArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.georeplications = mapped
    }

    /**
     * @param value An `identity` block as defined below.
     */
    @JvmName("cremhwsflxenprrm")
    public suspend fun identity(`value`: RegistryIdentityArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.identity = mapped
    }

    /**
     * @param argument An `identity` block as defined below.
     */
    @JvmName("mmuimwykxcnjyjen")
    public suspend fun identity(argument: suspend RegistryIdentityArgsBuilder.() -> Unit) {
        val toBeMapped = RegistryIdentityArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.identity = mapped
    }

    /**
     * @param value Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
     */
    @JvmName("wdddtqmmsjmajchr")
    public suspend fun location(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.location = mapped
    }

    /**
     * @param value Specifies the name of the Container Registry. Only Alphanumeric characters allowed. Changing this forces a new resource to be created.
     */
    @JvmName("cpredvkbccabcryy")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value Whether to allow trusted Azure services to access a network restricted Container Registry? Possible values are `None` and `AzureServices`. Defaults to `AzureServices`.
     */
    @JvmName("gvskejkarrkvvxgi")
    public suspend fun networkRuleBypassOption(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.networkRuleBypassOption = mapped
    }

    /**
     * @param value A `network_rule_set` block as documented below.
     */
    @JvmName("fsvvsytjqqmbnbhx")
    public suspend fun networkRuleSet(`value`: RegistryNetworkRuleSetArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.networkRuleSet = mapped
    }

    /**
     * @param argument A `network_rule_set` block as documented below.
     */
    @JvmName("luecshaysshwnubj")
    public suspend
    fun networkRuleSet(argument: suspend RegistryNetworkRuleSetArgsBuilder.() -> Unit) {
        val toBeMapped = RegistryNetworkRuleSetArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.networkRuleSet = mapped
    }

    /**
     * @param value Whether public network access is allowed for the container registry. Defaults to `true`.
     */
    @JvmName("jwcetrngkbmcveat")
    public suspend fun publicNetworkAccessEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.publicNetworkAccessEnabled = mapped
    }

    /**
     * @param value Boolean value that indicates whether quarantine policy is enabled.
     */
    @JvmName("caajdfbihptkqgfu")
    public suspend fun quarantinePolicyEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.quarantinePolicyEnabled = mapped
    }

    /**
     * @param value The name of the resource group in which to create the Container Registry. Changing this forces a new resource to be created.
     */
    @JvmName("majxjabicyqmsrnx")
    public suspend fun resourceGroupName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resourceGroupName = mapped
    }

    /**
     * @param value A `retention_policy` block as documented below.
     */
    @JvmName("ueribwsmweejcbgb")
    public suspend fun retentionPolicy(`value`: RegistryRetentionPolicyArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.retentionPolicy = mapped
    }

    /**
     * @param argument A `retention_policy` block as documented below.
     */
    @JvmName("kksgxhcdkjxphsyr")
    public suspend
    fun retentionPolicy(argument: suspend RegistryRetentionPolicyArgsBuilder.() -> Unit) {
        val toBeMapped = RegistryRetentionPolicyArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.retentionPolicy = mapped
    }

    /**
     * @param value The SKU name of the container registry. Possible values are `Basic`, `Standard` and `Premium`.
     */
    @JvmName("mjffnjemdqapqoou")
    public suspend fun sku(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sku = mapped
    }

    /**
     * @param value A mapping of tags to assign to the resource.
     */
    @JvmName("yaiudgdjrumysamd")
    public suspend fun tags(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param values A mapping of tags to assign to the resource.
     */
    @JvmName("kbaopybsjpolbkxk")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value A `trust_policy` block as documented below.
     */
    @JvmName("mwgkwligxqtblnwg")
    public suspend fun trustPolicy(`value`: RegistryTrustPolicyArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.trustPolicy = mapped
    }

    /**
     * @param argument A `trust_policy` block as documented below.
     */
    @JvmName("futxwmppaljcvsam")
    public suspend fun trustPolicy(argument: suspend RegistryTrustPolicyArgsBuilder.() -> Unit) {
        val toBeMapped = RegistryTrustPolicyArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.trustPolicy = mapped
    }

    /**
     * @param value Whether zone redundancy is enabled for this Container Registry? Changing this forces a new resource to be created. Defaults to `false`.
     */
    @JvmName("jefopswiqldadhye")
    public suspend fun zoneRedundancyEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.zoneRedundancyEnabled = mapped
    }

    internal fun build(): RegistryArgs = RegistryArgs(
        adminEnabled = adminEnabled,
        anonymousPullEnabled = anonymousPullEnabled,
        dataEndpointEnabled = dataEndpointEnabled,
        encryption = encryption,
        exportPolicyEnabled = exportPolicyEnabled,
        georeplications = georeplications,
        identity = identity,
        location = location,
        name = name,
        networkRuleBypassOption = networkRuleBypassOption,
        networkRuleSet = networkRuleSet,
        publicNetworkAccessEnabled = publicNetworkAccessEnabled,
        quarantinePolicyEnabled = quarantinePolicyEnabled,
        resourceGroupName = resourceGroupName,
        retentionPolicy = retentionPolicy,
        sku = sku,
        tags = tags,
        trustPolicy = trustPolicy,
        zoneRedundancyEnabled = zoneRedundancyEnabled,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy