FileSystemAssociation constructor
FileSystemAssociation(
- String name, {
- FileSystemAssociationArgs? args,
- CustomResourceOptions? options,
Creates a new FileSystemAssociation.
name The Pulumi resource name.
args Arguments used to configure this FileSystemAssociation. The set of arguments for FileSystemAssociation.
options Resource options controlling this resource's behavior.
Implementation
FileSystemAssociation(
String name, {
FileSystemAssociationArgs? args,
pulumi.CustomResourceOptions? options,
}) : super(
'aws:storagegateway/fileSystemAssociation:FileSystemAssociation',
name,
pulumi.Input.mapToInputs(args?.toMap() ?? const {}),
pulumi.CustomResourceOptions(version: '7.44.0').merge(options),
additionalSecretOutputs: const ['password'],
) {
arn = registerOutput<String>('arn');
auditDestinationArn = registerOutput<String?>('auditDestinationArn');
cacheAttributes = registerOutput<FileSystemAssociationCacheAttributes?>('cacheAttributes', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return FileSystemAssociationCacheAttributes.fromMap((guardedValue as Map).cast<String, dynamic>()); });
gatewayArn = registerOutput<String>('gatewayArn');
locationArn = registerOutput<String>('locationArn');
password = registerOutput<String>('password', isSecret: true);
region = registerOutput<String>('region');
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>(); });
username = registerOutput<String>('username');
}