Access constructor

Access(
  1. String name, {
  2. AccessArgs? args,
  3. CustomResourceOptions? options,
})

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

Implementation

Access(
  String name, {
  AccessArgs? args,
  pulumi.CustomResourceOptions? options,
}) : super(
        'aws:transfer/access:Access',
        name,
        pulumi.Input.mapToInputs(args?.toMap() ?? const {}),
        pulumi.CustomResourceOptions(version: '7.44.0').merge(options),
      ) {
  externalId = registerOutput<String>('externalId');
  homeDirectory = registerOutput<String?>('homeDirectory');
  homeDirectoryMappings = registerOutput<List<AccessHomeDirectoryMapping>?>('homeDirectoryMappings', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return pulumi.Input.decodeList<AccessHomeDirectoryMapping>(guardedValue, (value) => AccessHomeDirectoryMapping.fromMap((value as Map).cast<String, dynamic>())); });
  homeDirectoryType = registerOutput<String?>('homeDirectoryType');
  policy = registerOutput<String?>('policy');
  posixProfile = registerOutput<AccessPosixProfile?>('posixProfile', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return AccessPosixProfile.fromMap((guardedValue as Map).cast<String, dynamic>()); });
  region = registerOutput<String>('region');
  role = registerOutput<String?>('role');
  serverId = registerOutput<String>('serverId');
}