VolumeAttachment constructor
VolumeAttachment(
- String name, {
- VolumeAttachmentArgs? args,
- CustomResourceOptions? options,
Creates a new VolumeAttachment.
name The Pulumi resource name.
args Arguments used to configure this VolumeAttachment. The set of arguments for VolumeAttachment.
options Resource options controlling this resource's behavior.
Implementation
VolumeAttachment(
String name, {
VolumeAttachmentArgs? args,
pulumi.CustomResourceOptions? options,
}) : super(
'aws:ec2/volumeAttachment:VolumeAttachment',
name,
pulumi.Input.mapToInputs(args?.toMap() ?? const {}),
pulumi.CustomResourceOptions(version: '7.44.0').merge(options),
) {
deviceName = registerOutput<String>('deviceName');
forceDetach = registerOutput<bool?>('forceDetach');
instanceId = registerOutput<String>('instanceId');
region = registerOutput<String>('region');
skipDestroy = registerOutput<bool?>('skipDestroy');
stopInstanceBeforeDetaching = registerOutput<bool?>('stopInstanceBeforeDetaching');
volumeId = registerOutput<String>('volumeId');
}