Server constructor

Server(
  1. String name, {
  2. ServerArgs? args,
  3. CustomResourceOptions? options,
})

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

Implementation

Server(
  String name, {
  ServerArgs? args,
  pulumi.CustomResourceOptions? options,
}) : super(
        'aws:transfer/server:Server',
        name,
        pulumi.Input.mapToInputs(args?.toMap() ?? const {}),
        pulumi.CustomResourceOptions(version: '7.44.0').merge(options),
        additionalSecretOutputs: const ['hostKey', 'postAuthenticationLoginBanner', 'preAuthenticationLoginBanner'],
      ) {
  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>()); });
}