Enum CodeArtifactAuthProvider

    • Enum Constant Detail

      • ACCESS_AND_SECRET_KEY_PAIR

        @Stability(Experimental)
        public static final CodeArtifactAuthProvider ACCESS_AND_SECRET_KEY_PAIR
        (experimental) Fixed credentials provided via Github secrets.
      • GITHUB_OIDC

        @Stability(Experimental)
        public static final CodeArtifactAuthProvider GITHUB_OIDC
        (experimental) Ephemeral credentials provided via Github's OIDC integration with an IAM role.

        See: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_create_oidc.html https://docs.github.com/en/actions/deployment/security-hardening-your-deployments/configuring-openid-connect-in-amazon-web-services

    • Method Detail

      • values

        public static CodeArtifactAuthProvider[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (CodeArtifactAuthProvider c : CodeArtifactAuthProvider.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static CodeArtifactAuthProvider valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null