AWS Security Agent

2026/10/02 - AWS Security Agent - 2 updated api methods

Changes  Adds trigger filters that control which pull request events, target branches, and labels start an automatic code review.

ListIntegratedResources (updated) Link ¶
Changes (response)
{'integratedResourceSummaries': {'capabilities': {'azureDevOps': {'triggerFilterGroups': [{'events': ['PULL_REQUEST_READY_FOR_REVIEW '
                                                                                                      '| '
                                                                                                      'PULL_REQUEST_DRAFT '
                                                                                                      '| '
                                                                                                      'PULL_REQUEST_LABEL_ADDED'],
                                                                                           'filters': [{'matchMode': 'INCLUDE '
                                                                                                                     '| '
                                                                                                                     'EXCLUDE',
                                                                                                        'patterns': ['string'],
                                                                                                        'type': 'TARGET_BRANCH '
                                                                                                                '| '
                                                                                                                'LABEL'}]}]},
                                                  'bitbucket': {'triggerFilterGroups': [{'events': ['PULL_REQUEST_READY_FOR_REVIEW '
                                                                                                    '| '
                                                                                                    'PULL_REQUEST_DRAFT '
                                                                                                    '| '
                                                                                                    'PULL_REQUEST_LABEL_ADDED'],
                                                                                         'filters': [{'matchMode': 'INCLUDE '
                                                                                                                   '| '
                                                                                                                   'EXCLUDE',
                                                                                                      'patterns': ['string'],
                                                                                                      'type': 'TARGET_BRANCH '
                                                                                                              '| '
                                                                                                              'LABEL'}]}]},
                                                  'github': {'triggerFilterGroups': [{'events': ['PULL_REQUEST_READY_FOR_REVIEW '
                                                                                                 '| '
                                                                                                 'PULL_REQUEST_DRAFT '
                                                                                                 '| '
                                                                                                 'PULL_REQUEST_LABEL_ADDED'],
                                                                                      'filters': [{'matchMode': 'INCLUDE '
                                                                                                                '| '
                                                                                                                'EXCLUDE',
                                                                                                   'patterns': ['string'],
                                                                                                   'type': 'TARGET_BRANCH '
                                                                                                           '| '
                                                                                                           'LABEL'}]}]},
                                                  'gitlab': {'triggerFilterGroups': [{'events': ['PULL_REQUEST_READY_FOR_REVIEW '
                                                                                                 '| '
                                                                                                 'PULL_REQUEST_DRAFT '
                                                                                                 '| '
                                                                                                 'PULL_REQUEST_LABEL_ADDED'],
                                                                                      'filters': [{'matchMode': 'INCLUDE '
                                                                                                                '| '
                                                                                                                'EXCLUDE',
                                                                                                   'patterns': ['string'],
                                                                                                   'type': 'TARGET_BRANCH '
                                                                                                           '| '
                                                                                                           'LABEL'}]}]}}}}

Lists the integrated resources for an agent space, optionally filtered by integration or resource type.

See also: AWS API Documentation

Request Syntax

client.list_integrated_resources(
    agentSpaceId='string',
    integrationId='string',
    resourceType='CODE_REPOSITORY'|'DOCUMENT',
    nextToken='string',
    maxResults=123
)
type agentSpaceId:

string

param agentSpaceId:

[REQUIRED]

The unique identifier of the agent space to list integrated resources for.

type integrationId:

string

param integrationId:

The unique identifier of the integration to filter by.

type resourceType:

string

param resourceType:

The type of resource to filter by.

type nextToken:

string

param nextToken:

A token to use for paginating results that are returned in the response. Set the value of this parameter to null for the first request. For subsequent calls, use the nextToken value returned from the previous request.

type maxResults:

integer

param maxResults:

The maximum number of results to return in a single call.

rtype:

dict

returns:

Response Syntax

