Skip to content
v2.278.0

HttpAuthorizationProperty Struct ​

The authorization method used to send messages.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_iot as iot } from 'aws-cdk-lib';
const httpAuthorizationProperty: iot.CfnTopicRule.HttpAuthorizationProperty = {
  sigv4: {
    roleArn: 'roleArn',
    serviceName: 'serviceName',
    signingRegion: 'signingRegion',
  },
};
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_iot as iot

http_authorization_property = iot.CfnTopicRule.HttpAuthorizationProperty(
    sigv4=iot.CfnTopicRule.SigV4AuthorizationProperty(
        role_arn="roleArn",
        service_name="serviceName",
        signing_region="signingRegion"
    )
)
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.iot.*;

HttpAuthorizationProperty httpAuthorizationProperty = HttpAuthorizationProperty.builder()
        .sigv4(SigV4AuthorizationProperty.builder()
                .roleArn("roleArn")
                .serviceName("serviceName")
                .signingRegion("signingRegion")
                .build())
        .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.IoT;

var httpAuthorizationProperty = new HttpAuthorizationProperty {
    Sigv4 = new SigV4AuthorizationProperty {
        RoleArn = "roleArn",
        ServiceName = "serviceName",
        SigningRegion = "signingRegion"
    }
};
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"

httpAuthorizationProperty := &HttpAuthorizationProperty{
	Sigv4: &SigV4AuthorizationProperty{
		RoleArn: jsii.String("roleArn"),
		ServiceName: jsii.String("serviceName"),
		SigningRegion: jsii.String("signingRegion"),
	},
}

Properties ​

sigv4optionalIResolvable | CfnTopicRule.SigV4AuthorizationPropertysigv4optionaltyping.Union[IResolvable, SigV4AuthorizationProperty]sigv4optionalIResolvableSigv4optionalIResolvableSigv4optionalinterface{} #
Use Sig V4 authorization.

For more information, see Signature Version 4 Signing Process .