Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@aws-sdk/client-amplifyuibuilder

Package Overview
Dependencies
Maintainers
0
Versions
327
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-sdk/client-amplifyuibuilder

AWS SDK for JavaScript Amplifyuibuilder Client for Node.js, Browser and React Native

  • 3.714.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
95K
decreased by-8.11%
Maintainers
0
Weekly downloads
 
Created

What is @aws-sdk/client-amplifyuibuilder?

@aws-sdk/client-amplifyuibuilder is an AWS SDK client for interacting with AWS Amplify UI Builder, which allows developers to create and manage UI components and themes for their Amplify applications programmatically.

What are @aws-sdk/client-amplifyuibuilder's main functionalities?

Create Component

This feature allows you to create a new UI component in your Amplify application. The code sample demonstrates how to create a button component with the text 'Click Me'.

const { AmplifyUIBuilderClient, CreateComponentCommand } = require('@aws-sdk/client-amplifyuibuilder');

const client = new AmplifyUIBuilderClient({ region: 'us-west-2' });

const params = {
  appId: 'your-app-id',
  environmentName: 'your-environment-name',
  componentToCreate: {
    name: 'MyComponent',
    componentType: 'Button',
    properties: {
      text: { value: 'Click Me' }
    }
  }
};

const command = new CreateComponentCommand(params);

client.send(command).then(response => {
  console.log('Component created:', response);
}).catch(error => {
  console.error('Error creating component:', error);
});

Update Component

This feature allows you to update an existing UI component in your Amplify application. The code sample demonstrates how to update the text property of a button component.

const { AmplifyUIBuilderClient, UpdateComponentCommand } = require('@aws-sdk/client-amplifyuibuilder');

const client = new AmplifyUIBuilderClient({ region: 'us-west-2' });

const params = {
  appId: 'your-app-id',
  environmentName: 'your-environment-name',
  id: 'component-id',
  updatedComponent: {
    properties: {
      text: { value: 'Updated Text' }
    }
  }
};

const command = new UpdateComponentCommand(params);

client.send(command).then(response => {
  console.log('Component updated:', response);
}).catch(error => {
  console.error('Error updating component:', error);
});

Delete Component

This feature allows you to delete an existing UI component from your Amplify application. The code sample demonstrates how to delete a component by its ID.

const { AmplifyUIBuilderClient, DeleteComponentCommand } = require('@aws-sdk/client-amplifyuibuilder');

const client = new AmplifyUIBuilderClient({ region: 'us-west-2' });

const params = {
  appId: 'your-app-id',
  environmentName: 'your-environment-name',
  id: 'component-id'
};

const command = new DeleteComponentCommand(params);

client.send(command).then(response => {
  console.log('Component deleted:', response);
}).catch(error => {
  console.error('Error deleting component:', error);
});

List Components

This feature allows you to list all UI components in your Amplify application. The code sample demonstrates how to retrieve and log the list of components.

const { AmplifyUIBuilderClient, ListComponentsCommand } = require('@aws-sdk/client-amplifyuibuilder');

const client = new AmplifyUIBuilderClient({ region: 'us-west-2' });

const params = {
  appId: 'your-app-id',
  environmentName: 'your-environment-name'
};

const command = new ListComponentsCommand(params);

client.send(command).then(response => {
  console.log('Components list:', response);
}).catch(error => {
  console.error('Error listing components:', error);
});

Other packages similar to @aws-sdk/client-amplifyuibuilder

FAQs

Package last updated on 17 Dec 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc