Skip to content

Commit

Permalink
fix for sso auth
Browse files Browse the repository at this point in the history
  • Loading branch information
ljacobsson committed Jul 21, 2020
1 parent 1c297fa commit d541027
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions pattern-builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,26 +188,6 @@ async function browseEvents(format, schemas, eventbridge) {
}
}

async function getSchema(schemas) {
const registry = await inputUtil.getRegistry(schemas);
const schemaResponse = await schemas
.listSchemas({ RegistryName: registry.id })
.promise();
const sourceName = await inputUtil.getSourceName(schemaResponse);
const detailTypeName = await inputUtil.getDetailTypeName(
schemaResponse,
sourceName
);
const describeSchemaResponse = await schemas
.describeSchema({
RegistryName: registry.id,
SchemaName: `${sourceName}@${detailTypeName}`
})
.promise();
const schema = JSON.parse(describeSchemaResponse.Content);
return { schema, sourceName };
}

async function getTargets(schemas) {
const { schema, sourceName } = await getSchema(schemas);
const AWS = require("aws-sdk");
Expand Down

0 comments on commit d541027

Please sign in to comment.