toResourceType method
Implementation
ResourceType toResourceType() {
switch (this) {
case 'DEVICE_CERTIFICATE':
return ResourceType.deviceCertificate;
case 'CA_CERTIFICATE':
return ResourceType.caCertificate;
case 'IOT_POLICY':
return ResourceType.iotPolicy;
case 'COGNITO_IDENTITY_POOL':
return ResourceType.cognitoIdentityPool;
case 'CLIENT_ID':
return ResourceType.clientId;
case 'ACCOUNT_SETTINGS':
return ResourceType.accountSettings;
case 'ROLE_ALIAS':
return ResourceType.roleAlias;
case 'IAM_ROLE':
return ResourceType.iamRole;
}
throw Exception('$this is not known in enum ResourceType');
}