{
    'integratedResourceSummaries': [
        {
            'integrationId': 'string',
            'resource': {
                'githubRepository': {
                    'name': 'string',
                    'providerResourceId': 'string',
                    'owner': 'string',
                    'accessType': 'PRIVATE'|'PUBLIC'
                },
                'gitlabRepository': {
                    'name': 'string',
                    'providerResourceId': 'string',
                    'namespace': 'string',
                    'accessType': 'PRIVATE'|'PUBLIC'
                },
                'bitbucketRepository': {
                    'name': 'string',
                    'providerResourceId': 'string',
                    'workspace': 'string',
                    'accessType': 'PRIVATE'|'PUBLIC'
                },
                'confluenceDocument': {
                    'name': 'string',
                    'providerResourceId': 'string',
                    'spaceKey': 'string',
                    'pageId': 'string',
                    'title': 'string',
                    'spaceTitle': 'string'
                },
                'azureDevOpsRepository': {
                    'name': 'string',
                    'providerResourceId': 'string',
                    'organization': 'string',
                    'project': 'string',
                    'projectId': 'string',
                    'accessType': 'PRIVATE'|'PUBLIC'
                }
            },
            'capabilities': {
                'github': {
                    'triggerFilterGroups': [
                        {
                            'events': [
                                'PULL_REQUEST_READY_FOR_REVIEW'|'PULL_REQUEST_DRAFT'|'PULL_REQUEST_LABEL_ADDED',
                            ],
                            'filters': [
                                {
                                    'type': 'TARGET_BRANCH'|'LABEL',
                                    'patterns': [
                                        'string',
                                    ],
                                    'matchMode': 'INCLUDE'|'EXCLUDE'
                                },
                            ]
                        },
                    ],
                    'leaveComments': True|False,
                    'remediateCode': True|False
                },
                'gitlab': {
                    'triggerFilterGroups': [
                        {
                            'events': [
                                'PULL_REQUEST_READY_FOR_REVIEW'|'PULL_REQUEST_DRAFT'|'PULL_REQUEST_LABEL_ADDED',
                            ],
                            'filters': [
                                {
                                    'type': 'TARGET_BRANCH'|'LABEL',
                                    'patterns': [
                                        'string',
                                    ],
                                    'matchMode': 'INCLUDE'|'EXCLUDE'
                                },
                            ]
                        },
                    ],
                    'leaveComments': True|False,
                    'remediateCode': True|False
                },
                'bitbucket': {
                    'triggerFilterGroups': [
                        {
                            'events': [
                                'PULL_REQUEST_READY_FOR_REVIEW'|'PULL_REQUEST_DRAFT'|'PULL_REQUEST_LABEL_ADDED',
                            ],
                            'filters': [
                                {
                                    'type': 'TARGET_BRANCH'|'LABEL',
                                    'patterns': [
                                        'string',
                                    ],
                                    'matchMode': 'INCLUDE'|'EXCLUDE'
                                },
                            ]
                        },
                    ],
                    'leaveComments': True|False,
                    'remediateCode': True|False
                },
                'confluence': {
                    'fetchDocument': True|False,
                    'createDocument': True|False,
                    'updateDocument': True|False
                },
                'azureDevOps': {
                    'triggerFilterGroups': [
                        {
                            'events': [
                                'PULL_REQUEST_READY_FOR_REVIEW'|'PULL_REQUEST_DRAFT'|'PULL_REQUEST_LABEL_ADDED',
                            ],
                            'filters': [
                                {
                                    'type': 'TARGET_BRANCH'|'LABEL',
                                    'patterns': [
                                        'string',
                                    ],
                                    'matchMode': 'INCLUDE'|'EXCLUDE'
                                },
                            ]
                        },
                    ],
                    'leaveComments': True|False,
                    'remediateCode': True|False
                }
            }
        },
    ],
    'nextToken': 'string'
}

