Class GitHubActionRole.Builder

    • Method Detail

      • repos

        @Stability(Stable)
        public GitHubActionRole.Builder repos​(List<String> repos)
        A list of GitHub repositories you want to be able to access the IAM role.

        Each entry should be your GitHub username and repository passed in as a single string.

        For example, `['owner/repo1', 'owner/repo2'].

        Parameters:
        repos - A list of GitHub repositories you want to be able to access the IAM role. This parameter is required.
        Returns:
        this
      • provider

        @Stability(Stable)
        public GitHubActionRole.Builder provider​(software.amazon.awscdk.services.iam.IOpenIdConnectProvider provider)
        The GitHub OpenId Connect Provider. Must have provider url `https://token.actions.githubusercontent.com`. The audience must be `sts:amazonaws.com`.

        Only one such provider can be defined per account, so if you already have a provider with the same url, a new provider cannot be created for you.

        Default: - a provider is created for you.

        Parameters:
        provider - The GitHub OpenId Connect Provider. Must have provider url `https://token.actions.githubusercontent.com`. The audience must be `sts:amazonaws.com`. This parameter is required.
        Returns:
        this
      • roleName

        @Stability(Stable)
        public GitHubActionRole.Builder roleName​(String roleName)
        The name of the Oidc role.

        Default: 'GitHubActionRole'

        Parameters:
        roleName - The name of the Oidc role. This parameter is required.
        Returns:
        this