Skip to content

Commit

Permalink
Merge pull request #1764 from vivekthangamuthu/improve-awscc_sagemake…
Browse files Browse the repository at this point in the history
…r_user_profile

docs: added example for awscc_sagemaker_user_profile
  • Loading branch information
marcosentino authored Jun 10, 2024
2 parents 7c48c7d + ad6337e commit 7b987af
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 2 deletions.
15 changes: 13 additions & 2 deletions docs/resources/sagemaker_user_profile.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "awscc_sagemaker_user_profile Resource - terraform-provider-awscc"
subcategory: ""
description: |-
Expand All @@ -10,7 +9,19 @@ description: |-

Resource Type definition for AWS::SageMaker::UserProfile


## Example Usage

To create a SageMaker user profile resource.
```terraform
resource "awscc_sagemaker_user_profile" "example" {
domain_id = awscc_sagemaker_domain.example.id
user_profile_name = "example"
tags = [{
key = "Modified By"
value = "AWSCC"
}]
}
```

<!-- schema generated by tfplugindocs -->
## Schema
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
resource "awscc_sagemaker_user_profile" "example" {
domain_id = awscc_sagemaker_domain.example.id
user_profile_name = "example"
tags = [{
key = "Modified By"
value = "AWSCC"
}]
}
26 changes: 26 additions & 0 deletions templates/resources/sagemaker_user_profile.md.tmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
page_title: "{{.Name}} {{.Type}} - {{.ProviderName}}"
subcategory: ""
description: |-
{{ .Description | plainmarkdown | trimspace | prefixlines " " }}
---

# {{.Name}} ({{.Type}})

{{ .Description | trimspace }}

## Example Usage

To create a SageMaker user profile resource.
{{ tffile (printf "examples/resources/%s/sagemaker_user_profile.tf" .Name)}}

{{ .SchemaMarkdown | trimspace }}
{{- if .HasImport }}

## Import

Import is supported using the following syntax:

{{ codefile "shell" .ImportFile }}

{{- end }}

0 comments on commit 7b987af

Please sign in to comment.