

This is the new *CloudFormation Template Reference Guide*. Please update your bookmarks and links. For help getting started with CloudFormation, see the [AWS CloudFormation User Guide](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/Welcome.html).

# AWS::DevOpsAgent::Service
<a name="aws-resource-devopsagent-service"></a>

The `AWS::DevOpsAgent::Service` resource registers an external service for integration with the AWS DevOps Agent service.

This resource does not support updates. To modify a registered service, you must replace the resource.

**Note**  
Services that use OAuth authorization flows (ex: Datadog, GitHub, Slack) require interactive browser-based registration through the AWS DevOps Agent console. These service types cannot be registered using this resource.

## Syntax
<a name="aws-resource-devopsagent-service-syntax"></a>

To declare this entity in your CloudFormation template, use the following syntax:

### JSON
<a name="aws-resource-devopsagent-service-syntax.json"></a>

```
{
  "Type" : "AWS::DevOpsAgent::Service",
  "Properties" : {
      "[KmsKeyArn](#cfn-devopsagent-service-kmskeyarn)" : String,
      "[ServiceDetails](#cfn-devopsagent-service-servicedetails)" : ServiceDetails,
      "[ServiceType](#cfn-devopsagent-service-servicetype)" : String,
      "[Tags](#cfn-devopsagent-service-tags)" : [ Tag, ... ]
    }
}
```

### YAML
<a name="aws-resource-devopsagent-service-syntax.yaml"></a>

```
Type: AWS::DevOpsAgent::Service
Properties:
  [KmsKeyArn](#cfn-devopsagent-service-kmskeyarn): String
  [ServiceDetails](#cfn-devopsagent-service-servicedetails): 
    ServiceDetails
  [ServiceType](#cfn-devopsagent-service-servicetype): String
  [Tags](#cfn-devopsagent-service-tags): 
    - Tag
```

## Properties
<a name="aws-resource-devopsagent-service-properties"></a>

`KmsKeyArn`  <a name="cfn-devopsagent-service-kmskeyarn"></a>
Property description not available.  
*Required*: No  
*Type*: String  
*Minimum*: `1`  
*Maximum*: `2048`  
*Update requires*: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)

`ServiceDetails`  <a name="cfn-devopsagent-service-servicedetails"></a>
Service-specific configuration details provided during registration. The structure of this property depends on the value of `ServiceType`.  
*Required*: No  
*Type*: [ServiceDetails](aws-properties-devopsagent-service-servicedetails.md)  
*Update requires*: Updates are not supported.

`ServiceType`  <a name="cfn-devopsagent-service-servicetype"></a>
The type of external service to register.  
*Required*: Yes  
*Type*: String  
*Allowed values*: `dynatrace | mcpserver | mcpserversplunk | mcpservernewrelic | gitlab | servicenow | pagerduty | azureidentity | mcpserversigv4`  
*Update requires*: Updates are not supported.

`Tags`  <a name="cfn-devopsagent-service-tags"></a>
Property description not available.  
*Required*: No  
*Type*: Array of [Tag](aws-properties-devopsagent-service-tag.md)  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

## Return values
<a name="aws-resource-devopsagent-service-return-values"></a>

### Ref
<a name="aws-resource-devopsagent-service-return-values-ref"></a>

When you pass the logical ID of this resource to the intrinsic `Ref` function, `Ref` returns the ServiceId.

For more information about using the `Ref` function, see [https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/intrinsic-function-reference-ref.html](https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/intrinsic-function-reference-ref.html).

### Fn::GetAtt
<a name="aws-resource-devopsagent-service-return-values-fn--getatt"></a>

The `Fn::GetAtt` intrinsic function returns a value for a specified attribute of this type. The following are the available attributes and sample return values.

For more information about using the `Fn::GetAtt` intrinsic function, see [https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/intrinsic-function-reference-getatt.html](https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/intrinsic-function-reference-getatt.html).

#### 
<a name="aws-resource-devopsagent-service-return-values-fn--getatt-fn--getatt"></a>

`AccessibleResources`  <a name="AccessibleResources-fn::getatt"></a>
List of accessible resources for this service.

`Arn`  <a name="Arn-fn::getatt"></a>
Property description not available.

`ServiceId`  <a name="ServiceId-fn::getatt"></a>
The unique identifier of the service.