CfnAssociationProps
- class aws_cdk.aws_devopsagent.CfnAssociationProps(*, agent_space_id, configuration, service_id)
Bases:
objectProperties for defining a
CfnAssociation.- Parameters:
agent_space_id (
str) – The unique identifier of the AgentSpace.configuration (
Union[IResolvable,ServiceConfigurationProperty,Dict[str,Any]]) – The configuration that directs how AgentSpace interacts with the given service.service_id (
str) – The identifier for the associated service. For SourceAws and Aws configurations, this must be ‘aws’. For all other service types, this is a UUID generated from the RegisterService command
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk import aws_devopsagent as devopsagent # resource_metadata: Any cfn_association_props = devopsagent.CfnAssociationProps( agent_space_id="agentSpaceId", configuration=devopsagent.CfnAssociation.ServiceConfigurationProperty( aws=devopsagent.CfnAssociation.AWSConfigurationProperty( account_id="accountId", account_type="accountType", assumable_role_arn="assumableRoleArn", # the properties below are optional resources=[devopsagent.CfnAssociation.AWSResourceProperty( resource_arn="resourceArn", # the properties below are optional resource_metadata=resource_metadata, resource_type="resourceType" )], tags=[devopsagent.CfnAssociation.KeyValuePairProperty( key="key", value="value" )] ), dynatrace=devopsagent.CfnAssociation.DynatraceConfigurationProperty( env_id="envId", # the properties below are optional enable_webhook_updates=False, resources=["resources"] ), event_channel=devopsagent.CfnAssociation.EventChannelConfigurationProperty( enable_webhook_updates=False ), git_hub=devopsagent.CfnAssociation.GitHubConfigurationProperty( owner="owner", owner_type="ownerType", repo_id="repoId", repo_name="repoName" ), git_lab=devopsagent.CfnAssociation.GitLabConfigurationProperty( project_id="projectId", project_path="projectPath", # the properties below are optional enable_webhook_updates=False, instance_identifier="instanceIdentifier" ), mcp_server=devopsagent.CfnAssociation.MCPServerConfigurationProperty( endpoint="endpoint", name="name", tools=["tools"], # the properties below are optional description="description", enable_webhook_updates=False ), mcp_server_datadog=devopsagent.CfnAssociation.MCPServerDatadogConfigurationProperty( endpoint="endpoint", name="name", # the properties below are optional description="description", enable_webhook_updates=False ), mcp_server_new_relic=devopsagent.CfnAssociation.MCPServerNewRelicConfigurationProperty( account_id="accountId", endpoint="endpoint" ), mcp_server_splunk=devopsagent.CfnAssociation.MCPServerSplunkConfigurationProperty( endpoint="endpoint", name="name", # the properties below are optional description="description", enable_webhook_updates=False ), service_now=devopsagent.CfnAssociation.ServiceNowConfigurationProperty( enable_webhook_updates=False, instance_id="instanceId" ), slack=devopsagent.CfnAssociation.SlackConfigurationProperty( transmission_target=devopsagent.CfnAssociation.SlackTransmissionTargetProperty( incident_response_target=devopsagent.CfnAssociation.SlackChannelProperty( channel_id="channelId", # the properties below are optional channel_name="channelName" ) ), workspace_id="workspaceId", workspace_name="workspaceName" ), source_aws=devopsagent.CfnAssociation.SourceAwsConfigurationProperty( account_id="accountId", account_type="accountType", assumable_role_arn="assumableRoleArn", # the properties below are optional resources=[devopsagent.CfnAssociation.AWSResourceProperty( resource_arn="resourceArn", # the properties below are optional resource_metadata=resource_metadata, resource_type="resourceType" )], tags=[devopsagent.CfnAssociation.KeyValuePairProperty( key="key", value="value" )] ) ), service_id="serviceId" )
Attributes
- agent_space_id
The unique identifier of the AgentSpace.
- configuration
The configuration that directs how AgentSpace interacts with the given service.
- service_id
The identifier for the associated service.
For SourceAws and Aws configurations, this must be ‘aws’. For all other service types, this is a UUID generated from the RegisterService command