PrivateKey constructor

PrivateKey(
  1. String name, {
  2. PrivateKeyArgs? args,
  3. CustomResourceOptions? options,
})

Creates a new PrivateKey. name The Pulumi resource name. args Arguments used to configure this PrivateKey. The set of arguments for PrivateKey. options Resource options controlling this resource's behavior.

Implementation

PrivateKey(
  String name, {
  PrivateKeyArgs? args,
  pulumi.CustomResourceOptions? options,
}) : super(
        'tls:index/privateKey:PrivateKey',
        name,
        pulumi.Input.mapToInputs(args?.toMap() ?? const {}),
        pulumi.CustomResourceOptions(version: '5.6.0').merge(options),
        additionalSecretOutputs: const ['privateKeyOpenssh', 'privateKeyPem', 'privateKeyPemPkcs8'],
      ) {
  algorithm = registerOutput<String>('algorithm');
  ecdsaCurve = registerOutput<String>('ecdsaCurve');
  privateKeyOpenssh = registerOutput<String>('privateKeyOpenssh', isSecret: true);
  privateKeyPem = registerOutput<String>('privateKeyPem', isSecret: true);
  privateKeyPemPkcs8 = registerOutput<String>('privateKeyPemPkcs8', isSecret: true);
  publicKeyFingerprintMd5 = registerOutput<String>('publicKeyFingerprintMd5');
  publicKeyFingerprintSha256 = registerOutput<String>('publicKeyFingerprintSha256');
  publicKeyOpenssh = registerOutput<String>('publicKeyOpenssh');
  publicKeyPem = registerOutput<String>('publicKeyPem');
  rsaBits = registerOutput<int>('rsaBits');
}