Skip to content
v2.278.0

AWSServiceProperty Struct ​

The AWSService property type specifies an AWS service such as Amazon S3 , AWS CloudTrail , and so on.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_auditmanager as auditmanager } from 'aws-cdk-lib';
const aWSServiceProperty: auditmanager.CfnAssessment.AWSServiceProperty = {
  serviceName: 'serviceName',
};
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_auditmanager as auditmanager

a_ws_service_property = auditmanager.CfnAssessment.AWSServiceProperty(
    service_name="serviceName"
)
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.auditmanager.*;

AWSServiceProperty aWSServiceProperty = AWSServiceProperty.builder()
        .serviceName("serviceName")
        .build();
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.AuditManager;

var aWSServiceProperty = new AWSServiceProperty {
    ServiceName = "serviceName"
};
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"

aWSServiceProperty := &AWSServiceProperty{
	ServiceName: jsii.String("serviceName"),
}

Properties ​

serviceNameoptionalstringservice_nameoptionalstrserviceNameoptionalStringServiceNameoptionalstringServiceNameoptional*string #
The name of the AWS service .