@lego/pulumi-link-mobility-provider
TypeScript icon, indicating that this package has built-in type declarations

1.0.5 • Public • Published

CI npm version License

pulumi-link-mobility-provider

A pulumi custom provider that allows you to create, update and delete destinations in Link Mobility's partner gate.

Installation

To use from JavaScript or TypeScript in Node.js, install using either npm:

npm install @lego/pulumi-link-mobility-provider

or yarn:

yarn add @lego/pulumi-link-mobility-provider

Usage

const provider = new LinkMobilityPartnerGateDestinationProvider({
  username: 'myGateUsername',
  password: 'myNotSoSecretPassword',
  url: 'https://n-eu.linkmobility.io',
  partner: 'myPartner',
  platform: 'myPlatform',
});

new LinkMobilityPartnerGateDestination('link-mobility-foo-bar-destination', {
  provider: provider,
  partnerGateId: 'myPartnerGateId',
  destination: {
    url: 'https://foo.bar',
    contentType: 'application/json',
    // Username & password
    username: 'fooBarUsername',
    password: 'myEvenWorsePassword',
    // Custom auth with API Key header
    customParameters: {
      'http.header1': `x-my-secret-header:myApiKey`,
    },
  },
});

[!CAUTION] It is highly recommended you do NOT leave your passwords/API-keys in clear text, but instead store them as secrets in your Pulumi project. For the sake of showing an example they have been left in clear text here.

Contribution

This project welcomes contributions and suggestions. Would you like to contribute to the project? Learn how to contribute here.

License

Modified Apache 2.0 (Section 6)

Open Source Attribution

Project Dependencies

Dev Dependencies

Readme

Keywords

none

Package Sidebar

Install

npm i @lego/pulumi-link-mobility-provider

Weekly Downloads

0

Version

1.0.5

License

Apache-2.0

Unpacked Size

52.6 kB

Total Files

21

Last publish

Collaborators

  • mbogh
  • xshteff
  • vincentbriglia
  • giovannidegani