// GetAWSWAFRuleWithName retrieves all AWSWAFRule items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found.
974674
func (t *Template) GetAWSWAFRuleWithName(name string) (*resources.AWSWAFRule, error) {
	if untyped, ok := t.Resources[name]; ok {
		switch resource := untyped.(type) {
		case *resources.AWSWAFRule:
			return resource, nil
		}
	}
	return nil, fmt.Errorf("resource %q of type AWSWAFRule not found", name)
}
330435
func (t *Template) GetAWSApiGatewayV2AuthorizerWithName(name string) (*resources.AWSApiGatewayV2Authorizer, error) {
	if untyped, ok := t.Resources[name]; ok {
		switch resource := untyped.(type) {
		case *resources.AWSApiGatewayV2Authorizer:
			return resource, nil
		}
	}
	return nil, fmt.Errorf("resource %q of type AWSApiGatewayV2Authorizer not found", name)
}
141437
func (t *Template) GetAWSGameLiftBuildWithName(name string) (*resources.AWSGameLiftBuild, error) {
	if untyped, ok := t.Resources[name]; ok {
		switch resource := untyped.(type) {
		case *resources.AWSGameLiftBuild:
			return resource, nil
		}
	}
	return nil, fmt.Errorf("resource %q of type AWSGameLiftBuild not found", name)
}
625985
func (t *Template) GetAWSCloudTrailTrailWithName(name string) (*resources.AWSCloudTrailTrail, error) {
	if untyped, ok := t.Resources[name]; ok {
		switch resource := untyped.(type) {
		case *resources.AWSCloudTrailTrail:
			return resource, nil
		}
	}
	return nil, fmt.Errorf("resource %q of type AWSCloudTrailTrail not found", name)
}
1309576
func (t *Template) GetAWSECSTaskDefinitionWithName(name string) (*resources.AWSECSTaskDefinition, error) {
	if untyped, ok := t.Resources[name]; ok {
		switch resource := untyped.(type) {
		case *resources.AWSECSTaskDefinition:
			return resource, nil
		}
	}
	return nil, fmt.Errorf("resource %q of type AWSECSTaskDefinition not found", name)
}
626422
func (t *Template) GetAWSRoute53ResolverResolverRuleWithName(name string) (*resources.AWSRoute53ResolverResolverRule, error) {
	if untyped, ok := t.Resources[name]; ok {
		switch resource := untyped.(type) {
		case *resources.AWSRoute53ResolverResolverRule:
			return resource, nil
		}
	}
	return nil, fmt.Errorf("resource %q of type AWSRoute53ResolverResolverRule not found", name)
}
119592
func (t *Template) GetAWSWAFRegionalSqlInjectionMatchSetWithName(name string) (*resources.AWSWAFRegionalSqlInjectionMatchSet, error) {
	if untyped, ok := t.Resources[name]; ok {
		switch resource := untyped.(type) {
		case *resources.AWSWAFRegionalSqlInjectionMatchSet:
			return resource, nil
		}
	}
	return nil, fmt.Errorf("resource %q of type AWSWAFRegionalSqlInjectionMatchSet not found", name)
}
457688
func (t *Template) GetAWSEMRClusterWithName(name string) (*resources.AWSEMRCluster, error) {
	if untyped, ok := t.Resources[name]; ok {
		switch resource := untyped.(type) {
		case *resources.AWSEMRCluster:
			return resource, nil
		}
	}
	return nil, fmt.Errorf("resource %q of type AWSEMRCluster not found", name)
}
349739
func (t *Template) GetAWSWAFXssMatchSetWithName(name string) (*resources.AWSWAFXssMatchSet, error) {
	if untyped, ok := t.Resources[name]; ok {
		switch resource := untyped.(type) {
		case *resources.AWSWAFXssMatchSet:
			return resource, nil
		}
	}
	return nil, fmt.Errorf("resource %q of type AWSWAFXssMatchSet not found", name)
}
510633
func (t *Template) GetAWSECSServiceWithName(name string) (*resources.AWSECSService, error) {
	if untyped, ok := t.Resources[name]; ok {
		switch resource := untyped.(type) {
		case *resources.AWSECSService:
			return resource, nil
		}
	}
	return nil, fmt.Errorf("resource %q of type AWSECSService not found", name)
}
675521
func (t *Template) GetAWSAppSyncResolverWithName(name string) (*resources.AWSAppSyncResolver, error) {
	if untyped, ok := t.Resources[name]; ok {
		switch resource := untyped.(type) {
		case *resources.AWSAppSyncResolver:
			return resource, nil
		}
	}
	return nil, fmt.Errorf("resource %q of type AWSAppSyncResolver not found", name)
}
126812
func (t *Template) GetAWSSESReceiptRuleWithName(name string) (*resources.AWSSESReceiptRule, error) {
	if untyped, ok := t.Resources[name]; ok {
		switch resource := untyped.(type) {
		case *resources.AWSSESReceiptRule:
			return resource, nil
		}
	}
	return nil, fmt.Errorf("resource %q of type AWSSESReceiptRule not found", name)
}
698167
func (t *Template) GetAWSS3BucketWithName(name string) (*resources.AWSS3Bucket, error) {
	if untyped, ok := t.Resources[name]; ok {
		switch resource := untyped.(type) {
		case *resources.AWSS3Bucket:
			return resource, nil
		}
	}
	return nil, fmt.Errorf("resource %q of type AWSS3Bucket not found", name)
}
471087
func (t *Template) GetAWSLambdaVersionWithName(name string) (*resources.AWSLambdaVersion, error) {
	if untyped, ok := t.Resources[name]; ok {
		switch resource := untyped.(type) {
		case *resources.AWSLambdaVersion:
			return resource, nil
		}
	}
	return nil, fmt.Errorf("resource %q of type AWSLambdaVersion not found", name)
}
241429
func (t *Template) GetAWSGlueDatabaseWithName(name string) (*resources.AWSGlueDatabase, error) {
	if untyped, ok := t.Resources[name]; ok {
		switch resource := untyped.(type) {
		case *resources.AWSGlueDatabase:
			return resource, nil
		}
	}
	return nil, fmt.Errorf("resource %q of type AWSGlueDatabase not found", name)
}
405046
func (t *Template) GetAWSEMRStepWithName(name string) (*resources.AWSEMRStep, error) {
	if untyped, ok := t.Resources[name]; ok {
		switch resource := untyped.(type) {
		case *resources.AWSEMRStep:
			return resource, nil
		}
	}
	return nil, fmt.Errorf("resource %q of type AWSEMRStep not found", name)
}
125485
func (t *Template) GetAWSDMSCertificateWithName(name string) (*resources.AWSDMSCertificate, error) {
	if untyped, ok := t.Resources[name]; ok {
		switch resource := untyped.(type) {
		case *resources.AWSDMSCertificate:
			return resource, nil
		}
	}
	return nil, fmt.Errorf("resource %q of type AWSDMSCertificate not found", name)
}