How to use where clause in Knex
Create refunds with Stripe
Load HTML with Cheerio
How to send POST request with Axios
Find intersection of array in Lodash
Powered by Official white Bloop logo with a period

Terms / Privacy / Search / Support

  • import * as ssm from '@aws-cdk/aws-ssm';
    
    new batch.JobDefinition(this, 'job-def', {
      container: {
        image: ecs.EcrImage.fromRegistry('docker/whalesay'),
        logConfiguration: {
          logDriver: batch.LogDriver.AWSLOGS,
          options: { 'awslogs-region': 'us-east-1' },
          secretOptions: [
            batch.ExposedSecret.fromParametersStore('xyz', ssm.StringParameter.fromStringParameterName(this, 'parameter', 'xyz')),
          ],
        },
      },
    });
    
    Docs
    0
  • const vpc = ec2.Vpc.fromVpcAttributes(this, 'VPC', {
      vpcId: 'vpc-1234',
      availabilityZones: ['us-east-1a', 'us-east-1b'],
    
      // Either pass literals for all IDs
      publicSubnetIds: ['s-12345', 's-67890'],
    
      // OR: import a list of known length
      privateSubnetIds: Fn.importListValue('PrivateSubnetIds', 2),
    
      // OR: split an imported string to a list of known length
      isolatedSubnetIds: Fn.split(',', ssm.StringParameter.valueForStringParameter(this, `MyParameter`), 2),
    });
    
    Docs
    0
  •     // Retrieve the latest value of the non-secret parameter
        // with name "/My/String/Parameter".
        const stringValue = ssm.StringParameter.fromStringParameterAttributes(this, 'MyValue', {
          parameterName: '/My/Public/Parameter',
          // 'version' can be specified but is optional.
        }).stringValue;
        const stringValueVersionFromToken = ssm.StringParameter.fromStringParameterAttributes(this, 'MyValueVersionFromToken', {
          parameterName: '/My/Public/Parameter',
          // parameter version from token
          version: parameterVersion,
        }).stringValue;
    
        // Retrieve a specific version of the secret (SecureString) parameter.
        // 'version' is always required.
        const secretValue = ssm.StringParameter.fromSecureStringParameterAttributes(this, 'MySecureValue', {
          parameterName: '/My/Secret/Parameter',
          version: 5,
        });
        const secretValueVersionFromToken = ssm.StringParameter.fromSecureStringParameterAttributes(this, 'MySecureValueVersionFromToken', {
          parameterName: '/My/Secret/Parameter',
          // parameter version from token
          version: parameterVersion,
        });
    
    Docs
    0
  •     // Retrieve the latest value of the non-secret parameter
        // with name "/My/String/Parameter".
        const stringValue = ssm.StringParameter.fromStringParameterAttributes(this, 'MyValue', {
          parameterName: '/My/Public/Parameter',
          // 'version' can be specified but is optional.
        }).stringValue;
        const stringValueVersionFromToken = ssm.StringParameter.fromStringParameterAttributes(this, 'MyValueVersionFromToken', {
          parameterName: '/My/Public/Parameter',
          // parameter version from token
          version: parameterVersion,
        }).stringValue;
    
        // Retrieve a specific version of the secret (SecureString) parameter.
        // 'version' is always required.
        const secretValue = ssm.StringParameter.fromSecureStringParameterAttributes(this, 'MySecureValue', {
          parameterName: '/My/Secret/Parameter',
          version: 5,
        });
        const secretValueVersionFromToken = ssm.StringParameter.fromSecureStringParameterAttributes(this, 'MySecureValueVersionFromToken', {
          parameterName: '/My/Secret/Parameter',
          // parameter version from token
          version: parameterVersion,
        });
    
    
    Docs
    0
  • new ssm.StringParameter(this, 'Parameter', {
      allowedPattern: '.*',
      description: 'The value Foo',
      parameterName: 'FooParameter',
      stringValue: 'Foo',
      tier: ssm.ParameterTier.ADVANCED,
    });
    
    Docs
    0
  • // Create a new SSM Parameter holding a String
    const param = new ssm.StringParameter(stack, 'StringParameter', {
      // description: 'Some user-friendly description',
      // name: 'ParameterName',
      stringValue: 'Initial parameter value',
      // allowedPattern: '.*',
    });
    
    // Grant read access to some Role
    param.grantRead(role);
    
    // Create a new SSM Parameter holding a StringList
    const listParameter = new ssm.StringListParameter(stack, 'StringListParameter', {
      // description: 'Some user-friendly description',
      // name: 'ParameterName',
      stringListValue: ['Initial parameter value A', 'Initial parameter value B'],
      // allowedPattern: '.*',
    });
    
    Docs
    0
  •     // Retrieve the latest value of the non-secret parameter
        // with name "/My/String/Parameter".
        const stringValue = ssm.StringParameter.fromStringParameterAttributes(this, 'MyValue', {
          parameterName: '/My/Public/Parameter',
          // 'version' can be specified but is optional.
        }).stringValue;
        const stringValueVersionFromToken = ssm.StringParameter.fromStringParameterAttributes(this, 'MyValueVersionFromToken', {
          parameterName: '/My/Public/Parameter',
          // parameter version from token
          version: parameterVersion,
        }).stringValue;
    
        // Retrieve a specific version of the secret (SecureString) parameter.
        // 'version' is always required.
        const secretValue = ssm.StringParameter.fromSecureStringParameterAttributes(this, 'MySecureValue', {
          parameterName: '/My/Secret/Parameter',
          version: 5,
        });
        const secretValueVersionFromToken = ssm.StringParameter.fromSecureStringParameterAttributes(this, 'MySecureValueVersionFromToken', {
          parameterName: '/My/Secret/Parameter',
          // parameter version from token
          version: parameterVersion,
        });
    
    Docs
    0
  •     // Retrieve the latest value of the non-secret parameter
        // with name "/My/String/Parameter".
        const stringValue = ssm.StringParameter.fromStringParameterAttributes(this, 'MyValue', {
          parameterName: '/My/Public/Parameter',
          // 'version' can be specified but is optional.
        }).stringValue;
        const stringValueVersionFromToken = ssm.StringParameter.fromStringParameterAttributes(this, 'MyValueVersionFromToken', {
          parameterName: '/My/Public/Parameter',
          // parameter version from token
          version: parameterVersion,
        }).stringValue;
    
        // Retrieve a specific version of the secret (SecureString) parameter.
        // 'version' is always required.
        const secretValue = ssm.StringParameter.fromSecureStringParameterAttributes(this, 'MySecureValue', {
          parameterName: '/My/Secret/Parameter',
          version: 5,
        });
        const secretValueVersionFromToken = ssm.StringParameter.fromSecureStringParameterAttributes(this, 'MySecureValueVersionFromToken', {
          parameterName: '/My/Secret/Parameter',
          // parameter version from token
          version: parameterVersion,
        });
    
    
    Docs
    0
  • Powered by Official black Bloop logo with a period
    download the IDE extension

    View other examples