poll_for_jobs
¶
poll_for_jobs(
action_type_id: ActionTypeId,
*,
config_overrides: Optional[CodePipelineClientConfig] = None,
max_batch_size: Optional[MaxBatchSize] = None,
query_param: Optional[QueryParamMap] = None,
) -> PollForJobsOutput
Returns information about any jobs for CodePipeline to act on. PollForJobs is valid only for action types with "Custom" in the owner field. If the action type contains AWS or ThirdParty in the owner field, the PollForJobs action returns an error.
When this API is called, CodePipeline returns temporary credentials for the S3 bucket used to store artifacts for the pipeline, if the action requires access to that S3 bucket for input or output artifacts. This API also returns any secret values defined for the action.
Parameters:
-
action_type_id(ActionTypeId) –Represents information about an action type.
-
max_batch_size(Optional[MaxBatchSize], default:None) –The maximum number of jobs to return in a poll for jobs call.
-
query_param(Optional[QueryParamMap], default:None) –A map of property names and values. For an action type with no queryable properties, this value must be null or an empty map. For an action type with a queryable property, you must supply that property as a key in the map. Only jobs whose action configuration matches the mapped value are returned.
Raises:
-
ActionTypeNotFoundException–The specified action type cannot be found.
-
ValidationException–The validation was specified in an invalid format.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_codepipeline/_services/code_pipeline.py
1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 | |