Response Structure

  • (dict) --

    • integratedResourceSummaries (list) --

      The list of integrated resource summaries.

      • (dict) --

        Contains summary information about an integrated resource.

        • integrationId (string) --

          The unique identifier of the integration that provides access to the resource.

        • resource (dict) --

          The metadata for the integrated resource.

          • githubRepository (dict) --

            The GitHub repository metadata.

            • name (string) --

              The name of the GitHub repository.

            • providerResourceId (string) --

              The provider-specific resource identifier for the GitHub repository.

            • owner (string) --

              The owner of the GitHub repository.

            • accessType (string) --

              The access type of the GitHub repository. Valid values are PRIVATE and PUBLIC.

          • gitlabRepository (dict) --

            Metadata for an integrated GitLab repository.

            • name (string) --

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

            • providerResourceId (string) --

              Provider Id of the resource e.g. GitHub repository id, etc.

            • namespace (string) --

              The namespace (group or user path) that owns the project.

            • accessType (string) --

              Defines the visibility level of provider resources. PRIVATE indicates restricted access, while PUBLIC indicates open access.

          • bitbucketRepository (dict) --

            Metadata for an integrated Bitbucket repository.

            • name (string) --

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

            • providerResourceId (string) --

              Provider Id of the resource e.g. GitHub repository id, etc.

            • workspace (string) --

              The workspace slug that owns the repository.

            • accessType (string) --

              Defines the visibility level of provider resources. PRIVATE indicates restricted access, while PUBLIC indicates open access.

          • confluenceDocument (dict) --

            Metadata for an integrated Confluence document.

            • name (string) --

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

            • providerResourceId (string) --

              Provider Id of the resource e.g. GitHub repository id, etc.

            • spaceKey (string) --

              The Confluence space key containing the document.

            • pageId (string) --

              The Confluence page identifier.

            • title (string) --

              The display title of the Confluence page.

            • spaceTitle (string) --

              The display title of the Confluence space.

          • azureDevOpsRepository (dict) --

            The Azure DevOps repository metadata.

            • name (string) --

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

            • providerResourceId (string) --

              Provider Id of the resource e.g. GitHub repository id, etc.

            • organization (string) --

              The name of the Azure DevOps organization that owns the repository.

            • project (string) --

              The name of the Azure DevOps project that contains the repository.

            • projectId (string) --

              The GUID of the Azure DevOps project that contains the repository.

            • accessType (string) --

              Defines the visibility level of provider resources. PRIVATE indicates restricted access, while PUBLIC indicates open access.

        • capabilities (dict) --

          The capabilities enabled for the integrated resource.

          • github (dict) --

            The GitHub-specific resource capabilities.

            • triggerFilterGroups (list) --

              The filter groups that control which pull request events start an automatic code review when leaveComments is enabled. A review starts when any group matches. If you omit this, a review starts on PULL_REQUEST_READY_FOR_REVIEW events.

              • (dict) --

                A set of conditions that start an automatic code review when they all pass. A filter group must include events, filters, or both.

                • events (list) --

                  Passes when the pull request event is one of the listed events. If you omit this, the group matches PULL_REQUEST_READY_FOR_REVIEW and PULL_REQUEST_DRAFT events only.

                  • (string) --

                    A pull request event that can start an automatic code review. For GitLab repositories, pull request refers to a merge request.

                • filters (list) --

                  Passes when every filter passes. If you omit this, the group matches its events on any target branch and with any labels.

                  • (dict) --

                    A condition on a pull request value.

                    • type (string) --

                      The pull request value to match.

                    • patterns (list) --

                      The regular expressions to match against the value.

                      • (string) --

                        A regular expression in RE2 syntax that must match the entire value, for example main or release/.*.

                    • matchMode (string) --

                      Whether the value must match the patterns. The default is INCLUDE.

            • leaveComments (boolean) --

              Indicates whether the integration can leave comments on pull requests.

            • remediateCode (boolean) --

              Indicates whether the integration can create code remediation pull requests.

          • gitlab (dict) --

            Capabilities for an integrated GitLab repository.

            • triggerFilterGroups (list) --

              The filter groups that control which merge request events start an automatic code review when leaveComments is enabled. A review starts when any group matches. If you omit this, a review starts on PULL_REQUEST_READY_FOR_REVIEW events.

              • (dict) --

                A set of conditions that start an automatic code review when they all pass. A filter group must include events, filters, or both.

                • events (list) --

                  Passes when the pull request event is one of the listed events. If you omit this, the group matches PULL_REQUEST_READY_FOR_REVIEW and PULL_REQUEST_DRAFT events only.

                  • (string) --

                    A pull request event that can start an automatic code review. For GitLab repositories, pull request refers to a merge request.

                • filters (list) --

                  Passes when every filter passes. If you omit this, the group matches its events on any target branch and with any labels.

                  • (dict) --

                    A condition on a pull request value.

                    • type (string) --

                      The pull request value to match.

                    • patterns (list) --

                      The regular expressions to match against the value.

                      • (string) --

                        A regular expression in RE2 syntax that must match the entire value, for example main or release/.*.

                    • matchMode (string) --

                      Whether the value must match the patterns. The default is INCLUDE.

            • leaveComments (boolean) --

              Whether to post code review comments on merge request discussions.

            • remediateCode (boolean) --

              Whether to create merge requests with automated fixes.

          • bitbucket (dict) --

            Capabilities for an integrated Bitbucket repository.

            • triggerFilterGroups (list) --

              The filter groups that control which pull request events start an automatic code review when leaveComments is enabled. A review starts when any group matches. If you omit this, a review starts on PULL_REQUEST_READY_FOR_REVIEW events.

              • (dict) --

                A set of conditions that start an automatic code review when they all pass. A filter group must include events, filters, or both.

                • events (list) --

                  Passes when the pull request event is one of the listed events. If you omit this, the group matches PULL_REQUEST_READY_FOR_REVIEW and PULL_REQUEST_DRAFT events only.

                  • (string) --

                    A pull request event that can start an automatic code review. For GitLab repositories, pull request refers to a merge request.

                • filters (list) --

                  Passes when every filter passes. If you omit this, the group matches its events on any target branch and with any labels.

                  • (dict) --

                    A condition on a pull request value.

                    • type (string) --

                      The pull request value to match.

                    • patterns (list) --

                      The regular expressions to match against the value.

                      • (string) --

                        A regular expression in RE2 syntax that must match the entire value, for example main or release/.*.

                    • matchMode (string) --

                      Whether the value must match the patterns. The default is INCLUDE.

            • leaveComments (boolean) --

              Whether to post code review comments on pull requests.

            • remediateCode (boolean) --

              Whether to create pull requests with automated fixes.

          • confluence (dict) --

            Capabilities for an integrated Confluence space.

            • fetchDocument (boolean) --

              Whether to fetch documents from this space.

            • createDocument (boolean) --

              Whether to create documents in this space.

            • updateDocument (boolean) --

              Whether to update documents in this space.

          • azureDevOps (dict) --

            The Azure DevOps-specific resource capabilities.

            • triggerFilterGroups (list) --

              The filter groups that control which pull request events start an automatic code review when leaveComments is enabled. A review starts when any group matches. If you omit this, a review starts on PULL_REQUEST_READY_FOR_REVIEW events.

              • (dict) --

                A set of conditions that start an automatic code review when they all pass. A filter group must include events, filters, or both.

                • events (list) --

                  Passes when the pull request event is one of the listed events. If you omit this, the group matches PULL_REQUEST_READY_FOR_REVIEW and PULL_REQUEST_DRAFT events only.

                  • (string) --

                    A pull request event that can start an automatic code review. For GitLab repositories, pull request refers to a merge request.

                • filters (list) --

                  Passes when every filter passes. If you omit this, the group matches its events on any target branch and with any labels.

                  • (dict) --

                    A condition on a pull request value.

                    • type (string) --

                      The pull request value to match.

                    • patterns (list) --

                      The regular expressions to match against the value.

                      • (string) --

                        A regular expression in RE2 syntax that must match the entire value, for example main or release/.*.

                    • matchMode (string) --

                      Whether the value must match the patterns. The default is INCLUDE.

            • leaveComments (boolean) --

              Whether to post code review comments on pull requests.

            • remediateCode (boolean) --

              Whether to create pull requests with automated fixes.

    • nextToken (string) --

      A token to use for paginating results that are returned in the response. Set the value of this parameter to null for the first request. For subsequent calls, use the nextToken value returned from the previous request.

UpdateIntegratedResources (updated) Link ¶
Changes (request)
{'items': {'capabilities': {'azureDevOps': {'triggerFilterGroups': [{'events': ['PULL_REQUEST_READY_FOR_REVIEW '
                                                                                '| '
                                                                                'PULL_REQUEST_DRAFT '
                                                                                '| '
                                                                                'PULL_REQUEST_LABEL_ADDED'],
                                                                     'filters': [{'matchMode': 'INCLUDE '
                                                                                               '| '
                                                                                               'EXCLUDE',
                                                                                  'patterns': ['string'],
                                                                                  'type': 'TARGET_BRANCH '
                                                                                          '| '
                                                                                          'LABEL'}]}]},
                            'bitbucket': {'triggerFilterGroups': [{'events': ['PULL_REQUEST_READY_FOR_REVIEW '
                                                                              '| '
                                                                              'PULL_REQUEST_DRAFT '
                                                                              '| '
                                                                              'PULL_REQUEST_LABEL_ADDED'],
                                                                   'filters': [{'matchMode': 'INCLUDE '
                                                                                             '| '
                                                                                             'EXCLUDE',
                                                                                'patterns': ['string'],
                                                                                'type': 'TARGET_BRANCH '
                                                                                        '| '
                                                                                        'LABEL'}]}]},
                            'github': {'triggerFilterGroups': [{'events': ['PULL_REQUEST_READY_FOR_REVIEW '
                                                                           '| '
                                                                           'PULL_REQUEST_DRAFT '
                                                                           '| '
                                                                           'PULL_REQUEST_LABEL_ADDED'],
                                                                'filters': [{'matchMode': 'INCLUDE '
                                                                                          '| '
                                                                                          'EXCLUDE',
                                                                             'patterns': ['string'],
                                                                             'type': 'TARGET_BRANCH '
                                                                                     '| '
                                                                                     'LABEL'}]}]},
                            'gitlab': {'triggerFilterGroups': [{'events': ['PULL_REQUEST_READY_FOR_REVIEW '
                                                                           '| '
                                                                           'PULL_REQUEST_DRAFT '
                                                                           '| '
                                                                           'PULL_REQUEST_LABEL_ADDED'],
                                                                'filters': [{'matchMode': 'INCLUDE '
                                                                                          '| '
                                                                                          'EXCLUDE',
                                                                             'patterns': ['string'],
                                                                             'type': 'TARGET_BRANCH '
                                                                                     '| '
                                                                                     'LABEL'}]}]}}}}

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

