toResourceType method
Implementation
ResourceType toResourceType() {
switch (this) {
case 'AWS::EC2::CustomerGateway':
return ResourceType.awsEc2CustomerGateway;
case 'AWS::EC2::EIP':
return ResourceType.awsEc2Eip;
case 'AWS::EC2::Host':
return ResourceType.awsEc2Host;
case 'AWS::EC2::Instance':
return ResourceType.awsEc2Instance;
case 'AWS::EC2::InternetGateway':
return ResourceType.awsEc2InternetGateway;
case 'AWS::EC2::NetworkAcl':
return ResourceType.awsEc2NetworkAcl;
case 'AWS::EC2::NetworkInterface':
return ResourceType.awsEc2NetworkInterface;
case 'AWS::EC2::RouteTable':
return ResourceType.awsEc2RouteTable;
case 'AWS::EC2::SecurityGroup':
return ResourceType.awsEc2SecurityGroup;
case 'AWS::EC2::Subnet':
return ResourceType.awsEc2Subnet;
case 'AWS::CloudTrail::Trail':
return ResourceType.awsCloudTrailTrail;
case 'AWS::EC2::Volume':
return ResourceType.awsEc2Volume;
case 'AWS::EC2::VPC':
return ResourceType.awsEc2Vpc;
case 'AWS::EC2::VPNConnection':
return ResourceType.awsEc2VPNConnection;
case 'AWS::EC2::VPNGateway':
return ResourceType.awsEc2VPNGateway;
case 'AWS::EC2::RegisteredHAInstance':
return ResourceType.awsEc2RegisteredHAInstance;
case 'AWS::EC2::NatGateway':
return ResourceType.awsEc2NatGateway;
case 'AWS::EC2::EgressOnlyInternetGateway':
return ResourceType.awsEc2EgressOnlyInternetGateway;
case 'AWS::EC2::VPCEndpoint':
return ResourceType.awsEc2VPCEndpoint;
case 'AWS::EC2::VPCEndpointService':
return ResourceType.awsEc2VPCEndpointService;
case 'AWS::EC2::FlowLog':
return ResourceType.awsEc2FlowLog;
case 'AWS::EC2::VPCPeeringConnection':
return ResourceType.awsEc2VPCPeeringConnection;
case 'AWS::Elasticsearch::Domain':
return ResourceType.awsElasticsearchDomain;
case 'AWS::IAM::Group':
return ResourceType.awsIamGroup;
case 'AWS::IAM::Policy':
return ResourceType.awsIamPolicy;
case 'AWS::IAM::Role':
return ResourceType.awsIamRole;
case 'AWS::IAM::User':
return ResourceType.awsIamUser;
case 'AWS::ElasticLoadBalancingV2::LoadBalancer':
return ResourceType.awsElasticLoadBalancingV2LoadBalancer;
case 'AWS::ACM::Certificate':
return ResourceType.awsAcmCertificate;
case 'AWS::RDS::DBInstance':
return ResourceType.awsRdsDBInstance;
case 'AWS::RDS::DBSubnetGroup':
return ResourceType.awsRdsDBSubnetGroup;
case 'AWS::RDS::DBSecurityGroup':
return ResourceType.awsRdsDBSecurityGroup;
case 'AWS::RDS::DBSnapshot':
return ResourceType.awsRdsDBSnapshot;
case 'AWS::RDS::DBCluster':
return ResourceType.awsRdsDBCluster;
case 'AWS::RDS::DBClusterSnapshot':
return ResourceType.awsRdsDBClusterSnapshot;
case 'AWS::RDS::EventSubscription':
return ResourceType.awsRdsEventSubscription;
case 'AWS::S3::Bucket':
return ResourceType.awsS3Bucket;
case 'AWS::S3::AccountPublicAccessBlock':
return ResourceType.awsS3AccountPublicAccessBlock;
case 'AWS::Redshift::Cluster':
return ResourceType.awsRedshiftCluster;
case 'AWS::Redshift::ClusterSnapshot':
return ResourceType.awsRedshiftClusterSnapshot;
case 'AWS::Redshift::ClusterParameterGroup':
return ResourceType.awsRedshiftClusterParameterGroup;
case 'AWS::Redshift::ClusterSecurityGroup':
return ResourceType.awsRedshiftClusterSecurityGroup;
case 'AWS::Redshift::ClusterSubnetGroup':
return ResourceType.awsRedshiftClusterSubnetGroup;
case 'AWS::Redshift::EventSubscription':
return ResourceType.awsRedshiftEventSubscription;
case 'AWS::SSM::ManagedInstanceInventory':
return ResourceType.awsSsmManagedInstanceInventory;
case 'AWS::CloudWatch::Alarm':
return ResourceType.awsCloudWatchAlarm;
case 'AWS::CloudFormation::Stack':
return ResourceType.awsCloudFormationStack;
case 'AWS::ElasticLoadBalancing::LoadBalancer':
return ResourceType.awsElasticLoadBalancingLoadBalancer;
case 'AWS::AutoScaling::AutoScalingGroup':
return ResourceType.awsAutoScalingAutoScalingGroup;
case 'AWS::AutoScaling::LaunchConfiguration':
return ResourceType.awsAutoScalingLaunchConfiguration;
case 'AWS::AutoScaling::ScalingPolicy':
return ResourceType.awsAutoScalingScalingPolicy;
case 'AWS::AutoScaling::ScheduledAction':
return ResourceType.awsAutoScalingScheduledAction;
case 'AWS::DynamoDB::Table':
return ResourceType.awsDynamoDBTable;
case 'AWS::CodeBuild::Project':
return ResourceType.awsCodeBuildProject;
case 'AWS::WAF::RateBasedRule':
return ResourceType.awsWafRateBasedRule;
case 'AWS::WAF::Rule':
return ResourceType.awsWafRule;
case 'AWS::WAF::RuleGroup':
return ResourceType.awsWafRuleGroup;
case 'AWS::WAF::WebACL':
return ResourceType.awsWafWebACL;
case 'AWS::WAFRegional::RateBasedRule':
return ResourceType.awsWAFRegionalRateBasedRule;
case 'AWS::WAFRegional::Rule':
return ResourceType.awsWAFRegionalRule;
case 'AWS::WAFRegional::RuleGroup':
return ResourceType.awsWAFRegionalRuleGroup;
case 'AWS::WAFRegional::WebACL':
return ResourceType.awsWAFRegionalWebACL;
case 'AWS::CloudFront::Distribution':
return ResourceType.awsCloudFrontDistribution;
case 'AWS::CloudFront::StreamingDistribution':
return ResourceType.awsCloudFrontStreamingDistribution;
case 'AWS::Lambda::Function':
return ResourceType.awsLambdaFunction;
case 'AWS::NetworkFirewall::Firewall':
return ResourceType.awsNetworkFirewallFirewall;
case 'AWS::NetworkFirewall::FirewallPolicy':
return ResourceType.awsNetworkFirewallFirewallPolicy;
case 'AWS::NetworkFirewall::RuleGroup':
return ResourceType.awsNetworkFirewallRuleGroup;
case 'AWS::ElasticBeanstalk::Application':
return ResourceType.awsElasticBeanstalkApplication;
case 'AWS::ElasticBeanstalk::ApplicationVersion':
return ResourceType.awsElasticBeanstalkApplicationVersion;
case 'AWS::ElasticBeanstalk::Environment':
return ResourceType.awsElasticBeanstalkEnvironment;
case 'AWS::WAFv2::WebACL':
return ResourceType.awsWAFv2WebACL;
case 'AWS::WAFv2::RuleGroup':
return ResourceType.awsWAFv2RuleGroup;
case 'AWS::WAFv2::IPSet':
return ResourceType.awsWAFv2IPSet;
case 'AWS::WAFv2::RegexPatternSet':
return ResourceType.awsWAFv2RegexPatternSet;
case 'AWS::WAFv2::ManagedRuleSet':
return ResourceType.awsWAFv2ManagedRuleSet;
case 'AWS::XRay::EncryptionConfig':
return ResourceType.awsXRayEncryptionConfig;
case 'AWS::SSM::AssociationCompliance':
return ResourceType.awsSsmAssociationCompliance;
case 'AWS::SSM::PatchCompliance':
return ResourceType.awsSsmPatchCompliance;
case 'AWS::Shield::Protection':
return ResourceType.awsShieldProtection;
case 'AWS::ShieldRegional::Protection':
return ResourceType.awsShieldRegionalProtection;
case 'AWS::Config::ResourceCompliance':
return ResourceType.awsConfigResourceCompliance;
case 'AWS::ApiGateway::Stage':
return ResourceType.awsApiGatewayStage;
case 'AWS::ApiGateway::RestApi':
return ResourceType.awsApiGatewayRestApi;
case 'AWS::ApiGatewayV2::Stage':
return ResourceType.awsApiGatewayV2Stage;
case 'AWS::ApiGatewayV2::Api':
return ResourceType.awsApiGatewayV2Api;
case 'AWS::CodePipeline::Pipeline':
return ResourceType.awsCodePipelinePipeline;
case 'AWS::ServiceCatalog::CloudFormationProvisionedProduct':
return ResourceType.awsServiceCatalogCloudFormationProvisionedProduct;
case 'AWS::ServiceCatalog::CloudFormationProduct':
return ResourceType.awsServiceCatalogCloudFormationProduct;
case 'AWS::ServiceCatalog::Portfolio':
return ResourceType.awsServiceCatalogPortfolio;
case 'AWS::SQS::Queue':
return ResourceType.awsSqsQueue;
case 'AWS::KMS::Key':
return ResourceType.awsKmsKey;
case 'AWS::QLDB::Ledger':
return ResourceType.awsQldbLedger;
case 'AWS::SecretsManager::Secret':
return ResourceType.awsSecretsManagerSecret;
case 'AWS::SNS::Topic':
return ResourceType.awsSnsTopic;
case 'AWS::SSM::FileData':
return ResourceType.awsSsmFileData;
}
throw Exception('$this is not known in enum ResourceType');
}