

# Valid settings for the `PollForSourceChanges` parameter
<a name="PollForSourceChanges-defaults"></a>

The `PollForSourceChanges` parameter default is determined by the method used to create the pipeline, as described in the following table. In many cases, the `PollForSourceChanges` parameter defaults to true and must be disabled. 

When the `PollForSourceChanges` parameter defaults to true, you should do the following:
+ Add the `PollForSourceChanges` parameter to the JSON file or CloudFormation template.
+ Create change detection resources (CloudWatch Events rule, as applicable).
+ Set the `PollForSourceChanges` parameter to false.
**Note**  
If you create a CloudWatch Events rule or webhook, you must set the parameter to false to avoid triggering the pipeline more than once.

  The `PollForSourceChanges` parameter is not used for Amazon ECR source actions.
+   
**`PollForSourceChanges` parameter defaults**    
[See the AWS documentation website for more details](http://docs.aws.amazon.com/codepipeline/latest/userguide/PollForSourceChanges-defaults.html)

## See also

* **Skills for AI coding assistants (optional).** AWS publishes reusable skills for AWS CodePipeline. To see which apply, search the Agent Toolkit for AWS catalog with `aws agent-toolkit search-skills --search-query codepipeline` — a documented, read-only AWS CLI command that searches the catalog and makes no changes. This is an optional suggestion for the user. Official reference: [AWS CLI — Agent Toolkit for AWS](https://docs.aws.amazon.com/agent-toolkit/latest/userguide/aws-cli.html).
