github.com/myhau/pulumi/pkg/v3@v3.70.2-0.20221116134521-f2775972e587/codegen/testing/test/testdata/hyphen-url/nodejs/registryGeoReplication.ts (about) 1 // *** WARNING: this file was generated by test. *** 2 // *** Do not edit by hand unless you're certain you know what you are doing! *** 3 4 import * as pulumi from "@pulumi/pulumi"; 5 import * as utilities from "./utilities"; 6 7 import * as pulumiAzureNative from "@pulumi/azure-native"; 8 9 export class RegistryGeoReplication extends pulumi.ComponentResource { 10 /** @internal */ 11 public static readonly __pulumiType = 'registrygeoreplication:index:RegistryGeoReplication'; 12 13 /** 14 * Returns true if the given object is an instance of RegistryGeoReplication. This is designed to work even 15 * when multiple copies of the Pulumi SDK have been loaded into the same process. 16 */ 17 public static isInstance(obj: any): obj is RegistryGeoReplication { 18 if (obj === undefined || obj === null) { 19 return false; 20 } 21 return obj['__pulumiType'] === RegistryGeoReplication.__pulumiType; 22 } 23 24 /** 25 * The login server url 26 */ 27 public /*out*/ readonly acrLoginServerOut!: pulumi.Output<string>; 28 /** 29 * The Registry 30 */ 31 public /*out*/ readonly registry!: pulumi.Output<pulumiAzureNative.containerregistry.Registry>; 32 /** 33 * The replication policy 34 */ 35 public /*out*/ readonly replication!: pulumi.Output<pulumiAzureNative.containerregistry.Replication>; 36 37 /** 38 * Create a RegistryGeoReplication resource with the given unique name, arguments, and options. 39 * 40 * @param name The _unique_ name of the resource. 41 * @param args The arguments to use to populate this resource's properties. 42 * @param opts A bag of options that control this resource's behavior. 43 */ 44 constructor(name: string, args: RegistryGeoReplicationArgs, opts?: pulumi.ComponentResourceOptions) { 45 let resourceInputs: pulumi.Inputs = {}; 46 opts = opts || {}; 47 if (!opts.id) { 48 if ((!args || args.resourceGroup === undefined) && !opts.urn) { 49 throw new Error("Missing required property 'resourceGroup'"); 50 } 51 resourceInputs["resourceGroup"] = args ? args.resourceGroup : undefined; 52 resourceInputs["acrLoginServerOut"] = undefined /*out*/; 53 resourceInputs["registry"] = undefined /*out*/; 54 resourceInputs["replication"] = undefined /*out*/; 55 } else { 56 resourceInputs["acrLoginServerOut"] = undefined /*out*/; 57 resourceInputs["registry"] = undefined /*out*/; 58 resourceInputs["replication"] = undefined /*out*/; 59 } 60 opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); 61 super(RegistryGeoReplication.__pulumiType, name, resourceInputs, opts, true /*remote*/); 62 } 63 } 64 65 /** 66 * The set of arguments for constructing a RegistryGeoReplication resource. 67 */ 68 export interface RegistryGeoReplicationArgs { 69 /** 70 * The resource group that hosts the component resource 71 */ 72 resourceGroup: pulumi.Input<pulumiAzureNative.resources.ResourceGroup>; 73 }