SecurityAgent / Client / update_integrated_resources

update_integrated_resources

SecurityAgent.Client.update_integrated_resources(**kwargs)

Updates the integrated resources for an agent space, including their capabilities.

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]

    The unique identifier of the agent space.

  • integrationId (string) –

    [REQUIRED]

    The unique identifier of the integration.

  • items (list) –

    [REQUIRED]

    The list of integrated resource items to update.

    • (dict) –

      Represents an input item for updating integrated resources, including the resource and its capabilities.

      • resource (dict) – [REQUIRED]

        The integrated resource to update.

        Note

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

        • githubRepository (dict) –

          The GitHub repository resource information.

          • name (string) – [REQUIRED]

            The name of the GitHub repository.

          • owner (string) – [REQUIRED]

            The owner of the GitHub repository.

      • capabilities (dict) –

        The capabilities to enable for the integrated resource.

        Note

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

        • github (dict) –

          The GitHub-specific resource capabilities.

          • leaveComments (boolean) –

            Indicates whether the integration can leave comments on pull requests.

          • remediateCode (boolean) –

            Indicates whether the integration can create code remediation pull requests.

Return type:

dict

Returns:

Response Syntax

{}

Response Structure

  • (dict) –

Exceptions