Connection.reference constructor

Connection.reference(
  1. String urn
)

Creates a typed reference to an existing Connection resource.

Implementation

Connection.reference(String urn)
  : super(
      'gcp:developerconnect/connection:Connection',
      pulumi.parseUrn(urn).urnName,
      const <String, pulumi.Input<dynamic>>{},
      pulumi.CustomResourceOptions(urn: pulumi.input(urn)),
        additionalSecretOutputs: const ['effectiveLabels', 'pulumiLabels'],
      isResourceReference: true,
    ) {
  annotations = registerOutput<Map<String, String>?>('annotations', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return (guardedValue as Map).cast<String, String>(); });
  bitbucketCloudConfig = registerOutput<ConnectionBitbucketCloudConfig?>('bitbucketCloudConfig', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return ConnectionBitbucketCloudConfig.fromMap((guardedValue as Map).cast<String, dynamic>()); });
  bitbucketDataCenterConfig = registerOutput<ConnectionBitbucketDataCenterConfig?>('bitbucketDataCenterConfig', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return ConnectionBitbucketDataCenterConfig.fromMap((guardedValue as Map).cast<String, dynamic>()); });
  connectionId = registerOutput<String>('connectionId');
  createTime = registerOutput<String>('createTime');
  cryptoKeyConfig = registerOutput<ConnectionCryptoKeyConfig?>('cryptoKeyConfig', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return ConnectionCryptoKeyConfig.fromMap((guardedValue as Map).cast<String, dynamic>()); });
  deleteTime = registerOutput<String>('deleteTime');
  deletionPolicy = registerOutput<String>('deletionPolicy');
  disabled = registerOutput<bool?>('disabled');
  effectiveAnnotations = registerOutput<Map<String, String>>('effectiveAnnotations', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return (guardedValue as Map).cast<String, String>(); });
  effectiveLabels = registerOutput<Map<String, String>>('effectiveLabels', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return (guardedValue as Map).cast<String, String>(); }, isSecret: true);
  etag = registerOutput<String?>('etag');
  githubConfig = registerOutput<ConnectionGithubConfig?>('githubConfig', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return ConnectionGithubConfig.fromMap((guardedValue as Map).cast<String, dynamic>()); });
  githubEnterpriseConfig = registerOutput<ConnectionGithubEnterpriseConfig?>('githubEnterpriseConfig', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return ConnectionGithubEnterpriseConfig.fromMap((guardedValue as Map).cast<String, dynamic>()); });
  gitlabConfig = registerOutput<ConnectionGitlabConfig?>('gitlabConfig', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return ConnectionGitlabConfig.fromMap((guardedValue as Map).cast<String, dynamic>()); });
  gitlabEnterpriseConfig = registerOutput<ConnectionGitlabEnterpriseConfig?>('gitlabEnterpriseConfig', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return ConnectionGitlabEnterpriseConfig.fromMap((guardedValue as Map).cast<String, dynamic>()); });
  httpConfig = registerOutput<ConnectionHttpConfig?>('httpConfig', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return ConnectionHttpConfig.fromMap((guardedValue as Map).cast<String, dynamic>()); });
  installationStates = registerOutput<List<ConnectionInstallationState>>('installationStates', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return pulumi.Input.decodeList<ConnectionInstallationState>(guardedValue, (value) => ConnectionInstallationState.fromMap((value as Map).cast<String, dynamic>())); });
  labels = registerOutput<Map<String, String>?>('labels', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return (guardedValue as Map).cast<String, String>(); });
  location = registerOutput<String>('location');
  this.name = registerOutput<String>('name');
  project = registerOutput<String>('project');
  pulumiLabels = registerOutput<Map<String, String>>('pulumiLabels', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return (guardedValue as Map).cast<String, String>(); }, isSecret: true);
  reconciling = registerOutput<bool>('reconciling');
  uid = registerOutput<String>('uid');
  updateTime = registerOutput<String>('updateTime');
}