See also: AWS API Documentation

Request Syntax

client.update_integrated_resources(
    agentSpaceId='string',
    integrationId='string',
    items=[
        {
            'resource': {
                'githubRepository': {
                    'name': 'string',
                    'owner': 'string'
                },
                'gitlabRepository': {
                    'name': 'string',
                    'namespace': 'string'
                },
                'bitbucketRepository': {
                    'name': 'string',
                    'workspace': 'string'
                },
                'confluenceDocument': {
                    'name': 'string',
                    'spaceKey': 'string',
                    'pageId': 'string',
                    'title': 'string',
                    'spaceTitle': 'string'
                },
                'azureDevOpsRepository': {
                    'name': 'string',
                    'organization': 'string',
                    'project': 'string'
                }
            },
            'capabilities': {
                'github': {
                    'triggerFilterGroups': [
                        {
                            'events': [
                                'PULL_REQUEST_READY_FOR_REVIEW'|'PULL_REQUEST_DRAFT'|'PULL_REQUEST_LABEL_ADDED',
                            ],
                            'filters': [
                                {
                                    'type': 'TARGET_BRANCH'|'LABEL',
                                    'patterns': [
                                        'string',
                                    ],
                                    'matchMode': 'INCLUDE'|'EXCLUDE'
                                },
                            ]
                        },
                    ],
                    'leaveComments': True|False,
                    'remediateCode': True|False
                },
                'gitlab': {
                    'triggerFilterGroups': [
                        {
                            'events': [
                                'PULL_REQUEST_READY_FOR_REVIEW'|'PULL_REQUEST_DRAFT'|'PULL_REQUEST_LABEL_ADDED',
                            ],
                            'filters': [
                                {
                                    'type': 'TARGET_BRANCH'|'LABEL',
                                    'patterns': [
                                        'string',
                                    ],
                                    'matchMode': 'INCLUDE'|'EXCLUDE'
                                },
                            ]
                        },
                    ],
                    'leaveComments': True|False,
                    'remediateCode': True|False
                },
                'bitbucket': {
                    'triggerFilterGroups': [
                        {
                            'events': [
                                'PULL_REQUEST_READY_FOR_REVIEW'|'PULL_REQUEST_DRAFT'|'PULL_REQUEST_LABEL_ADDED',
                            ],
                            'filters': [
                                {
                                    'type': 'TARGET_BRANCH'|'LABEL',
                                    'patterns': [
                                        'string',
                                    ],
                                    'matchMode': 'INCLUDE'|'EXCLUDE'
                                },
                            ]
                        },
                    ],
                    'leaveComments': True|False,
                    'remediateCode': True|False
                },
                'confluence': {
                    'fetchDocument': True|False,
                    'createDocument': True|False,
                    'updateDocument': True|False
                },
                'azureDevOps': {
                    'triggerFilterGroups': [
                        {
                            'events': [
                                'PULL_REQUEST_READY_FOR_REVIEW'|'PULL_REQUEST_DRAFT'|'PULL_REQUEST_LABEL_ADDED',
                            ],
                            'filters': [
                                {
                                    'type': 'TARGET_BRANCH'|'LABEL',
                                    'patterns': [
                                        'string',
                                    ],
                                    'matchMode': 'INCLUDE'|'EXCLUDE'
                                },
                            ]
                        },
                    ],
                    'leaveComments': True|False,
                    'remediateCode': True|False
                }
            }
        },
    ]
)
type agentSpaceId:

