Skip to content
v2.278.0

VirtualMFADeviceReference Struct ​

A reference to a VirtualMFADevice resource.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_iam as interfaces_iam } from 'aws-cdk-lib/interfaces';
const virtualMFADeviceReference: interfaces_iam.VirtualMFADeviceReference = {
  serialNumber: 'serialNumber',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.interfaces import aws_iam as interfaces_iam

virtual_mfa_device_reference = interfaces_iam.VirtualMFADeviceReference(
    serial_number="serialNumber"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.interfaces.iam.*;

VirtualMFADeviceReference virtualMFADeviceReference = VirtualMFADeviceReference.builder()
        .serialNumber("serialNumber")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.Interfaces.IAM;

var virtualMFADeviceReference = new VirtualMFADeviceReference {
    SerialNumber = "serialNumber"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

virtualMFADeviceReference := &VirtualMFADeviceReference{
	SerialNumber: jsii.String("serialNumber"),
}

Properties ​

serialNumberstringserial_numberstrserialNumberStringSerialNumberstringSerialNumber*string required #
The SerialNumber of the VirtualMFADevice resource.