Creates a product in the organisations service
Project description
@reapit-cdk/reapit-product
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for reapit-cdk.reapit-product-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f3b0598e100228599775c6b6160d01c96704444077569f6cfdbb72038785b2f5 |
|
MD5 | 0307462960b81ce97b74e856f5b4c013 |
|
BLAKE2b-256 | eb9576a80378f943b4c636f0810b1be00e882114aa5f815036eb954b8e5697db |
Close
Hashes for reapit_cdk.reapit_product-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5602ecdfd0d5dc52762a48348dea0f9e527ee46042e6de7be1cf3f9f31dd4759 |
|
MD5 | 439d6fc9c0c353756c4924869d7bca41 |
|
BLAKE2b-256 | 6717ff9b729978ad2611b00a4635b1b1fdeb271a662afede886c53a1be031c69 |