string

param agentSpaceId:

[REQUIRED]

The unique identifier of the agent space.

type integrationId:

string

param integrationId:

[REQUIRED]

The unique identifier of the integration.

type items:

list

param items:

[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.

      • 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.

      • gitlabRepository (dict) --

        A GitLab repository integrated as a resource.

        • name (string) -- [REQUIRED]

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

        • namespace (string) -- [REQUIRED]

          The namespace (group or user path) that owns the project.

      • bitbucketRepository (dict) --

        A Bitbucket repository integrated as a resource.

        • name (string) -- [REQUIRED]

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

        • workspace (string) -- [REQUIRED]

          The workspace slug that owns the repository.

      • confluenceDocument (dict) --

        A Confluence document (page) integrated as a resource.

        • name (string) -- [REQUIRED]

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

        • spaceKey (string) -- [REQUIRED]

          The Confluence space key containing the document.

        • pageId (string) -- [REQUIRED]

          The Confluence page identifier.

        • title (string) --

          The display title of the Confluence page.

        • spaceTitle (string) --

          The display title of the Confluence space.

      • azureDevOpsRepository (dict) --

        The Azure DevOps repository resource information.

        • name (string) -- [REQUIRED]

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

        • organization (string) -- [REQUIRED]

          The name of the Azure DevOps organization that owns the repository.

        • project (string) --

          The name of the Azure DevOps project that contains the repository.

    • capabilities (dict) --

      The capabilities to enable for the integrated resource.

      • github (dict) --

        The GitHub-specific resource capabilities.

        • triggerFilterGroups (list) --

          The filter groups that control which pull request events start an automatic code review when leaveComments is enabled. A review starts when any group matches. If you omit this, a review starts on PULL_REQUEST_READY_FOR_REVIEW events.

          • (dict) --

            A set of conditions that start an automatic code review when they all pass. A filter group must include events, filters, or both.

            • events (list) --

              Passes when the pull request event is one of the listed events. If you omit this, the group matches PULL_REQUEST_READY_FOR_REVIEW and PULL_REQUEST_DRAFT events only.

              • (string) --

                A pull request event that can start an automatic code review. For GitLab repositories, pull request refers to a merge request.

            • filters (list) --

              Passes when every filter passes. If you omit this, the group matches its events on any target branch and with any labels.

              • (dict) --

                A condition on a pull request value.

                • type (string) -- [REQUIRED]

                  The pull request value to match.

                • patterns (list) -- [REQUIRED]

                  The regular expressions to match against the value.

                  • (string) --

                    A regular expression in RE2 syntax that must match the entire value, for example main or release/.*.

                • matchMode (string) --

                  Whether the value must match the patterns. The default is INCLUDE.

        • leaveComments (boolean) --

          Indicates whether the integration can leave comments on pull requests.

        • remediateCode (boolean) --

          Indicates whether the integration can create code remediation pull requests.

      • gitlab (dict) --

        Capabilities for an integrated GitLab repository.

        • triggerFilterGroups (list) --

          The filter groups that control which merge request events start an automatic code review when leaveComments is enabled. A review starts when any group matches. If you omit this, a review starts on PULL_REQUEST_READY_FOR_REVIEW events.

          • (dict) --

            A set of conditions that start an automatic code review when they all pass. A filter group must include events, filters, or both.

            • events (list) --

              Passes when the pull request event is one of the listed events. If you omit this, the group matches PULL_REQUEST_READY_FOR_REVIEW and PULL_REQUEST_DRAFT events only.

              • (string) --

                A pull request event that can start an automatic code review. For GitLab repositories, pull request refers to a merge request.

            • filters (list) --

              Passes when every filter passes. If you omit this, the group matches its events on any target branch and with any labels.

              • (dict) --

                A condition on a pull request value.

                • type (string) -- [REQUIRED]

                  The pull request value to match.

                • patterns (list) -- [REQUIRED]

                  The regular expressions to match against the value.

                  • (string) --

                    A regular expression in RE2 syntax that must match the entire value, for example main or release/.*.

                • matchMode (string) --

                  Whether the value must match the patterns. The default is INCLUDE.

        • leaveComments (boolean) --

          Whether to post code review comments on merge request discussions.

        • remediateCode (boolean) --

          Whether to create merge requests with automated fixes.

      • bitbucket (dict) --

        Capabilities for an integrated Bitbucket repository.

        • triggerFilterGroups (list) --

          The filter groups that control which pull request events start an automatic code review when leaveComments is enabled. A review starts when any group matches. If you omit this, a review starts on PULL_REQUEST_READY_FOR_REVIEW events.

          • (dict) --

            A set of conditions that start an automatic code review when they all pass. A filter group must include events, filters, or both.

            • events (list) --

              Passes when the pull request event is one of the listed events. If you omit this, the group matches PULL_REQUEST_READY_FOR_REVIEW and PULL_REQUEST_DRAFT events only.

              • (string) --

                A pull request event that can start an automatic code review. For GitLab repositories, pull request refers to a merge request.

            • filters (list) --

              Passes when every filter passes. If you omit this, the group matches its events on any target branch and with any labels.

              • (dict) --

                A condition on a pull request value.

                • type (string) -- [REQUIRED]

                  The pull request value to match.

                • patterns (list) -- [REQUIRED]

                  The regular expressions to match against the value.

                  • (string) --

                    A regular expression in RE2 syntax that must match the entire value, for example main or release/.*.

                • matchMode (string) --

                  Whether the value must match the patterns. The default is INCLUDE.

        • leaveComments (boolean) --

          Whether to post code review comments on pull requests.

        • remediateCode (boolean) --

          Whether to create pull requests with automated fixes.

      • confluence (dict) --

        Capabilities for an integrated Confluence space.

        • fetchDocument (boolean) --

          Whether to fetch documents from this space.

        • createDocument (boolean) --

          Whether to create documents in this space.

        • updateDocument (boolean) --

          Whether to update documents in this space.

      • azureDevOps (dict) --

        The Azure DevOps-specific resource capabilities.

        • triggerFilterGroups (list) --

          The filter groups that control which pull request events start an automatic code review when leaveComments is enabled. A review starts when any group matches. If you omit this, a review starts on PULL_REQUEST_READY_FOR_REVIEW events.

          • (dict) --

            A set of conditions that start an automatic code review when they all pass. A filter group must include events, filters, or both.

            • events (list) --

              Passes when the pull request event is one of the listed events. If you omit this, the group matches PULL_REQUEST_READY_FOR_REVIEW and PULL_REQUEST_DRAFT events only.

              • (string) --

                A pull request event that can start an automatic code review. For GitLab repositories, pull request refers to a merge request.

            • filters (list) --

              Passes when every filter passes. If you omit this, the group matches its events on any target branch and with any labels.

              • (dict) --

                A condition on a pull request value.

                • type (string) -- [REQUIRED]

                  The pull request value to match.

                • patterns (list) -- [REQUIRED]

                  The regular expressions to match against the value.

                  • (string) --

                    A regular expression in RE2 syntax that must match the entire value, for example main or release/.*.

                • matchMode (string) --

                  Whether the value must match the patterns. The default is INCLUDE.

        • leaveComments (boolean) --

          Whether to post code review comments on pull requests.

        • remediateCode (boolean) --

          Whether to create pull requests with automated fixes.

rtype:

dict

returns:

Response Syntax

{}

Response Structure

  • (dict) --