404

[ Avaa Bypassed ]




Upload:

Command:

botdev@3.16.139.76: ~ $
**Example 1: To download a component's recipe in YAML format (Linux, macOS, or Unix)**

The following ``get-component`` example downloads a Hello World component's recipe to a file in YAML format. This command does the following:

#. Uses the ``--output`` and ``--query`` parameters to control the command's output. These parameters extract the recipe blob from the command's output. For more information about controlling output, see `Controlling Command Output <https://docs.aws.amazon.com/cli/latest/userguide/controlling-output.html>`_ in the *AWS Command Line Interface User Guide*.

#. Uses the ``base64`` utility. This utility decodes the extracted blob to the original text. The blob that is returned by a successful ``get-component`` command is base64-encoded text. You must decode this blob to obtain the original text.

#. Saves the decoded text to a file. The final section of the command (``> com.example.HelloWorld-1.0.0.json``) saves the decoded text to a file.

::

    aws greengrassv2 get-component \
        --arn arn:aws:greengrass:us-west-2:123456789012:components:com.example.HelloWorld:versions:1.0.0 \
        --recipe-output-format YAML \
        --query recipe \
        --output text | base64 --decode > com.example.HelloWorld-1.0.0.json

For more information, see `Manage components <https://docs.aws.amazon.com/greengrass/v2/developerguide/manage-components.html>`__ in the *AWS IoT Greengrass V2 Developer Guide*.

**Example 2: To download a component's recipe in YAML format (Windows CMD)**

The following ``get-component`` example downloads a Hello World component's recipe to a file in YAML format. This command uses the ``certutil`` utility. ::

    aws greengrassv2 get-component ^
        --arn arn:aws:greengrass:us-west-2:675946970638:components:com.example.HelloWorld:versions:1.0.0 ^
        --recipe-output-format YAML ^
        --query recipe ^
        --output text > com.example.HelloWorld-1.0.0.yaml.b64

    certutil -decode com.example.HelloWorld-1.0.0.yaml.b64 com.example.HelloWorld-1.0.0.yaml

For more information, see `Manage components <https://docs.aws.amazon.com/greengrass/v2/developerguide/manage-components.html>`__ in the *AWS IoT Greengrass V2 Developer Guide*.

**Example 3: To download a component's recipe in YAML format (Windows PowerShell)**

The following ``get-component`` example downloads a Hello World component's recipe to a file in YAML format. This command uses the ``certutil`` utility. ::

    aws greengrassv2 get-component `
        --arn arn:aws:greengrass:us-west-2:675946970638:components:com.example.HelloWorld:versions:1.0.0 `
        --recipe-output-format YAML `
        --query recipe `
        --output text > com.example.HelloWorld-1.0.0.yaml.b64

    certutil -decode com.example.HelloWorld-1.0.0.yaml.b64 com.example.HelloWorld-1.0.0.yaml

For more information, see `Manage components <https://docs.aws.amazon.com/greengrass/v2/developerguide/manage-components.html>`__ in the *AWS IoT Greengrass V2 Developer Guide*.

Filemanager

Name Type Size Permission Actions
associate-service-role-to-account.rst File 618 B 0644
batch-associate-client-device-with-core-device.rst File 637 B 0644
batch-disassociate-client-device-from-core-device.rst File 649 B 0644
cancel-deployment.rst File 471 B 0644
create-component-version.rst File 3.19 KB 0644
create-deployment.rst File 3.39 KB 0644
delete-component.rst File 481 B 0644
delete-core-device.rst File 503 B 0644
describe-component.rst File 1.11 KB 0644
disassociate-service-role-from-account.rst File 563 B 0644
get-component-version-artifact.rst File 1.04 KB 0644
get-component.rst File 2.98 KB 0644
get-connectivity-info.rst File 798 B 0644
get-core-device.rst File 708 B 0644
get-deployment.rst File 1.84 KB 0644
get-service-role-for-account.rst File 618 B 0644
list-client-devices-associated-with-core-device.rst File 920 B 0644
list-component-versions.rst File 1.02 KB 0644
list-components.rst File 1.28 KB 0644
list-core-devices.rst File 659 B 0644
list-deployments.rst File 1.38 KB 0644
list-effective-deployments.rst File 1.76 KB 0644
list-installed-components.rst File 971 B 0644
list-tags-for-resource.rst File 556 B 0644
tag-resource.rst File 595 B 0644
untag-resource.rst File 520 B 0644
update-connectivity-info.rst File 1006 B 0644