CARVIEW |
Select Language
HTTP/1.1 302 Moved Temporarily
Content-Type: text/html; charset=iso-8859-1
Content-Length: 300
Connection: keep-alive
Date: Tue, 29 Jul 2025 21:31:23 GMT
Location: https://sdk.amazonaws.com/kotlin/api/latest/iam/aws.sdk.kotlin.services.iam/-iam-client/create-instance-profile.html
Server: Server
Cache-Control: max-age=600
X-Frame-Options: SAMEORIGIN
Strict-Transport-Security: max-age=47304000; includeSubDomains
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Content-Security-Policy: upgrade-insecure-requests; script-src 'self' 'unsafe-inline' *.awsstatic.com *.cdn.uis.awsstatic.com *.cdn.console.awsstatic.com d2c.aws.amazon.com a0.awsstatic.com *.feedback.console.aws.dev insights.docs.aws.com wss://insights.docs.aws.com/prod; object-src 'none';
X-Cache: Miss from cloudfront
Via: 1.1 bb8f47246fd2554ecf0c544aceacf9b0.cloudfront.net (CloudFront)
X-Amz-Cf-Pop: BOM78-P10
X-Amz-Cf-Id: O60bnDo_drOGh6y-NsDDUlQ0Cjy-8RJwPLvKadZ_f3BOJ77VHWvB4g==
HTTP/1.1 200 OK
Content-Type: text/html
Transfer-Encoding: chunked
Connection: keep-alive
Content-Security-Policy: upgrade-insecure-requests; script-src 'self' 'unsafe-inline' *.awsstatic.com *.cdn.uis.awsstatic.com *.cdn.console.awsstatic.com docs.aws.amazon.com https://*.shortbread.aws.dev; img-src 'self' https://amazonwebservices.d2.sc.omtrdc.net https://aws.demdex.net https://dpm.demdex.net https://cm.everesttech.net https://a0.awsstatic.com/; frame-src 'self' https://aws.demdex.net https://dpm.demdex.net; connect-src 'self' https://amazonwebservices.d2.sc.omtrdc.net https://aws.demdex.net https://dpm.demdex.net https://cm.everesttech.net https://a0.awsstatic.com/ https://d2c.aws.amazon.com https://vs.aws.amazon.com https://*.shortbread.aws.dev; object-src 'none'; frame-ancestors 'self'; base-uri 'none'
Strict-Transport-Security: max-age=31536000
Date: Tue, 29 Jul 2025 21:31:25 GMT
Last-Modified: Tue, 29 Jul 2025 00:32:05 GMT
X-Frame-Options: SAMEORIGIN
x-amz-server-side-encryption: AES256
Content-Encoding: gzip
Server: AmazonS3
Cache-Control: no-store, no-cache, must-revalidate
Via: 1.1 0e7c1faba1392f39c179bd78da48eb4e.cloudfront.net (CloudFront), 1.1 1caa5149e68cfec3d959d5e48b583ea2.cloudfront.net (CloudFront)
X-Amz-Cf-Pop: TLV50-C1
X-XSS-Protection: 1; mode=block
ETag: W/"0c5f47d3a868a73fd6d30f5b178fa25e"
Vary: Accept-Encoding
X-Cache: Miss from cloudfront
X-Amz-Cf-Pop: BOM78-P1
X-Amz-Cf-Id: ySDE7LkdswPYSqJg_RjQQL6u93ceIvA4JGemMGmd57Xb1HkRAy4aNA==
createInstanceProfile
AWS SDK for Kotlin
create
1.5.5
Platform filter
createInstanceProfile
abstract suspend fun createInstanceProfile(input: CreateInstanceProfileRequest): CreateInstanceProfileResponse
Creates a new instance profile. For information about instance profiles, see Using roles for applications on Amazon EC2 in the IAM User Guide, and Instance profiles in the Amazon EC2 User Guide.
For information about the number of instance profiles you can create, see IAM object quotas in the IAM User Guide.
Samples
fun main() {
//sampleStart
// The following command creates an instance profile named Webserver that is ready to have a role
// attached and then be associated with an EC2 instance.
val resp = iamClient.createInstanceProfile {
instanceProfileName = "Webserver"
}
//sampleEnd
}