Skip to main content

Creates a product in the organisations service

Project description

@reapit-cdk/reapit-product

npm version npm downloads coverage: 0%25 Integ Tests: X

Creates a product in the organisations service

Package Installation:

yarn add --dev @reapit-cdk/reapit-product
# or
npm install @reapit-cdk/reapit-product --save-dev

Usage

import { CfnOutput, Stack, App } from 'aws-cdk-lib'
import { ReapitProductProvider } from '@reapit-cdk/reapit-product'
import { RestApi } from 'aws-cdk-lib/aws-apigateway'

const app = new App()
const stack = new Stack(app, 'stack-name')

const orgsApiGwId = '' // imported from somewhere or hard coded

const organisationsServiceApiGateway = RestApi.fromRestApiId(stack, 'orgs-api-gw', orgsApiGwId)

const productProvider = new ReapitProductProvider(stack, 'product-provider', {
  organisationsServiceApiGateway,
  stageName: 'api',
})

const product = productProvider.createProduct(stack, 'product', {
  name: 'a product name',
  callbackUrls: [],
  grant: 'authorizationCode',
  isInternalApp: true,
  requiresUserAdmin: false,
  scopes: [],
  signoutUrls: [],
})

new CfnOutput(stack, 'client-id', {
  value: product.externalId,
})

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

reapit-cdk.reapit-product-0.1.2.tar.gz (127.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

reapit_cdk.reapit_product-0.1.2-py3-none-any.whl (126.4 kB view details)

Uploaded Python 3

File details

Details for the file reapit-cdk.reapit-product-0.1.2.tar.gz.

File metadata

File hashes

Hashes for reapit-cdk.reapit-product-0.1.2.tar.gz
Algorithm Hash digest
SHA256 4852bdf7e9da8c48a30d977977fec8475f1131dde016dccac135a850f583e835
MD5 a4ff1024ce4c8e6080a93fa791c1863b
BLAKE2b-256 6a61bc949461ebc49ceaa5ad3cede7777dad8ed019e561bc827e78680963f944

See more details on using hashes here.

File details

Details for the file reapit_cdk.reapit_product-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for reapit_cdk.reapit_product-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f29a375eda489ddd4ead47da27b1c7fbb22936a13cf01890b77d8b1cdea7f661
MD5 7297607737df9c310ff3bdf0fd36b815
BLAKE2b-256 b622f981d49ad705a1e81e8e21122f4140a1df38e6f941ae7a26a62675738ab5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page