# ScopeConfigurationProperty

Contains configuration information about the scope for a webhook.

- Source: Generated at build time
- Type last changed: v2.190.0 · 17 Apr 2025

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_codebuild as codebuild } from 'aws-cdk-lib';
const scopeConfigurationProperty: codebuild.CfnProject.ScopeConfigurationProperty = {
  name: 'name',

  // the properties below are optional
  domain: 'domain',
  scope: 'scope',
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_codebuild as codebuild

scope_configuration_property = codebuild.CfnProject.ScopeConfigurationProperty(
    name="name",

    # the properties below are optional
    domain="domain",
    scope="scope"
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.codebuild.*;

ScopeConfigurationProperty scopeConfigurationProperty = ScopeConfigurationProperty.builder()
        .name("name")

        // the properties below are optional
        .domain("domain")
        .scope("scope")
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.CodeBuild;

var scopeConfigurationProperty = new ScopeConfigurationProperty {
    Name = "name",

    // the properties below are optional
    Domain = "domain",
    Scope = "scope"
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

scopeConfigurationProperty := &ScopeConfigurationProperty{
	Name: jsii.String("name"),

	// the properties below are optional
	Domain: jsii.String("domain"),
	Scope: jsii.String("scope"),
}
```

## Properties

- `domain`: string — The domain of the GitHub Enterprise organization or the GitLab Self Managed group.

  Note that this parameter is only required if your project's source type is GITHUB_ENTERPRISE or GITLAB_SELF_MANAGED.

- `name`: string (required) — The name of either the enterprise or organization that will send webhook events to CodeBuild , depending on if the webhook is a global or organization webhook respectively.

- `scope`: string — The type of scope for a GitHub or GitLab webhook.

  The scope default is GITHUB_ORGANIZATION.
