SecurityAgent / Client / update_integrated_resources

update_integrated_resources

SecurityAgent.Client.update_integrated_resources(**kwargs)

Updates the integrated resources for an agent space

See also: AWS API Documentation

Request Syntax

response = client.update_integrated_resources(
    agentSpaceId='string',
    integrationId='string',
    items=[
        {
            'resource': {
                'githubRepository': {
                    'name': 'string',
                    'owner': 'string'
                }
            },
            'capabilities': {
                'github': {
                    'leaveComments': True|False,
                    'remediateCode': True|False
                }
            }
        },
    ]
)
Parameters:
  • agentSpaceId (string) –

    [REQUIRED]

    Unique identifier of the agent space

  • integrationId (string) –

    [REQUIRED]

    Unique identifier of the integration

  • items (list) –

    [REQUIRED]

    List of integrated resources to update

    • (dict) –

      Input item for updating an integrated resource

      • resource (dict) – [REQUIRED]

        Configuration of the resource

        Note

        This is a Tagged Union structure. Only one of the following top level keys can be set: githubRepository.

        • githubRepository (dict) –

          GitHub repository resource

          • name (string) – [REQUIRED]

            Name of the resource e.g. repository name, etc

          • owner (string) – [REQUIRED]

            Owner of the repository

      • capabilities (dict) –

        Provider-specific capabilities for the resource

        Note

        This is a Tagged Union structure. Only one of the following top level keys can be set: github.

        • github (dict) –

          Capabilities for GitHub repositories

          • leaveComments (boolean) –

            Post code review comments on pull requests

          • remediateCode (boolean) –

            Create pull requests with automated fixes

Return type:

dict

Returns:

Response Syntax

{}

Response Structure

  • (dict) –

Exceptions

  • SecurityAgent.Client.exceptions.ValidationException

  • SecurityAgent.Client.exceptions.ResourceNotFoundException

  • SecurityAgent.Client.exceptions.InternalServerException

  • SecurityAgent.Client.exceptions.ConflictException

  • SecurityAgent.Client.exceptions.ThrottlingException

  • SecurityAgent.Client.exceptions.AccessDeniedException