403Webshell
Server IP : 167.99.254.82  /  Your IP : 216.73.216.188
Web Server : Apache
System : Linux host.techisquad.com 5.15.0-190-generic #200-Ubuntu SMP Fri Aug 7 15:06:04 UTC 2026 x86_64
User : pawluxera ( 1011)
PHP Version : 8.1.34
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/share/doc/awscli/examples/iam/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/doc/awscli/examples/iam/create-service-linked-role.rst
**To create a service-linked role**

The following ``create-service-linked-role`` example creates a service-linked role for the specified AWS service and attaches the specified description. ::

    aws iam create-service-linked-role \
        --aws-service-name lex.amazonaws.com \
        --description "My service-linked role to support Lex"

Output::

    {
        "Role": {
            "Path": "/aws-service-role/lex.amazonaws.com/",
            "RoleName": "AWSServiceRoleForLexBots",
            "RoleId": "AROA1234567890EXAMPLE",
            "Arn": "arn:aws:iam::1234567890:role/aws-service-role/lex.amazonaws.com/AWSServiceRoleForLexBots",
            "CreateDate": "2019-04-17T20:34:14+00:00",
            "AssumeRolePolicyDocument": {
                "Version": "2012-10-17",
                "Statement": [
                    {
                        "Action": [
                            "sts:AssumeRole"
                        ],
                        "Effect": "Allow",
                        "Principal": {
                            "Service": [
                                "lex.amazonaws.com"
                            ]
                        }
                    }
                ]
            }
        }
    }

For more information, see `Using Service-Linked Roles <https://docs.aws.amazon.com/IAM/latest/UserGuide/using-service-linked-roles.html>`_ in the *IAM User Guide*.

Youez - 2016 - github.com/yon3zu
LinuXploit