VpcEndpointAssociationState.fromMap constructor
VpcEndpointAssociationState.fromMap(
- Map<String, dynamic> map
)
Implementation
factory VpcEndpointAssociationState.fromMap(Map<String, dynamic> map) {
return VpcEndpointAssociationState(
description: (() { final guardedValue = map['description']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as String); })(),
firewallArn: (() { final guardedValue = map['firewallArn']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as String); })(),
region: (() { final guardedValue = map['region']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as String); })(),
subnetMapping: (() { final guardedValue = map['subnetMapping']; if (guardedValue == null) return null; return pulumi.Input.fromValue(VpcEndpointAssociationSubnetMapping.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
tags: (() { final guardedValue = map['tags']; if (guardedValue == null) return null; return pulumi.Input.fromValue((guardedValue as Map).cast<String, String>()); })(),
tagsAll: (() { final guardedValue = map['tagsAll']; if (guardedValue == null) return null; return pulumi.Input.fromValue((guardedValue as Map).cast<String, String>()); })(),
timeouts: (() { final guardedValue = map['timeouts']; if (guardedValue == null) return null; return pulumi.Input.fromValue(VpcEndpointAssociationTimeouts.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
vpcEndpointAssociationArn: (() { final guardedValue = map['vpcEndpointAssociationArn']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as String); })(),
vpcEndpointAssociationId: (() { final guardedValue = map['vpcEndpointAssociationId']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as String); })(),
vpcEndpointAssociationStatuses: (() { final guardedValue = map['vpcEndpointAssociationStatuses']; if (guardedValue == null) return null; return pulumi.Input.fromValue(pulumi.Input.decodeList<VpcEndpointAssociationVpcEndpointAssociationStatus>(guardedValue, (value) => VpcEndpointAssociationVpcEndpointAssociationStatus.fromMap((value as Map).cast<String, dynamic>()))); })(),
vpcId: (() { final guardedValue = map['vpcId']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as String); })(),
);
}