particles-common-core

0.3.7 • Public • Published

DEPRECATED particles-common-core

** Deprecated **

Please use particles-core instead.

This project will remain for any particles that rely on it, but it will not be updated.

DEPRECATED Documentation

As stated above the project has been deprecated in favor of particles-core. For projects that still rely on particles-common-core refer to the documention is accurate as of the last release.

conditions

is_true

Will evalute to true if the related parameter is true

Parameters

  • paremeterLogicalId {String} required LogicalId of the parameter

is_false

Will evalute to true if the related parameter is false

Parameters

  • paremeterLogicalId {String} required LogicalId of the parameter

is_empty

Will evalute to true if the related parameter is an empty string

Parameters

  • paremeterLogicalId {String} required LogicalId of the parameter

helpers

propertyValue

Evaluates whether the property is an object or string and returns the correct template compatible syntax for each.

Parameters

  • value {string|object} required The property value to evaluate and/or change.

parameters

base

  • value {string|object} required String, Ref or Fn to output.
  • description {string|object} String, Ref or Fn to use for the description

parameters

base

A generic implementation of a parameter

Parameters

  • type {String} required maps to Type
  • default {String} maps to Default
  • noEcho {Boolean} maps to NoEcho
  • allowedValues {Array} maps to AllowedValues
  • allowedPattern {String} maps to AllowedPattern
  • maxLength {String} maps to MaxLength
  • minLength {String} maps to MinLength
  • maxValue {Int} maps to MaxValue
  • minValue {Int} maps to MinValue
  • description {String} maps to Description
  • constraintDescription {String} maps to ConstraintDescription

cidr_range

Creates a parameter that accepts a valid CIDR as the value.

Parameters

  • default {String} maps to Default
  • noEcho {Boolean} maps to NoEcho
  • allowedValues {Array} maps to AllowedValues
  • allowedPattern {String} maps to AllowedPattern
  • description {String} maps to Description

Defaults

  • description "Valid CIDR Range. Format: x.x.x.x/x"

true_false

Creates a parameter that accepts either "true" or "false" as the value.

Parameters

  • default {String} maps to Default
  • noEcho {Boolean} maps to NoEcho
  • description {String} maps to Description

partials

fn_get_att

Parameters

  • logicalId {String} required logicalId to reference
  • attributeName {String} required name of the attribute to reference

ref

Parameters

  • logicalId {String} required logicalId to reference

sets

true_false

When used in a layout, will generate a parameter and condition for true/false values

Parameters

  • paremeterLogicalId required LogicalId for the parameter
  • conditionLogicalId required LogicalId for the condition

Passed on to parameter

  • default {String} maps to Default
  • noEcho {Boolean} maps to NoEcho
  • description {String} maps to Description

resources

base

A generic implementation of a resource

Parameters

  • type {String} required maps to Type
  • creationPolicy {String} maps to CreationPolicy
  • deletionPolicy {String} maps to DeletionPolicy
  • updatePolicy {String} maps to UpdatePolicy
  • properties {String|Object} maps to Properties
  • condition {String} maps to Condition
  • metadata {String} maps to Metadata
  • dependsOn {Int} maps to DependsOn

Package Sidebar

Install

npm i particles-common-core

Weekly Downloads

0

Version

0.3.7

License

Apache-2.0

Last publish

Collaborators

  • kmcgrath