LocationObjectStorage.reference constructor

LocationObjectStorage.reference(
  1. String urn
)

Creates a typed reference to an existing LocationObjectStorage resource.

Implementation

LocationObjectStorage.reference(String urn)
  : super(
      'aws:datasync/locationObjectStorage:LocationObjectStorage',
      pulumi.parseUrn(urn).urnName,
      const <String, pulumi.Input<dynamic>>{},
      pulumi.CustomResourceOptions(urn: pulumi.input(urn)),
        additionalSecretOutputs: const ['secretKey'],
      isResourceReference: true,
    ) {
  accessKey = registerOutput<String?>('accessKey');
  agentArns = registerOutput<List<String>?>('agentArns', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return (guardedValue as List).cast<String>(); });
  arn = registerOutput<String>('arn');
  bucketName = registerOutput<String>('bucketName');
  region = registerOutput<String>('region');
  secretKey = registerOutput<String?>('secretKey', isSecret: true);
  serverCertificate = registerOutput<String?>('serverCertificate');
  serverHostname = registerOutput<String>('serverHostname');
  serverPort = registerOutput<int?>('serverPort');
  serverProtocol = registerOutput<String?>('serverProtocol');
  subdirectory = registerOutput<String>('subdirectory');
  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>(); });
  uri = registerOutput<String>('uri');
}