Server.reference constructor

Server.reference(
  1. String urn
)

Creates a typed reference to an existing Server resource.

Implementation

Server.reference(String urn)
  : super(
      'aws:transfer/server:Server',
      pulumi.parseUrn(urn).urnName,
      const <String, pulumi.Input<dynamic>>{},
      pulumi.CustomResourceOptions(urn: pulumi.input(urn)),
        additionalSecretOutputs: const ['hostKey', 'postAuthenticationLoginBanner', 'preAuthenticationLoginBanner'],
      isResourceReference: true,
    ) {
  arn = registerOutput<String>('arn');
  certificate = registerOutput<String?>('certificate');
  directoryId = registerOutput<String?>('directoryId');
  domain = registerOutput<String?>('domain');
  endpoint = registerOutput<String>('endpoint');
  endpointDetails = registerOutput<ServerEndpointDetails?>('endpointDetails', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return ServerEndpointDetails.fromMap((guardedValue as Map).cast<String, dynamic>()); });
  endpointType = registerOutput<String?>('endpointType');
  forceDestroy = registerOutput<bool?>('forceDestroy');
  function = registerOutput<String?>('function');
  hostKey = registerOutput<String?>('hostKey', isSecret: true);
  hostKeyFingerprint = registerOutput<String>('hostKeyFingerprint');
  identityProviderType = registerOutput<String?>('identityProviderType');
  invocationRole = registerOutput<String?>('invocationRole');
  ipAddressType = registerOutput<String>('ipAddressType');
  loggingRole = registerOutput<String?>('loggingRole');
  postAuthenticationLoginBanner = registerOutput<String?>('postAuthenticationLoginBanner', isSecret: true);
  preAuthenticationLoginBanner = registerOutput<String?>('preAuthenticationLoginBanner', isSecret: true);
  protocolDetails = registerOutput<ServerProtocolDetails>('protocolDetails', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return ServerProtocolDetails.fromMap((guardedValue as Map).cast<String, dynamic>()); });
  protocols = registerOutput<List<String>>('protocols', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return (guardedValue as List).cast<String>(); });
  region = registerOutput<String>('region');
  s3StorageOptions = registerOutput<ServerS3StorageOptions>('s3StorageOptions', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return ServerS3StorageOptions.fromMap((guardedValue as Map).cast<String, dynamic>()); });
  securityPolicyName = registerOutput<String?>('securityPolicyName');
  sftpAuthenticationMethods = registerOutput<String>('sftpAuthenticationMethods');
  structuredLogDestinations = registerOutput<List<String>?>('structuredLogDestinations', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return (guardedValue as List).cast<String>(); });
  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>(); });
  url = registerOutput<String?>('url');
  workflowDetails = registerOutput<ServerWorkflowDetails?>('workflowDetails', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return ServerWorkflowDetails.fromMap((guardedValue as Map).cast<String, dynamic>()); });
}