HostKey constructor

HostKey(
  1. String name, {
  2. HostKeyArgs? args,
  3. CustomResourceOptions? options,
})

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

Implementation

HostKey(
  String name, {
  HostKeyArgs? args,
  pulumi.CustomResourceOptions? options,
}) : super(
        'aws:transfer/hostKey:HostKey',
        name,
        pulumi.Input.mapToInputs(args?.toMap() ?? const {}),
        pulumi.CustomResourceOptions(version: '7.44.0').merge(options),
        additionalSecretOutputs: const ['hostKeyBody', 'hostKeyBodyWo'],
      ) {
  arn = registerOutput<String>('arn');
  description = registerOutput<String?>('description');
  hostKeyBody = registerOutput<String?>('hostKeyBody', isSecret: true);
  hostKeyBodyWo = registerOutput<String?>('hostKeyBodyWo', isSecret: true);
  hostKeyFingerprint = registerOutput<String>('hostKeyFingerprint');
  hostKeyId = registerOutput<String>('hostKeyId');
  region = registerOutput<String>('region');
  serverId = registerOutput<String>('serverId');
  tags = registerOutput<Map<String, String>?>('tags', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return (guardedValue as Map).cast<String, String>(); });
  tagsAll = registerOutput<Map<String, String>>('tagsAll', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return (guardedValue as Map).cast<String, String>(); });
}