# File lib/fog/aws/requests/rds/create_db_cluster_snapshot.rb, line 30
        def create_db_cluster_snapshot(identifier, name)
          response = Excon::Response.new

          if data[:cluster_snapshots][name]
            raise Fog::AWS::RDS::IdentifierTaken.new
          end

          cluster = self.data[:clusters][identifier]

          raise Fog::AWS::RDS::NotFound.new("DBCluster #{identifier} not found") unless cluster

          data = {
            'AllocatedStorage'            => cluster['AllocatedStorage'].to_i,
            'ClusterCreateTime'           => cluster['ClusterCreateTime'],
            'DBClusterIdentifier'         => identifier,
            'DBClusterSnapshotIdentifier' => name,
            'Engine'                      => cluster['Engine'],
            'EngineVersion'               => cluster['EngineVersion'],
            'LicenseModel'                => cluster['Engine'],
            'MasterUsername'              => cluster['MasterUsername'],
            'SnapshotCreateTime'          => Time.now,
            'SnapshotType'                => 'manual',
            'StorageEncrypted'            => cluster["StorageEncrypted"],
            'Status'                      => 'creating',
          }

          self.data[:cluster_snapshots][name] = data

          response.body = {
            "ResponseMetadata"              => { "RequestId" => Fog::AWS::Mock.request_id },
            "CreateDBClusterSnapshotResult" => { "DBClusterSnapshot" => data.dup },
          }
          self.data[:cluster_snapshots][name]['SnapshotCreateTime'] = Time.now
          response
        end